HSA-to-Medicare Transition Planning
Enrolling in Medicare ends your HSA contributions, and Part A can backdate six months, creating a trap. The fix is to stop contributing before the enrollment clock catches you.
What happens to the best tax shelter in the code the day you sign up for Medicare? It stops, and if you time it wrong it bites you backward. A health savings account is the only account that’s triple tax-advantaged: deductible going in, tax-free growth, and tax-free out for medical costs. Medicare enrollment ends new contributions, and a quirk in how Medicare Part A backdates can disqualify contributions you already made. This is a small trap that catches people who work past 65, and it’s entirely avoidable.
The triple advantage you’re protecting
An HSA earns its reputation. For 2026 the contribution limit is $4,400 for self-only coverage and $8,750 for family, plus a $1,000 catch-up at 55. Money goes in pre-tax, grows untaxed, and comes out untaxed for qualified medical expenses at any age. No other account does all three. The strategy for affluent savers is to fund it, not spend it, pay current medical costs out of pocket, and let the HSA compound for decades as a stealth retirement medical fund. By the time you’re on Medicare, a well-fed HSA can hold a large tax-free balance earmarked for the healthcare costs that are coming.
The six-month backdate trap
Here’s the rule that surprises people. You can only contribute to an HSA while you’re covered by a qualifying high-deductible health plan and not enrolled in any part of Medicare. The moment you enroll in Medicare, even just premium-free Part A, HSA contributions must stop. The trap is that when you enroll in Medicare after 65, Part A coverage backdates up to six months. So if you keep contributing right up to your enrollment date, those last six months of contributions can become ineligible after the fact, triggering a 6% excise tax until you pull them out.
The people who hit this are the ones working past 65 with employer coverage, who delay Medicare and keep funding the HSA, then enroll later and discover the backdate clawed back half a year. The fix is simple once you know it: stop HSA contributions at least six months before you enroll in Medicare or claim Social Security, since claiming Social Security at or after 65 automatically enrolls you in Part A. Plan the stop date backward from the enrollment date, not forward from a guess.
The transition checklist
The clean handoff comes down to a few timed steps:
- Stop HSA contributions at least six months before Medicare enrollment, and earlier if you’ll claim Social Security after 65, since that forces Part A.
- Prorate your final-year contribution if you enroll mid-year, so you only contribute for the months you were eligible.
- Keep the HSA open after enrollment. You can’t add to it, but you can still spend it tax-free, and now you can use it for Medicare premiums Parts B and D, which become a qualified expense once you’re 65.
The spend-down most people get wrong
After 65 the HSA also loosens up. Withdrawals for non-medical reasons stop carrying the 20% penalty and are simply taxed as ordinary income, like a traditional IRA. So a large HSA gives you options: spend it tax-free on the Medicare premiums and out-of-pocket costs that are guaranteed to come, or treat the surplus like another IRA. The one rule to remember is that you cannot use HSA dollars tax-free to pay a Medigap premium, even though Part B and Part D premiums qualify.
If your accounts are large
For households with $3M or more, the HSA is too small to move the needle on its own, but it’s a uniquely efficient sleeve, and the transition is where people waste it. The mistake is reimbursing decades of saved medical receipts in a high-income year, spiking MAGI and risking an IRMAA surcharge. Better to spread tax-free HSA reimbursements across years, or aim them at the Medicare premiums you’ll owe anyway. And coordinate the contribution stop with any Roth conversion plan, because both compete for the same low-income window before RMDs.
The HSA is the most tax-advantaged account you own, and the day you enroll in Medicare is the day it changes character. Time the stop six months ahead of the enrollment clock and the trap never closes on you. For the rules once you’re enrolled, see HSA rules after Medicare enrollment.
Related questions
Still have questions?
Join the community to ask directly, or see if a one-on-one planning call is a fit.