HSA and Medicare in 2026: Why Contributions Must Stop at 65, the 6-Month Backdating Rule and the Penalty
Once you enroll in Medicare — including premium-free Part A — you are no longer allowed to put money into a health savings account. The danger is that Medicare Part A can be backdated up to six months, quietly turning past HSA contributions into excess contributions that face a 6 percent excise tax every year.
Watch the explainer on our channel: Problem Solved on YouTube.
Medicare enrollment ends HSA eligibility
An HSA is available only to an “eligible individual”: someone covered by a high-deductible health plan (HDHP), with no disqualifying coverage, not enrolled in Medicare, and not claimable as a dependent. Enrollment in any part of Medicare — including premium-free Part A — ends eligibility immediately. IRS Publication 969 states it bluntly: “Beginning with the first month you are enrolled in Medicare, your contribution limit is zero.” Note that enrollment, not age, is the trigger: turning 65 alone changes nothing if you delay Medicare. But the moment Part A starts, every dollar contributed that month — including your employer’s share — becomes an excess contribution.
The six-month retroactive enrollment rule
When you sign up for Part A after 65, Medicare dates your coverage up to six months before the month you apply — never earlier than the month you turned 65. The intent is kind: no coverage gap. But HSA eligibility is measured month by month, and the IRS treats each retroactive month as a month you were on Medicare. Contributions made during that backdated window — when you believed you were eligible — are retroactively reclassified as excess, even ones you already deducted.
The Social Security trap: automatic enrollment
Claim Social Security retirement benefits at 65 or older and Social Security automatically enrolls you in premium-free Part A, with the same retroactive coverage — there is no way to take Social Security and decline Part A. Delaying Social Security does not delay Medicare either. Anyone drawing Social Security under an employer’s HDHP must stop HSA contributions the month Part A takes effect — or six months earlier, as explained below. For the claiming decision, see: Social Security Retirement Benefits 2026: When to Claim & Maximize.
How to calculate your prorated contribution limit
In the year Medicare starts, your HSA limit is prorated: count each month with qualifying HDHP coverage on the first day of the month and no Medicare enrollment, divide by 12, and multiply by the annual limit. For 2026: $4,400 self-only, $8,750 family, plus a $1,000 catch-up at 55+ if not yet on Medicare (IRS Revenue Procedure 2025-19). Every source — yours, your employer’s — counts toward the same ceiling. See HSA Contribution Limits 2026: the New Caps, Catch-Up Rules at 55 & the Last-Month Rule.
What the mistake costs: a worked example
A 66-year-old worker with self-only HDHP coverage contributes the 2026 maximum of $4,400 evenly through payroll — about $367 a month. In October 2026 she claims Social Security; Part A is backdated six months to April 2026. Her eligible months are January through March only: 3 of 12. Her prorated limit is $4,400 × 3/12 = $1,100. Through October she contributed about $3,667. The excess is $3,667 − $1,100 = $2,567 — no longer deductible, and hit with a 6% excise tax each year it remains: about $154 a year until fixed.
Fixing excess contributions — and the safe plan going forward
Catch it in time: withdraw the excess plus its earnings before your tax filing deadline (including extensions). The 6% excise tax then does not apply; the withdrawn earnings are simply taxable income, reported with the withdrawal on Form 8889. Miss the deadline and you file Form 5329, Part VII, paying 6% of the excess every year it sits uncorrected. Under-contributing in a later year can absorb a carryover excess, but the excise tax applies for every year until it is absorbed.
Going forward, stop all HSA contributions — yours and your employer’s — at least six months before you apply for Medicare Part A or Social Security benefits. The buffer absorbs the maximum retroactive window, so no contribution can be backdated into ineligibility. Coordinate the cutoff with payroll. One nuance: if your 65th birthday falls on the first of a month, Part A starts the first of the preceding month — confirm your exact date with Social Security. Money already in your HSA is untouched: it stays invested, grows tax-free, and can still pay Medicare premiums tax-free. See HSA as a Retirement Account in 2026: the Triple Tax Advantage, Explained.
Key facts
- 2026 HSA limits: $4,400 self-only or $8,750 family HDHP coverage, plus a $1,000 catch-up at 55+ if not on Medicare (IRS Revenue Procedure 2025-19).
- Medicare Part A enrollment after 65 is backdated up to six months from your application month, never earlier than the month you turned 65.
- IRS Publication 969: “Beginning with the first month you are enrolled in Medicare, your contribution limit is zero.”
- Uncorrected excess HSA contributions face a 6% excise tax each year they remain, reported on Form 5329 (26 U.S.C. § 4973).
Who Benefits From This — and Who Does Not
The HSA-to-Medicare transition punishes one mistake above all: contributing during months Medicare later backdates. The six-month buffer is the whole strategy — it protects people who plan the cutoff, and it cannot help people who discover the problem after the fact.
Who benefits
- Workers past 65 who delay both Medicare and Social Security under an employer HDHP: Turning 65 alone changes nothing — enrollment, not age, is the trigger — so contributions can continue while you keep working under a qualifying HDHP and delay both programs.
- Workers who stop all contributions six months before applying: Stopping yours and your employer's contributions at least six months before you apply for Part A or Social Security absorbs the maximum retroactive window, so no contribution can be backdated into ineligibility.
- Anyone holding an existing HSA balance at retirement: Money already in the HSA is untouched — it stays invested, grows tax-free, and can still pay Medicare premiums tax-free; only new contributions must stop.
Who does not benefit
- Anyone enrolled in any part of Medicare, including premium-free Part A: From the first month of Medicare enrollment your contribution limit is zero, and every dollar contributed that month — including your employer's share — becomes an excess contribution.
- Social Security claimants at 65 or older: Claiming Social Security retirement benefits automatically enrolls you in premium-free Part A with the same retroactive coverage — there is no way to take Social Security and decline Part A.
- Workers who already contributed through a backdated window: In the article's worked example, a 66-year-old who contributed about $3,667 through October against a prorated limit of $1,100 faces a $2,567 excess, hit with a 6% excise tax each year it remains unless withdrawn with its earnings before the filing deadline.
For the caps and catch-up rules behind the prorated limit, see HSA Contribution Limits 2026: the New Caps, Catch-Up Rules at 55 & the Last-Month Rule.
Frequently asked questions
Do I have to stop HSA contributions when I turn 65?
Not automatically — enrolling in Medicare, including premium-free Part A, is what ends eligibility. If you keep working past 65 and delay both Medicare and Social Security under a qualifying employer HDHP, contributions can continue; confirm your Part A start date with Social Security or your State Health Insurance Assistance Program (SHIP).
Why do advisors say to stop six months before applying for Medicare?
Because Part A can be backdated up to six months from your application month, and the IRS treats each retroactive month as a month on Medicare. Stopping all contributions six months early absorbs the maximum window, so none can be reclassified as excess.
What happens to the money already in my HSA?
It stays yours — invested, growing tax-free, and spendable tax-free on qualified medical expenses, including Medicare premiums. Only new contributions must stop.
How do I fix excess contributions I already made?
Withdraw the excess plus its earnings before your tax filing deadline (including extensions) and report it on Form 8889; the earnings are taxable income and the 6% excise tax does not apply. Miss the deadline and you file Form 5329, Part VII, paying 6% for every year it remains.
Who benefits from stopping HSA contributions six months early — and who cannot contribute at all?
Stopping six months early benefits anyone planning to apply for Medicare Part A or Social Security after 65 while still on an employer HDHP: the buffer absorbs the maximum six-month retroactive window, so no contribution can be reclassified as excess. You cannot contribute at all once enrolled in any part of Medicare — including premium-free Part A — and claiming Social Security at 65 or older auto-enrolls you in Part A, so that group must stop, not pause.
How do I start the six-month HSA cutoff in practice?
Coordinate the cutoff with payroll: stop all contributions — yours and your employer's — at least six months before you apply for Medicare Part A or Social Security benefits. Confirm your exact Part A start date with Social Security first, since if your 65th birthday falls on the first of a month, Part A starts the first of the preceding month. Money already in the HSA stays yours and can still pay Medicare premiums tax-free.
Disclaimer: This article is general information only and is not tax/financial advice. Consult a qualified professional about your situation.