HSA Retirement Strategy: The Triple Tax Advantage

US retirement accounts showing 401(k), Traditional IRA, Roth IRA, and HSA balances
A couple's 401(k)s, IRAs, Roth IRAs, HSAs and taxable accounts in one list.

The Health Savings Account is the only account in the US tax code with a triple tax advantage: contributions are tax-deductible, growth is tax-free, and withdrawals for qualified medical expenses are tax-free. The 401(k), Roth IRA, and Traditional IRA each offer at most two. IRS Publication 969 covers contribution limits, qualified medical expenses, and the interaction with Medicare. Many planners consider the HSA the best retirement savings account for Americans with a high-deductible health plan.


How the HSA Works

To contribute to an HSA, you must be enrolled in a High-Deductible Health Plan (HDHP). In 2025:

You, your employer, or both can contribute, up to the annual limit. Employer contributions are excluded from your gross income, with no payroll tax either (401(k) matches avoid income tax but still incur FICA).


The Triple Tax Advantage in Detail

1. Tax-Deductible Contributions

HSA contributions reduce your taxable income, just like a Traditional IRA or 401(k). If you’re in the 24% federal bracket and contribute $8,550 (family limit), you save $2,052 in federal tax alone, plus state tax savings in most states.

If your employer offers payroll HSA contributions, the benefit is larger: those contributions bypass both income tax and FICA (7.65%), saving an additional ~$654 on the full family contribution.

2. Tax-Free Growth

Like a Roth IRA, HSA funds grow tax-free. Interest, dividends, and capital gains inside the HSA are never taxed, either when earned or when you withdraw. Most HSAs allow you to invest in mutual funds or ETFs once your balance exceeds a threshold (typically $1,000–$2,000 in cash).

3. Tax-Free Withdrawals (for Medical Expenses)

Withdrawals for qualified medical expenses (doctor visits, prescriptions, dental, vision, Medicare premiums but not Medigap premiums) are tax-free at any age. There is no time limit on reimbursement: you can pay for medical expenses out of pocket today, save the receipts, and reimburse yourself from the HSA years or decades later, letting the money grow tax-free in the meantime.


The HSA as a Retirement Account

Before Age 65

Withdrawals for non-medical purposes before age 65 are taxed as ordinary income plus a 20% penalty — similar to an early IRA withdrawal but with a steeper penalty. That makes the HSA a poor choice for non-medical spending before 65.

After Age 65 (or Medicare Enrollment)

Once you turn 65 or enroll in Medicare:

That makes the HSA flexible in retirement. A $15,000 dental implant comes tax-free from the HSA. $30,000 for general living expenses is taxed like a Traditional IRA withdrawal.

No RMDs

Unlike Traditional IRAs and 401(k)s, the HSA has no Required Minimum Distributions. You can let it grow indefinitely, which suits leaving it to a spouse (who inherits it as their own HSA) or using it as a late-retirement medical fund when healthcare costs are highest.


The Optimal HSA Strategy

During Working Years

  1. Max out contributions every year. The limits are lower than 401(k) limits, but each dollar gets a better tax treatment.
  2. Invest the balance. Don’t leave HSA funds in cash. Move everything above a small buffer into a diversified index fund.
  3. Pay medical expenses out of pocket. If you can afford it, pay current medical bills from your checking account and let the HSA grow. Save receipts — you can reimburse yourself tax-free at any time in the future.
  4. Prioritize HSA over additional 401(k) contributions (above the employer match). The HSA’s triple tax benefit beats the 401(k)‘s single deduction.
  1. 401(k) up to the employer match (free money)
  2. HSA to the annual maximum (triple tax advantage)
  3. Roth IRA to the annual maximum (tax-free growth, no RMDs)
  4. 401(k) to the annual maximum (tax-deferred growth)
  5. Taxable brokerage account (overflow)

In Retirement

Use the HSA for medical expenses first. These withdrawals are tax-free and don’t count toward Social Security taxation thresholds or IRMAA Medicare surcharges. For non-medical spending, treat the HSA as a Traditional IRA: withdraw in low-income years to fill lower brackets, and leave it untouched in high-income years.


HSA and Medicare

You cannot contribute to an HSA once you enroll in Medicare (typically at 65). If you’re still working past 65 and delay Medicare, you can keep contributing, but only if you’re not enrolled in any part of Medicare, including Part A.

If you claimed Social Security before 65, you’re automatically enrolled in Medicare Part A at 65, which ends HSA eligibility. Plan your timing.

Existing HSA funds can still be used after Medicare enrollment. You just can’t add more.


State Tax Considerations

Most states follow the federal tax treatment of HSAs. Two notable exceptions:

If you live in CA or NJ, the HSA still provides federal tax benefits and tax-free medical withdrawals, but the state-level advantage is smaller.


How cinder.fi Helps

cinder.fi models your HSA as its own account type in the US retirement projection. Contributions grow tax-free during working years, and withdrawals are taxed correctly: tax-free for medical expenses, ordinary income after 65 for other purposes. The HSA balance is part of the withdrawal ordering strategy, so you can see how HSA draws interact with Social Security taxation, IRMAA thresholds, and RMDs from other accounts. Manual withdrawal ordering lets you place the HSA wherever you want in the drawdown sequence.

Model your HSA strategy: try cinder.fi free.

· 4 min read

Start with a situation like yours

Put your spending, life events and retirement timing together before you build the full plan.

Start with your situation

See all features →

Frequently asked questions

›Can I use my HSA as a retirement account?

Yes. After age 65, HSA withdrawals for any purpose are taxed as ordinary income (like a Traditional IRA) with no penalty. Withdrawals for medical expenses stay tax-free at any age. The HSA has no Required Minimum Distributions, so it is one of the most flexible retirement accounts.

›What is the HSA triple tax advantage?

Contributions are tax-deductible (reducing your taxable income), growth is tax-free (no tax on interest, dividends, or capital gains inside the account), and withdrawals for qualified medical expenses are tax-free. No other US account provides all three benefits.

›Should I contribute to an HSA before maxing out my 401(k)?

Generally yes, after securing your employer 401(k) match. The HSA's triple tax advantage makes it more tax-efficient per dollar than additional 401(k) contributions. A common priority order is: 401(k) to employer match, then HSA to max, then Roth IRA, then additional 401(k).

›Can I contribute to an HSA after age 65?

Only if you are NOT enrolled in Medicare. Once you enroll in any part of Medicare (including Part A), HSA contributions must stop. Existing HSA funds can still be used. If you claimed Social Security before 65, you're automatically enrolled in Medicare Part A at 65.

Related guides

Related calculators

Start with your situation