Enrollment

HSA Contributions After Medicare: The 6-Month Lookback

Written by Barley Billing Team, Medicare Billing Experts | Fact-checked against primary CMS sources | Last reviewed October 2, 2026

What This Means

A health savings account — an HSA — lets eligible people save for qualified medical expenses with tax advantages. Medicare enrollment reduces your annual HSA contribution limit. From your first Medicare month onward, you earn no additional monthly contribution allowance. A later deposit can still fund earlier eligible months, within the tax-year limit and contribution deadline.

The trouble is that people may learn this after Medicare has already started on a date in the past. Premium-free Part A can be backdated by up to six months, reducing the number of HSA-eligible months used to calculate that year’s limit.

Contributions allocated to a tax year above your allowed limit are excess contributions. The IRS generally charges a 6% excise tax for each tax year an uncorrected excess remains. The calculation compares the tax year’s total contributions with its limit, not each deposit with the month it arrived.

None of this is a punishment for doing something wrong. It is a problem about dates, and it has a fix.

Why This Happens

Two things combine, and neither is obvious.

Part A reaches backward. Premium-free Part A can start up to six months before the month you apply, but not before your first month of eligibility. For example, if you turn 65 during February and apply in March, Part A generally starts February 1: February still reduces your HSA contribution allowance. If your birthday is February 1, your earliest Medicare start is generally January 1. Confirm the actual effective date on your Medicare record.

Claiming Social Security switches Part A on by itself. If you start taking Social Security at or after 65, you are enrolled in Part A automatically. You do not apply for it, you are not asked, and nothing in the Social Security paperwork mentions your health savings account. Plenty of people discover the connection a year later, from their tax preparer.

For example, if Part A starts in March, only January and February can count toward that year’s HSA limit, assuming you met the other HSA eligibility requirements then. Compare all contributions allocated to that tax year with the reduced limit. Deposits made after March are not automatically excess, and deposits made before March are not automatically safe.

Dropping Part A Is Difficult — Calculate the HSA Limit First

The first thing most people try is turning Part A off. Here is why that is usually not possible — and why it would not fix the past even if it were.

If you are drawing Social Security, you cannot. Social Security’s own operating rules say it outright: people entitled to monthly benefits that confer eligibility for hospital insurance “may not waive HI entitlement.” The only route out is to withdraw your Social Security application altogether — and withdrawal “requires repayment of all RSDI and HI benefit payments made.” Every Social Security payment back, and everything Medicare has paid on your behalf back.

For nearly everyone that is a far worse outcome than the tax. And for most readers of this page it is not even possible. Social Security accepts a withdrawal of a retirement application only within 12 months of your first month of entitlement, and only once in your lifetime. If you have been drawing benefits for more than a year, there is no route out of Part A at all. And if you are finding this out from a tax preparer, you have almost certainly been drawing them longer than that.

Where Part A can be terminated prospectively, it does not restore HSA eligibility for earlier Medicare-covered months. But whether contributions are excess depends on the full tax-year limit, including any later months when you are again HSA-eligible. A withdrawal of Social Security benefits has different effects and requires individual advice.

So the fix is on the HSA side, not the Medicare side.

What To Do Next

  1. Find the real start date of your Part A. It is on your Medicare card and in your Medicare account at medicare.gov. Do not assume it is the date you applied.

  2. Calculate the annual limit, then compare the annual contributions. Use the HSA-eligible months before Medicare started, your self-only or family coverage, and any applicable catch-up allowance. Add all employee, employer and other contributions allocated to that tax year, including any made later for that year. A deposit made after Medicare starts can still fund earlier eligible months through the tax-year contribution deadline. Use Form 8889 or ask a tax preparer to calculate the permitted total before requesting a withdrawal.

    One case is worse than this, so check it. If you used the “last-month rule” to put in a full year’s contribution on the strength of being covered on December 1, you also agreed to stay eligible through the following year — the testing period. Going onto Medicare breaks that. The failed portion is then taxed as income, with an additional 10% tax on top — a different and larger problem than the 6% tax. If any of that sounds like you, take it to a tax preparer rather than working it out from this page.

  3. If you are within the correction window, request a return of excess. First compare the tax year’s total contributions with its reduced limit. The IRS generally lets you avoid the 6% excise tax on an excess amount removed by the due date of the return for that contribution year, including extensions, if you also withdraw attributable earnings and report those earnings as income. Ask your HSA custodian for its return-of-excess procedure; an ordinary distribution is not the same correction. If you filed on time without removing the excess, IRS Form 5329 instructions describe limited additional relief within six months after the original return due date, with an amended return. Ask a tax preparer before relying on that relief.

  4. If the correction window has passed, get tax help before taking money out. Form 5329 tracks excess contributions and the 6% tax for each year an excess remains. Unused contribution limit in a later HSA-eligible year can sometimes absorb a carried excess. Otherwise, a taxable HSA distribution may reduce the carried excess for future years, but it may create income tax and, if you are under 65, an additional 20% tax unless an exception applies. A qualified medical distribution does not reduce the carried excess on Form 5329 in the same way. Ask a tax preparer how to report a later correction; do not assume a late withdrawal is a tax-free return of excess.

  5. Review your payroll deduction today if you are still working. Stop or adjust future deposits so that all contributions allocated to the tax year stay within your recalculated limit.

  6. Get the tax part checked by a person. This page explains the rule; it is not tax advice, and the numbers depend on your own filing position. A tax preparer will do that sum in ten minutes.

  7. Then go back to using the account. Nothing here stops you spending it. Once you are 65 the HSA can pay your Part B, Part D and Medicare Advantage premiums, which for most people is the largest recurring medical bill they now have.

Sources

Frequently Asked Questions

Can I still use the money already in my HSA?
Yes. Medicare enrollment reduces your contribution limit; it does not prevent you from using existing HSA savings for qualified medical expenses. Once you are 65, those expenses can include Medicare premiums — Part B, Part D and Medicare Advantage, though not Medigap premiums.
How far back does Part A actually go?
Premium-free Part A can start up to six months before you apply, but not before your first month of eligibility. If you turn 65 during February and apply in March, coverage generally starts February 1, so February no longer counts as an HSA-eligible month. A birthday on the first of a month generally moves the earliest Medicare start to the preceding month.
Does the 6% tax happen once?
No. It applies for each year the excess is still sitting in the account on the last day of the year. Leave it for three years and you have paid it three times.
My employer put money in, not me. Does that count?
Yes. Employer contributions count toward your annual HSA limit along with your own contributions. Compare all contributions allocated to the tax year with your allowed limit; the month a deposit arrived does not by itself determine whether it is excess.
Can I just turn Part A off?
Usually not. If you draw Social Security, SSA says you cannot waive the premium-free Part A tied to those benefits; withdrawing the benefit application generally requires repayment and is tightly limited. Do not assume that changing Medicare enrollment corrects HSA contributions. Whether a contribution is excess depends on the tax-year limit and the actual Medicare-covered months. Ask SSA and a tax preparer before pursuing a benefits withdrawal.

This information is for educational purposes only and is not legal or medical advice. Always verify with your doctor's office and insurance company.