← Back to Countries
πŸ‡ΊπŸ‡Έ United States  Β·  6 min read  Β·  Published 2026-09-07  Β·  Updated 2026-09-07
Sources last verified: 2026-09-07

Medicare Ends HSA Contributions, Sometimes Retroactively

An HSA is the most tax-favoured account in the American system, and the instinct to keep funding it as long as possible is a sound one. But eligibility ends the month Medicare begins, and Medicare can begin before you signed up for it β€” Part A is commonly backdated up to six months. Contributions made in those retroactive months were never allowed, and the error surfaces long after it is made.

60-SECOND ANSWER
You cannot contribute to an HSA for any month you are enrolled in Medicare. Because Part A coverage is often backdated up to six months when you enrol after 65, contributions made in that window become excess and must be withdrawn.

Where the AI summary above gets this wrong

"You can keep contributing to your HSA as long as you are still working and covered by a high-deductible health plan."

That's surface-true. Here's what it misses:

β†’ See what the overlap months actually cost

01 The eligibility rule, and what it does not touch

To contribute to an HSA in a given month you must be covered by a qualifying high-deductible health plan and have no other disqualifying coverage. Medicare is disqualifying coverage. From the month your Medicare begins, in any part, you can no longer contribute.

What this does not do is touch the balance. Money already in the account stays there, keeps its tax treatment, and can be spent tax-free on qualified medical expenses indefinitely. After 65 it can also be withdrawn for anything at all, taxed as ordinary income with no penalty β€” so the account remains useful long after the last contribution.

It is also worth knowing that Medicare premiums are themselves a qualified expense. Part B and Part D premiums can be paid from the HSA tax-free, which is often the most efficient use of the balance in the years that follow.

Source: Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans

02 Where the six months comes from

If you enrol in Medicare after your initial enrolment period β€” which is what people working past 65 typically do β€” Part A coverage is generally made effective retroactively, up to six months before the month you apply, and no earlier than the month you turned 65.

The backdating is meant as a kindness, giving coverage for care already received. Its side effect is that six months of apparently ordinary HSA contributions are reclassified as ineligible after the fact. Nothing warns you at the time, because at the time nothing is wrong.

The same mechanism catches people through Social Security. Claiming benefits at or after 65 enrols you in Part A automatically. Someone who deliberately deferred Medicare to keep contributing, then claimed benefits, has enrolled without intending to β€” which is one more reason the claiming decision reaches further than the benefit itself.

Source: About Form 5329, Additional Taxes on Qualified Plans

03 Unwinding an excess, and timing the stop

An excess contribution is not a disaster if caught. Withdraw the excess amount together with the earnings attributable to it before the due date of your return, including extensions, and the 6% excise is avoided. The earnings come out as taxable income; the contribution itself was never deductible.

Leave it in place and the 6% applies for each year the excess remains, reported on Form 5329. It is not a one-off charge, which is what makes an unnoticed excess expensive over several years.

Prevention is simply arithmetic. Decide the month you intend to enrol or to claim Social Security, count back six months, and stop contributing then. If you contribute through payroll, the instruction has to reach your employer in time β€” a deduction that runs one cycle too long is the most common way this happens at all.

WORKED EXAMPLE β€” Try the numbers

Shows: what contributions made during the retroactive Medicare period cost if they are not withdrawn β€” income tax on amounts that were never deductible, plus the 6% excise. Ignores: earnings on the excess, which must also come out, and that the excise repeats each year the excess stays.

Tax and excise on the excess, if left uncorrected
$1,260
6 months at $700 leaves $4,200 of excess β€” about $1,260 in tax and excise, and the 6% repeats every year it stays in the account.

Source: Publication 502, Medical and Dental Expenses

This one is almost purely administrative, which is why it catches careful people. Nobody makes a bad judgement here β€” they make a correct contribution in March and it becomes an incorrect one in September, because a form they filed reached back and changed the past. If you are over 65 and still contributing, the only question worth asking is when you expect to enrol or claim, and then stopping six months before that. It is a calendar problem wearing the costume of a tax problem.

β€” Jordan Reeves, founder

FAQ

Can I contribute to an HSA after enrolling in Medicare?

No. From the month your Medicare coverage begins, in any part, you are no longer eligible to contribute. The existing balance is unaffected and can still be spent tax-free on qualified expenses, including Medicare Part B and Part D premiums.

Why are my contributions an excess if I only just enrolled?

Because Part A is generally backdated up to six months when you enrol after your initial enrolment period. Those retroactive months become ineligible after the fact, which turns contributions that were correct when made into excess contributions.

How do I fix an excess HSA contribution?

Withdraw the excess and the earnings attributable to it before your return's due date, including extensions, and the 6% excise is avoided. If it stays in the account, the 6% applies for each year it remains and is reported on Form 5329.

Sources

Regulator references

Calculator unit tests Β· the assertions this page's worked example is checked against, and their last result

Changelog

Run this rule against your situation

See what this rule does to your own projection β€” month by month, to age 90.

Join the Waitlist
Jordan Reeves

Jordan Reeves

Founder of Talk Through Wealth. A software engineer for over a decade before turning to retirement planning, Jordan built the projection engine after watching family members get fragmented, country-by-country advice that never reconciled. He writes about retirement the way the engine computes it: month-by-month, lifetime-long, and skeptical of any rule of thumb that hasn't been run through the math.

More from Jordan β†’ Β· LinkedIn

Disclaimer: General information for US residents, not personal financial advice. Figures use 2026 IRS rules and assumptions you can change in the worked example. Your situation may vary β€” consider speaking with a licensed financial adviser before acting.