If you have been building a Health Savings Account for years, the intersection of HSAs and Medicare is one of the most underappreciated planning traps in personal finance. The rules are not obvious, the retroactive enrollment problem catches people completely off guard, and making the wrong decision can result in IRS penalties on HSA contributions you thought were legal. Understanding this before you turn 65 can save you from an expensive mistake.
The retroactive enrollment problem trips up higher earners who have been maximizing HSA contributions right up to 65. They enroll in Medicare in October, Medicare makes Part A retroactive to April, and suddenly six months of HSA contributions are excess contributions subject to a 6% IRS penalty. If you are still contributing to an HSA and approaching 65, we need to talk about this at least six months before your birthday.
Why Medicare and HSA contributions conflict
To contribute to a Health Savings Account, you must be enrolled in a High-Deductible Health Plan and have no other disqualifying coverage. Medicare is disqualifying coverage. The moment you enroll in any part of Medicare, Part A, Part B, or Part C, you become ineligible to make new HSA contributions. This applies even if you are also covered by an employer HDHP. The month your Medicare begins, your HSA contribution eligibility ends.
The Part A automatic enrollment trap
Here is where many people get surprised. If you are receiving Social Security retirement benefits when you turn 65, you are automatically enrolled in Medicare Part A, even if you did not request it and would prefer to delay. You cannot refuse Part A while collecting Social Security benefits. This means anyone claiming Social Security before or at 65 automatically loses HSA contribution eligibility at 65, often without realizing it.
The retroactive enrollment problem
When you enroll in Medicare Part A at 65 without having been on Social Security, SSA can make Part A retroactive for up to six months. If you enroll in Part A at 67, Medicare may make your Part A effective at 66 and a half. Any HSA contributions made during those retroactive months become excess contributions subject to an IRS excise tax of 6% per year until corrected. This is one of the most commonly overlooked Medicare planning mistakes for people who delay enrollment.
How to keep contributing longer
If you want to continue making HSA contributions past 65, you must delay both Social Security AND Medicare Part A. If you are still working and covered by an employer-sponsored group health plan with 20 or more employees, you can delay Part A without penalty. In this scenario, do not enroll in Medicare at 65. Continue working, continue contributing to your HSA, and enroll in Medicare only when your active employment coverage ends. Make sure to stop HSA contributions at least six months before you plan to enroll in Medicare to account for the retroactive enrollment window.
Still working at 65 and navigating HSA and Medicare timing?
The interaction between HSA contributions, Medicare enrollment timing, and Social Security claiming is one of the trickier planning problems I help people work through. Let us talk through your specific situation.
Book a Free CallWhat you can still do with your existing HSA
Enrolling in Medicare does not affect your existing HSA balance. You simply cannot make new contributions. Your accumulated funds remain available for qualified medical expenses at any time, tax-free. Medicare premiums count as qualified medical expenses for HSA purposes, including Part B premiums, Part D premiums, Medicare Advantage premiums, and long-term care insurance premiums up to IRS limits. Using your HSA to pay Medicare premiums is a highly tax-efficient strategy that many retirees overlook.
The six-month pre-enrollment planning window
Financial planners commonly recommend stopping HSA contributions six months before you plan to enroll in Medicare to create a buffer against retroactive enrollment. If your Part A is made retroactive for any portion of those six months and you had stopped contributions, you avoid the excess contribution problem entirely. Coordinate this timing with your employer if your HSA contributions are made through payroll deduction.