The only triple-tax-free account in the code
Every other tax-advantaged account makes you pick one tax break. Traditional 401(k)s and IRAs skip tax going in but tax every dollar coming out. Roth accounts tax the money first and never again. The HSA does all three: contributions are deductible (and skip Social Security/Medicare payroll tax too, if made through payroll), growth is never taxed, and withdrawals for qualified medical expenses are tax-free at any age. For a 24%-bracket earner contributing through payroll, roughly 31.65 cents of every HSA dollar is tax that never gets paid — before compounding even starts.
Who can contribute
You need to be enrolled in a qualifying high-deductible health plan (HDHP) — for 2025, a deductible of at least $1,650 (self) / $3,300 (family) with capped out-of-pocket maximums — and have no disqualifying other coverage (including Medicare, a general-purpose FSA, or being claimed as a dependent). Contribution limits for 2025 are $4,300 for self-only coverage and $8,550 for family, plus a $1,000 catch-up from age 55. The limits cover employer contributions too — many employers seed a few hundred dollars, which is free money on top of the tax break.
The strategy that turns an HSA into a super-IRA
Most people treat the HSA as a medical checking account: money in, money out at the pharmacy. The optimizer's move is different:
- Max the contribution every year you're HDHP-eligible.
- Invest the balance (most custodians allow it above a small cash floor — often $1,000-2,000) rather than leaving it in cash earning nothing.
- Pay routine medical costs out of pocket if you can afford to, letting the HSA compound untouched.
- Keep the receipts. There's no deadline for reimbursing yourself: a $2,000 medical bill from 2026 can justify a tax-free $2,000 withdrawal in 2046, after the money has tripled. Decades of saved receipts become an anytime, any-reason tax-free withdrawal right.
From age 65, the trapdoor opens further: non-medical withdrawals are allowed with ordinary income tax but no penalty — making the worst-case HSA exactly as good as a traditional IRA, and the medical-case strictly better. Given that a 65-year-old couple is projected to need six figures for healthcare in retirement, "I might not have enough medical expenses" is rarely a real risk.
Watch-outs
- Non-qualified withdrawals before 65 cost income tax plus a 20% penalty — the HSA is a terrible emergency fund. Build a real one first with the emergency fund calculator.
- The HDHP itself must make sense. If you have high, predictable medical costs, a low-deductible plan can beat the HDHP + HSA combination even after the tax breaks — compare total premiums plus expected out-of-pocket costs, not just the tax perk.
- Cash-parking kills the magic. An uninvested HSA earning 0.1% is just a slightly awkward checking account. The triple advantage compounds only if the money is invested.
- State quirks: California and New Jersey don't recognize HSA deductions for state income tax and tax the account's earnings; the federal breaks still apply.
Where the HSA fits in the priority order
A common-sense funding order for retirement dollars: 401(k) up to the employer match (free money first — see the 401(k) calculator), then max the HSA, then Roth/traditional contributions per your tax situation (the Roth vs traditional calculator settles that one), then back to the 401(k) limit. Check what the whole stack produces with the retirement savings calculator.