TraderXZone

HSA Triple Tax Advantage: What It's Actually Worth in Dollars

2026-09-01 · Taxes · By TraderX · Reviewed 2026-09-01
HSA Triple Tax Advantage: What It's Actually Worth in Dollars

“Triple tax advantage” is a phrase, not a number. Here’s the number: for one $4,300 contribution made through payroll by a single filer in the 22% federal bracket, invested for 20 years at 7% a year, the three breaks are worth roughly $1,275 up front, about $0 to $130 in the middle, and about $1,780 at the end. Total tax avoided: near $3,185 on a $4,300 deposit. The end-stage break is the biggest, and it is the one people talk about least.

Key points

  • A $4,300 HSA contribution routed through payroll avoids federal income tax (22% = $946) plus the employee’s 7.65% FICA share ($329), for $1,275 of immediate tax not paid.
  • The same $4,300 in a taxable brokerage account, if it went in after those taxes, would be $3,025 instead of $4,300, so the account starts 42% larger before a single dollar of growth.
  • At 7% for 20 years the $4,300 grows to $16,637. The $12,337 of gain is never taxed if spent on qualified medical costs, worth about $1,780 at the 15% long-term capital gains rate that applies to most middle-income filers.
  • The middle break (no annual tax drag) is worth close to nothing in a pure buy-and-hold index position and real money only if the holding throws off ordinary dividends or you trade it.
  • Spend the money on something non-medical before age 65 and you owe income tax plus a 20% additional tax, which flips the third break from a $1,780 gain to roughly a $3,327 loss on this example.

Close-up of a person writing in a notebook with documents and a calculator, managing finances.

What are the three tax breaks, mechanically?

An HSA is the only US account that is untaxed at all three points money passes through: in, while it sits, and out. A 401(k) is untaxed going in and while it sits, then taxed coming out. A Roth IRA is taxed going in, then untaxed for the other two. The HSA skips all three, and if you fund it by payroll deduction it also skips payroll tax, which no retirement account does.

A smartphone calculator and glasses on tax documents, representing modern tax preparation.

That fourth point is why the “triple” label undersells it. But the fourth only exists via payroll. Contribute from your checking account and claim the deduction on your return, and the FICA piece is gone.

Meet the person we’ll follow the whole way down.

Dana is 40, single, works for a company that offers a high-deductible health plan with an HSA. Her marginal federal rate is 22%. She contributes $4,300 in January 2026 through payroll deduction, invests all of it, and does not touch it for 20 years. She lives in a state that follows the federal HSA treatment, so state tax is set aside for now. She retires at 60 and starts drawing the account for medical costs.

Every number below is Dana’s. The assumed 7% annual return is an illustration, not a forecast, and every figure derives from it.

What is the deposit break worth in dollars?

$1,275, paid to Dana the year she contributes.

Flat lay of 1040 tax form with pencils and 'TAXES' blocks on black background.

Break it down. On $4,300 of wages Dana would have owed 22% federal income tax, or $946. She’d also have owed her employee share of FICA: 6.2% Social Security plus 1.45% Medicare, 7.65% combined, or $329 on $4,300. Payroll HSA deductions come out before both. $946 + $329 = $1,275.

So the real cost of putting $4,300 into the HSA is $3,025 of take-home pay Dana gives up. She moved $4,300 into an investment account and it cost her $3,025.

Put the same $3,025 of after-tax money into a taxable brokerage account and you start with $3,025. The HSA starts with $4,300. Before growth, before any of the clever stuff, the HSA balance is 42.1% larger. That gap is the whole ballgame, because everything downstream compounds on top of it.

A sceptical reader should push back here: isn’t this just the standard pre-tax deduction any 401(k) gives? Mostly yes, except a 401(k) deferral does not escape FICA. Salary deferred into a 401(k) is still subject to Social Security and Medicare tax. The $329 is HSA-only, and it’s about 26% of the first-stage benefit.

One caveat on the Social Security piece. Wages you shelter from the 6.2% tax are also wages that don’t count toward your Social Security earnings record. If Dana is a lifetime high earner already past the taxable maximum, the 6.2% never applied to that dollar anyway and her benefit is unaffected. If she’s a moderate earner, reducing recorded wages by $4,300 for one year moves her eventual benefit by a trivial amount, because the benefit formula averages 35 years of indexed earnings. One year at $4,300 lower divides by 35. It’s real but small, and I’m not netting it out because it depends on her full earnings history.

Why is the middle break usually worth so little?

Because a broad index fund held without selling generates almost no taxable event in the first place, and the HSA’s shelter has nothing to shelter.

This is the stage everyone assumes is the big one, and for most buy-and-hold investors it isn’t. Say Dana’s chosen fund yields 1.5% a year in qualified dividends. In a taxable account those dividends get taxed at long-term capital gain rates, per IRS Topic 409 on capital gains and losses, which for a single filer in the 22% bracket means 15%.

Year one, $4,300 at 1.5% = $64.50 in dividends. Tax at 15% = $9.68. That’s it. Under ten dollars.

The drag grows as the balance grows, and it compounds because taxed-away dividends stop earning. Run it across all 20 years on the growing balance and the cumulative cost is roughly $290 of tax paid, and closer to $500 counting the growth those tax dollars would have produced. Against a $16,637 ending balance, that’s about 3%.

Now change one assumption. Suppose Dana holds something throwing off ordinary income, taxed at her full 22% rather than 15%, and yielding 4% instead of 1.5%. Year one: $4,300 × 4% = $172 of income, taxed at 22% = $37.84. Nearly four times the drag, in year one alone, and it scales up from there. Over 20 years that path costs multiples of the index case.

So the middle break’s value isn’t a fixed number. It’s a function of what you hold. Low-turnover equity index fund: worth a few hundred dollars over two decades. Bond fund or a REIT or an account you actively trade: worth several times that, because every realised short-term gain and every ordinary dividend gets taxed at the full marginal rate. IRS Publication 550 is the document that sorts which distributions are qualified and which are ordinary, and it’s worth knowing which bucket your holding falls in before you decide the middle break matters to you.

There’s a second, quieter piece here. High earners face the 3.8% net investment income tax on investment income above a threshold. HSA earnings aren’t investment income for that purpose while they stay in the account. IRS Topic 559 sets out what counts and the income thresholds where it kicks in. Dana at 22% is nowhere near it. Someone at $300,000 of income holding the same position in taxable would add 3.8% on top of the 15%, taking the effective rate on dividends and gains to 18.8%. For that person the middle break is worth about 25% more than it’s worth to Dana.

What is the withdrawal break worth?

$1,780, and it’s the largest of the three.

Dana’s $4,300 at 7% for 20 years: $4,300 × 1.07^20. The compounding factor is 3.8697, so the balance is $16,640 (call it $16,637 after rounding the factor properly). Of that, $4,300 is her original contribution and $12,337 is gain.

In a taxable account, selling that position triggers long-term capital gains tax on the appreciation. At 15%, tax on $12,337 is $1,851. But hold on: her taxable account never held $4,300 to begin with, it held $3,025. So the correct comparison is not the HSA’s gain but the taxable account’s own gain.

Do it properly. $3,025 at 7% for 20 years, ignoring dividend drag for a moment, is $11,706. Gain of $8,681. Tax at 15% = $1,302. After-tax value: $10,404.

The HSA, spent on qualified medical expenses, delivers $16,637 with zero tax. Difference: $6,233.

That $6,233 is the whole triple advantage compounded, not just stage three. To isolate stage three alone, compare Dana’s HSA against a hypothetical account that got the same pre-tax deposit and the same growth but taxed the gain on exit. $12,337 × 15% = $1,851. That’s the pure exit-stage number if we treat the entire gain as long-term capital gain. But part of that gain would, in a taxable account, have already been taxed as it accrued through dividends. Netting out the roughly $290 of dividend tax already paid, the incremental exit break is about $1,780. That’s the figure in the opening.

Outcome after 20 years at 7%Dollars
HSA balance, spent on qualified medical16,637
Taxable account after-tax value10,404
Immediate tax avoided at contribution1,275
Cumulative dividend tax avoided290
Exit-stage capital gains tax avoided1,780

The first two rows are ending values. The last three are the components of the gap, and they don’t sum to $6,233 because the difference between $6,233 and $3,345 is compounding on the taxes never paid, not tax itself. That distinction matters: two-thirds of the benefit is tax avoided, one-third is the growth on money the IRS never took.

What happens if you spend it on something else?

The third break inverts, and hard.

Non-qualified withdrawals before age 65 are taxed as ordinary income and hit with an additional 20% tax. Run Dana’s balance through it. She withdraws the full $16,637 at 55 to buy a car. Ordinary income tax at 22%: $3,660. Additional 20% tax: $3,327. Total: $6,987. She nets $9,650.

The taxable account she never opened would have handed her $10,404. She’s $754 worse off than if she’d never used the HSA at all, and that’s before the dividend drag adjustment.

The 20% additional tax is the piece that does the damage. It isn’t a penalty on the gain, it’s on the whole distribution, contribution included.

After 65 the 20% goes away. Non-qualified withdrawals are then just ordinary income, which makes the account behave like a traditional IRA. Dana at 65 withdrawing $16,637 for non-medical reasons pays $3,660 and nets $12,977, which beats the $10,404 taxable outcome by $2,573. So even the worst-case-after-65 scenario wins, because stages one and two already did their work.

That asymmetry is the actual argument for the account. Best case you get $16,637 tax-free. Worst case after 65 you get $12,977. Worst case before 65 you get $9,650 and you had to do something unusual to land there.

Does the receipt-hoarding strategy change the math?

Yes, but less than the people who advocate it suggest, and it introduces a risk they usually skip.

The idea: pay medical bills out of pocket, keep the receipts, let the HSA compound untouched, then reimburse yourself decades later for those old expenses. There’s no deadline on reimbursement as long as the expense was incurred after the HSA was established.

For Dana this means the $16,637 in 2046 can be withdrawn tax-free against a stack of receipts from 2026 through 2046, even though the money was spent long ago. Functionally she gets a tax-free withdrawal without needing a medical expense in the year she withdraws.

The catch is documentation over a twenty-year horizon. If she can’t produce the receipt in an audit, the withdrawal is non-qualified. Before 65 that’s the $6,987 hit. After 65 it’s $3,660. So the strategy converts a documentation problem into a tax problem, and the cost of losing the paperwork is quantified above.

Second catch: paying out of pocket means the money for medical bills came from somewhere. If Dana pays $2,000 a year of medical costs from after-tax income for twenty years so the HSA can compound, she funded $40,000 of spending with taxed dollars. The strategy assumes she had the cash to do that. Many people don’t, and paying medical costs on a credit card at 22% APR to preserve a 7% tax-free compounding rate is arithmetic that goes the wrong way by 15 points a year.

What this does not tell you

The 7% return is an assumption I picked and held constant, not a projection. At 4% the balance after 20 years is $9,421 and the gain is $5,121, so the exit break falls to roughly $768 rather than $1,780. At 10% the balance is $28,932 and the exit break is about $3,395. The first-stage $1,275 doesn’t move with returns; the third stage moves a lot. If you think returns will be low, the HSA’s advantage concentrates almost entirely in the deduction and the FICA.

State tax is excluded. Most states follow federal treatment, but a small number tax HSA contributions or earnings at the state level. If yours does, subtract your state rate from the first-stage figure and add state tax to the middle-stage drag. That can move the total by several hundred dollars.

The 22% bracket and 15% capital gains rate are Dana’s, not yours. Someone in the 12% bracket typically pays 0% on long-term capital gains, which makes the third break worth close to nothing and shifts almost all the value to stage one and the FICA saving. Someone at 35% with the net investment income tax has a much larger third break than Dana’s.

I’ve held Dana’s tax rate constant across 20 years. Rates change, brackets change, and her income will change. Every long-horizon tax calculation has this problem and none of them solve it.

I haven’t modelled the cost of the high-deductible health plan required to contribute. If that plan costs more out of pocket than the alternative in a year Dana has real medical expenses, that cost offsets some of the tax benefit. The comparison depends entirely on her plan options and her health, and I have neither.

Contribution limits are indexed and change annually. The $4,300 figure is one year’s single-coverage limit used as a round example. Family coverage limits are roughly double, and people 55 and older can add a catch-up amount.

Nothing here addresses whether Dana should be contributing to an HSA versus a 401(k) match, paying off debt, or holding cash. That’s a question about her whole balance sheet, not about tax arithmetic.

FAQ

How much does the payroll FICA break actually add?

$329 on a $4,300 contribution, or 7.65% of whatever you contribute, and only if you route it through your employer’s payroll system. Contribute directly from a bank account and you get the income tax deduction on your return but not the FICA saving. On Dana’s numbers that’s 26% of her first-year benefit, given up for the convenience of writing a cheque instead of filing a payroll election.

Why isn’t the middle break bigger?

Because a buy-and-hold index position barely generates taxable events. Dana’s first-year dividend tax in a taxable account is $9.68. Twenty years of that, compounded, comes to roughly $500 of lost value against a $16,637 balance. The middle break scales with turnover and with ordinary income. Hold bonds or trade actively and it becomes significant; hold a low-yield equity index and it’s noise.

What if I need the money for a non-medical emergency before 65?

You pay ordinary income tax plus a 20% additional tax on the entire distribution, not just the gain. On Dana’s $16,637 that’s $6,987, leaving her $9,650, which is less than the $10,404 the taxable account would have produced. The HSA is the one account where an early non-qualified withdrawal can leave you worse off than never having used it.

Does the 3.8% net investment income tax ever touch an HSA?

Not on earnings inside the account, and not on qualified distributions. The tax applies to investment income above income thresholds set out in IRS Topic 559. For someone above those thresholds, the equivalent taxable-account position would face 18.8% rather than 15% on dividends and gains, which widens the HSA gap by about a quarter at every stage after the deposit.

How long do I have to keep receipts if I use the reimburse-later approach?

There’s no expiry on the expense itself, so in practice you keep the receipt as long as the account exists plus the audit window after you claim it. Twenty years of digital and paper records is the operational burden. A lost receipt turns a tax-free withdrawal into a taxed one, and before 65 that costs 22% plus 20% on Dana’s numbers.

Does contributing reduce my Social Security benefit?

Slightly, if you earn below the Social Security taxable maximum, because the sheltered wages don’t enter your earnings record. The benefit formula averages your highest 35 years of indexed earnings, so one year of $4,300 lower recorded wages divides by 35 before it affects anything. If you’re already above the taxable maximum, the 6.2% never applied to those dollars and your benefit doesn’t change.

What to look at next

Three things determine whether Dana’s numbers resemble yours. Your marginal bracket, which sets the first-stage value. Your long-term capital gains rate, which sets the third. And what you’d actually hold in the account, which sets the second and is the only one you control directly.

Pull your last pay stub and check whether HSA contributions appear before or after the Social Security and Medicare lines. That single line item tells you whether the $329 applies to you.

Read IRS Publication 550 on the difference between qualified and ordinary dividends before deciding the middle break doesn’t matter. And check whether your state follows federal HSA treatment, because a few don’t, and that’s the assumption most easily broken.

This article is general information, not financial advice. See our disclaimer.

Also worth reading: RMD Penalty Math: What a 25% Excise Tax Costs If You Miss the Deadline

Also worth reading: 401(k) Vesting: What You Forfeit by Leaving at Year 2

Sources

Primary documents behind the rules and thresholds used above. Every link is checked for a live response before publication.

Related articles

More in Taxes · all topics · calculators · how this was checked