Retirement Planning Guide

Clear, jargon-free information about your 401(k), IRA, Social Security, and retirement.

The retirement plan I wish I'd had sooner.

Health Savings Accounts (HSAs): The Stealth Retirement Account

Key takeaways

  • An HSA has a rare triple tax advantage: contributions go in pre-tax, the money grows tax-free, and qualified medical withdrawals come out tax-free.
  • To contribute you must be covered by a high-deductible health plan and not enrolled in Medicare or claimed as a dependent.
  • Unused HSA money rolls over every year and can be invested, so it can grow into a serious source of money for medical costs in retirement.
  • After 65 you can withdraw HSA money for any reason and just pay ordinary income tax, exactly like a traditional IRA, with no penalty.
  • An HSA is a savings tool, not advice, and the investments inside it can lose value; use it alongside your 401(k) and IRA, not instead of them.

A Health Savings Account is a medical savings account with a tax break so generous that many planners treat it as a stealth retirement account. It is the only common US account with a triple tax advantage: money goes in pre-tax, grows tax-free, and comes out tax-free when spent on qualified medical costs. Used well, an HSA can quietly become one of the most valuable pieces of your retirement plan.

I will be honest: when I first heard “high-deductible health plan,” I assumed an HSA was something to avoid. It took me a while to see it the other way around. If you have access to one, it can be a remarkably efficient way to save for the medical costs that are coming whether you plan for them or not. Here is how it works, reviewed by a CERTIFIED FINANCIAL PLANNER. This is general information, not personalized advice, and the investments inside an HSA can lose value.

The triple tax advantage

An HSA is taxed favorably at all three stages, which no other common account can claim. That is the whole reason it deserves a place in a retirement conversation rather than just a health one.

  • Going in: contributions are pre-tax or deductible, so they lower your taxable income for the year, much like a traditional 401(k) or IRA.
  • Growing: the money grows tax-free inside the account, including investment gains, like a Roth.
  • Coming out: withdrawals for qualified medical expenses are completely tax-free.

Compare that to a traditional account (taxed on the way out) or a Roth (taxed on the way in). The HSA skips tax at every stage as long as the money goes toward health costs. Because medical spending in retirement is close to a certainty, that “as long as” is easier to meet than it sounds.

Who is eligible

To contribute to an HSA you must be covered by a qualifying high-deductible health plan and not enrolled in Medicare or claimed as a dependent. The HSA is tied to the type of health insurance you carry, not to your job directly, so the eligibility rule is really about your coverage.

The key conditions:

  • You are covered by a high-deductible health plan (a plan with a higher deductible and an annual out-of-pocket cap, defined each year by the IRS).
  • You have no other disqualifying coverage.
  • You are not enrolled in Medicare, which usually starts at 65.
  • You are not claimed as a dependent on someone else’s return.

That Medicare point matters for planning. Once you enroll in Medicare, you can no longer put new money into an HSA, though you keep everything already in there. People who plan to work past 65 sometimes delay Medicare specifically to keep funding an HSA, which is a decision worth checking carefully against the Medicare enrollment rules.

Why it works as a retirement account

Unused HSA money rolls over every year and can be invested, so over decades it can grow into a serious pool of tax-advantaged money. This is the difference between an HSA and the old “use it or lose it” flexible spending accounts: nothing expires at year end.

That permanence changes the strategy. If you can afford to pay smaller medical bills out of pocket today, you can leave the HSA invested and let it compound, the same way you would let a 401(k) grow. Many people hold cash in the HSA for near-term bills and invest the rest in low-cost funds for the long run.

In retirement, the spending side gets easier to use. Qualified medical costs there often include Medicare Part B and Part D premiums, dental, vision, and out-of-pocket care, and HSA money covers all of that tax-free. Given that health care is one of the largest and least predictable costs in later life, having a dedicated tax-free pot for it takes real pressure off the rest of your savings. For how that fits the bigger picture, see types of retirement accounts.

What happens after 65

Once you turn 65, you can withdraw HSA money for any reason and just pay ordinary income tax, exactly like a traditional IRA, with no penalty. Before 65, a non-medical withdrawal triggers income tax plus a 20% penalty, so the account is best left for health costs. At 65 that penalty disappears entirely.

So after 65 the HSA effectively wears two hats:

  • For medical costs (including many Medicare expenses): withdrawals stay completely tax-free.
  • For anything else: withdrawals are taxed as ordinary income, just like a traditional IRA, with no penalty.

In other words, the worst case for an HSA is that it performs like a traditional retirement account, and the best case is that it is fully tax-free. That asymmetry is why I think of it as a stealth retirement account rather than just a way to pay the doctor.

Where the HSA fits in your plan

An HSA is a powerful supplement to your 401(k) and IRAs, not a replacement for them. A common order of operations is to first grab the full employer 401(k) match, then fund the HSA for its triple tax break, then circle back to fill up the 401(k) and IRAs.

Keep the basics in mind. Like any invested account, an HSA can lose value, so the investment choices and fees matter. Keep your receipts, because qualified withdrawals depend on having spent on real medical costs. And remember the figures here are for the current year and change annually, so confirm the current limits at IRS.gov before you contribute. For tools and definitions, IRS.gov and Medicare.gov are the official starting points, and a fiduciary advisor can help you place an HSA in your wider plan; see choosing a financial advisor.

References

  1. Retirement plans, Internal Revenue Service.
  2. Medicare, Medicare.gov.
  3. Saving and investing, Investor.gov (SEC).

Frequently asked questions

What is the triple tax advantage of an HSA?

An HSA is taxed favorably at all three stages. Money goes in before tax (or is deductible), so it lowers your taxable income. It then grows tax-free inside the account, including any investment gains. And when you spend it on qualified medical expenses, the withdrawals are tax-free too. No other common account gives you all three, which is why an HSA is often called the most tax-efficient account in the US system.

Who can contribute to an HSA?

You can contribute if you are covered by a qualifying high-deductible health plan, are not also covered by other disqualifying coverage, are not enrolled in Medicare, and are not claimed as a dependent on someone else's tax return. Once you enroll in Medicare, usually around 65, you can no longer make new HSA contributions, though you can still spend the money you have already saved.

Can I use my HSA in retirement?

Yes, and that is one of its best features. You can use HSA money tax-free for qualified medical costs at any age, and in retirement those costs often include Medicare premiums and out-of-pocket expenses. After 65 you can also withdraw HSA money for any reason at all, paying only ordinary income tax with no penalty, which makes it work like a traditional IRA for non-medical spending.

What happens to my HSA at 65?

Two things change at 65. First, once you enroll in Medicare you can no longer add new money to the HSA. Second, the 20% penalty for non-medical withdrawals disappears, so you can take money out for anything and simply pay income tax on it, just like a traditional IRA. Qualified medical withdrawals, including for many Medicare costs, stay completely tax-free.

Is an HSA better than a 401(k) for retirement?

They do different jobs, so it is rarely either-or. A common order of operations is to first contribute enough to your 401(k) to get the full employer match, then fund an HSA for its triple tax advantage, then return to the 401(k) and IRAs. The HSA is unbeatable on tax if the money goes toward medical costs, which are almost guaranteed in retirement, but it should sit alongside your main retirement accounts.

Written by Linda Marsh. Reviewed byDaniel Brookfield, CFP®.

Our guides are written from personal experience and reviewed by a qualified financial professional for accuracy. Read our editorial policy.