Health Savings Accounts are one of the most tax-advantaged savings vehicles available to Americans — pre-tax contributions, tax-free growth, and tax-free withdrawals for qualified medical expenses. But the HSA and Medicare do not coexist well when it comes to contributions. The moment you enroll in any part of Medicare, your eligibility to make new HSA contributions ends. For many Florida workers who plan to keep working past 65, this creates a planning challenge — and one poorly understood rule called the 6-month retroactive Part A enrollment trap causes surprise excess contributions every year. This guide explains the rules in full, including how to manage partial-year contributions, how to avoid the retroactive enrollment trap, and how to make the most of accumulated HSA funds in retirement.
In This Guide
To contribute to an HSA, you must be enrolled in a qualified High-Deductible Health Plan (HDHP) and must NOT be enrolled in any disqualifying coverage. Medicare — any part of it, including Part A, Part B, or a Medicare Advantage plan — counts as disqualifying coverage. This is true even if you don't pay a premium for Medicare Part A (which is premium-free for most people who worked 40+ quarters).
The rule is simple: the month your Medicare coverage begins, your ability to contribute to an HSA ends. For the months before that in the same calendar year, contributions are still allowed on a pro-rated basis.
This is the most dangerous HSA-Medicare interaction and one that catches thousands of near-retirees by surprise every year. Here's how it works:
When you apply for Social Security retirement benefits, Medicare Part A is automatically enrolled — and if you are already past age 65 at the time you apply, Part A is enrolled retroactively for up to 6 months. Social Security can only back-date Part A by 6 months, so the retroactive window is capped at half a year.
Example: You turn 65 in January 2024 but keep working and delay both Social Security and Medicare. In July 2026, at age 67.5, you apply for Social Security. Medicare Part A is enrolled retroactively to January 2026 — 6 months before your July application. Any HSA contributions you made from January through June 2026 are now excess contributions because Part A coverage applied during those months retroactively.
In the calendar year you enroll in Medicare, you are entitled to make pro-rated HSA contributions for only the months you were HSA-eligible (i.e., covered by an HDHP and not on Medicare). The calculation is straightforward:
| Scenario | 2026 Self-Only Limit | Eligible Months | Maximum Contribution |
|---|---|---|---|
| Medicare starts January (age 65) | $4,300 | 0 | $0 |
| Medicare starts April | $4,300 | 3 (Jan–Mar) | $1,075 |
| Medicare starts July | $4,300 | 6 (Jan–Jun) | $2,150 |
| Medicare starts October | $4,300 | 9 (Jan–Sep) | $3,225 |
The 2026 HSA limits are $4,300 for self-only HDHP coverage and $8,550 for family coverage, plus a $1,000 catch-up contribution for those age 55 or older. If your employer contributes to your HSA, their contributions count toward these limits as well.
If you discover you've made excess HSA contributions — either because of the retroactive enrollment trap or a miscalculation — you can correct the situation by withdrawing the excess amount and any earnings on it before your tax filing deadline (including extensions). The excess withdrawal is included in your taxable income for the year but avoids the ongoing 6% excise tax. Act quickly: leaving excess contributions in the account triggers the 6% excise tax each year until corrected.
Contact your HSA custodian to request an "excess contribution removal." You'll typically receive a 1099-SA reflecting the withdrawal and should report it on your tax return. Consulting a tax advisor for the year this occurs is advisable, as the calculation and reporting can be nuanced.
The good news: enrolling in Medicare doesn't lock up the money already in your HSA. You retain full access to your accumulated balance and can continue to spend it tax-free on qualified medical expenses. The HSA essentially transitions from a contribution vehicle to a spending account — a very valuable one, since your medical expenses are likely to rise in retirement.
After age 65, HSA funds can also be withdrawn for any purpose without penalty (though non-medical withdrawals are subject to ordinary income tax, like a traditional IRA). This flexibility makes an HSA one of the most versatile retirement accounts available — either a tax-free medical spending account or a supplemental income source in a pinch.
One of the most powerful uses of HSA funds in retirement is paying Medicare premiums — and the IRS specifically allows this as a qualified medical expense. HSA funds can pay:
Notably, regular health insurance premiums (non-Medicare) generally cannot be paid from an HSA tax-free except in specific situations. But Medicare premiums of all types qualify — making a well-funded HSA an excellent way to offset what can become thousands of dollars per year in Medicare premium costs in retirement.
Get help navigating the HSA-Medicare interaction and making the right enrollment timing decision. Talk to a licensed Florida Medicare agent at no cost.
Licensed Florida Health Insurance Producer · NPN #21249133 · No cost, no obligation
When do I have to stop contributing to my HSA if I'm enrolling in Medicare?
You must stop HSA contributions the month you enroll in any part of Medicare, including Part A only. Contributions made during or after the enrollment month are excess contributions subject to income tax plus a 6% excise tax per year they remain in the account.
What is the 6-month retroactive Part A enrollment trap with HSAs?
When you apply for Social Security at or after age 65, Part A is automatically enrolled retroactively for up to 6 months. Any HSA contributions made during that retroactive window become excess contributions. The fix: stop HSA contributions at least 6 months before you plan to apply for Social Security if you're past age 65.
Can I still use money already in my HSA after I enroll in Medicare?
Yes. Enrolling in Medicare doesn't affect your ability to spend accumulated HSA funds. Use them tax-free for Medicare premiums (Part B, Part D, MA, Medigap), dental, vision, copays, and other qualified medical expenses. After 65, non-medical withdrawals are also allowed (subject to ordinary income tax, not a penalty).
How do I calculate my maximum HSA contribution in the year I enroll in Medicare?
Pro-rate based on eligible months. Divide the annual limit by 12 and multiply by the number of months before your Medicare enrollment began. For 2026: self-only limit is $4,300 ($358.33/month), family is $8,550 ($712.50/month), plus $1,000 catch-up if age 55+. Both your contributions and employer contributions count toward the pro-rated limit.
Can Medicare premiums be paid from my HSA?
Yes — Medicare Part B, Part D, Medicare Advantage, and Medigap premiums are all qualified HSA expenses. This is one of the most tax-efficient uses of accumulated HSA funds in retirement, effectively converting pre-tax savings into tax-free Medicare premium payments.