Medicare HSA Rules: When to Stop Contributing and How to Avoid the Tax Penalty
Medicare HSA Rules: When to Stop Contributing and How to Avoid the Tax Penalty
The day you enroll in any part of Medicare — including premium-free Part A — your eligibility to contribute to a Health Savings Account ends. Not next month. Not at the end of the calendar year. Retroactively, potentially six months into the past.
This HSA-Medicare collision catches thousands of workers over 65 every year because the rules create a hidden retroactive window that turns legal contributions into taxable excess contributions overnight.
The Core Rule: Medicare Kills HSA Eligibility
Under IRS rules (Internal Revenue Code Section 223), you must be enrolled in a high-deductible health plan (HDHP) and not be entitled to Medicare to make or receive HSA contributions. "Entitled to" means enrolled in any part of Medicare, including Part A.
For most workers, this is straightforward: once you sign up for Medicare, stop contributing to your HSA. The complication arises when Part A enrollment reaches backward in time.
The 6-Month Backdating Trap
If you apply for premium-free Part A after age 65 — which happens automatically for anyone filing for Social Security retirement benefits — the government backdates your coverage up to 6 months. You don't get a choice in this. It's automatic.
Here's what that means in practice:
You're 66. You retire in September 2026 and apply for Part A. Medicare automatically backdates your Part A coverage to March 2026. Every HSA contribution you made from March through September is now retroactively classified as an excess contribution.
The 2026 IRS contribution limits are $4,400 for self-only HDHP coverage and $8,750 for family coverage, plus a $1,000 catch-up for those 55 and older. If you maxed out your contributions throughout the year, six months of those deposits just became a tax problem.
The Penalty: 6% Excise Tax
Under IRS Code Section 4973, excess HSA contributions are hit with a 6% excise tax per year for every year they remain in the account. This isn't a one-time penalty — it compounds annually until you withdraw the excess.
For someone who contributed $5,400 (including the catch-up) and had 6 months retroactively disqualified, the excess is $2,700. That's $162 per year in penalty taxes until corrected.
Free Download
Get the Medicare Enrollment Guide: When and How to Sign Up — Quick-Start Checklist
Everything in this article as a printable checklist — plus action plans and reference guides you can start using today.
How to Fix Excess Contributions
You have until your federal tax filing deadline (typically April 15 of the following year) to fix the problem:
- Contact your HSA trustee and request an administrative withdrawal of the excess contributions
- Include any net earnings attributable to those excess contributions in the withdrawal
- Report the withdrawn earnings as taxable income on your federal return
- Do not claim a deduction for the withdrawn excess contributions
If you miss the tax filing deadline, the 6% excise tax applies for that year, and you'll need to withdraw the excess before the next filing deadline to stop it from compounding.
The Strategy: Timing Your Enrollment
If you're working past 65 with an HDHP and want to keep contributing to your HSA, here's the approach:
Do not enroll in Part A. Even though premium-free Part A costs nothing, enrolling triggers the backdating problem. Delay Part A until you're ready to stop HSA contributions.
Do not file for Social Security retirement benefits. Filing for Social Security at or after 65 automatically enrolls you in Part A. If you want to keep your HSA active, delay Social Security as well.
Stop HSA contributions 6 months before you plan to enroll in Part A. This creates a clean buffer so that when Part A backdates 6 months, it doesn't overlap with any contribution period.
Time your enrollment for January or July. Stopping contributions at the end of June and enrolling in Part A in January of the following year gives you a full 6-month gap with no contributions to claw back.
The OBBBA Expansion Doesn't Change This
The One, Big, Beautiful Bill Act (OBBBA), signed July 4, 2025, expanded HSA-compatible plan options — bronze and catastrophic Exchange plans now qualify as HDHPs starting January 1, 2026, and telehealth services can be covered before meeting the deductible without disqualifying the plan.
None of this changes the Medicare prohibition. The moment Medicare Part A activates, HSA contribution eligibility ends regardless of what type of HDHP you have.
Get the Complete Enrollment Toolkit
The Medicare Enrollment Guide includes an HSA coordination worksheet that maps your exact stop-contributing date against your planned Part A enrollment date, plus the full employer-to-Medicare transition timeline with CMS-L564, penalty calculators, and coverage gap prevention checklists.
Get Your Free Medicare Enrollment Guide: When and How to Sign Up — Quick-Start Checklist
Download the Medicare Enrollment Guide: When and How to Sign Up — Quick-Start Checklist — a printable guide with checklists, scripts, and action plans you can start using today.