VOLUME 3 · CHAPTER 2 OF 8

Filling Tax-Advantaged Accounts in the Right Order

What a pre-tax contribution saves at your bracket, why the HSA is the strongest account, an order for filling the match, HSA, IRA and 401(k), and the backdoor Roth, after-tax 401(k) and conversion moves.

6 min readDeep dive5 worked examplesupdated 2026-10-01
TRY IT WITH YOUR NUMBERSOpen the full calculator →
Loading the 401(k) contribution and match calculator…
Same formula and engine as the full calculator. Your numbers stay in this browser.

The single largest tax break most working people can use is not a deduction they hunt for at filing time; it is the retirement and health accounts their paycheck can already reach. Yet many people fill them in whatever order is convenient, leave room unused, or pick traditional or Roth without thinking about their bracket. This chapter shows what each account's tax break is worth in dollars, an order for filling them that suits most households, and the advanced moves, the backdoor Roth, after-tax 401(k) money and Roth conversions, that matter once the basics are full. Volumes 1 and 2 of the Retirement shelf cover the accounts' rules in more depth; this chapter is about the tax.

What a pre-tax contribution is really worth

A traditional 401(k) or deductible IRA contribution removes income from the top of your tax return, so it saves tax at your marginal rate, not your average rate.

A SINGLE FILER EARNING $95,000, CONTRIBUTING NOTHING PRE-TAX
Gross income
$95,000
Married filing jointly
no
Standard deduction
$16,100
Taxable income
$78,900
Federal income tax
$12,070
Share of gross income
12.7%
Top bracket reached
22.0%
Computed by the same engine as the calculators. Change the inputs there to see your own.
THE SAME FILER AFTER A FULL PRE-TAX 401(K) CONTRIBUTION: WAGES ON THE RETURN OF $70,500
Gross income
$70,500
Married filing jointly
no
Standard deduction
$16,100
Taxable income
$54,400
Federal income tax
$6,680
Share of gross income
9.5%
Top bracket reached
22.0%
Computed by the same engine as the calculators. Change the inputs there to see your own.

With no pre-tax saving, this filer owes $12,070 of federal income tax. Contributing the full 2026 employee limit of $24,500 to a traditional 401(k) brings the wages reported on the return down to $70,500 and the tax to $6,680. Nearly every dollar contributed came out of the 22.0% bracket, so the tax saved is close to 22 cents per dollar. Most states add their own saving on top.

That saving is a deferral, not a gift: the money and its growth are taxed as income when withdrawn. Whether deferral beats paying tax now depends on whether your rate in retirement will be lower or higher than today's, which is the Roth versus traditional question below.

The health savings account: the only triple tax break

A health savings account, available only to people covered by a qualifying high-deductible health plan, is the one account where money can go in untaxed, grow untaxed and come out untaxed. Contributions are deductible (and, through payroll, also escape Social Security and Medicare tax); growth is not taxed; withdrawals for qualified medical costs are tax-free at any age. For 2026 the limit is $4,400 for self-only coverage and $8,750 for family coverage, counting any employer money.

The strategy that turns an HSA into a retirement account is to pay current medical bills from your regular cash, keep the receipts, and leave the HSA invested. There is no deadline for reimbursing yourself for a qualified expense incurred after the account was opened, so years later the receipts can be cashed in tax-free.

AN HSA INVESTED AT 6.0% WITH $350 ADDED EACH MONTH FOR 25 YEARS
Starting balance
$0
Added per month
$350
Yearly return
6.0%
Years
25
Balance at the end
$236,701
Put in
$105,000
Growth
$131,701
Computed by the same engine as the calculators. Change the inputs there to see your own.

Saving $350 a month for 25 years puts in $105,000; at 6.0% a year the account would reach about $236,701, of which $131,701 is growth that need never be taxed if it pays for medical care. After 65, money taken out for anything else is taxed as income, like a traditional IRA, with no penalty; before 65 a non-medical withdrawal also carries a 20% penalty. A few states, including California and New Jersey, do not follow the federal treatment and tax HSA contributions and growth. The HSA retirement calculator projects your own numbers.

An order for filling accounts

No single order is right for everyone, but this one reflects the size of each account's advantage for a typical employee.

  1. The employer match. Contribute at least enough to your 401(k) to receive the full match. An immediate match is a return no investment reliably offers. The 401(k) match calculator shows what you would leave behind.
  2. The HSA, if you are eligible. The triple tax break makes it the next most valuable dollar, especially if you can leave it invested.
  3. An IRA. The 2026 limit is $7,500. IRAs usually have cheaper and broader fund choices than a workplace plan. Whether it should be traditional or Roth depends on your bracket and on income limits.
  4. The rest of the 401(k) limit. Back to the workplace plan, up to $24,500.
  5. After-tax and taxable money. Once the above are full, the options below, then an ordinary brokerage account invested tax-efficiently.

People who are self-employed have a different set of accounts; the solo 401(k) calculator covers them.

Traditional or Roth: matching the account to your bracket

A Roth contribution pays the tax now and takes out qualified withdrawals tax-free; a traditional contribution defers the tax. If your rate is the same at both ends, the two leave you with the same money. The choice therefore comes down to comparing today's marginal rate with the rate you expect on withdrawals.

A MARRIED COUPLE WITH $90,000 OF INCOME
Gross income
$90,000
Married filing jointly
yes
Standard deduction
$32,200
Taxable income
$57,800
Federal income tax
$6,440
Share of gross income
7.2%
Top bracket reached
12.0%
Computed by the same engine as the calculators. Change the inputs there to see your own.
A MARRIED COUPLE WITH $260,000 OF INCOME
Gross income
$260,000
Married filing jointly
yes
Standard deduction
$32,200
Taxable income
$227,800
Federal income tax
$39,868
Share of gross income
15.3%
Top bracket reached
24.0%
Computed by the same engine as the calculators. Change the inputs there to see your own.

The first couple's next dollar is taxed at 12.0%. Paying tax at that rate now, through Roth contributions, is attractive, because few retirees with meaningful savings expect a lower rate later. The second couple's next dollar is taxed at 24.0%; for them a traditional contribution saves tax at a rate they may well avoid in retirement. Many households split contributions so that some money sits in each kind of account, which gives them a choice of what to draw from each year in retirement.

Advanced moves once the basics are full

The backdoor Roth IRA. Direct Roth IRA contributions shrink and then disappear as income rises; the phase-out begins at $153,000 of modified adjusted gross income for a single filer and $242,000 for a joint return. Anyone with earned income can still make a non-deductible traditional IRA contribution and then convert it to a Roth. The trap is the pro rata rule: if you hold any pre-tax money in traditional, SEP or SIMPLE IRAs at the end of the year of the conversion, part of the conversion is taxable in proportion to those balances. Rolling old pre-tax IRA money into a current 401(k), if the plan accepts it, often clears the way. The backdoor Roth calculator shows how much of a conversion would be taxed.

After-tax 401(k) contributions. Some plans let you contribute after-tax money above the employee limit, up to the plan's overall cap, and convert it to Roth inside the plan or roll it to a Roth IRA. This is often called the mega backdoor Roth. Whether you can do it depends entirely on your plan's rules; the mega backdoor Roth calculator shows the room available.

Roth conversions in low-income years. Moving money from a traditional account to a Roth is taxed as ordinary income in the year you do it, so the best years are the low ones: a sabbatical, a gap between jobs, or the years between retiring and starting Social Security. Conversions cannot be undone, and money converted before 59½ must stay in the Roth for five years to avoid a penalty on withdrawal. The Roth conversion calculator shows the tax on a given amount.

YOUR NEXT STEPSDo this now
  1. Look up your plan's matching formula and confirm your contribution rate captures all of it, using the 401(k) match calculator.
  2. Check your bracket with the tax bracket calculator and decide whether new contributions lean traditional, Roth or split.
  3. If you have an HSA, check whether the balance is sitting in cash; if you can pay current medical costs from other money, consider investing it, and start a folder for receipts.
  4. If your income is near the Roth IRA phase-out, list every pre-tax IRA balance you hold before attempting a backdoor contribution.

This chapter describes 2026 federal rules in general terms. It is not personal tax advice; your income, filing status, plan rules and state decide what applies to you.

KEY TERMS
Roth versus traditional contributionsCompound growth
SOURCES
Saved in this browser. Sign in to keep it on every device.
WORK IT OUT WITH YOUR NUMBERS
Coast FIRE →How much must I have invested today to stop contributing?FIRE Calculator →Given savings and spending, when can I stop working?Roth conversion calculator →How much should I convert to Roth between 60 and 73 without a Medicare surcharge or a Social Security tax spike?
IN THE BLOG
INVESTING · 12 MINThe Advanced 2026 Tax Strategies That Create Generational Wealth →Backdoor Roth mechanics, mega backdoor Roth execution, HSA triple tax advantage maximization, donor-advised fund strategies, and QSBS exclusion qualification requirementsRETIREMENT · 12 MINCatch-Up Contributions After 50: Maximize Your Retirement Savings (2026) →401k catch-up mechanics ($7,500), IRA catch-up rules ($1,000), super catch-up provisions age 60-63, HSA triple tax advantage, and contribution priority flowchartBUDGET & SAVING · 11 MINThe No-Spend Challenge: Why TikTok's 3.2M-View Trend Could Cost You $74,861 →Why going cold turkey on spending costs you more in compound growth than you save — and what to do instead.