You can have an HSA with Medicare, but only under specific circumstances

The short answer: yes, but with real limits. You can keep an existing HSA after you turn 65 and enroll in Medicare. You can also open a new HSA while on Medicare, but only if you're covered by a high-deductible health plan (HDHP) through your spouse's employer or your own work. You cannot contribute new money to an HSA once you're on Medicare Part A, with one exception: if you delay Part A enrollment, you can keep contributing as long as you're not yet covered.

The reason for these rules is structural. HSAs exist to help people save for out-of-pocket medical costs while they're working and insured through an employer. Medicare is a different system entirely—it's federal insurance for people 65 and older. The IRS treats these as incompatible for contribution purposes, even though you can hold both at the same time.

What matters most: the moment you enroll in Medicare Part A, your HSA contribution window closes. This is automatic if you take Social Security at 65, because Social Security enrollment triggers Medicare Part A enrollment. If you're still working and want to keep contributing to an HSA, you need to actively delay Part A enrollment—and you need to do this before you turn 65.

Key Takeaways

  • You can keep money in an HSA after enrolling in Medicare and use it to pay for Medicare premiums, deductibles, and out-of-pocket costs.
  • You cannot contribute new money to an HSA once you're enrolled in Medicare Part A, even if you're still working.
  • If you're still employed and covered by an HDHP through your job, you can delay Medicare Part A enrollment to keep contributing to your HSA.
  • Withdrawals from an HSA for non-medical expenses after age 65 are taxed as ordinary income (not subject to the 20% penalty that applies before 65).

When you can contribute while on Medicare

The only scenario where you can contribute to an HSA while on Medicare is if you have not yet enrolled in Medicare Part A. This requires deliberate action on your part. When you turn 65, you become may be able to access for Medicare, but enrollment is not automatic unless you're already receiving Social Security benefits.

If you're still working and your employer offers an HDHP, you can request to delay Part A enrollment. You do this by declining Part A when you first become may be able to access. Once you've declined it, you can continue contributing to an HSA as long as you remain covered by the HDHP and have not yet enrolled in Part A.

The catch: if you take Social Security at any point, Part A enrollment happens automatically, and your contribution window closes when ready. You cannot stop this. So if you're 65, still working, and want to keep contributing to an HSA, you must also delay Social Security.

This strategy only makes sense if you're genuinely still working full-time with employer health coverage. If you've retired or your employer coverage ends, there's no reason to delay Part A, because you won't be able to contribute to the HSA anyway.

Using HSA money to pay Medicare costs

Once you're on Medicare, you can use HSA funds to pay for Medicare premiums (Part B, Part D, and Medigap), Medicare deductibles, and copayments. You can also use the money for any other may have access to medical expense—dental, vision, hearing aids, prescription drugs not covered by Part D, and long-term care insurance premiums.

This is where an HSA becomes genuinely useful on Medicare. If you have a balance built up before you enrolled, that money is yours to use tax-free for these costs. Many people find that an HSA balance of $5,000 to $10,000 covers several years of Medicare out-of-pocket costs, depending on which Medicare plan they choose.

You withdraw from the HSA the same way you did before Medicare: you can use a debit card linked to the account, request a check, or reimburse yourself for expenses you've already paid. Keep receipts for anything you withdraw, because the IRS can ask for proof that the expense was medical.

What happens to HSA money you don't use

HSA funds roll over year to year with no limit. There's no "use it or lose it" rule. If you have $20,000 in your HSA when you turn 65, that money stays there indefinitely, and you can use it whenever you need it for may have access to medical expenses.

After age 65, if you withdraw HSA money for something that's not a may have access to medical expense, you pay ordinary income tax on that withdrawal. Before age 65, you'd also pay a 20% penalty on non-medical withdrawals. That penalty goes away at 65, which is one reason an HSA becomes more flexible once you're on Medicare.

This flexibility means some people use their HSA as a secondary retirement savings account after 65. You can withdraw money for non-medical expenses and pay only income tax—the same as you would with a traditional IRA. It's not the original purpose of the account, but the IRS allows it.

How Medicare enrollment affects your HSA contributions

The timeline matters. If you enroll in Medicare Part A on January 1, your HSA contribution window closes on December 31 of the previous year. You cannot make any contributions for the year you enroll, even if you enroll late in the year.

If you're self-employed or have an individual HDHP through the marketplace, the same rule applies. The moment you enroll in Part A, you cannot contribute. If you're covered by an employer HDHP, you can keep contributing only if you've delayed Part A enrollment and remain may be able to access to contribute under the employer plan.

Some people try to make a lump-sum contribution to their HSA right before they turn 65, thinking they can beat the important date. This doesn't work. The IRS looks at your Medicare enrollment status on the date you make the contribution. If you're already enrolled in Part A, the contribution is not allowed, and you'll face penalties if you try to force it through.

Coordinating HSA strategy with your Medicare plan choice

Your HSA balance should influence which Medicare plan you choose. If you have $15,000 in your HSA, you can afford a plan with a higher deductible, because you have money set aside to cover it. If your HSA is nearly empty, a plan with lower out-of-pocket costs makes more sense, even if the premium is higher.

Some people with large HSA balances choose Original Medicare (Part A and B) plus a Medigap policy, because Medigap plans cover most of your out-of-pocket costs, and you can pay the Medigap premium from your HSA. Others choose a Medicare Advantage plan with a lower deductible and use their HSA as a cushion for unexpected costs.

The math is personal. Run the numbers for your situation: add up the premiums, deductibles, and expected out-of-pocket costs for each plan option, then see which one your HSA balance can cover most completely. This is one of the few times an HSA balance directly shapes which Medicare plan makes financial sense.

What to do if you're still working past 65

If you're employed and your employer offers an HDHP, you have options. You can delay Medicare Part A enrollment and keep contributing to your HSA. You can also delay Social Security, which prevents automatic Part A enrollment. This strategy works if you genuinely have employer health coverage and plan to work several more years.

Before you do this, talk to your employer's benefits administrator. They can tell you whether your HDHP qualifies as a high-deductible plan under current IRS rules, and they can help you formally decline Part A enrollment. Some employers have specific procedures for this, and getting it wrong can trigger automatic enrollment.

Also understand the trade-off: if you delay Social Security to keep contributing to an HSA, your Social Security benefit will be higher when you finally claim it (because of delayed retirement credits). Whether that trade-off makes sense depends on your health, family history, and how much you value the HSA contributions. This is worth discussing with a financial advisor who understands both HSAs and Social Security.

Frequently Asked Questions

Can I open a new HSA after I'm on Medicare?

No. Once you're enrolled in Medicare Part A, you cannot open a new HSA or contribute to an existing one. The only exception is if you delayed Part A enrollment and are still covered by an HDHP through an employer or your spouse's employer. If that's your situation, you can open a new HSA as long as you meet the HDHP requirements.

What if I enrolled in Medicare Part B but not Part A?

Part B enrollment alone does not close your HSA contribution window. You can keep contributing as long as you have not enrolled in Part A and you're covered by an HDHP. However, most people enroll in both Part A and Part B at the same time, so this scenario is uncommon. If you're in this situation, verify your Part A status with Social Security before making HSA contributions.

Can I use my HSA to pay for Medicare Advantage premiums?

Yes. Medicare Advantage premiums are may have access to medical expenses, so you can pay them from your HSA. You can also use HSA funds for Part D premiums, Medigap premiums, and any out-of-pocket costs your plan requires. Keep receipts showing what you paid for.

What happens to my HSA if I go back to work after retiring?

If you're already on Medicare Part A, you cannot contribute to your HSA again, even if you return to work and your new employer offers an HDHP. The HSA money you already have stays in the account and can be used for may have access to medical expenses. But new contributions are not allowed once Part A enrollment is in place.

Do I have to spend my HSA before I turn 65?

No. HSA funds do not expire. You can let the balance grow and use it after you turn 65 for Medicare costs and other may have access to medical expenses. Many people intentionally keep their HSA balance intact until Medicare age so they have a pool of tax-information programs to cover their out-of-pocket costs.