Skip to main content
Visual Finances

HSA Triple-Tax Calculator

Compare the HSA triple-tax advantage against a Traditional 401k and a taxable brokerage account over your investment horizon. See how much the tax-free growth adds up.

HSA advantage over traditional

$91,438

After 30 years: HSA $415,627 vs Traditional $324,189 vs Taxable $269,128.

HSA final value

$415,627

Traditional (after-tax)

$324,189

Taxable (after cap gains)

$269,128

View
$0$100,000$200,000$300,000$400,000Year 0Year 15Year 30
HSA (triple tax-free)Traditional 401k / IRA (after tax at retirement)Taxable brokerage (after cap gains)

Three after-tax ribbons race the same contributions: amber is the HSA (never taxed), blue the traditional 401k (taxed on withdrawal), slate the taxable brokerage. The center counter prices the widening triple-tax-advantage gap live. Drag to orbit.

The HSA triple tax advantage

A Health Savings Account (HSA) is the only account in the US tax code that offers three simultaneous tax benefits: contributions are pre-tax (reducing your taxable income), growth is tax-free (no capital gains or dividend taxes), and withdrawals for qualified medical expenses are tax-free. No other account type — not a 401(k), not a Roth IRA, not a taxable brokerage account — offers all three.

This "triple tax advantage" makes the HSA extraordinarily powerful. Many people use it as a spending account for current medical bills and miss the bigger opportunity. The real strategy: pay current medical bills out of pocket, invest the HSA contributions in growth assets, and let it compound tax-free for decades. After age 65, you can withdraw for any reason (paying only ordinary income tax on non-medical withdrawals), making it functionally identical to a Traditional IRA — but still better because medical withdrawals remain 100% tax-free.

Why it matters to your money

Medical expenses are one of the leading causes of bankruptcy in the US. An HSA protects you from that risk while simultaneously building long-term wealth. The tax savings alone can be worth thousands per year, and over a 30-year investment horizon, the tax-free compounding can add tens of thousands to your final balance compared to a taxable account.

Read the full explainer on HSAs for a deeper dive into eligibility, contribution limits, investment options, and the "save receipts and reimburse yourself later" strategy.

Worked example: maxing a self-only HSA for 30 years

Put the 2026 self-only maximum, $4,400 a year, into each of three accounts for 30 years at 7%. Assume a 22% tax rate now and in retirement, 15% on long-term gains, and HSA withdrawals used for medical costs:

AccountAfter 10 yearsAfter 30 years
HSA (medical withdrawals)$60,792$415,627
Traditional 401(k)/IRA, after tax$47,418$324,189
Taxable brokerage, after tax$44,584$269,128

The HSA ends about $91,000 ahead of a traditional account and $146,000 ahead of taxable investing, from the same $4,400 a year. The traditional account loses its 22% at withdrawal. The taxable account starts with only 78% of the money invested and pays tax on dividends along the way. The HSA skips both, as long as the money goes to medical costs, and lifetime medical spending in retirement is easily large enough to use it.

Rules of thumb

  • Max it if you can: The 2026 HSA contribution limit is $4,400 (self-only) or $8,750 (family), plus $1,000 if you're 55 or older. If your employer also contributes, count that toward the limit.
  • Invest, don't just spend: Once your HSA balance exceeds the provider's investment threshold (typically $1,000–$2,000), move it into index funds. A $300/month HSA investment at 7% for 30 years grows to over $350,000 tax-free.
  • You need an HDHP: You must be enrolled in a High Deductible Health Plan to contribute. Compare HDHP premiums vs. out-of-pocket costs against PPO plans — sometimes the HDHP saves thousands even if you use the HSA aggressively.

FAQ

Frequently asked questions

What is the HSA triple tax advantage?
An HSA offers three tax benefits: contributions are pre-tax (reducing taxable income), growth is tax-free, and withdrawals for qualified medical expenses are tax-free. No other account type offers all three simultaneously.
Who is eligible for an HSA?
You must be enrolled in a High Deductible Health Plan (HDHP) to contribute to an HSA. In 2026, HDHPs have a minimum deductible of $1,700 (self-only) or $3,400 (family), with out-of-pocket maximums of $8,500 and $17,000 respectively.
Can I invest my HSA balance?
Yes — and this is what makes it powerful. Once your balance exceeds the minimum threshold (typically $1,000–$2,000), most HSA providers let you invest in mutual funds or ETFs. The invested portion grows tax-free, just like a Roth IRA.
What happens to HSA money after age 65?
After 65, you can withdraw HSA funds for any reason without penalty (though non-medical withdrawals are taxed as ordinary income, like a traditional IRA). For medical expenses, withdrawals remain completely tax-free — making the HSA better than a 401k for healthcare costs.

How this calculator is built, tested and kept current: our methodology.