Enrolling in Medicare — even Part A — stops your HSA contributions and can trigger a retroactive cut-off.
Last updated: March 2026
If maximizing HSA contributions is a priority, you may want to delay all parts of Medicare — including Part A. Enrolling in any part of Medicare ends your HSA contribution eligibility. Part A can be retroactive up to 6 months, so stop contributing 6 months before you plan to enroll.
Use the Medicare Intake tool to check your own Medicare status based on Medicare.gov rules.
IRS rules prohibit HSA contributions once you have any Medicare coverage — including Part A. Since Part A is retroactive up to 6 months when you apply, you must stop HSA contributions at least 6 months before enrolling in Medicare or starting Social Security. If you're working past 65 with employer coverage (20+ employees), you can delay all of Medicare and keep contributing. But if you start Social Security at 65, Part A is automatic and retroactive — your HSA window closes.
If you enroll in Part A (or Social Security, which triggers Part A) while still contributing to your HSA, you could face IRS penalties for excess contributions. Part A can be retroactive up to 6 months, creating excess contributions even for months before you thought Medicare started.