Skip to content
RetirementFAQs
Question Updated 2026

Can I contribute to my HSA after enrolling in Medicare?

The day you enroll in any part of Medicare, your HSA contributions must stop, but the money you already saved keeps its tax-free superpowers for life.

Medicare HSA

What happens to your health savings account the day Medicare starts? You can’t put another dollar in, but everything already in there stays one of the best tax shelters you own. The trick is knowing exactly when contributions have to stop, because getting that wrong triggers a penalty.

The hard line: enrollment ends contributions

A health savings account, or HSA, is the only account that’s triple tax-free: deductible going in, tax-free growth, and tax-free out for qualified medical costs. To contribute, you have to be covered by a high-deductible health plan and have no other disqualifying coverage. Medicare is disqualifying coverage. The month you enroll in any part of Medicare, including just Part A, your eligibility to contribute ends.

For 2026, the contribution limits are $4,400 for self-only coverage and $8,750 for family coverage, plus a $1,000 catch-up at 55 and older. If you enroll mid-year, your limit is prorated to the months before Medicare started. Overfund past that and the excess gets hit with a tax penalty.

The six-month trap

Here’s the part that quietly burns people. When you claim Social Security after 65, Part A enrollment is backdated up to six months. So even if you sign up for Medicare in, say, July, the IRS may treat you as covered since January. Any HSA contributions you made in those backdated months become excess contributions.

The fix is simple once you know it: stop HSA contributions at least six months before you start Social Security or Medicare. People who miss this rule do everything right except the timing, and the timing is the whole thing.

What you can still do with the balance

Losing the ability to contribute is not the same as losing the account. Far from it. The balance keeps growing tax-free, and you can keep spending it tax-free on qualified medical costs for the rest of your life. After 65, you can even pull money out for non-medical reasons and just pay ordinary income tax, the same treatment as a traditional IRA, with no penalty.

Better still, an HSA can pay your Medicare premiums. Part B, Part D, and Medicare Advantage premiums are qualified HSA expenses, which means you can reimburse them tax-free from the account. Medigap premiums are the exception, those don’t qualify. So the HSA you built before 65 becomes a dedicated, tax-free pool to cover Medicare costs in retirement.

For the saver who maxed it out

If you treated your HSA as a stealth retirement account, never spending it, letting it compound, you’re sitting on a uniquely valuable asset. Spend it on healthcare and premiums and every dollar is tax-free. That’s better treatment than your IRA or your Roth gets on the same expense.

So the day Medicare starts, change one habit: stop the deposits. Keep everything else. The account you stop feeding is the one you’ll be glad you fed.

Related questions

Still have questions?

Join the community to ask directly, or see if a one-on-one planning call is a fit.