Is an HSA actually a retirement account?
Most people spend it on copays as they go. Used the other way it gets three tax breaks no other account gets, though California changes the math.
Most people treat a health savings account like a debit card. Money goes in through payroll, copays and prescriptions come straight back out, and the balance hovers around zero all year.
Used that way it's a modest convenience. Used the other way it carries three tax breaks at once, which no other account does, and almost nobody uses it the other way.
The short answer. Federally, money goes in untaxed, grows untaxed, and comes out untaxed when it's spent on qualified medical costs. No other account does all three. That's the whole appeal, and it only shows up if you stop spending the account and let it compound. If you live in California, one of those three breaks doesn't apply.
Spend it on anything other than a qualified medical cost and the opposite is true: the withdrawal is taxed as income, plus an extra 20% if you're under 65. The tax break is tied to what you spend it on, not to the account itself.
| Account | Going in | Growing | Coming out |
|---|---|---|---|
| 401(k) or traditional IRA | Untaxed | Untaxed | Taxed |
| Roth | Taxed | Untaxed | Untaxed |
| Taxable brokerage | Taxed | Taxed | Taxed on gains |
| HSA, federally | Untaxed | Untaxed | Untaxed for qualified medical costs only |
| HSA, on a California return | Taxed | Taxed | Untaxed for qualified medical costs only |
The whole trick is not spending it.
You qualify by being on a high deductible health plan. For 2026 that means a deductible of at least $1,700 if the plan covers only you, or $3,400 for a family.
Then you can put in $4,400 or $8,750 a year, plus another $1,000 once you turn 55.
Here's what makes it different from a flexible spending account: the balance doesn't expire. It rolls over each year, it can be invested instead of sitting in cash, and there's no deadline for paying yourself back for a qualified cost. What doesn't change is the condition attached to it, which is that the money has to go on qualified medical costs to come out untaxed.
That last point is the whole strategy. Pay this year's dental work out of checking, keep the receipt, and leave the HSA invested. You can cash that receipt in 20 years, tax free, after the money has grown the whole time. The IRS sets out the rules in Publication 969.
The account quietly becomes a medical fund for the years you'll actually need one. That's a real bill worth paying ahead. See what healthcare actually costs in retirement.
What it actually costs you.
Three things, and they're the reason this isn't for everyone.
You have to be on the high deductible plan. If someone in the family has a condition that makes a richer plan obviously better, the insurance decision should win. The tax break is not worth choosing the wrong coverage.
You have to pay medical bills twice over, in a sense. Once from cash flow now, and again by leaving money you already have untouched. That only works if it's genuinely comfortable. If paying a $6,000 bill out of pocket means not funding something else, use the HSA for what it was designed for and move on.
You have to actually invest it. Plenty of HSAs sit entirely in cash by default, which wastes the only advantage that matters over decades. Check what yours is holding.
California doesn't play along.
This is the part national articles skip, and it matters here.
California doesn't follow the federal rules here. The Franchise Tax Board's instructions for Schedule CA (540), at the line covering the health savings account deduction, say: "California law does not conform."
So on a California return, three things change. Your contribution isn't deductible. Anything your employer puts in counts as income. And earnings inside the account are taxed in the year you earn them.
None of that touches the federal treatment, which is where most of the benefit is. But it does mean two things. Your state tax bill is higher than the national write-ups suggest, and holding something that throws off a lot of taxable income inside the account is less attractive than it looks.
It also means the account generates a California tax item every year, so your preparer needs to know it exists and what's inside it. See tax planning.
It closes when Medicare opens.
Enrolling in Medicare ends your ability to contribute. You keep everything already in there and can spend it, but nothing more goes in.
The trap is the backdating. Medicare Part A starts up to six months before you sign up. So someone who works past 65 and enrolls later can find they've been covered for months they were still contributing, which makes those contributions excess and taxable. If you're working past 65 and contributing, stop six months before you plan to enroll.
There's an upside. After 65 the 20% penalty on non-medical withdrawals goes away. So it works like a traditional IRA for anything that isn't medical, and stays tax free for anything that is. It gets more flexible exactly when you can no longer feed it.
Your heirs get a different account than you think.
This is the least known part and it changes the order you spend things in.
A spouse inherits it cleanly. It simply becomes their HSA.
Anyone else doesn't. Leave it to a child and the account stops being an HSA on the day you die, and its full value becomes taxable income to them that year. Not spread out, not deferred. That's worse than an inherited retirement account, and it's the opposite of how a Roth passes.
So the account that was best to fund is often the one to spend first late in life, once a spouse isn't the beneficiary. That's the same question as which account to draw from first, and it belongs in the estate plan rather than being found out afterwards.
Who this is actually for.
Someone already on a high deductible plan, already maxing the retirement accounts, with enough cash flow that paying medical bills out of pocket is a non-event. That household gets the full benefit of all three breaks, and routinely leaves it on the table.
For everyone else it's a perfectly good way to pay for healthcare with untaxed dollars, which is worth having and isn't worth contorting your life around. Where it sits against everything else is covered in what to do after maxing out your 401(k).
If you'd like to work out which of those two you are, we're glad to have that conversation.
Cosmos Wealth doesn't provide tax or legal advice. Contribution limits, deductible thresholds, and state treatment are set by statute and change; confirm current figures with your tax preparer before acting.
Common questions.
- Can you use an HSA as a retirement account?
- Federally, money goes in untaxed, grows untaxed, and comes out untaxed when spent on qualified medical costs. The catch is that it only works if you leave it alone. Spend it on this year's copays and it's a checking account with paperwork. Withdrawals that aren't for medical costs are taxed as income, with an extra 20% before age 65.
- How much can you put in an HSA in 2026?
- $4,400 if your health plan covers only you, $8,750 for family coverage, plus another $1,000 a year once you turn 55. You need a qualifying high deductible plan, which for 2026 means a deductible of at least $1,700 for self-only or $3,400 for family coverage.
- Why do people pay medical bills out of pocket instead of using the HSA?
- To leave the money invested. There's no deadline for reimbursing yourself, so a receipt from this year can be reimbursed decades from now, after the balance has compounded. It only makes sense if paying those bills from cash flow is genuinely comfortable, and for plenty of households it isn't.
- Do Californians get the same HSA tax break?
- No, and this catches people out. California doesn't conform to the federal rules. Contributions aren't deductible on a California return, employer contributions count as California income, and interest and earnings inside the account are taxable in the year earned. The federal break is unaffected, but the state one doesn't exist.
- What happens to an HSA when you turn 65?
- Enrolling in Medicare ends your ability to contribute, though you can still spend what's there. After 65 the 20% penalty on non-medical withdrawals goes away, so the account behaves like a traditional IRA for anything that isn't a medical cost, and stays tax free for anything that is.
- Who inherits an HSA well?
- A spouse, and essentially nobody else. A spouse beneficiary simply takes it over as their own HSA. Anyone else, including a child, sees the account stop being an HSA, with its full value taxable to them in the year you die. That's worse treatment than an inherited IRA, and it's a reason to spend this account before others late in life.