Most people know they should be "maxing out their retirement accounts." Far fewer have thought about the order in which to fill them. The order matters more than it looks. Because contribution room is capped and irreplaceable each year, filling the wrong bucket first can permanently cost you tax-advantaged space you can never go back and claim.
Here's the sequence used by most FIRE and financial-planning frameworks, and the reasoning behind each step, so you can adapt it if your situation is unusual.
Step 1: 401(k) or 403(b) up to the full employer match
If your employer matches contributions to a workplace retirement plan, contribute at least enough to capture the entire match before doing anything else with new savings.
An employer match is an immediate, guaranteed return on your money that no other investment can reliably compete with. A 50% match, for example, means every dollar you contribute instantly becomes $1.50, before any market growth even happens. Walking away from a match to pay down a low-interest loan or build savings elsewhere is walking away from free money.
Tip
Check your plan's vesting schedule. Some employers require you to stay a certain number of years before the matched portion (not your own contributions) fully belongs to you. It's still usually worth contributing for the match, but know the terms.
Step 2: Max your Health Savings Account (HSA), if eligible
An HSA is only available if you're enrolled in a qualifying high-deductible health plan, but if you have access to one, it deserves the second slot, ahead of an IRA, because of a benefit no other account offers: a triple tax advantage.
- Contributions are tax-deductible (or pre-tax through payroll), just like a traditional 401(k).
- Growth inside the account isn't taxed.
- Withdrawals for qualified medical expenses are never taxed, at any age.
No 401(k) or IRA matches all three. And critically, an HSA doesn't require you to spend the money on healthcare immediately. Funds can be invested and left to grow for decades, with old medical receipts saved and reimbursed tax-free years later. Used this way, an HSA effectively becomes an extra, even more favorably taxed retirement account.
Step 3: Max an IRA — Roth or Traditional
Next comes an Individual Retirement Account, opened on your own outside of an employer. IRAs typically offer far more investment choice and lower fees than an employer 401(k), which is why they're prioritized ahead of contributing further to the 401(k) beyond the match.
Whether to choose a Roth or Traditional IRA depends mainly on your current tax bracket versus your expected bracket in retirement. See Roth vs. Traditional: the decision that compounds for the full framework. High earners should also check whether they're above the income limit for direct Roth IRA contributions, which typically requires a "backdoor Roth" workaround instead.
Step 4: Go back and max the 401(k)/403(b)
Once the IRA is fully funded, return to the employer plan and continue contributing up to its annual maximum. Even with higher fees or a limited fund lineup than an IRA offers, the tax-deferred (or tax-free, for a Roth 401(k)) growth on this much additional space is still valuable. For most savers with a meaningfully high income, this is where a large share of total retirement saving ends up happening, simply because the 401(k) contribution limit is considerably higher than an IRA's.
What about a 'mega backdoor Roth'?
Some 401(k) plans allow after-tax contributions beyond the standard employee limit, which can then be converted to Roth treatment, sometimes automatically. If your plan supports this, it can meaningfully expand your total tax-advantaged space well beyond the usual 401(k) and IRA limits combined. Check your specific plan document, since availability varies widely.
Step 5: Taxable brokerage account
Once every tax-advantaged bucket above is full, additional savings go into a regular taxable brokerage account. There's no contribution limit and no early-withdrawal restriction, which makes it the most flexible bucket, useful for FIRE plans that need to bridge the years before retirement-account funds become penalty-free. The trade-off is that dividends and realized gains are taxed along the way, and full gains are taxed on sale, rather than being deferred or eliminated the way tax-advantaged accounts allow.
Summary table
| Order | Account | Why here |
|---|---|---|
| 1 | 401(k)/403(b) to the match | Immediate guaranteed return; free money left on the table is gone forever |
| 2 | HSA (if eligible) | Only account with a triple tax advantage; doubles as a stealth retirement account |
| 3 | IRA (Roth or Traditional) | More investment choice and typically lower fees than most employer plans |
| 4 | 401(k)/403(b) to the max | Large remaining contribution room, still tax-advantaged |
| 5 | Taxable brokerage | Unlimited, flexible, but ongoing taxes along the way |
Exceptions worth knowing
High-interest debt. After capturing the employer match, high-interest debt (generally anything in double-digit interest territory like most credit cards) usually deserves priority over further investing, since guaranteed double-digit "returns" from eliminating that interest are hard for a diversified portfolio to reliably beat. See avalanche vs. snowball for how to structure the payoff itself.
No employer match at all. If your employer plan offers no match, some planners prioritize the HSA and IRA ahead of any 401(k) contributions at all, only returning to the 401(k) once those are maxed, purely for the better investment options elsewhere.
Emergency fund still in progress. This order assumes you already have a basic cash cushion. Layering aggressive investing on top of zero emergency savings can force you to sell investments, possibly at a loss, the first time an unplanned expense hits.
Key takeaway
The order exists because contribution room is a use-it-or-lose-it resource each year, while cash sitting in a low-yield account is not. Capture the match, then chase the best tax treatment available (HSA, then IRA), then fill remaining employer plan space, and only then move to a flexible but fully taxable account.
Where to go next
For the Roth-versus-Traditional decision referenced in Step 3, see Roth vs. Traditional: the decision that compounds. For how all of this rolls up into a single target number, see how to calculate your FI number.
Frequently asked questions
Should I pay off debt before investing at all?
Get any employer 401(k) match first. It's an immediate, guaranteed return that almost no debt interest rate beats. After that, high-interest debt (generally anything above roughly 7-8%) usually deserves priority over further investing. Lower-interest debt can reasonably be paid down alongside continued investing.
What if my 401(k) has bad, expensive investment options?
Contribute enough to get the full employer match regardless. That match usually outweighs high fees. Beyond the match, it can make sense to prioritize an IRA with low-cost fund choices before adding more to an expensive 401(k), then return to the 401(k) once the IRA is maxed.
Do I need an HSA if I'm healthy and rarely go to the doctor?
Yes, if you're eligible. It's still worth maxing for the tax benefit alone. Unused HSA funds roll over indefinitely and can be invested, effectively functioning as an extra retirement account, and receipts for past medical expenses can be reimbursed tax-free at any point in the future.