HSA and Medicare: the Six Retroactive Months
Medicare enrollment sets your HSA contribution limit to zero from that month. Part A can start six months back, making earlier contributions excess.
Figures on this page (3)
- $4,400 — HSA contribution limit for 2026, self-only HDHP coverage. (2026, IRS, verified 2026-09-06)
- December 1 of the contribu… — Using the last-month rule starts a testing period; failing it adds the excess to income plus a 10 % additional tax. (long-standing rule, IRS, verified 2026-09-06)
- April 15, 2027 — HSA contributions for a tax year may be made until that year’s unextended filing deadline. (2026–2027, IRS, verified 2026-09-06)
Medicare enrollment sets your HSA contribution limit to zero from the first month you are enrolled. Premium-free Part A can start up to six months before you sign up, which turns contributions made in those months into excess contributions.
The HSA contribution limit calculator treats a Medicare month as an ineligible month. This page explains why the ineligible months can appear after the fact.
The rule is a monthly switch
Publication 969: “Beginning with the first month you are enrolled in Medicare, your contribution limit is zero.”
The Instructions for Form 8889 apply the same rule on the worksheet. For a month in which you were enrolled in Medicare, you “enter 0 on the line below for the month”, and you “cannot deduct any contributions for any month in which you were enrolled in Medicare”.
Enrollment in any part of Medicare does it. Part A alone is enough, and Part A is the part that can arrive without a separate Medicare application.
Part A can start before you sign up
Medicare.gov, on signing up for premium-free Part A after 65: “You can sign up for Part A any time after you turn 65. Your Part A coverage starts 6 months back from when you sign up or when you apply for benefits from Social Security (or the Railroad Retirement Board). Coverage can’t start earlier than the month you turned 65.”
Two things follow. The start date can be earlier than the application date, by up to six months. And it can never be earlier than the month of your 65th birthday, so someone who signs up at 65 and one month has at most one retroactive month.
Applying for Social Security benefits is on the same footing as applying for Medicare in that sentence. The Social Security claim carries the Part A start date with it.
What backdating does to contributions already made
Publication 969 answers this directly: “This rule applies to periods of retroactive Medicare coverage. So if you delayed applying for Medicare and later your enrollment is backdated, any contributions to your HSA made during the period of retroactive coverage are considered excess.”
The contributions were correct when they were made and incorrect afterwards. Nothing about them changed except the coverage record behind them.
Example. A hypothetical worker turns 67 in a year, keeps employer high-deductible coverage, contributes monthly, and applies for Social Security in September. Part A is backdated six months to March. The contributions attributable to March through September are excess, even though the account statement shows nothing unusual.
The fix, and its deadline, are the ordinary excess-contribution mechanics set out in excess HSA contributions. Publication 969 charges a “6% excise tax” for each tax year the excess stays in the account.
Retroactive months and the testing period
The testing period tests HSA eligibility month by month. Backdated Part A removes eligibility from months inside it, which is a failure like any other.
For a contribution made under the last-month rule, that period runs December 1 of the contribution year through December 31 of the following year1. A Medicare start date that lands inside the window breaks it, and the recapture rules in the HSA testing period apply.
Enrollment stops contributions, not spending
Nothing about Medicare touches the money already in the account. Publication 969 keeps distributions for qualified medical expenses tax-free at every age, with the distribution reported on Form 8889.
Two things also improve at 65. Publication 969 counts “Medicare and other health care coverage if you were 65 or older (other than premiums for a Medicare supplemental policy, such as Medigap)” as qualified medical expenses. And on the additional tax for a distribution not used for qualified medical expenses, it says: “There is no additional tax on distributions made after the date you are disabled, reach age 65, or die.”
Can I contribute to an HSA after enrolling in Medicare?
No. Publication 969 sets the contribution limit to zero beginning with the first month you are enrolled, and that applies to Part A alone.
How far back can Medicare Part A start?
Six months. Medicare.gov says Part A coverage “starts 6 months back from when you sign up”, and adds that coverage “can’t start earlier than the month you turned 65”.
What happens to contributions made during retroactive Part A coverage?
They become excess contributions. Publication 969 says contributions made “during the period of retroactive coverage are considered excess”, regardless of how correct they looked at the time.
Does applying for Social Security enroll me in Medicare?
Medicare.gov puts the two on the same footing for the Part A start date: coverage starts six months back “from when you sign up or when you apply for benefits from Social Security”.
Does Medicare break the HSA testing period?
Yes, if the enrollment month falls inside the period. Eligibility is tested month by month, so a backdated start date can break a period that looked intact.
Does a partial Medicare year still allow a partial contribution?
Yes. The months before your Medicare start date still count if you were otherwise eligible on the first of each of them, on the proration rules. For 2026 the self-only annual limit being prorated is $4,4002.
Can I still spend my HSA on Medicare premiums?
Yes. Publication 969 lists Medicare premiums as qualified medical expenses for someone 65 or older, excluding premiums for a Medicare supplemental policy such as Medigap.
Does the contribution deadline change if Medicare starts mid-year?
No. Contributions for the months you were eligible may still be made until the tax year’s filing deadline, which for 2026 is April 15, 20273.
Sources
- IRS Publication 969 — Health Savings Accounts and Other Tax-Favored Health Plans · accessed 2026-09-07
- Medicare.gov — When does Medicare coverage start? · accessed 2026-09-07
- IRS — Instructions for Form 8889 (Health Savings Accounts) · accessed 2026-09-07
Also this year
HSA Prorated Contribution Limit: Month by MonthHSA eligibility is tested on the first day of each month. Your limit is the annual amount …→Excess HSA Contributions: the 6% Tax and the FixAn excess HSA contribution is taxed 6% for every year it stays in the account. Withdrawing…→HSA Testing Period: 13 Months and What Breaks ItThe last-month-rule testing period runs December 1 of the contribution year through Decemb…→Information, not advice. Confirm with IRS Publication 969 or a tax professional.