Why the order matters
All retirement accounts are not created equal. Some offer employer matches (free money), some have triple tax advantages, some are flexible, some are rigid. The order in which you fill them determines how much of every dollar you actually keep after taxes over a 30-year career.
A common mistake is contributing equally to everything — a little 401(k), a little IRA, paying down some debt — without prioritizing. The framework below is designed to extract the maximum mathematical benefit from each dollar, in the right sequence.
One important caveat: this is a general framework. Personal circumstances — tax situation, debt interest rates, health, job security — can shift the optimal order. Treat this as a strong starting point, not an absolute rule.
The 7-step order
Before putting a single dollar into any retirement account, build an emergency fund of 3–6 months of essential expenses in a high-yield savings account. This is your financial foundation. Without it, any unexpected expense (job loss, medical bill, car repair) can force you to raid retirement accounts early — triggering taxes and penalties that wipe out years of gains.
If you're behind on an emergency fund, build it first — even before the 401(k) match. Once funded, you can redirect that cash flow to the steps below.
If your employer offers a 401(k) match, this is always the first investment priority. An employer match is an immediate 50–100% return on your money — no market investment can reliably beat that. A typical match formula (e.g., "100% on first 3%, 50% on next 2%") means contributing 5% of salary yields a 9% total contribution to your account.
Critical rule: Contribute exactly enough to get the full match — not a penny less. Every dollar of match you leave behind is a permanent loss. This is the one step that should never be skipped.
Once you've captured the full employer match, don't automatically dump the rest into the 401(k). The 401(k) has limitations (limited fund choices, fees). The HSA and IRA steps offer better features for additional dollars.
Credit card debt at 20–24% APR is a guaranteed negative return on your net worth. The stock market averages roughly 7–10% annually (before inflation) — meaning high-interest debt is costing you more than investing earns. Paying it off is the highest guaranteed return available.
A practical threshold: debt above ~7% interest rate — pay it off before investing more. Below that (mortgage, student loans at 4–5%) — carry it while investing, since expected returns should exceed the interest cost over time.
If you're enrolled in a qualifying High-Deductible Health Plan (HDHP), the HSA is the single most tax-efficient account available. It offers a triple tax advantage that no other account can match: pre-tax contributions, tax-free growth, and tax-free withdrawals for qualified medical expenses.
In 2026, you can contribute $4,400 (self-only) or $8,750 (family). The optimal strategy: pay current medical expenses out-of-pocket if you can, let the HSA grow invested, and reimburse yourself in retirement — completely tax-free. There is no time limit on HSA reimbursements.
After 65, HSA funds withdrawn for non-medical purposes are taxed as ordinary income — just like a Traditional IRA, but with no penalty. This makes an HSA effectively a bonus IRA with the added benefit of tax-free medical withdrawals at any age.
After the employer match and HSA, the IRA offers better flexibility and typically lower fees than a 401(k). You can invest in nearly any asset class, choose your own provider, and access contributions (Roth only) at any time penalty-free.
The 2026 IRA contribution limit is $7,500 ($8,600 with age-50+ catch-up). For most people under the Roth income limit ($153,000 single / $242,000 MFJ), the Roth IRA is generally preferred for the tax-free growth and no RMD benefit. At higher incomes or in high tax brackets today, Traditional IRA may win.
Use the backdoor Roth IRA: make a nondeductible Traditional IRA contribution, then immediately convert it to Roth. This works at any income level. See our backdoor Roth IRA guide →
Once your HSA and IRA are maxed, go back and fill the 401(k) to the full employee contribution limit: $24,500 in 2026. Despite the limited fund menu, the 401(k) still offers a large pre-tax (or Roth) contribution that provides significant tax shelter.
At this stage, the choice between traditional (pre-tax) and Roth 401(k) depends on your expected tax bracket in retirement vs today. If uncertain, consider splitting: half traditional, half Roth — tax diversification gives you flexibility to withdraw from the optimal bucket each year in retirement.
Once all tax-advantaged space is exhausted, a taxable brokerage account is the next destination. There are no contribution limits, no income restrictions, and no early withdrawal penalties. You pay taxes on dividends and capital gains each year, but long-term capital gains rates (0%, 15%, or 20%) are typically lower than ordinary income rates.
Taxable accounts are also useful for goals before age 59½ — major purchases, early retirement before retirement account access age, or simply wealth building beyond the IRS limits. Index funds with low dividend yields are especially tax-efficient in taxable accounts.
Adjusting for your situation
The 7-step order above is a strong default, but several situations call for modifications:
| Situation | Adjustment |
|---|---|
| No employer match | Skip Step 1, go directly to HSA → IRA → 401(k) |
| Not on HDHP | Skip HSA step, go from 401(k) match → IRA → max 401(k) |
| Self-employed | Replace 401(k) with SEP IRA, Solo 401(k), or SIMPLE IRA — much higher limits |
| Very high income (above $252k MFJ Roth limit) | Use backdoor Roth IRA; also consider mega backdoor Roth if your 401(k) allows after-tax contributions |
| Close to retirement (< 5 years) | Prioritize catch-up contributions — 401(k) extra $8,000, IRA extra $1,100, HSA extra $1,000 |
| Government / nonprofit employee | May have 457(b) plan — can double-dip with 403(b) for $49,000 total. No penalty for early 457(b) withdrawal after separation |
0. Emergency fund (3–6 months) → 1. 401(k) to full match → 2. Pay off debt >7% → 3. Max HSA ($8,750 family) → 4. Max IRA ($7,500) → 5. Max 401(k) ($24,500) → 6. Taxable brokerage
Frequently asked questions
Start at Step 1 and go as far as you can. Even if you can only do Step 0 (emergency fund) and Step 1 (enough for the match), you're ahead of most people. Increase your contribution rate by 1% per year — many plans let you automate this increase. The goal is progress, not perfection.
Yes, with one modification: if you have high-interest debt (credit cards over 7–10%), replace Steps 2 and beyond with aggressive debt payoff until the high-interest debt is gone. The only exception is still Step 1 — always get the 401(k) match first. A 50% match beats even a 10% interest rate. Low-interest debt (mortgage, student loans under 5%) can be maintained while you invest.
Only slightly. Still get the full employer match — that's always step one regardless. Then prioritize the IRA (with its unlimited investment choice) more heavily before going back to max the 401(k). If your 401(k) has high fees and poor options, maxing it beyond the match becomes less attractive until IRA space is fully used.
A common target is 15% of gross income toward retirement — including any employer match. This number is a rough rule of thumb for someone starting in their mid-20s who wants to retire around 65. Starting later requires a higher rate. Aiming to max the employer match + Roth IRA annually already gets many people to the 15% target without touching the full 401(k) limit.