Three common places
In the United States, long-term investing money usually sits in one of three places. A workplace plan takes money from your paycheck. A personal retirement account is one you open yourself, with tax rules aimed at later life. An ordinary brokerage account is the flexible one: you can sell and use the cash, and you may owe tax when you sell at a gain. Same funds can live in more than one of these. The account is the bucket. The fund is what is inside it.
The workplace plan
A 401(k) is the common name for a workplace retirement plan. You choose a contribution from pay. Sometimes the employer adds money when you do. That extra is the match. Leaving a match unclaimed is turning down part of your pay.
The menu of funds is chosen by the plan, not by the whole market. Look for a broad, cheap fund on that menu. Target-date funds, which shift the mix as a chosen year gets closer, are a common one-fund option. Read the yearly fee. A convenient payroll deduction does not make an expensive fund a good one.
A personal retirement account
An individual retirement account, an IRA, is a personal account with its own tax rules and yearly contribution limits. Two common setups: one taxes withdrawals later, and one taxes the money before it goes in so that later withdrawals are usually not taxed again if you follow the rules. People call those traditional and Roth.
Which setup fits depends on your income, your tax rate now, and what you expect later. That is a tax question, not a forecast about the stock market. The investing choice inside the account can still be the same simple mix.
The ordinary brokerage account
This is the account with the fewest rules about when you can take money out. It is the usual home for goals before retirement, and for money you have already filled the retirement buckets with. When you sell an investment for more than you paid, you may owe tax on the gain. Holding for longer often gets a lower rate than selling quickly, but the exact bill depends on your situation. Flexibility is the point. The trade-off is that the tax rules are less gentle than in a retirement account.
Which bucket for which money
Money for a near-term bill stays in cash, not in a retirement account you would pay a penalty to touch. Money for later life usually goes first to a workplace plan if there is a match, then to a personal retirement account if you are allowed to contribute, then to an ordinary brokerage account. That order is a common sketch, not a rule for every household. A goal with a date in the next few years does not belong in a mix that can drop sharply.
What to watch
Account fees, transfer fees, and a default fund you never looked at can sit quietly for years. When you change jobs, the old workplace plan does not vanish. You can often leave it, move it to a personal retirement account, or move it to the new job’s plan. Cashing it out early can trigger tax and a penalty. Read that page before you treat an old plan as spare cash.