Most people treat a Health Savings Account like a debit card for copays and prescriptions. Used that way, it's fine. Used as a long-term investment account, it's arguably the single best tax shelter available to individuals in the US, better on paper than a 401(k) or a Roth IRA, because it's the only account that gives you all three major tax breaks at once instead of just one or two.
That's the "triple tax advantage": your contributions go in tax-free, the money grows tax-free, and withdrawals for qualified medical expenses come out tax-free too. No other account does all three. Here's how it actually works, the real math behind it, and the catch that keeps most people from using it this way.
What the Triple Tax Advantage Actually Means
- Tax-free in. Contributions made through payroll are pulled before income tax and FICA tax are calculated, so they lower your taxable income the same way a 401(k) contribution does, plus they skip the 7.65% Social Security and Medicare tax that even a 401(k) contribution doesn't avoid.
- Tax-free growth. Once the money is invested inside the HSA, in mutual funds or index funds depending on your provider, it grows with zero tax on dividends, interest, or capital gains along the way.
- Tax-free out. Withdrawals for qualified medical expenses, at any age, owe no tax at all. Not income tax, not capital gains tax, nothing.
A 401(k) gives you the first two. A Roth IRA gives you the second two. An HSA gives you all three, provided the money ultimately goes toward medical costs.
The Catch: You Need an Eligible High-Deductible Health Plan
An HSA isn't available to everyone. You can only contribute if you're enrolled in an HSA-eligible high-deductible health plan (HDHP), you have no other disqualifying health coverage, and you're not enrolled in Medicare. For 2026, the IRS caps contributions at $4,400 for individual coverage and $8,750 for family coverage, with an extra $1,000 catch-up allowed once you turn 55. Those limits are set by the IRS and adjust most years for inflation.
This is the real trade-off. An HDHP means a higher deductible before insurance starts covering most costs, which is a real risk if you have an expensive medical year. The tax math below assumes you can comfortably afford that deductible out of pocket, which is exactly the situation where treating the HSA as an investment account rather than a spending account starts to make sense.
The Real Math: HSA vs. a Regular Taxable Account
Here's what the triple tax advantage is actually worth in dollars, not just in theory. Say you're in the 24% federal tax bracket and you max out an individual HSA at $4,400 a year for 30 years, investing it in a broad index fund averaging a 7% annual return, and never touching it for anything but qualified medical expenses along the way.
Growing $4,400 a year at 7% for 30 years comes out to roughly $415,600. Because every dollar of that went in pre-tax, grew tax-free, and comes out tax-free for medical costs, that entire $415,600 is yours. No tax bill waiting at the end.
Now compare that to putting the same money into an ordinary taxable brokerage account instead. You'd only have the after-tax amount to invest in the first place, $4,400 minus 24% tax is $3,344 a year. Grown at the same 7% for 30 years, that reaches about $315,900. Then, when you sell to use the money, you'd owe long-term capital gains tax (assume 15%) on the roughly $215,600 of that total that's actual growth rather than your own contributions, a bill of about $32,300. That leaves you with roughly $283,600 net.
Same contribution amount, same return, same 30 years. The HSA route leaves you about $132,000 ahead, purely from the tax treatment. That gap is the triple tax advantage, expressed as an actual number instead of a slogan.
What Happens After Age 65
The medical-expenses requirement is real, but it loosens with age. Once you turn 65, you can withdraw HSA funds for any reason, not just medical costs, without the usual 20% early-withdrawal penalty. You'll owe ordinary income tax on non-medical withdrawals after 65, the same way you would on a traditional IRA or 401(k) distribution. Before 65, a non-qualified withdrawal costs you both income tax and a 20% penalty on top, which is steep enough that it should functionally never happen by accident.
In practice, this makes an HSA behave like a second traditional IRA once you're past 65, except it's tax-free instead of merely tax-deferred for the specific slice you spend on medical care, which for most retirees is a meaningful ongoing expense anyway. Fidelity's own research has put average retirement healthcare costs for a single 65-year-old in the six-figure range over a full retirement, so "medical expenses" isn't a small bucket to plan around.
What This Doesn't Mean
None of this means you should choose a high-deductible health plan purely to unlock an HSA if it leaves you underinsured for your actual medical situation. A cheaper premium that exposes you to a deductible you can't actually cover in a bad year isn't a tax strategy, it's a gamble with your health coverage. This also isn't a reason to skip capturing a full employer 401(k) match first. Free matching money has no equivalent downside and should come before any HSA investing strategy, the same logic our post on 401(k) vesting schedules gets into for why that match matters as much as it does.
And critically, this strategy only works if you can afford to pay medical costs out of pocket now and let the HSA balance ride, invested, for years or decades. If you need to spend down your HSA every year just to cover care, you still get the first two tax breaks, which is still better than nothing, but you don't get the long-term compounding that makes the $132,000 gap in the example above possible.
What to Actually Do With This
- Check if your HSA provider lets you invest the balance. Many default to a low-interest cash account. You typically have to actively opt into investing anything above a small cash cushion.
- Pay medical costs out of pocket when you can, and let the HSA grow. Keep the receipts. The IRS lets you reimburse yourself for old qualified expenses at any point in the future, even decades later, as long as the expense happened after your HSA was opened.
- Max the 401(k) match first, then consider the HSA before extra 401(k) or brokerage contributions. The order generally goes: employer match, HSA max, then the rest of your retirement and Roth targets.
- Treat it like a retirement account in your investment choices, not a checking account. The same boring, broad-market approach that works for an IRA works here. Our post on Roth IRA vs. Traditional IRA covers how to think about the ordering of tax-advantaged accounts more broadly.
An HSA is never going to replace a 401(k) or an IRA, the contribution limits are too low for that on their own. But dollar for dollar, it's the most tax-efficient account most people have access to and never fully use. If you have one sitting in cash, that's the first thing worth checking today.
—
Spicy Investing