VOLUME 2 · CHAPTER 4 OF 8

The HSA as a Retirement Account

Who can contribute to a health savings account, the 2026 limits, and how investing it and saving receipts turns it into tax-free money for healthcare in retirement. What changes at 65 and when you enroll in Medicare.

5 min readStrategies0 worked examplesupdated 2026-10-01
TRY IT WITH YOUR NUMBERSOpen the full calculator →
Loading the HSA as stealth retirement account…
Same formula and engine as the full calculator. Your numbers stay in this browser.

A health savings account is usually described as a way to pay this year's medical bills. Used differently, it is the only account in the US tax code that can be tax-free on the way in, while it grows, and on the way out. This chapter explains who can open one, how much can go in for 2026, how to use it as a long-term account for healthcare in retirement, and the rules at 65 and at Medicare enrollment that change how it works.

Who can have an HSA

You can contribute to an HSA only for months when you are covered by a high-deductible health plan (HDHP) and have no other health coverage that pays before the deductible. For 2026 an HSA-eligible plan must have a deductible of at least $1,700 for self-only coverage or $3,400 for family coverage, and an out-of-pocket maximum no higher than $8,500 or $17,000. A law passed in 2025 also treats bronze and catastrophic plans bought on the marketplace as HSA-compatible from 2026; check with the plan before relying on it.

Three other conditions: you cannot be enrolled in Medicare, you cannot be claimed as someone else's dependent, and a general-purpose flexible spending account (yours or a spouse's) usually disqualifies you. A limited-purpose FSA for dental and vision does not.

The limits and the three tax breaks

For 2026 the most that can go into an HSA is $4,400 with self-only coverage and $8,750 with family coverage. People 55 or older can add $1,000. Employer contributions count toward the limit. When both spouses are 55 or older, each needs their own HSA to make a catch-up contribution, because the catch-up belongs to the person, not the family.

The three tax breaks:

  1. Going in. Contributions are deducted from federal income, whether or not you itemize. Contributions made through payroll also skip Social Security and Medicare tax (7.65% for most employees), which a contribution to a 401(k) does not.
  2. Growing. Interest, dividends and gains inside the account are not taxed.
  3. Coming out. Withdrawals for qualified medical expenses are tax-free at any age.

A few states do not follow the federal treatment and tax HSA contributions or earnings; California and New Jersey are the best-known examples.

Compare this with a traditional 401(k), which is tax-free going in and taxed coming out, and a Roth, which is taxed going in and tax-free coming out. For money that is eventually spent on healthcare, the HSA beats both, and nearly everyone spends a meaningful amount on healthcare in retirement.

Using it as a retirement account

The approach that turns an HSA into a retirement account has three parts.

Invest it. Many HSAs hold contributions in a cash account by default. Most providers let you invest the balance above a set amount in mutual funds or index funds, and some let you move the HSA to a different provider with better investment choices. Money left in cash for decades does not get much benefit from the tax-free growth.

Pay current medical bills from other money, if you can afford to. Every dollar you leave in the HSA keeps compounding without tax. This only makes sense if paying out of pocket does not strain your budget or push you toward debt; the HSA can always cover a large bill when needed.

Keep the receipts. There is no deadline for reimbursing yourself. A qualified expense you paid out of pocket in any year after the HSA was opened can be reimbursed tax-free years or decades later, as long as you can show the expense was not reimbursed elsewhere or deducted. In effect, a folder of saved receipts is a store of tax-free withdrawals you can draw on whenever you need cash.

The HSA retirement calculator compares an invested HSA with putting the same take-home cost into a taxable account or a traditional 401(k), using 2026 limits.

Where the HSA sits in your saving order depends on your situation. A common sequence is to contribute enough to a 401(k) to get any employer match first, then fill the HSA, then return to the 401(k) or an IRA. The match is an immediate return that is hard to beat; after that, the HSA's payroll-tax saving and tax-free withdrawals often put it ahead of other accounts.

What it pays for in retirement

Qualified medical expenses are broader than many people expect, and some are specific to retirement:

  • Medicare premiums: Part B, Part D and Medicare Advantage premiums, including the income-related surcharges. Medicare supplement (Medigap) premiums do not qualify.
  • Long-term care insurance premiums, up to a yearly limit that rises with age.
  • COBRA premiums, and health insurance premiums while you receive unemployment benefits.
  • Out-of-pocket costs such as deductibles, coinsurance, dental work, glasses, hearing aids, prescription drugs and qualified long-term care services.

IRS Publication 502 lists what counts as a medical expense, and Publication 969 explains the HSA rules.

The rules at 65 and at Medicare

At 65, the penalty goes away. Before 65, money taken out for anything other than qualified medical expenses is taxed as income and also carries a 20% additional tax. From 65, non-medical withdrawals are taxed as ordinary income with no additional tax, the same as a traditional IRA. Medical withdrawals stay tax-free. So an HSA you never need for healthcare still works like a traditional IRA, and it has no required minimum distributions.

Medicare enrollment ends contributions. Once you enroll in any part of Medicare, including premium-free Part A, you can no longer contribute. If you delay Social Security and Medicare past 65 while working with an HDHP, you can keep contributing. But when you later sign up for Part A, coverage can be backdated up to six months, and contributions made in those backdated months become excess contributions. People in that situation usually stop HSA contributions six months before they apply.

What happens at death. A spouse named as beneficiary simply takes over the HSA as their own. Anyone else receives the balance as taxable income in the year of death, minus any qualified medical bills of the deceased they pay within a year. That makes the HSA a good account to spend in retirement and a poor one to leave to children.

YOUR NEXT STEPSDo this now
  1. Check your current health plan's deductible and out-of-pocket maximum against the 2026 HSA requirements above.
  2. If you have an HSA, log in and see whether the balance is invested or sitting in cash, and what the investment threshold is.
  3. Start a folder, paper or digital, for medical receipts you pay out of pocket, with the date, amount and what it was for.
  4. Run your contribution, tax rates and years to retirement through the HSA retirement calculator.
  5. If you plan to work past 65, write a reminder to stop HSA contributions six months before you enroll in Medicare.

This chapter explains general rules as of 2026 and is not personal tax advice. Eligibility depends on every coverage you have; IRS Publication 969 and your plan administrator can confirm it.

KEY TERMS
Compound growth
SOURCES
Saved in this browser. Sign in to keep it on every device.
WORK IT OUT WITH YOUR NUMBERS
Coast FIRE →How much must I have invested today to stop contributing?FIRE Calculator →Given savings and spending, when can I stop working?
IN THE BLOG
RETIREMENT · 12 MINCatch-Up Contributions After 50: Maximize Your Retirement Savings (2026) →401k catch-up mechanics ($7,500), IRA catch-up rules ($1,000), super catch-up provisions age 60-63, HSA triple tax advantage, and contribution priority flowchartRETIREMENT · 25 MIN5 Retirement Mistakes That Cost $100K+ (Part 1 of 3) →Part 1 of 3: Social Security timing errors, Roth conversion failures, and pension lump-sum miscalculations that silently destroy six-figure retirement wealth.BUDGET & SAVING · 11 MINThe No-Spend Challenge: Why TikTok's 3.2M-View Trend Could Cost You $74,861 →Why going cold turkey on spending costs you more in compound growth than you save — and what to do instead.