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

A Health Savings Account (HSA) is a tax-advantaged savings account tied to a high-deductible health plan. Once you turn 65 and enroll in Medicare, the rules change. You can keep an HSA you already have, but you cannot open a new one or contribute new money to it while you are on Medicare. If you try to contribute after Medicare enrollment, you will owe taxes and a 20% penalty on the amount you contributed.

The key rule: you must be covered by a high-deductible health plan and not enrolled in any part of Medicare to open or contribute to an HSA. Medicare Part A, Part B, Part D, or a Medicare Advantage plan all disqualify you from making new contributions. However, you can withdraw money from an existing HSA at any time without penalty once you are on Medicare — the funds straightforward lose their tax-free status for non-medical expenses.

Key Takeaways

  • You cannot open a new HSA or add money to an existing one once you enroll in any part of Medicare.
  • If you already have an HSA before turning 65, you can keep it and withdraw money from it, but withdrawals for non-medical expenses will be taxed as income.
  • Enrolling in Medicare Part A or Part B automatically stops your ability to contribute to an HSA, even if you delay other parts of coverage.
  • You can use HSA funds to pay Medicare premiums, deductibles, and out-of-pocket costs without penalty.
  • If you contribute to an HSA after Medicare enrollment by mistake, you must report it to the IRS and pay back taxes plus a 20% penalty.

What happens to your HSA when you turn 65

When you reach 65, you become may be able to access for Medicare. At that moment, you face a choice: enroll in Medicare, or delay enrollment and keep your HSA active. If you enroll in Medicare Part A (hospital insurance) or Part B (medical insurance), your HSA contributions must stop when ready. Many people do not realize that Part A enrollment happens automatically at 65 unless you actively decline it, which means their HSA contributions stop without them knowing.

If you have not yet enrolled in Medicare and still have an active high-deductible health plan through an employer or the individual market, you can continue contributing to your HSA. But the moment you sign up for Medicare — even just Part A — that window closes. Some people delay Medicare Part B to stay on an employer plan longer, but Part A enrollment still blocks HSA contributions.

Using HSA money after you are on Medicare

Once you are enrolled in Medicare, your HSA becomes a regular savings account for medical expenses. You can withdraw money to pay for Medicare premiums (Part B, Part D, and Medigap), deductibles, copayments, and coinsurance. These withdrawals are tax-free and penalty-free, just as they were before Medicare.

You can also use HSA funds to pay for dental, vision, and hearing care — expenses Medicare does not cover. Prescription drugs covered under Part D can be paid from your HSA. If you withdraw money for something that is not a may have access to medical expense, you will owe income tax on that amount, but you will not owe the 20% penalty that applies to non-medical withdrawals before age 65.

Many people find that an HSA becomes even more valuable after Medicare enrollment because they can use years of accumulated savings to cover the gaps in Medicare coverage. If you have a large HSA balance, it can offset the cost of a Medigap policy or help pay for long-term care services.

The difference between delaying Medicare and enrolling early

If you are still working at 65 and covered by an employer health plan, you may be able to delay Medicare enrollment. During this delay, you can keep contributing to your HSA as long as your employer plan is a high-deductible plan. However, you must eventually enroll in Medicare, and when you do, your HSA contributions stop.

Some people delay Part B specifically to stay on an employer plan, but they enroll in Part A because they think it is free. This is a mistake: Part A enrollment stops HSA contributions. If you want to keep contributing to an HSA, you must decline Part A enrollment in writing. You can do this at your local Social Security office or by calling Social Security at 1-800-772-1213. Declining Part A is uncommon and comes with trade-offs, so discuss this with your employer's benefits team and a tax professional before you decide.

What to do if you contributed to an HSA by mistake after Medicare enrollment

If you enrolled in Medicare and then discovered you made contributions to an HSA, you need to correct this with the IRS. Contact your HSA custodian (the bank or financial institution that holds your account) and ask them to return the contributions you made after your Medicare enrollment date. This is called a "distribution" or "removal" of excess contributions.

Once the custodian returns the money, you will receive a corrected tax form. You will owe income tax on the amount contributed, plus a 20% penalty. Report this on your tax return or contact a tax professional to file an amended return if you already filed. The sooner you catch and correct the error, the better, because penalties accrue based on how long the money sat in the account.

HSA rules if you have a Medigap or Medicare Advantage plan

If you are on a Medicare Advantage plan (Part C), you cannot contribute to an HSA. Medicare Advantage is a form of Medicare coverage, so enrollment disqualifies you from HSA contributions. The same applies to Medigap (supplemental insurance): having a Medigap policy does not stop you from contributing to an HSA, but being enrolled in any part of Medicare does.

Some people choose Medicare Advantage because it includes prescription drug coverage and sometimes dental or vision benefits. If you have an existing HSA, you can still use it to pay out-of-pocket costs under Medicare Advantage, such as copayments and deductibles. But you cannot add new money to the account.

Questions to ask your doctor or benefits counselor

Before you turn 65, talk to your employer's benefits team about your HSA and Medicare enrollment timeline. Ask whether your employer plan qualifies as a high-deductible plan and whether you can delay Medicare Part A enrollment if you want to keep working and contributing to your HSA.

If you are already on Medicare and have an HSA, ask your doctor or a Medicare counselor which out-of-pocket costs you can pay from your HSA. A State Health Insurance information Program (SHIP) counselor can review your specific situation for free. Find your local SHIP at shiptalk.org or call 1-877-839-2675.

Frequently Asked Questions

Can I keep my HSA if I am already on Medicare?

Yes. You can keep your existing HSA and withdraw money from it at any time. You straightforward cannot add new contributions once you enroll in Medicare. Withdrawals for may have access to medical expenses remain tax-free and penalty-free.

What happens if I enroll in Medicare Part A but not Part B?

Enrolling in Part A stops your HSA contributions, even if you delay Part B. Part A is considered Medicare enrollment for HSA purposes. If you want to keep contributing to an HSA, you must decline Part A in writing at Social Security.

Can I use my HSA to pay for Medicare premiums?

Yes. You can use HSA funds to pay premiums for Part B, Part D, and Medigap without penalty or tax. You cannot use HSA funds to pay Medicare Advantage premiums, but you can use them for out-of-pocket costs under Medicare Advantage.

What is the penalty if I contribute to an HSA after Medicare enrollment?

You will owe income tax on the contribution plus a 20% penalty. Contact your HSA custodian to have the contribution removed, then report the correction to the IRS on your tax return or through an amended return.

Can I open a new HSA after I turn 65?

No. You cannot open a new HSA once you are enrolled in any part of Medicare. You must be covered by a high-deductible health plan and not enrolled in Medicare to open an HSA.