Many people keep working past 65, stay on an HSA-qualified plan, and delay Medicare to keep contributing to their HSA. That strategy can work—until they apply for Medicare or start Social Security. When they do, Medicare Part A can start retroactively for up to six months (but not earlier than the month they turned 65). If someone is already receiving Social Security, Part A starts automatically at 65. Either way, the retroactive start date can make recent HSA contributions excess and trigger cleanup steps. (Source: Centers for Medicare & Medicaid Services)

Why retroactive Part A matters for HSAs

Under IRS rules, **once you’re enrolled in any part of Medicare, your HSA contribution limit is zero—**and that applies to any months of retroactive Part A coverage. Contributions made for those months become excess contributions under the HSA rules. (Source: IRS)

What counts as “retroactive” in practice?

If someone files for Medicare (or Social Security) more than six months after turning 65, Medicare will generally backdate Part A six months from the month the application is submitted (again, not earlier than the first month they were eligible at 65). Those backdated months are not HSA-eligible months. (Source: Centers for Medicare & Medicaid Services)

How to fix excess HSA contributions (and avoid the 6% excise tax)

Excess HSA contributions can be corrected if the account holder:

  1. Withdraws the excess contributions by the tax filing deadline for the year in question (including extensions), and

  2. Also withdraws the earnings on those excess amounts (the earnings are taxable in the year withdrawn).
    Failing to correct on time generally triggers a 6% excise tax each year the excess remains. (Report on Form 8889; the custodian will issue a 1099-SA showing the corrective distribution.) (Source: IRS)

Practical examples (use these in client meetings)

Example A: Filing at 67 (full 6-month backdate)

  • Facts: Maria turns 65 in July 2023, keeps contributing to her HSA in 2024–2025 while working. She files for Social Security and Medicare in January 2025.

  • Result: Part A backdates six months to July 1, 2024. Maria’s HSA contributions for July–December 2024 are excess and must be removed with earnings by her 2024 tax deadline (including extension) to avoid the 6% excise. Contributions for 2025 must stop as of January 2025 (the month she filed), and any amounts made for January (or later) would also be excess. (Source: Centers for Medicare & Medicaid Services)

Example B: Filing within 6 months of 65 (short backdate)

  • Facts: David turns 65 in April 2025 and files for Part A in August 2025 while still on an HSA-qualified plan.

  • Result: Part A backdates to April 1, 2025. David must treat HSA contributions for April–August 2025 as excess and correct them by his 2025 tax deadline (including extension). (Source: IRS)

Timing tips agents should give clients

  • Stop early: If a client plans to file for Social Security or Medicare, advise them to stop HSA contributions up to six months before the month they’ll submit the application—so there are no contributions in months that might be backdated. (Source: Centers for Medicare & Medicaid Services)

  • Spousal nuance: If one spouse enrolls in Medicare but both are covered by family HDHP, the Medicare-enrolled spouse must stop contributing, but the other spouse (if otherwise eligible) can contribute—up to the family limit, allocated across their own HSA(s) per IRS married-couple rules.

  • Last-month rule caution: Don’t rely on the December “last-month rule” in a year when Medicare enrollment is coming. If the client fails the testing period (because they become Medicare-enrolled), they may have to recapture part of the contribution and pay an additional 10% tax.

Employer communication checklist (use in OE packets)

  • “If you’re nearing 65 and plan to apply for Social Security or Medicare, talk to HR/your advisor about your HSA timeline.”

  • “Contributions made during retroactive Part A months are excess—you’ll need to work with your HSA custodian to remove them by the tax deadline (including extensions).” (Source: IRS)

  • “If your spouse enrolls in Medicare but you stay HSA-eligible under family HDHP, confirm who can still contribute and how much.” (Source: IRS)

Bottom line

Medicare’s six-month Part A backdating is easy to overlook and can quietly turn “perfectly normal” HSA contributions into excess amounts that must be corrected. Planning the application date and stopping contributions on time (or re-allocating to a spouse) keeps clients out of trouble—and preserves the tax benefit they’ve worked hard to build.


Sources for advisors:

  • CMS: Automatic Part A at 65 for those on Social Security; Part A retroactive up to 6 months when filing late.

  • IRS Pub. 969: Medicare enrollment makes the HSA contribution limit zero, including retroactive months; how excess contributions work and the tax-deadline (with extensions) fix; married-couple contribution rules; last-month rule and testing period.