Can I keep an HSA if I enroll in Medicare?

Special Situations
Last updated: 
April 10, 2026
Smiling elderly couple on medicare coverage sitting outdoors in a grassy hilly area, dressed warmly with scarves and jackets.
Smiling elderly man with pre existing conditions is grateful for medicare insurance and woman enjoying tea together indoors with plants in the background.
Older couple smiling wondering about their drug formulary and dancing outdoors among green trees, enjoying a healthy aging lifestyle.

The short answer

Once you enroll in any part of Medicare, you can no longer contribute to a Health Savings Account (HSA). You can still spend money already in the account, but new contributions must stop.

The full explanation

An HSA, or Health Savings Account, is a tax-advantaged account that works alongside a high-deductible health plan. The IRS rules are clear on this: the moment you enroll in Medicare Part A or Part B, you lose eligibility to contribute new money to an HSA. That applies even if you keep other non-Medicare coverage.Here's where people get tripped up. Part A coverage can be backdated up to six months when you sign up late. If that happens, you technically became ineligible six months ago, and any HSA contributions made during that window could trigger a tax penalty. So if you're still working and contributing to an HSA, you'll want to stop contributions a few months before you plan to enroll in Medicare, just to be safe.The money already sitting in your HSA doesn't disappear. You can keep using it to pay Medicare premiums, deductibles, copays, and other qualified medical expenses, tax-free. It just becomes a spending account rather than a savings account. Talk to a tax advisor or a Medicare counselor before making changes, since the timing matters quite a bit here.

Related Medicare Resources

Smiling elderly couple on social security benefits misunderstand medicare advantage are outdoors with man presenting a bouquet of yellow flowers to the woman.Smiling elderly couple disappointed at their doctor for not accepting medicare sitting on a bench outdoors holding a colorful bouquet of flowers.A group of six older adults enjoy discussion with primary care physician covered by medicare sitting together indoors, smiling and enjoying conversation with drinks.

Still have questions about Medicare?

Book a review with a licensed Medicare advisor.

Senior couple sitting together outdoors near white flowers and greenery, smiling and looking to the right.