How Does an HSA Work?
The HSA
A Health Savings Account is the only account in the tax code that skips tax at all three points: contributions, growth, and withdrawals for medical expenses. Most people who have one still use it as a specialized checking account for copays. That's not wrong, exactly, but it leaves most of the account's value on the table. Used deliberately, it can quietly become the best retirement account you own.
What are the three tax advantages of an HSA?
Every other account gives you a tax break on one end or the other. A traditional 401(k) gets you a deduction now and taxes you later. A Roth taxes you now and never again. A Health Savings Account does something no other account does: it skips the tax at all three points:
- Going in, contributions reduce your taxable income (and through payroll, typically avoid Social Security and Medicare tax too).
- While it grows, no tax on interest, dividends, or gains.
- Coming out, no tax at all, provided the money goes toward qualified medical expenses.
That third one is the trick. Money that is never taxed on the way in, never taxed while growing, and never taxed on the way out is unique in personal finance.
Who can open an HSA?
An HSA is tied to your health insurance, not your employer. You’re eligible in any month you’re covered by a qualifying high-deductible health plan and have no other disqualifying coverage, and once you enroll in Medicare, you can no longer contribute (though you can still spend what you’ve built). Contribution limits are set annually, with a higher limit for family coverage and an extra catch-up amount once you’re in your mid-fifties, so check the current year’s figures before you set your payroll deduction.
One point that surprises people: the account is yours, permanently. Unlike an FSA, nothing expires at year-end. Change jobs, change plans, retire: the balance follows you, forever.
Why do most people waste an HSA?
Here’s where most HSAs go wrong. The money sits in the cash portion of the account, gets spent on this year’s copays, and never grows. Per EBRI’s research, only about 18% of HSA holders invested any part of their balance in 2024. The rest left it entirely in cash, using an account built like one of the best retirement vehicles in the tax code as a place to park copay money. That’s a perfectly reasonable use, and it wastes the account’s best feature.
How do you use an HSA as a retirement account?
The alternative is what’s sometimes called the shoebox strategy, in three steps:
- Contribute the maximum your plan allows each year.
- Invest the balance, the way you’d invest a retirement account, rather than leaving it in cash.
- Pay current medical bills out of pocket when your cash flow allows, instead of raiding the HSA, and keep the receipts.
That third step is the part almost nobody does, and it’s where the real value lives. There’s no deadline for reimbursing yourself; a bill you paid this year can be reimbursed tax-free from the account decades from now, after the money has spent all those years compounding untouched. A shoebox (or a folder, or a phone photo) of paid medical bills is a stack of future tax-free withdrawals waiting to be claimed whenever you actually want the cash.
For illustration: contributing a family-level amount annually and investing it for twenty-five years can plausibly build a six-figure balance, all of it available tax-free for healthcare, which happens to be one of the largest expenses most retirees face. Meanwhile, that same money in a taxable account would have been taxed on its dividends and gains the entire way.
What happens to an HSA after 65?
Two things change once you reach 65. First, medical spending gets easier to match against the account: Medicare premiums (aside from Medigap) qualify, as do long-term care insurance premiums within limits and plenty of costs people don’t anticipate, such as dental, vision, and hearing aids.
Second, the penalty for non-medical withdrawals disappears. From 65 on, money taken out for any reason is simply taxed as ordinary income, which means a worst case where your HSA behaves exactly like a traditional IRA. That’s the safety net worth knowing about: if you dramatically over-save into an HSA, the downside isn’t a lost account, it’s an ordinary retirement account.
Who it fits, and the honest limits
An HSA isn’t automatically right for everyone. It requires a high-deductible plan, and if your family has substantial ongoing medical needs, a lower-deductible plan can be the better overall deal even after accounting for the tax break. Run both, don’t assume. It also only works if you can genuinely afford to leave the money invested and cover current medical costs without touching the account; raiding it every year for routine costs is fine, it just isn’t the strategy above. If you are eligible and your cash flow allows it, this can be one of the simpler upgrades to a wealth-building plan.
And one piece of housekeeping worth ten minutes: name a beneficiary. HSAs pass very differently depending on who inherits them: a spouse can generally keep it as an HSA, while others typically face the full balance as taxable income in one year. It’s an easy thing to set correctly and an expensive thing to leave blank.
Where the HSA sits relative to your 401(k) match and everything else is its own question. Fund it in order lays out the full sequence, and if you’re a family weighing an HSA against a 529 plan, that guide picks up from there.
An unused HSA is one of the more common tax leaks we see in an otherwise solid plan. The Wealth Builder Tax Leak Audit checks for this one and eleven others in about five minutes.
Sources
- Employee Benefit Research Institute, Trends in Health Savings Account Balances, Contributions, Distributions, and Investments, 2011-2024. Share of HSA holders investing their balance.
Quick answers
- What makes an HSA the most tax-advantaged account?
- It skips tax at all three points: contributions reduce taxable income, growth is untaxed, and withdrawals for qualified medical expenses are tax-free. No other account does all three.
- Do most people actually invest their HSA balance?
- No. According to EBRI research, only about 18% of HSA holders invested any part of their balance in 2024; the rest sat entirely in cash, closer to a specialized checking account than a retirement account.
- How do I get the most out of an HSA?
- Contribute the maximum, invest the balance the way you would a retirement account, pay current medical bills out of pocket if you can, and keep the receipts. There is no deadline for reimbursing yourself, so a bill paid this year can be reimbursed tax-free decades from now.
- What happens to an HSA at 65?
- Medicare premiums and more everyday costs qualify, and the penalty on non-medical withdrawals disappears: those are simply taxed as ordinary income, so the worst case is that your HSA behaves like a traditional IRA.
- Do HSA funds expire like an FSA?
- No. The account is yours permanently. Change jobs, change plans, retire: the balance follows you.
- Who is this strategy not a good fit for?
- Anyone who can't comfortably pay current medical costs out of pocket without touching the HSA, or who has substantial ongoing medical needs that make a high-deductible health plan the wrong fit in the first place. Run the numbers on your actual health plan choice before assuming this applies.