Last reviewed: September 30, 2026.
Direct answer: Medicare.gov says you and your employer should stop HSA contributions six months before you retire or apply for Social Security benefits, because Part A can be retroactive and extra contributions can create a tax problem. After you are enrolled in Medicare, new HSA contributions are generally not allowed. Existing HSA funds can still be used under IRS Publication 969 rules. Confirm contribution eligibility with a tax professional.
Why does Medicare enrollment stop new contributions?
HSA contribution eligibility is an IRS rule, not a carrier extra. IRS Publication 969 is the reference for who may contribute. Medicare is disqualifying coverage for HSA contributions once you are enrolled. Part A is still Medicare even when you pay no Part A premium. That is why people who delay Part B but take Part A can still lose HSA contribution eligibility. For 2026 rules that treat certain Exchange Bronze and catastrophic plans as HSA-compatible, see 2026 HSA rule changes already in effect (separate from Medicare enrollment timing).
Why does Medicare.gov mention six months?
| When | What to do |
|---|---|
| 6 months before you plan to retire or apply for Social Security | Stop your and your employer's HSA contributions. Premium-free Part A can be backdated up to 6 months (Medicare.gov) |
| Month Medicare Part A starts | No new HSA contributions from this month on |
| After Medicare starts | You can still spend existing HSA money on qualified medical expenses, including Part B, Part D and Medicare Advantage premiums (not Medigap premiums), per IRS Publication 969 |
Ask payroll to stop employer deposits too, because they count toward the same limit.
The working past 65 page says to stop contributions six months before you retire or apply for Social Security or Railroad Retirement Board benefits. Part A can be retroactive. Contributions made for months you were actually enrolled in Medicare can create a tax issue. This is a timing warning, not a contribution-limit table. Use current IRS instructions for any dollar limits, which change by year.
Can I spend HSA money after I go on Medicare?
Publication 969 describes qualified medical expenses. After you enroll in Medicare, you generally may still use existing HSA funds for qualified expenses, including some Medicare premiums in situations the IRS lists. Do not spend HSA money on non-qualified items without checking the publication. A tax professional should review your case.
What if I am still working with an HSA plan at 65?
Ask the employer whether you can stay on the HSA-eligible group plan without Medicare enrollment, and whether the employer will continue contributing. Then compare that advice with Medicare.gov and IRS rules. See signing up while still working and Part B with employer insurance. Marketplace HSA-eligible plans are a separate product; they do not change Medicare contribution rules once Medicare starts.
Common questions
Can I keep contributing to an HSA after Part A starts?
Generally no. Medicare enrollment, including premium-free Part A, typically ends eligibility to make new HSA contributions. Confirm with IRS Publication 969 and a tax professional.
Can I still use the money already in the HSA?
Existing funds can generally be used for qualified medical expenses under IRS rules, including some Medicare-related expenses the IRS lists. Check Publication 969.
Can I use my HSA to pay Medicare premiums?
Yes, for Part B, Part D and Medicare Advantage premiums once you are 65 or older, according to IRS Publication 969. Medigap premiums are not a qualified HSA expense.
What to do next
If Medicare is approaching, ask payroll when employer HSA deposits will stop and talk with a tax professional before Social Security filing. David Huff, a licensed Florida health agent, can review health coverage timing. He does not prepare tax returns. Call (863) 640-3102 or use Get Help.
Align HSA deposits with Medicare enrollment months
Bring the HSA plan type and your expected Social Security or retirement month. This review is not tax advice.
Request a Plan Review Call (863) 640-3102Sources
HSA contribution eligibility is an IRS determination. This page is educational and is not tax advice. It is not connected with or endorsed by the U.S. government or the federal Medicare program.