Skip to content

Learn

401(k), Roth IRA, and HSA: Which account should you use?

Tax treatment, contribution limits, and the right order to fill them

Most Americans’ retirement savings sit in three accounts: the traditional 401(k), the Roth IRA and the Health Savings Account (HSA). Each taxes your money at a different time. A traditional 401(k) taxes it when you withdraw, a Roth IRA taxes it before you contribute, and an HSA can skip tax entirely when you spend it on medical costs.

The order you fill these accounts in changes how much tax you pay. The same investments are taxed differently depending on which account holds them. Below you will find a common fill order, the tax-rate rule that decides between Roth and traditional, and an example.

The three accounts side by side

The key difference is when you pay tax. Traditional accounts defer tax to withdrawal. Roth accounts take tax up front and let growth compound tax-free. HSAs avoid tax at every step when you spend them on medical expenses.

FeatureTraditional 401(k)Roth IRAHSA
2026 contribution limit$24,500 ($32,500 if 50+)$7,500 ($8,600 if 50+)$4,400 self-only / $8,750 family ($1,000 more if 55+)
Tax on contributionPre-tax: reduces taxable income nowAfter-tax: no deductionPre-tax: reduces taxable income now
Tax on growthTax-deferredTax-freeTax-free
Tax on withdrawalOrdinary income taxTax-free (after 59½ + 5yr rule)Tax-free for medical
RMDs at 73 or 75YesNoNo
Early withdrawal penalty10% before 59½10% on earnings only (principal is free)20% for non-medical before 65
Income limitNone (employer plan)Phases out $153,000–$168,000 single, $242,000–$252,000 married filing jointlyMust have a qualifying high-deductible health plan (HDHP)

RMDs are required minimum distributions: withdrawals the IRS requires you to start taking at that age.

The HSA’s triple advantage

Every other tax-advantaged account has two advantages: either a deduction plus tax-deferred growth, or after-tax contributions plus tax-free growth. The HSA is the only account that can deliver all three: pre-tax contributions, tax-free growth and tax-free withdrawals.

1. Contributions are pre-tax

HSA contributions reduce your taxable income dollar-for-dollar, just like a traditional 401(k). Contribute $4,400 in the 22% bracket and you save $968 in tax right away, before your money has earned any return.

2. Growth is tax-free

HSA balances can be invested in index funds and grow without capital gains tax, dividend tax or year-end distributions. Contribute the 2026 self-only limit every year for 20 years at 7% real and the balance grows to about $180,000 in today’s dollars (about $359,000 at the family limit). That growth is federally tax-free if spent on medical costs. California and New Jersey do not follow the federal HSA treatment.

3. Withdrawals are tax-free for medical

Any qualified medical expense can be reimbursed from an HSA tax-free. That includes doctor visits, prescriptions, dental, vision and Medicare premiums after 65. After 65, non-medical withdrawals are taxed as ordinary income, like a traditional IRA, with no additional penalty.

Pay now, reimburse yourself later

There is no time limit on HSA reimbursements. Pay medical bills out of pocket today, save every receipt, and reimburse yourself from the HSA 10 or 20 years later, after the HSA balance has compounded tax-free. A $200 doctor visit today, left to grow at 7% real for 20 years, becomes $774. You then receive $774 tax-free in retirement for a medical expense you already paid.

A common order for filling accounts

Each account taxes your money differently, so the sequence matters. The order below is common among personal finance writers. It is judgment, not law:

1

Employer 401(k) match

Capture the full employer match first. A 50% or 100% employer match is an instant, guaranteed return that no investment can beat. Skipping it is like turning down part of your salary.

2

HSA up to the limit

If you have a high-deductible health plan (HDHP), you can use an HSA. It is the only account with a triple tax advantage: a pre-tax contribution, tax-free growth and tax-free withdrawals for medical costs. Contribution limits for 2026: $4,400 self-only, $8,750 family, plus $1,000 from age 55.

3

Roth IRA up to the limit

Roth contributions are most valuable if you expect a higher tax bracket in retirement, if you’re young, or if you plan to retire early. Qualified Roth withdrawals don’t count as income for Affordable Care Act (ACA) subsidy calculations, and they don’t trigger IRMAA (the income-related surcharge on Medicare premiums). 2026 limit: $7,500 ($8,600 if 50+). Phases out at higher incomes ($153,000–$168,000 single, $242,000–$252,000 married filing jointly in 2026).

4

Traditional 401(k) up to the limit

The pre-tax deduction is most valuable when your marginal rate (the tax rate on your next dollar) is high, 22% or above. In early retirement your income drops, and you can do Roth conversions (moving traditional money to a Roth and paying tax on it) at lower rates. 2026 limit: $24,500 ($32,500 if 50+).

5

Mega backdoor Roth

If your 401(k) plan allows after-tax contributions (beyond the standard $24,500), you can contribute up to the total limit. That limit is $72,000 combined in 2026, and higher from 50, since catch-up contributions sit outside that ceiling. The total counts your own contributions plus the employer match. You then convert the after-tax dollars to Roth in-plan or via rollover. Not all employers offer this, so check your plan documents.

How the mega backdoor works →
6

Taxable brokerage

A taxable brokerage account has no contribution limit and no withdrawal restrictions. You owe capital gains tax on the gains, but long-term capital gains rates (0%, 15% or 20%) are often much lower than ordinary income rates. FIRE savers who need money before 59½ without penalties rely on it.

These priorities assume you’re working toward FIRE (financial independence, retire early) and have flexibility in your income. If you’re above the Roth IRA income limit, the backdoor Roth is a common workaround: contribute to a non-deductible traditional IRA, then convert it to Roth. If you hold other pre-tax IRA balances, the pro-rata rule taxes part of the conversion.

Roth or traditional: which fits your tax rate?

Roth or traditional comes down to one question: is your tax rate higher now or in retirement? The answer decides which account costs you less tax over a working lifetime.

Explore: which account wins?

Same $10,000 of pre-tax income, grown at 7% real for 30 years, then taxed. Set the marginal rate now versus in retirement.

Marginal rate now24%
0%37%
Marginal rate in retirement12%
0%37%
Roth (taxed now)$57.9K
Traditional (taxed at withdrawal)$67K

Traditional wins. Because the retirement rate (12%) is below the current rate (24%), deferring tax to withdrawal nets $9.14K more.

The rule in one line: Traditional wins whenever your retirement marginal rate is lower than your current one. This ignores the extra room Roth gives by sheltering more after-tax money at the same contribution limit. That effect is real but secondary.

Your situationBest choiceReasoning
Young / low income nowRothYou pay tax at today’s lower rate. Tax-free compounding over decades is valuable when you have time.
High income now (22%+ bracket)TraditionalThe deduction saves you 22–37% now. In retirement you’ll likely withdraw at 12–22%, so you keep the difference.
Early retiree, pre-MedicareFavor RothQualified Roth withdrawals don’t count toward MAGI (modified adjusted gross income, the income figure the marketplace uses) for ACA premium subsidies. Every dollar of traditional withdrawal or Roth conversion raises MAGI and can shrink the subsidy.
High earner building toward FIRETraditional now → Roth ladder in retirementTake the largest deduction in your high-earning years. In low-income early retirement, convert traditional money to Roth each year at low marginal rates.

The Roth conversion ladder for early retirees

Many FIRE savers use a traditional 401(k) in high-earning years, capturing the 22–37% deduction. They then retire early and use the low-income years for Roth conversions in the 0–12% brackets. You pay ordinary tax on each conversion in the year you do it, and after five years the converted dollars can be withdrawn without the 10% penalty. This is the most tax-efficient path for most high-income FIRE savers. It needs careful planning, though, so that you have enough accessible funds during the five-year conversion window.

Example: a household’s account mix

Here are one example household’s balances in each tax bucket.

Example account mixExample

Pre-tax (401(k)/IRA)

$140K

64% of total

Roth

$35K

16% of total

HSA

$0

None in this example

Taxable

$45K

20% of total

This example has no HSA. For anyone enrolled in a high-deductible health plan (HDHP), adding one is often the highest-priority account to fill after the employer match. It is the only account with a triple tax advantage.

Example figures from a sample household. Build your plan →

Read next

More guides

Sources

  1. 401(k) limit increases to $24,500 for 2026, IRA limit increases to $7,500. Internal Revenue Service, 2025.
  2. Notice 2025-67: 2026 Amounts Relating to Retirement Plans and IRAs, as Adjusted for Changes in Cost-of-Living. Internal Revenue Service, 2025.
  3. Publication 969: Health Savings Accounts and Other Tax-Favored Health Plans. Internal Revenue Service, 2025.
  4. Publication 590-B: Distributions from Individual Retirement Arrangements (IRAs). Internal Revenue Service, 2025.
  5. Publication 590-A: Contributions to Individual Retirement Arrangements (IRAs). Internal Revenue Service, 2025.

Written by Jordan

Jordan is the founder of Calcifir and builds the planner these articles explain. About Calcifir

Published April 23, 2026 · Last reviewed November 14, 2026