Why Order Matters
If you have $30,000 to invest for retirement, putting it all in a taxable brokerage account vs. strategically filling tax-advantaged accounts first could mean $100,000+ difference over 30 years — purely from tax savings compounding.
Yet most people either don't know the optimal order or default to whatever's easiest (usually just their employer's 401k).
The Optimal Funding Order
Here's the generally recommended priority for most people:
1. 401(k) Up to Employer Match
Always do this first. If your employer matches 50% of your contributions up to 6% of salary, that's a guaranteed 50% return on your money — no investment in the world beats free money.
On a $100,000 salary with 50% match up to 6%:
- You contribute: $6,000
- Employer adds: $3,000
- That's $3,000 of free money you'd lose by skipping this step
2. Health Savings Account (HSA)
The HSA is the only account with triple tax benefits:
- Contributions are tax-deductible (reduces your taxable income)
- Growth is tax-free (no capital gains tax)
- Withdrawals for medical expenses are tax-free
After age 65, you can withdraw for any purpose (taxed like a Traditional IRA). This makes it a stealth retirement account with better tax treatment than a 401(k).
2026 limits: $4,300 (individual) / $8,550 (family)
3. Max Out 401(k)
After capturing the match and maxing your HSA, go back and fill up your 401(k) to the annual limit. Pre-tax contributions reduce your taxable income now, and the money compounds tax-deferred.
2026 limit: $23,500 (under 50) / $31,000 (50+)
This is especially valuable if you're in a high tax bracket now and expect to be in a lower bracket in retirement.
4. Roth IRA
If your income allows it, contribute to a Roth IRA. You won't get a tax deduction now, but:
- Growth is completely tax-free
- Withdrawals in retirement are tax-free
- No required minimum distributions (RMDs) — your money can grow untouched as long as you want
2026 limits: $7,000 (under 50) / $8,000 (50+) Income phase-out: $150K–$165K (single), $236K–$246K (married filing jointly)
If your income exceeds the limit, look into a Backdoor Roth conversion.
5. Mega Backdoor Roth (If Available)
Some employer plans allow after-tax 401(k) contributions beyond the normal limit, which can be converted to Roth. This unlocks up to $46,500 of additional Roth space (the gap between the employee limit and the total 415(c) limit of $70,000).
Not all employers offer this — check your plan documents.
6. Taxable Brokerage Account
After exhausting all tax-advantaged space, invest remaining funds in a regular brokerage account. While there's no tax benefit, you get:
- No contribution limits
- No withdrawal restrictions
- Access to your money at any time
- Favorable long-term capital gains rates (0%, 15%, or 20%)
Pre-Tax vs. Roth: Which Is Better?
This is the most debated question in retirement planning.
Pre-tax (Traditional 401k/IRA) is better when:
- You're in a high tax bracket now (32%+)
- You expect lower income in retirement
- You want to reduce this year's tax bill
- You have decades for tax-deferred compounding
Roth is better when:
- You're in a low tax bracket now (12–22%)
- You expect higher income or tax rates in the future
- You want tax-free income in retirement
- You value flexibility (no RMDs)
The general rule: If your marginal rate now is higher than your expected retirement rate, go pre-tax. Otherwise, go Roth.
A Practical Example
Sarah, age 30, earns $100,000 (single)
| Account | Contribution | Tax Savings |
|---|---|---|
| 401(k) to match (6%) | $6,000 | $1,320 |
| HSA | $4,300 | $946 |
| 401(k) remaining | $17,500 | $3,850 |
| Roth IRA | $2,200 | — |
| Total | $30,000 | $6,116/yr |
Sarah shelters $27,800 from current taxes, saving over $6,000/year. Her employer adds $3,000 in matching. Over 35 years at 8% returns, this grows to over $6 million.
Key Takeaway
The order you fund accounts matters as much as how much you invest. Always capture free money first (employer match), then maximize tax advantages (HSA, 401k), then fill Roth space, and only then use taxable accounts. A few minutes of planning saves thousands in taxes.