You just started your first real job. After taxes and rent, you have some money left over every month and you actually want to do something smart with it. You open your brokerage app, stare at a blank account, and wonder: where does the money even go first?

This is the question almost nobody teaches you. Most investing content skips straight to stock picks and ETF comparisons, which is like arguing about which paint color to use before you have laid the foundation. The sequence matters enormously. Getting it wrong costs you tens of thousands of dollars over a career, quietly, without ever alerting you that something went wrong.

The short answer

The order is: capture your full employer 401(k) match, build a 3 to 6 month emergency fund, pay off any debt above 7% interest, max your HSA if you have an eligible high-deductible health plan, max your Roth IRA up to the $7,500 2026 limit, return to your 401(k) up to the $24,500 annual limit, then invest anything left in a taxable brokerage account. The sequence matters more than which specific funds you pick, since the account structure, not the investment choice, is what determines most of your long-run after-tax wealth.

Here is the exact order of operations, explained the way a smart friend with a finance degree would explain it over dinner.

The core principle: Your account structure affects your long-run wealth more than your investment picks. A mediocre index fund in the right account outperforms a great stock pick in the wrong one.

Step 1: Capture your full employer match

1
Highest priority
Contribute enough to your 401(k) to get every dollar of employer match
If your employer matches 50% of contributions up to 6% of your salary, that is a guaranteed 50% return on that money before the market does a single thing. No investment reliably beats that. Contribute at minimum whatever percentage unlocks the full match, then stop at this step and move on. You will come back to the 401(k) later. The full case is in the 401(k) match article.

A lot of people either skip this entirely or put too much into the 401(k) at this stage and miss a better tax move with the next steps. Contribute exactly enough for the full match, then redirect the rest.

Step 2: Build your emergency fund

2
Structural foundation
3 to 6 months of expenses in a high-yield savings account
This is not an investment. It is a defensive move. Without a cash buffer, the first unexpected expense forces you to sell your investments, usually at the worst possible time. A high-yield savings account currently pays around 4 to 5%, which is not exciting, but that is fine. This money needs to be liquid and boring. Three months of expenses is the minimum. Six months is the real target. See how to size your emergency fund.

If you already have this covered, skip ahead. If you are starting from zero, build this in parallel with Step 1 until it is fully funded, then accelerate the investing steps below.

Step 3: Max your HSA (if you are eligible)

3
The most tax-efficient dollar, if available
If you are on a high-deductible health plan, max your HSA
The Health Savings Account is the only account that is tax-free at all three stages: deductible going in, tax-free while it grows, and tax-free coming out for qualified medical expenses. No 401(k), IRA, or Roth matches all three. If you are on a qualifying high-deductible health plan, this slots in right around the same priority as the Roth IRA, and many people fund it first because of that triple advantage. Invest the balance rather than leaving it in cash. The full breakdown, including 2026 limits and the stealth retirement strategy, is in the HSA guide. If you are not on an eligible health plan, skip this step.

Step 4: Max your Roth IRA

4
Best tax move for most people
Contribute up to $7,500 per year to a Roth IRA
A Roth IRA is funded with money you have already paid taxes on. Everything it earns for the next 30 to 40 years grows completely tax-free, and you pay nothing when you withdraw it in retirement. For most people with room to grow their income, this is usually one of the most powerful accounts available. The math on decades of tax-free compounding is hard to beat. The annual limit in 2026 is $7,500, which works out to about $625 per month.

If you earn above the Roth IRA income limit (the phase-out begins at $153,000 for single filers in 2026), look into a backdoor Roth conversion. It is a legitimate workaround and works the same way in the end. Just be aware of the pro-rata rule if you have existing pre-tax IRA balances.

Step 5: Return to your 401(k)

5
After the Roth is maxed
Increase your 401(k) contributions toward the $24,500 annual limit
Now that you have locked in the free employer money, the HSA if eligible, and the tax-free Roth growth, go back to your 401(k) and push contributions higher. Traditional 401(k) contributions lower your taxable income today, which is a real dollar benefit. The 2026 employee contribution limit is $24,500 per year. Most people cannot max this immediately, and that is completely fine. Increase your contribution percentage gradually each year or every time you get a raise.

Step 6: Taxable brokerage account

6
If you have more to invest
Open a standard taxable brokerage account for anything beyond the limits
Once your tax-advantaged accounts are maxed, a regular brokerage account is the next home for your money. You will pay taxes on dividends and on gains when you sell, but long-term capital gains rates (0%, 15%, or 20% depending on your income) are still far lower than ordinary income rates. This is also where you invest if you are saving for a goal that is not retirement.

What about high-interest debt?

If you are carrying credit card debt or other debt above 7% interest, address it before Step 3. The logic is blunt: paying off a 22% APR credit card is a guaranteed 22% return. No investment reliably beats that. The sequence then becomes: employer match, emergency fund, high-interest debt, HSA if eligible, Roth IRA, more 401(k), taxable.

Federal student loans and mortgages below 7% are generally fine to pay on schedule while investing. Private loans above 7% should be treated more like credit card debt. For the full framework, see should I pay off student loans or invest.

Why the sequence matters as much as the investment

Here is a number that tends to land hard. A $7,500 contribution to a Roth IRA at age 30, growing at 8% annually for 40 years, becomes approximately $163,000 that you never pay taxes on. The same $7,500 in a taxable account, taxed along the way, likely becomes around $107,000 after taxes. The difference is not the investment. It is the account.

This is why the order of operations matters before any conversation about which ETFs to buy, which broker to use, or what percentage to allocate to international stocks. Get the structure right first. Everything else compounds inside it.

The quick version

  • Contribute enough to your 401(k) to get the full employer match
  • Build 3 to 6 months of expenses in a high-yield savings account
  • Pay off any debt above 7% interest aggressively
  • Max your HSA if you are on an eligible high-deductible health plan (triple tax advantage)
  • Max your Roth IRA ($7,500/year in 2026)
  • Return to your 401(k) and increase contributions toward $24,500
  • Open a taxable brokerage account once the above are maxed

If you only get through the employer match, emergency fund, and a tax-advantaged account or two this year, you will be ahead of the overwhelming majority of your peers. Start there. The rest follows naturally.