You cannot open a new HSA once you enroll in Medicare, but you can keep an existing one if you meet specific conditions

The moment you sign up for any part of Medicare, you become ineligible to contribute new money to an HSA. This is the hard rule. However, if you already had an HSA before Medicare, you can keep the account and spend the money in it — you just cannot add to it. The account itself does not close. What changes is your ability to fund it.

The reason is structural: HSAs are designed to pair with high-deductible health plans (HDHPs), and Medicare is not an HDHP. Once Medicare becomes your primary coverage, the IRS considers you ineligible to contribute to an HSA, even if you still have an HDHP from a former employer or spouse's plan. The money already in the account, though, remains yours to use for may have access to medical expenses for the rest of your life.

The timing matters. If you are approaching Medicare age and have an HSA, you have a window before enrollment to decide whether to keep contributing or to stop. Understanding this window and what happens to your account after Medicare is the difference between preserving a tax-advantaged resource and losing access to it.

Key Takeaways

  • You cannot contribute to an HSA once you enroll in any part of Medicare, even if you keep other health coverage.
  • An HSA you opened before Medicare enrollment can stay open indefinitely, and you can withdraw money from it tax-free for may have access to medical expenses.
  • If you delay Medicare enrollment, you can continue contributing to an HSA, but delaying comes with penalties on the Medicare side.
  • Money in an HSA after your death can pass to a spouse tax-free or to other beneficiaries, though non-spouse heirs pay income tax on withdrawals.
  • Medicare does not cover dental, vision, or hearing aids, so an HSA becomes a useful way to pay for those expenses in retirement.

When Medicare enrollment stops HSA contributions

HSA contributions stop the moment you enroll in Medicare Part A or Part B. You do not have to be using Medicare yet — enrollment itself triggers the rule. This catches many people off guard because they assume they can contribute until they actually start using Medicare benefits.

The IRS defines HSA may be able to access by coverage status, not by whether you are actively receiving care. If you are covered by Medicare, you cannot contribute, period. This applies even if you have not yet turned 65, if you became may be able to access for Medicare due to disability or end-stage renal disease.

If you are still working and covered by an employer HDHP at 65, you face a choice: enroll in Medicare and lose HSA contribution rights, or delay Medicare enrollment and keep contributing. Delaying Medicare Part B past 65 triggers a permanent penalty on your Part B premiums (0.1% per month of delay), so this choice has real cost on the other side. Delaying Part A has no penalty if you are still employed and covered by an employer plan, but most people do not separate the two.

How to use an existing HSA after Medicare enrollment

Once you are on Medicare, your HSA becomes a medical expense fund, not a savings vehicle. You can withdraw money to pay for anything Medicare does not cover: copays and coinsurance on Medicare services, premiums for Medigap or Medicare Advantage plans, dental work, vision care, hearing aids, and over-the-counter medications.

Withdrawals for these expenses remain tax-free. You do not owe income tax or the 20% penalty that normally applies to non-medical HSA withdrawals. The key is that the expense must be a may have access to medical expense under IRS rules — which is broad enough to include most healthcare costs, but does not include things like cosmetic surgery or gym memberships.

You can also use HSA money to pay Medicare premiums themselves: Part B, Part D, and Medigap premiums all count as may have access to expenses. This is one of the most practical uses of an HSA in retirement, because premiums are predictable and large. Some people use their HSA to cover the full cost of a Medigap plan, which can run $100 to $300 per month depending on age and location.

There is no important date to spend the money. Unlike a Flexible Spending Account (FSA), which has a use-it-or-lose-it rule, an HSA carries over year to year. You can let it sit and grow, or draw from it as you need to. The money is yours for life.

What happens to your HSA if you delay Medicare

If you are working past 65 and covered by an employer HDHP, you can delay Medicare Part B and keep contributing to your HSA. This is legal and sometimes the right move, especially if you have a large HSA balance and expect to need it in retirement.

To do this, you must actively decline Part B enrollment when you turn 65. straightforward not signing up is not enough — you need to file a form (CMS-L564) with Social Security stating that you are declining coverage because you have employer health insurance. Without this form, you may be automatically enrolled, which stops your HSA contributions when ready.

The trade-off is the Part B penalty. If you delay Part B and later enroll, your premium increases by 10% for each year you did not have it. If you delay two years, your Part B premium goes up 20% permanently. For most people, this penalty outweighs the benefit of a few extra years of HSA contributions, but the math depends on your HSA balance and how much longer you plan to work.

Part A is different. If you are still employed and covered by an employer plan, you can delay Part A with no penalty. This means you could theoretically keep contributing to an HSA while on Part A only, though this is uncommon and requires careful coordination with Social Security.

HSA inheritance and what your beneficiaries receive

An HSA can be passed to a beneficiary after your death. The treatment depends on who the beneficiary is.

If your spouse is the beneficiary, they can treat the HSA as their own. They become the account owner, can continue to use it for their own may have access to medical expenses, and face no tax consequences. This is the most favorable outcome and is why naming a spouse as beneficiary is common.

If a non-spouse beneficiary inherits the HSA — a child, parent, or other person — they receive the account value but must pay income tax on any withdrawals. The account does not stay an HSA; it becomes a regular taxable account. They can withdraw the full balance and pay income tax on it all at once, or withdraw over time and pay tax as they go. There is no 20% penalty, but there is income tax.

Some people use this as an estate planning tool: they let their HSA grow untouched during retirement, knowing it will pass to heirs with a stepped-up basis (meaning heirs inherit at the current market value, not the original contribution value). This can reduce the tax burden on the estate.

Medicare Advantage and Medigap: how they interact with an HSA

If you choose a Medicare Advantage plan (Part C) instead of Original Medicare, you still cannot contribute to an HSA. Medicare Advantage is still Medicare, and the contribution ban applies. However, you can still withdraw from an existing HSA to pay for Advantage plan premiums, copays, and coinsurance.

Medigap (supplemental insurance) works the same way. You can use HSA money to pay Medigap premiums and any out-of-pocket costs Medigap does not cover. In fact, many people use their HSA specifically to cover Medigap premiums, since Medigap is designed to fill gaps in Original Medicare coverage.

Some Medicare Advantage plans include dental, vision, or hearing benefits that Original Medicare does not. If you have an HSA, you can use it to pay for these benefits under either plan type. The HSA does not care which Medicare plan you chose — it only cares that the expense is may have access to.

The HSA versus Medicare savings account trap

Do not confuse an HSA with a Medicare Savings Account (MSA), which is a different product entirely. An MSA is a type of Medicare Advantage plan that includes a savings component. You cannot have both an HSA and an MSA at the same time — if you enroll in an MSA, you must close your HSA or stop contributing to it.

MSAs are rare and offered by very few insurers. Most people on Medicare never encounter one. But if you are shopping Medicare Advantage plans and see one labeled as an MSA, understand that choosing it means giving up your HSA. For most people with an existing HSA, this is a bad trade, because the HSA is more flexible and has no contribution limits once you stop working.

Frequently Asked Questions

Can I contribute to an HSA if I am on Medicare but still working?

No. Once you enroll in Medicare Part A or Part B, you cannot contribute to an HSA, even if you are still employed and covered by an HDHP. If you want to keep contributing, you must delay Medicare Part B enrollment and file a declination form with Social Security. Part A has no penalty for delay if you have employer coverage, but Part B does.

What happens to my HSA if I do not use it before I die?

If your spouse is the beneficiary, they inherit it tax-free and can use it as their own HSA. If anyone else inherits it, they receive the balance but must pay income tax on any withdrawals. The account itself is not taxed — only the money withdrawn is.

Can I use my HSA to pay for Medicare premiums?

Yes. Part B, Part D, and Medigap premiums are all may have access to medical expenses. You can use HSA money to pay them tax-free. This is one of the most common uses of an HSA in retirement.

If I have Medicare Advantage, can I still use my HSA?

Yes, you can withdraw from an existing HSA to pay Medicare Advantage premiums, copays, and coinsurance. You just cannot contribute new money to the HSA once you are on any part of Medicare, including Advantage.

Does Medicare cover dental, vision, or hearing aids?

Original Medicare does not. Some Medicare Advantage plans include these benefits, but coverage varies by plan. An HSA is a useful way to pay for these expenses, since they are may have access to medical expenses and withdrawals are tax-free.