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.

Bryce Casson
Bryce's Take

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 Call

What 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.

Frequently asked questions

Can I use my existing HSA after enrolling in Medicare?
Yes, absolutely. Enrolling in Medicare ends your ability to make new contributions but does not affect your existing balance. You can continue using accumulated HSA funds for qualified medical expenses indefinitely, including Medicare premiums.
What happens if I accidentally make HSA contributions after enrolling in Medicare?
Excess contributions are subject to a 6% excise tax for each year they remain in the account. To correct the mistake, you must withdraw the excess contributions plus any earnings before the tax filing deadline for that year. Consult a tax professional if you discover excess contributions.
Can my spouse continue contributing to their HSA if I enroll in Medicare?
Yes. Your Medicare enrollment affects only your own HSA eligibility. If your spouse has their own HSA-eligible HDHP and is not enrolled in Medicare, they can continue contributing to their own HSA. Your Medicare enrollment does not disqualify them.
If I delay Medicare Part A, what is my risk?
Delaying Part A while covered by qualifying employer coverage carries no penalty. However, if you delay Part A without qualifying coverage, you face a late enrollment penalty of 10% of the premium for twice the number of years you delayed, and you lose the free Part A most people receive. Only delay Part A if you have qualifying employer coverage through active employment.
Bryce Casson
Bryce Casson
Licensed Independent Medicare Broker

Bryce Casson is an independent Medicare insurance broker who works with every major carrier. He does not represent any single insurer, which means his recommendations are based on what actually fits each client's situation, not on commissions or quotas.