Working past 65

Medicare and your HSA

Once you enroll in any part of Medicare — including premium-free Part A — you can no longer contribute to a health savings account, though you can still spend the balance. Because Part A can be backdated up to six months when you enroll after 65, plan to stop HSA contributions about six months before you sign up for Medicare or claim Social Security.

Reviewed by Scott Stafford, Licensed Insurance Agent

Last updated

Medicare and HSA contributions don’t mix

The rule catches a lot of people: the moment you’re enrolled in any part of Medicare, including premium-free Part A, you lose your eligibility to contribute to a health savings account. You keep the account and can spend what’s in it, but new contributions have to stop. That’s why enrolling in Part A "just because it’s free" can be the wrong move if you’re still funding an HSA.

The six-month lookback

When you enroll in Medicare after 65, Part A coverage is backdated up to six months — though never before the month you turned 65. Claiming Social Security at or after 65 enrolls you in Part A automatically, with the same backdating. So if you keep contributing right up until you enroll, those last six months of contributions can become excess and have to be undone. The fix is simple: stop funding your HSA at least six months before you sign up for Medicare or file for Social Security.

You can still use your HSA

Losing the ability to contribute doesn’t mean losing the money. The balance stays yours and tax-free for good. You can use it for Medicare premiums — Part B, Part D, and Medicare Advantage all qualify — along with deductibles, copays, and other qualified expenses. The one exception is Medigap premiums, which HSA funds can’t cover. After 65, you can also withdraw for non-medical reasons, paying ordinary income tax but no penalty.

2026 contribution limits

For 2026, you can contribute up to $4,400 for self-only coverage or $8,750 for family coverage, plus an extra $1,000 catch-up contribution once you’re 55 or older. If you’ll enroll in Medicare partway through the year, prorate your contributions for the months you were eligible, and remember to leave room for the six-month lookback.

The most common HSA mistake at 65 is filing for Social Security without realizing it forces Part A enrollment — ending HSA eligibility and clawing back six months of contributions.

Common questions

Medicare and your HSA FAQ

Can I contribute to my HSA if I have Medicare?
No. Enrolling in any part of Medicare, including premium-free Part A, ends your eligibility to contribute. You can still spend the existing balance tax-free on qualified expenses.
What is the six-month HSA rule with Medicare?
When you enroll in Medicare after 65, Part A is backdated up to six months. To avoid excess contributions, stop funding your HSA at least six months before you enroll or claim Social Security.
Can I use HSA money for Medicare premiums?
Yes — HSA funds cover Part B, Part D, and Medicare Advantage premiums tax-free, along with out-of-pocket costs. The exception is Medigap premiums, which don’t qualify.

Ready to compare?

Ready to compare plans for your situation?

Enter your ZIP and we’ll take you to PlanMatch Medicare to compare the 2026 plans available where you live.