Medicare and your HSA: the rule that surprises people who keep working
Working past 65 on a high-deductible plan is exactly when an HSA is most valuable. It is also when Medicare’s retroactive Part A can quietly turn six months of contributions into penalized excess.

The sequence that causes the problem
You turn 65 in March, keep working with employer coverage and an HSA, and contribute all year. In November you decide to claim Social Security. Claiming Social Security enrolls you in Part A automatically, and Part A is backdated six months, to May. Under IRS Publication 969 you were not HSA-eligible from May onward, so the May-to-December contributions are excess. Nobody sends a warning; you find out at tax time.
Three clean ways to handle it
Enroll at 65 and stop
Take Part A (and decide on Part B) during your Initial Enrollment Period. Stop contributions the month before your birthday month; prorate the year’s limit by eligible months.
Delay everything and keep contributing
Delay Part A and Part B on current employer coverage (20+ employees) and do not claim Social Security. Contributions continue. Plan the stop date six months before you intend to enroll.
Fix an excess before the deadline
Withdraw the excess contributions (plus earnings) before the tax-filing deadline for that year, including extensions, and the 6% excise tax does not apply.
Proration, with numbers
The 2026 HSA limit for family coverage is $8,750 plus a $1,000 catch-up at 55 or older, $9,750 total. Eligible for five months (January through May) before a June Part A start: 5/12 of $9,750 is $4,062.50, the most you may contribute for the year. Contribute the full $9,750 and $5,687.50 is excess. (Confirm the year’s limits in IRS Rev. Proc. 2025-19 or the current Publication 969.)
What the HSA is still good for after 65
Everything except new contributions. Medicare premiums for Parts B, D, and Advantage are qualified expenses; so are dental, vision, hearing, long-term-care insurance premiums up to the age-based limit, and any deductible or copay. Medigap premiums are the notable exception. After 65, non-medical withdrawals lose the 20% penalty and are simply taxed as income, which makes a large HSA behave like a traditional IRA with a medical bonus.
HSA questions, answered
Can I contribute to an HSA after 65?
Only if you are not enrolled in any part of Medicare. If you delay both Part A and Part B because of current employer coverage and stay on a qualifying high-deductible plan, contributions can continue. The moment Part A starts, they must stop.
Why does Part A backdate?
When you enroll in Part A after your Initial Enrollment Period, coverage is retroactive up to six months (but not before the month you turned 65). IRS rules treat you as covered for those months, so contributions made for them are excess and subject to a 6% excise tax each year until withdrawn.
When exactly should I stop contributing?
Six months before the month you apply for Medicare or Social Security, or before your 65th birthday month if applying at 65. Your annual limit is prorated by the months you were eligible.
Can I still spend the HSA after Medicare starts?
Yes. Withdrawals for qualified expenses, including Medicare Part B, Part D, and Advantage premiums (but not Medigap premiums), stay tax-free for life. Only new contributions end.
Do the math

Talk it through before you decide
Bring your birth date, your work situation, and last year’s tax return. Leave knowing your enrollment window, what Medicare will cost you, and whether the income surcharge applies.
- No-cost, no-obligation consultation
- Statewide by phone or video
- Education first — no plans sold here
Request your no-cost consultation
Tell us how to reach you — we follow up within one business day.