The HSA as a Retirement Account: The Strategy Step by Step

Max it, invest it, do not touch it, and retire with a tax-free medical fund. The HSA may be the best retirement account you are not using.

Summary: The HSA-as-retirement-account strategy has four steps: contribute the annual maximum via payroll, invest everything above a cash buffer, pay medical expenses out of pocket while saving receipts, and in retirement reimburse yourself tax-free from decades of receipts or use the balance for Medicare premiums. A couple maxing family contributions from age 35 to 65 can accumulate several hundred thousand tax-free dollars. At 65 the account also works like a Traditional IRA for non-medical spending.

Why the HSA beats the 401(k) for retirement

Rank the accounts by tax efficiency for a dollar you will eventually spend on healthcare. The HSA is deductible going in, grows tax-free, and comes out tax-free: zero taxes at every stage. The Traditional 401(k) is deductible in but taxed out. The Roth is taxed in but free out. For the hundreds of thousands most retirees spend on healthcare, premiums, and long-term care, the HSA is mathematically unbeatable, and after 65 it doubles as a Traditional IRA for anything else.

Step 1: max it through payroll

Contribute the full annual limit ($4,400 self-only or $8,750 family for 2026, plus catch-ups) via payroll deduction to capture the 7.65 percent FICA savings on top of the income tax deduction. If your employer seeds the HSA, subtract the seed from your payroll target so the total hits the cap exactly. Front-load early in the year if your plan allows; more months invested means more compounding.

Step 2: invest everything above the buffer

Keep one year's deductible in cash and invest the rest aggressively for your age. A 35-year-old might hold a total stock market index fund; the allocation should glide more conservative as retirement nears, just like a 401(k). Rebalance annually and keep fees minimal. The goal is decades of uninterrupted tax-free compounding.

Step 3: pay medical bills out of pocket

This is the step that feels wrong and matters most. Do not spend the HSA on current medical bills if you can cash-flow them. Pay out of pocket, digitize every receipt, and log the amounts. Each receipt is a future tax-free withdrawal ticket with no expiration date. A family spending $3,000 a year out of pocket for 30 years banks $90,000 of future tax-free withdrawal rights while the invested HSA compounds separately.

Step 4: harvest in retirement

In retirement, the HSA funds Medicare premiums (Parts B, D, and Medicare Advantage) tax-free, plus any accumulated receipt reimbursements, plus ongoing medical costs. What remains can be drawn for non-medical spending taxed like a Traditional IRA, with no RMDs forcing your hand. Coordinate withdrawals with Social Security and Roth conversions to manage your Medicare IRMAA brackets, since HSA withdrawals for medical expenses do not add to modified adjusted gross income.

The math of 30 years

A couple contributing the $8,750 family maximum annually from age 35 to 65, invested at 7 percent real returns, accumulates roughly $830,000 in contributions plus growth. Even at 5 percent real, it is about $580,000. Every dollar of that can come out tax-free against medical spending and receipts. No 401(k) or IRA can match that after-tax outcome for healthcare dollars, which is why planners call the HSA the best retirement account in the tax code.

What can go wrong

Three mistakes sink the strategy. First, losing HDHP eligibility without adjusting contributions creates excess contributions and the 6 percent excise tax. Second, raiding the HSA for non-medical spending before 65 triggers income tax plus the 20 percent penalty, the worst outcome in the tax code. Third, losing receipts: without substantiation, a future reimbursement is just an undocumented withdrawal. Keep the eligibility, keep the receipts, keep the hands off, and the strategy runs itself.

Sources: IRS Publication 969; IRS Publication 502. Data current as of October 2026. Not tax or investment advice.

Frequently asked questions

Can I use my HSA as a retirement account?

Yes. Max it via payroll, invest above a cash buffer, pay medical bills out of pocket while saving receipts, and withdraw tax-free in retirement against decades of receipts and Medicare premiums.

How much can an HSA grow to by retirement?

A couple maxing family contributions for 30 years at 7% real returns accumulates roughly $830,000, all available tax-free for medical spending.

Should I pay medical bills from my HSA or out of pocket?

If you can cash-flow them, pay out of pocket and save receipts. The HSA then compounds untouched, and you can reimburse yourself tax-free years later.

Can I use HSA money for Medicare premiums?

Yes. Parts B, D, and Medicare Advantage premiums are qualified medical expenses. Medigap premiums are not.

What happens to my HSA at 65?

The 20% penalty on non-medical withdrawals ends; they are taxed like Traditional IRA withdrawals. There are no required minimum distributions.

HSA Contribution Calculator calculator · ← Can You Invest Your HSA Funds? How HSA Investing Works