The HSA: the only triple tax-advantaged account
By Luigi PooleUpdated
A health savings account is the only account that is deductible going in, untaxed as it grows, and untaxed coming out — provided the withdrawal pays a qualified medical expense. That combination beats every other retirement container for money you will eventually spend on health care.
Most tax-advantaged accounts give you two of three things. A traditional 401(k) deducts the contribution and shelters the growth, then taxes what comes out. A Roth account taxes the contribution first and then leaves the growth and the withdrawal alone. A health savings account is the only one that does all three at once — deductible going in, untaxed while it compounds, untaxed coming out, provided the withdrawal pays a qualified medical expense.
Two conditions attach. You can only contribute while a qualifying high-deductible health plan covers you, and the tax-free exit applies to health spending only. Both are narrower on paper than in practice: eligibility is decided month by month, so a year without a qualifying plan freezes contributions without touching the balance already there, and health spending is the one retirement expense nobody avoids. Which is why an HSA is far more often mis-used than mis-chosen. Most people treat it as a spending account when it is the strongest long-horizon investment account in the tax code.
What the third advantage is actually worth
Compare four containers funded from the same slice of take-home pay. At a 24% marginal rate, $5,000 of pre-tax salary costs $3,800 of take-home, so that is the fair basis: $5,000 into the accounts that take pre-tax dollars, $3,800 into the ones that take after-tax dollars. Leave each alone for 20 years at 6% a year, then pay a medical bill with it. The brokerage row compounds at 5.5% instead, because annual tax on dividends takes a slice every year before the 15% due on the accumulated gain at the end.
| Container | Cost in take-home pay | Goes in | Balance after 20 years | Tax on the way out | Pays the bill |
|---|---|---|---|---|---|
| HSA | $3,800 | $5,000 | $16,036 | none | $16,036 |
| Traditional 401(k) | $3,800 | $5,000 | $16,036 | $3,849 at 24% | $12,187 |
| Roth 401(k) | $3,800 | $3,800 | $12,187 | none | $12,187 |
| Taxable brokerage | $3,800 | $3,800 | $11,088 | $1,093 at 15% on gain | $9,994 |
The Roth row and the traditional row land on the same number, and that is not a coincidence — it is the symmetry that governs the Roth versus traditional decision. With the same marginal rate on both ends, every apparent advantage of one cancels against the other. The HSA breaks the symmetry because it is the only row that pays tax on neither end. It finishes $3,849 ahead of both, on identical contributions earning an identical return, purely because of the container.
There is a fourth advantage that shows up only on a pay stub. Contributions routed through an employer's cafeteria plan also escape FICA, so that $5,000 costs roughly $3,418 of take-home rather than $3,800 — an immediate 7.65% that a contribution made directly to the account and deducted at filing never recovers. Fund the account through payroll where the option exists.
Who can contribute, and when
Eligibility is a monthly test, not an annual one, and it is measured on the first day of each month. Four things have to be true. A qualifying high-deductible health plan has to cover you, with a deductible and out-of-pocket ceiling inside limits the tax code resets each year. You cannot hold other first-dollar medical coverage — a general-purpose health flexible spending account counts, including a spouse's, as does a spouse's low-deductible plan that covers you. You cannot be enrolled in any part of Medicare. And nobody else can claim you as a dependent.
Two clarifications save people a lot of trouble. A limited-purpose FSA restricted to dental and vision is compatible, so an employer offering both is not forcing a choice. And a plan being expensive is not the same as a plan qualifying — the deductible has to clear the statutory floor and the plan has to be designated as HSA-qualified, which the plan documents state explicitly.
The last-month rule lets someone eligible on the first day of December contribute the full year's amount rather than a prorated share. It carries a testing period: stay eligible through the whole following calendar year, or the excess becomes taxable income with a 10% penalty attached. Useful for a mid-year job change, dangerous if a Medicare enrollment or a plan switch is already on the horizon.
One more piece of plumbing for couples. Family coverage carries a single shared contribution limit regardless of how many accounts sit under it, but the catch-up amount available from age 55 is per person and can only be paid into that person's own account. A couple both past 55 with one HSA between them is quietly forfeiting one catch-up every year.
The mistake that costs the most
Most HSA balances sit in cash, earning something close to nothing, because the account arrives looking like a checking account with a debit card attached. That default is the single biggest destroyer of the advantage described above — a triple-tax-free container holding a cash yield is a rounding error dressed as a strategy.
Two moves fix it. Check the provider's investment threshold, the cash balance you must keep before the invested sleeve opens, and get above it. Then pay current medical costs out of ordinary cash flow while you can afford to, and let the account compound untouched for as long as possible. An HSA funded steadily from your thirties and left alone is doing the same work a retirement account does, over the same horizon — run it through compound growth at your own contribution rate and the gap between an invested balance and a spent one is not subtle.
Run your numbersHSA calculatorThe receipts are the part people skip
A qualified expense can be reimbursed from the HSA at any point in the future, with no deadline, as long as the expense was incurred after the account was established and was never reimbursed by insurance or deducted on a return. That single rule is what makes "pay out of pocket now" a strategy rather than a sacrifice: the money you spend from checking today becomes a tax-free withdrawal available on demand for the rest of your life, while the balance behind it keeps compounding.
The habit it requires is dull and unavoidable — a dated record of every qualified expense, kept where you can still find it in thirty years. The receipt strategy covers what to keep and how to file it so the option is still exercisable when it matters.
At 65 the account changes shape
The penalty for a non-medical withdrawal disappears at 65, and the account becomes something close to a traditional retirement plan for anything you cannot document as medical. That produces an unusually forgiving payoff structure:
| Withdrawal | Before 65 | From 65 onward |
|---|---|---|
| Qualified medical expense | No tax, no penalty | No tax, no penalty |
| Anything else | Ordinary income tax + 20% penalty | Ordinary income tax, no penalty |
The floor is a traditional account. The ceiling is a tax-free one. Nothing else in the code has that shape, and it means over-funding an HSA carries almost no downside risk for anyone who reaches 65 — the worst case is the outcome a traditional deferral would have delivered anyway.
Two details make the later years better than they look. Medicare premiums are qualified expenses, so the account can pay Part B and Part D directly and tax-free for the rest of your life, which is a large recurring cost most retirement plans fund with taxable dollars. And there are no required minimum distributions, so unlike a traditional plan the balance is never forced out on a schedule you did not choose.
Where it belongs in the order
Collect the entire employer match on your workplace plan first — an instant 50% to 100% return outranks any argument about tax treatment, and it is the one thing an HSA cannot beat. Fund the HSA next, ahead of unmatched 401(k) deferrals, because a dollar there gets the same deduction plus the possibility of never being taxed. Then go back to the workplace plan and fill it, using the 401(k) calculator to see what the deferral rate actually produces and how a 401(k) works for the fees and vesting rules that decide how much of it you keep.
The parts that are not free
The account rides on a health plan, and the plan is a real trade. Compare the full year: premium difference, the employer's HSA seed if there is one, and your realistic out-of-pocket exposure under each option — not just the premium line. For a household with predictable high medical usage the high-deductible plan can lose that comparison outright, and no tax advantage rescues a plan that costs more than it saves.
Two smaller catches. A small number of states do not conform to the federal treatment and tax HSA contributions or earnings on the state return, so check before assuming the advantage is triple where you live. And the beneficiary designation matters more here than on most accounts: a spouse inherits the HSA intact, while anyone else receives the entire balance as ordinary income in one year.
Common follow-ups
Do I have to spend HSA money in the year I contribute it?
+
No. Unlike a flexible spending account, an HSA has no deadline and no forfeiture. The balance rolls over indefinitely, stays yours when you change jobs or health plans, and can be invested. The only annual deadline is the contribution one, which follows the tax filing date.
Can I still contribute after I enroll in Medicare?
+
No. Medicare enrollment ends eligibility from the month it begins, and Part A can apply retroactively for up to six months when you claim benefits after full retirement age. Stop contributions far enough ahead of that date, or the retroactive months turn into excess contributions.
What counts as a qualified medical expense?
+
Broadly, care that treats or prevents a condition — deductibles, copays, dental, vision, prescriptions, therapy, and many over-the-counter items. Premiums usually do not qualify, with narrow exceptions for Medicare premiums, coverage held while receiving unemployment compensation, and long-term care premiums up to an age-based cap.
What if I spend it on something that is not medical?
+
Before 65 the withdrawal is ordinary income plus a 20% penalty, which makes it the worst account in your stack to raid. From 65 the penalty disappears and only income tax applies, so the account behaves exactly like a traditional retirement plan — a floor, not a trap.
Should I fund an HSA before maxing my 401(k)?
+
After the employer match, usually yes. The match is a guaranteed return nothing else beats. Past it, a dollar in an HSA carries the same deduction as a traditional deferral plus a genuine chance of never being taxed at all, so it dominates on tax treatment alone.
What happens to the account when I die?
+
A spouse named as beneficiary inherits it as their own HSA with the tax treatment intact. Anyone else receives the entire balance as ordinary income in a single tax year, with no way to spread it. That gap is worth a beneficiary check rather than an estate plan.