Skip to content

The HSA Triple Tax Advantage, Explained With Math

No other account deducts money on the way in, shelters growth, and waives tax on the way out. A fully worked 30-year example shows what the three breaks are worth together — and the one mistake that throws most of the value away.

By the editorial team at The Long View How we check our guides 8 min read
A stethoscope resting on a financial document next to a calculator on a clean desk, bright natural light, realistic photo style
A stethoscope resting on a financial document next to a calculator on a clean desk, bright natural light, realistic photo style

Most tax-advantaged accounts give you one good deal. A traditional 401(k) deducts contributions but taxes withdrawals; a Roth does the reverse. The Health Savings Account is the outlier: money escapes income tax going in, grows untaxed while it sits, and comes out untaxed if spent on qualified medical expenses. Three separate breaks, none of them small. Whether an HSA deserves a place in your plan — and how to use it — is best decided with the arithmetic laid out, so that is what this article does. (The account exists in the United States and requires enrollment in a High-Deductible Health Plan; contribution limits change every year, so verify the current-year limits against official IRS announcements before relying on any figure here.)

The Three Breaks, Named Precisely

  • Break 1 — the entrance. Contributions are deductible (or pre-tax through payroll), reducing income tax in the contribution year. Contributing through an employer's payroll system adds a second, often-forgotten break: contributions avoid FICA taxes (the 7.65% employee share of Social Security and Medicare) as well.
  • Break 2 — the ride. Interest, dividends, and gains inside the HSA are never taxed along the way — no annual tax on dividends, no capital gains tax on sales. This is the same shelter an IRA or 401(k) gets.
  • Break 3 — the exit. Withdrawals for qualified medical expenses are never taxed, at any age. After age 65 the account behaves like a traditional IRA for non-medical withdrawals (ordinary income tax, no penalty) — but the medical-use loophole at 65-plus remains fully tax-free.

Compare the exit terms: a taxable brokerage account pays capital gains tax on the way out; a traditional IRA pays ordinary income tax; a Roth already paid its tax at the entrance. The HSA pays nobody, anywhere, for medical spending. That is why it is often described as the only triple-tax-free account available.

The Worked Example: $4,400 a Year for 30 Years

Assumptions: contributions of $4,400 per year (an illustrative figure near recent individual limits; family limits are higher and all limits change annually), invested for 30 years in a diversified index portfolio returning 6% per year after fees, with no withdrawals during the period. The future value of a level annual contribution is C × ((1.06³⁰ − 1) / 0.06), and (1.06³⁰ − 1)/0.06 ≈ 79.06, so:

ScenarioContribution pathBalance after 30 years
HSA, contributions via payroll$4,400/yr pre-tax≈ $347,856
Taxable account, same investments$4,400/yr from after-tax pay≈ $315,478 after exit tax

How each number is built:

  • HSA: 4,400 × 79.06 ≈ $347,856. Every dollar of it is spendable on medical costs, tax-free. Nothing was subtracted for the entrance or the exit.
  • Taxable account: the same investments compound to the same $347,856 only if we ignore the tax drag on dividends and fund sales along the way — generous — and then pay long-term capital gains of 15% on the $215,856 of growth at the end: 347,856 − (215,856 × 0.15) ≈ $315,478. The exit tax alone costs about $32,378, and real-world annual tax drag on the taxable side would widen the gap further.

That comparison only counts the third break. The first break pays immediately: at a 24% marginal federal rate, deducting $4,400 saves 1,056 per year, and payroll deduction adds 7.65% in FICA — about 337 more. If those 1,393 of annual tax savings are themselves invested in the same portfolio, they add roughly 1,393 × 79.06 ≈ $110,096 over the same 30 years, bringing the all-in value of the HSA route to about $458,000 against the taxable route's $315,000. Every figure here is reproducible with the formulas given; change the rate or bracket and the arithmetic scales, but the ordering never does.

The comparison assumes withdrawals are for qualified medical expenses. That is the design intent — over a long life, lifetime healthcare spending is large and lumpy, and typically peaks late. The scenario where the HSA underperforms is spending it early on small bills; see the mistake below.

The One Mistake: Spending It As You Go

Most HSA balance-holders spend the account on current-year medical bills, which forfeits break two almost entirely — a dollar spent this year earns nothing, while a dollar left invested for 25 years triples at a 6% return. The commonly recommended alternative: pay small current medical costs out of pocket, keep receipts (digital copies; there is no deadline on reimbursement), and leave the HSA untouched to compound. The account becomes a shadow retirement account whose withdrawals become legal, tax-free, at any moment a real medical bill arrives — and medical bills reliably do. This strategy only suits people who can genuinely afford the out-of-pocket spending; an HSA should never cause someone to avoid needed care.

Where the HSA Sits in the Funding Order

  • First: any employer 401(k) match — it is an immediate return no account type beats. See the match math.
  • Then the HSA is a leading candidate for the next contribution dollar, particularly for those already contributing enough to feel secure: its triple break beats the single breaks of both IRA types for anyone with future medical costs, which is to say everyone. Some HSA cash accounts pay minimal interest — the growth break requires investing the balance, which most providers allow above a small cash threshold.
  • One caution: HSA investment menus are typically narrower and sometimes pricier than 401(k) or IRA options — check the fee schedule before assuming the tax break is not being handed back in expense ratios, a trap explored in the expense ratio piece.
Three breaks — in, during, and out — compound to roughly $140,000 of difference in one 30-year worked example. The strategy that captures all three fits in one sentence: fund it through payroll, invest the balance, and pay small bills from the checking account.

The HSA is not a magic account; it is a specific tool with a specific condition — it shines exactly as much as your future medical spending is real, and medical spending is about as certain as anything in personal finance. The arithmetic is yours to rerun: contribution × years × growth, minus nothing at the exit. That last "minus nothing" is the whole point.

This guide is general educational information, and it is neither financial, tax, nor legal advice. It recommends no specific security, fund, or provider, and it describes no individual's situation. All limits, rates, brackets, balances and outcomes above are simplified illustrations with the assumptions stated; they are not current-year figures for any jurisdiction and do not depict any real investor's outcome. HSA eligibility, contribution limits, FICA treatment, and qualified-expense rules are set by statute and guidance that change over time and vary with plan type — verify against current official IRS guidance and consult a licensed tax professional about your own circumstances before acting.