# What Order to Save In: 401(k) Match, HSA, IRA, Then What?

> The usual order for retirement savings is the 401(k) up to the match, an HSA if you qualify, an IRA, back to the 401(k), then a taxable account. Here is why each step sits where it does, the 2026 limits at each step, a worked example for a $100,000 earner, and the situations that reshuffle the list.

Source: https://www.exent.ai/resources/retirement-contribution-order · Reviewed by David, Senior Analyst, Exent · Published Nov 9, 2026 · Updated Nov 17, 2026

## Key takeaways

- The common order is: 401(k) up to the full employer match, HSA if you have an eligible health plan, a Roth or traditional IRA, back to the 401(k) up to its limit, then a taxable brokerage account or after‑tax 401(k) money.
- 2026 limits at each step (IRS): 401(k) $24,500 ($32,500 at 50+), HSA $4,400 self‑only or $8,750 family, IRA $7,500 ($8,600 at 50+). Together that is $36,400 of room for a single saver under 50 with an HSA.
- Worked example: a $100,000 earner saving $20,000 a year in this order puts $6,000 in the 401(k) for a $3,000 match, $4,400 in an HSA, $7,500 in a Roth IRA and $2,100 back in the 401(k) (illustrative).
- The order changes with high‑interest debt, no emergency fund, no match, income above the Roth IRA limit ($153,000–$168,000 single in 2026), a high‑fee plan, or money you need before 59½.
- A Roth IRA usually comes before a taxable brokerage account for retirement money; the brokerage account wins for goals before 59½ and for money above the limits.

## What order should you save for retirement in?

If your employer matches 401(k) contributions, the match comes first, because it is money you lose if you do not contribute. After that, many savers fund an HSA (if they have an eligible health plan), then an IRA, then go back and fill the rest of the 401(k), and only then invest in a taxable account. The logic is simple: take free money first, then the accounts with the best tax treatment per dollar, then the accounts with the most room.

**Scope.** US federal rules for 2026, as of October 26, 2026, for an employee with a workplace plan. Not covered in detail: state taxes, pensions, 529 college plans, and self‑employed plans (see [SEP IRA vs Solo 401(k) vs SIMPLE IRA](https://www.exent.ai/compare/sep-ira-vs-solo-401k-vs-simple-ira)). This is how people usually weigh the order, not personal advice; check with a tax professional before acting on numbers that depend on your return.

**The usual order, from the first dollar**

Before investing:
- Emergency cash (months of expenses)
- High‑rate debt paid (e.g. credit cards)

Step 1:
- 401(k) to the full match (free money)

Step 2:
- HSA (only with an eligible health plan)

Step 3:
- Roth or traditional IRA ($7,500 in 2026)

Step 4:
- 401(k) up to $24,500

Step 5:
- After‑tax 401(k) (if the plan allows)
- Taxable brokerage (no limit)

Flows:
- Emergency cash → 401(k) to the full match: then
- High‑rate debt paid → 401(k) to the full match: then
- 401(k) to the full match → HSA: match captured
- HSA → Roth or traditional IRA: HSA full
- Roth or traditional IRA → 401(k) up to $24,500: IRA full
- 401(k) up to $24,500 → After‑tax 401(k): still saving
- 401(k) up to $24,500 → Taxable brokerage: still saving

*A common sequence, not a rule. 2026 limits from the IRS (IR-2025-111, Rev. Proc. 2025-19).*

## How much fits at each step in 2026?

Each step has its own ceiling. The 401(k) and IRA limits are separate, so filling one does not reduce the other; the HSA limit is separate again. The table uses the IRS figures for 2026. For 2027 the IRS set the 401(k) deferral limit at $25,500 (catch‑up $8,500 at 50+, $11,750 at 60–63) and kept the IRA limit at $7,500 (IRS IR‑2026‑136, Nov 12, 2026); the 2027 HSA limits are $4,500 self‑only and $9,000 family. All 2027 limits: [retirement accounts explained](https://www.exent.ai/resources/retirement-accounts-explained).

| Step (2026) | Account | Your 2026 limit | Why it sits here |
| --- | --- | --- | --- |
| 1 | 401(k), 403(b) or 457(b) up to the match | Whatever earns the full match (plan formula) | The match is part of your pay; skipping it forfeits it |
| 2 | HSA (needs an HSA‑eligible health plan) | $4,400 self‑only; $8,750 family; +$1,000 at 55+ | Deductible in, tax‑free growth, tax‑free out for medical costs |
| 3 | Roth IRA, or traditional IRA | $7,500; $8,600 at 50+ (shared by both types) | Any investment at any broker; Roth growth is tax‑free |
| 4 | Back to the 401(k) | Up to $24,500 total; $32,500 at 50+; $35,750 at 60–63 | Large tax‑advantaged room, but limited to the plan’s funds |
| 5a | After‑tax 401(k) (mega backdoor), if the plan allows | Up to $72,000 total from all sources | More Roth‑bound money for high savers |
| 5b | Taxable brokerage account | No limit | Flexible; gains taxed when sold |

Sources: [IRS IR‑2025‑111](https://www.irs.gov/newsroom/401k-limit-increases-to-24500-for-2026-ira-limit-increases-to-7500), [Notice 2025‑67](https://www.irs.gov/pub/irs-drop/n-25-67.pdf) ($72,000 total limit) and [Rev. Proc. 2025‑19](https://www.irs.gov/pub/irs-drop/rp-25-19.pdf) (HSA). From January 1, 2026, bronze and catastrophic health plans also count as HSA‑eligible ([IRS IR‑2025‑119](https://www.irs.gov/newsroom/treasury-irs-provide-guidance-on-new-tax-benefits-for-health-savings-account-participants-under-the-one-big-beautiful-bill)). Every account type and limit is in [the retirement accounts guide](https://www.exent.ai/resources/retirement-accounts-explained).

## Why does the match come first and the HSA second?

**The match.** With a plan that adds 50 cents for every dollar you put in up to 6% of pay, your first 6% earns an immediate 50% on top before any investment return. No account later in the list can offer that. Check the plan’s vesting schedule: unvested match money can be lost if you leave early.

**The HSA.** Contributions are deductible, growth is not taxed, and withdrawals for qualified medical expenses are tax‑free ([IRS Publication 969](https://www.irs.gov/publications/p969)). No other common account is tax‑free at both ends. Leaving the HSA invested for retirement requires paying current medical bills from elsewhere; eligible withdrawals for current qualified medical expenses can also be tax‑free. That choice is the trade‑off in investing your HSA instead of spending it.

**The IRA before the rest of the 401(k).** An IRA at a broker can hold any fund, while a 401(k) holds only the plan’s menu. If your plan has low‑cost index funds, the gap is small and some people fill the 401(k) first; if its funds are expensive, the IRA step matters more. Whether that IRA should be Roth or traditional is a tax‑rate question covered in [Roth vs traditional](https://www.exent.ai/compare/roth-vs-traditional).

**Taxable last.** A brokerage account has no limit and no withdrawal rules, but dividends and realized gains are taxed every year along the way. It gets the money that no longer fits elsewhere, or money for goals before retirement.

## What does the order look like for a $100,000 earner?

Illustrative example (Exent calculation from 2026 IRS limits). Alex is 35, single, earns $100,000, and can save $20,000 a year. The employer matches 50% of contributions up to 6% of pay. Alex has a self‑only HSA‑eligible health plan, three months of expenses in savings and no credit‑card debt.

| Step | Arithmetic | Alex puts in | Running total incl. match |
| --- | --- | --- | --- |
| 1. 401(k) to the match | 6% × $100,000 = $6,000; match 50% × $6,000 = $3,000 | $6,000 | $9,000 |
| 2. HSA, self‑only | 2026 limit | $4,400 | $13,400 |
| 3. Roth IRA | 2026 limit; income below the $153,000 phase‑out | $7,500 | $20,900 |
| 4. Back to the 401(k) | $20,000 − $6,000 − $4,400 − $7,500 | $2,100 | $23,000 |
| Total | $20,000 of Alex’s money + $3,000 match | $20,000 | $23,000 |

- 
- 
- 
- 

**Tax effect.** If the $8,100 of 401(k) money is traditional (pre‑tax) and the HSA is deducted, $12,500 comes off taxable income. Alex’s taxable income before saving is $100,000 − $16,100 standard deduction = $83,900, inside the 22% bracket for single filers ($50,400–$105,700 in 2026, [IRS IR‑2025‑103](https://www.irs.gov/newsroom/irs-releases-tax-inflation-adjustments-for-tax-year-2026-including-amendments-from-the-one-big-beautiful-bill)), and still inside it at $71,400 after. So the federal income tax saving is about 22% × $12,500 = $2,750, and the $20,000 saved costs about $17,250 of take‑home pay (federal income tax only; state tax ignored).

**Why Roth at step 3 here.** Alex is covered by a workplace plan, so a traditional IRA deduction phases out between $81,000 and $91,000 of modified AGI for single filers in 2026 ([Notice 2025‑67](https://www.irs.gov/pub/irs-drop/n-25-67.pdf)). After the 401(k) and HSA amounts, Alex’s AGI is about $87,500, so only part of a traditional IRA contribution would be deductible. A Roth IRA avoids that problem at this income.

**If Alex saved more.** The full tax‑advantaged room is $24,500 + $4,400 + $7,500 = $36,400 of Alex’s own money (36% of pay). Beyond that, a plan that accepts after‑tax contributions has up to $72,000 − $24,500 − $3,000 match = $44,500 more room under the 2026 total limit; how that money gets to Roth is in [the backdoor Roth guide](https://www.exent.ai/resources/backdoor-roth-ira). Everything else goes to a taxable account, the subject of investing after maxing your 401(k).

## Should new money go to a Roth IRA or a brokerage account first?

For money you will not need before 59½, a Roth IRA usually comes first: there is no tax on dividends or trades inside it, and qualified withdrawals are tax‑free. A taxable brokerage account comes first when the money is for a goal before retirement, when the $7,500 IRA limit is already used, or when your income is above the Roth range and a backdoor Roth does not fit.

| Your situation (2026) | Usual first home | Reason |
| --- | --- | --- |
| Retirement money, income under $153,000 single / $242,000 joint | Roth IRA | Tax‑free growth; contributions can come back out first if needed |
| Goal in 3–10 years (house, business), larger than what you contribute | Taxable account | Earnings in a Roth IRA withdrawn early can face tax plus 10% |
| Already put $7,500 in IRAs this year | Taxable account (or more 401(k)) | No room left in the IRA |
| Income above $168,000 single / $252,000 joint | Backdoor Roth, if no pre‑tax IRA balances; else taxable | Direct Roth IRA contributions are not allowed at that income |

The Roth IRA’s flexibility comes from the ordering rule: non‑qualified withdrawals come from regular contributions first, then conversions, then earnings ([IRS Publication 590‑B](https://www.irs.gov/publications/p590b)). In a taxable account, long‑term gains are taxed at 0%, 15% or 20% depending on income, and losses can offset gains ([IRS Topic 409](https://www.irs.gov/taxtopics/tc409)). The full side‑by‑side is in [Roth vs traditional](https://www.exent.ai/compare/roth-vs-traditional); what to hold in a taxable account is in [tax‑efficient ETFs for a taxable account](https://www.exent.ai/resources/tax-efficient-etfs-taxable-account).

## When is this order wrong?

The sequence assumes stable pay, a match, an HSA‑eligible plan and no expensive debt. Change any of those and the order moves:

- High‑interest debt. Paying off a credit card that charges more than investments can reasonably be expected to earn is a guaranteed return; most people still take the match first, then attack the debt.
- No emergency fund. Money in a 401(k) or IRA is costly to reach before 59½. A cash cushion usually comes before step 2; see how much cash to hold.
- No match. Step 1 disappears. Many people then start with the HSA or the IRA, and use the 401(k) for its higher limit afterwards.
- Not HSA‑eligible. Skip step 2. Without a high‑deductible, bronze or catastrophic plan you cannot contribute to an HSA.
- Income above the Roth IRA range. At $168,000 single or $252,000 joint in 2026, direct Roth IRA contributions stop; a backdoor Roth works cleanly only with no other pre‑tax IRA money.
- A high‑fee 401(k). Above the match, an IRA or taxable account with low‑cost funds can beat a plan that charges much more each year.
- State tax. Moving to a lower‑tax state in retirement favours traditional (pre‑tax) money now; some states also tax HSA contributions differently from the federal rules.
- Lower income. For 2026 the Saver’s Credit still applies; from 2027 contributions, the Saver’s Match adds up to 50%, max $1,000 a person, for single filers with modified AGI up to $20,500 (full match) and joint filers up to $41,000 (IRS).

Public‑sector workers with both a 403(b) and a 457(b) have a second full deferral limit, which changes how much fits at step 4; see [403(b) vs 457(b) vs 401(k)](https://www.exent.ai/compare/403b-vs-457b-vs-401k). Over 50, catch‑ups add room at steps 3 and 4 (catch‑up contributions).

**Limitations.** The example uses a hypothetical match formula, federal income tax only and 2026 limits; it ignores payroll taxes, state tax, vesting schedules and investment returns. Plans differ in fees, Roth options and after‑tax features, so read your plan’s summary plan description before choosing an order.

## Add market context with Exent Market intel

The order decides which account each dollar lands in; Market intel is about the market those dollars are invested in.

1. Market intel provides market context, cross‑asset analysis, an events calendar and regular written notes. These can inform your review of an existing plan; they do not reliably predict crashes or guarantee better outcomes.
2. It shows a reading of market risk (Risk ON, Neutral or Risk OFF) built on four pillars, and sends an email when that reading changes.
3. Its notes discuss cross‑asset ratios such as stocks vs bonds, and 26 Market Intel 101 lessons cover money, rates, bonds and market plumbing.

Exent is our product: [Exent Market intel](https://www.exent.ai/intel)

## Frequently asked questions

### What order should I invest in for retirement?

A common order is: 401(k) up to the full employer match, an HSA if eligible ($4,400 self-only in 2026), a Roth or traditional IRA ($7,500), back to the 401(k) up to $24,500, then a taxable account or after-tax 401(k) money. Emergency cash and high-interest debt usually come before all of it.

### Should I max my HSA or my Roth IRA first?

Many savers fund the HSA first because it is tax-free going in, growing and coming out for medical costs, which a Roth IRA is not. Using it as a retirement account means paying current medical bills from elsewhere and leaving the HSA invested; withdrawals for current qualified medical expenses are also tax-free.

### Should I max my 401(k) before opening a Roth IRA?

Usually not. People typically take the 401(k) match, then fund a Roth IRA, then go back to the 401(k). The exception is a plan with very low-cost funds, where filling the 401(k) first loses little.

### Should I open a Roth IRA or a brokerage account first?

For retirement money, a Roth IRA usually comes first because growth and qualified withdrawals are tax-free. A brokerage account comes first for goals before 59½, above the $7,500 IRA limit, or when income is above the Roth range.

### Should I pay off debt or contribute to get the 401(k) match?

Most people take the match first, since it adds an immediate 50% or 100% to what they put in, then pay down high-interest debt such as credit cards before investing more.

### What should I do if my employer does not match?

Skip the match step. Many people start with an HSA (if eligible) or an IRA, which can hold any low-cost fund, and then use the 401(k) for its $24,500 limit in 2026.

### Can I contribute to a Roth IRA if I make $100,000?

Yes. In 2026 Roth IRA contributions phase out between $153,000 and $168,000 of modified AGI for single filers and between $242,000 and $252,000 for joint filers, so $100,000 is well below the limit.

### What comes after maxing the 401(k), HSA and IRA?

After-tax 401(k) contributions if the plan allows them (up to $72,000 from all sources in 2026), a 529 plan for education goals, and a taxable brokerage account, which has no limit.

### Will the order change in 2027?

The steps stay the same, but the limits change. For 2027 the IRS raised the 401(k) deferral limit to $25,500 and kept the IRA limit at $7,500 (announced Nov 12, 2026). From 2027 contributions, lower-income savers can also get the Saver’s Match.

## Sources

1. [401(k) limit increases to $24,500 for 2026, IRA limit increases to $7,500 (IR-2025-111)](https://www.irs.gov/newsroom/401k-limit-increases-to-24500-for-2026-ira-limit-increases-to-7500) — Internal Revenue Service, 2025-11-13
2. [Notice 2025-67: 2026 amounts relating to retirement plans and IRAs](https://www.irs.gov/pub/irs-drop/n-25-67.pdf) — Internal Revenue Service, 2025-11-13
3. [Rev. Proc. 2025-19: 2026 HSA inflation-adjusted amounts](https://www.irs.gov/pub/irs-drop/rp-25-19.pdf) — Internal Revenue Service, 2025-05-01
4. [Rev. Proc. 2026-24: 2027 HSA inflation-adjusted amounts](https://www.irs.gov/pub/irs-drop/rp-26-24.pdf) — Internal Revenue Service, 2026-05-29
5. [Treasury, IRS provide guidance on new tax benefits for HSA participants (IR-2025-119)](https://www.irs.gov/newsroom/treasury-irs-provide-guidance-on-new-tax-benefits-for-health-savings-account-participants-under-the-one-big-beautiful-bill) — Internal Revenue Service, 2025-12-09
6. [IRS releases tax inflation adjustments for tax year 2026 (IR-2025-103)](https://www.irs.gov/newsroom/irs-releases-tax-inflation-adjustments-for-tax-year-2026-including-amendments-from-the-one-big-beautiful-bill) — Internal Revenue Service, 2025-10-09
7. [Publication 969: Health Savings Accounts and other tax-favored health plans](https://www.irs.gov/publications/p969) — Internal Revenue Service
8. [Publication 590-B, Distributions from Individual Retirement Arrangements](https://www.irs.gov/publications/p590b) — Internal Revenue Service
9. [Topic no. 409, Capital gains and losses](https://www.irs.gov/taxtopics/tc409) — Internal Revenue Service
10. [Saver’s Match](https://www.irs.gov/credits-deductions/savers-match) — Internal Revenue Service, 2026-10-22

---

Educational content, not investment advice. Past performance does not guarantee future results.
