She’ll Work Until 67 and Keep Funding Her HSA. When She Signs Up for Medicare, Part A Will Backdate Six Months, and the HSA Money She Put In During Those Months Will Be Penalized at 6% a Year Until She Takes It Out
This post may contain links from our sponsors and affiliates, and Flywheel Publishing may receive compensation for actions taken through them.
She plans to work until 67, and her paycheck still directs the full amount to her health savings account (HSA) every month. She plans to apply for Medicare the week she retires. Nobody has warned her about how HSA contributions and Medicare Part A retroactive coverage clash.
Part A will backdate her coverage six months, and every HSA dollar she put in during those months becomes an excess contribution taxed at 6% a year until she withdraws it.
Medicare Quietly Reaches Back Into Your HSA Year
According to Medicare.gov, you can sign up for premium-free Part A any time after you turn 65, and “Your Part A coverage starts 6 months back from when you sign up or when you apply for benefits from Social Security.” Tax law sets your HSA contribution limit at zero for every month you have Medicare.
Once she signs up, the six months before her application turn into months when she was never allowed to contribute. She followed the rules while she made those deposits, but the rules changed after the fact. The retroactive start date is what creates the excess.
Where the Rule Sits in the Tax Code
Under 26 U.S.C. § 223(b)(7)[1], the HSA limit “shall be zero for the first month such individual is entitled to benefits under title XVIII of the Social Security Act and for each month thereafter.” Title XVIII is Medicare. IRS Publication 969 states it directly: the zero limit “applies to periods of retroactive Medicare coverage,” so contributions made during the backdated months count as excess. The penalty is imposed by 26 U.S.C. § 4973(a)(5)[2], which charges 6% of excess HSA contributions for each taxable year. Section 4973(g) carries any unremoved excess into the next year, so the bill repeats every year.
Who Gets Caught by the Six-Month Lookback
Workers who keep a high-deductible health plan and an HSA past 65, put off Medicare, and later enroll in Part A or claim Social Security face the full lookback. Claiming Social Security counts too, because it enrolls you in Part A automatically.
Medicare.gov notes that retroactive coverage “can’t start earlier than the month you turned 65.”[3] Someone who signs up right at 65 has nothing to backdate. Someone who signs up a few months after turning 65 faces a lookback covering only the months since that birthday. Waiting until 67 means the full six months can land on the HSA.
How to Stop Contributions Before Medicare Starts
- Set your Medicare date first. Choose when you’ll apply for Part A or Social Security. Every other step depends on that date.
- Count back six months and stop all contributions. Turn off payroll deferrals and ask HR to stop employer deposits too. Publication 969 says employer contributions reduce the amount you can contribute.
- Prorate your final-year limit. The annual limit is a sum of monthly limits, each 1⁄12[1] of the yearly figure, and only months without Medicare count. In 2026, the full-year limits are $4,400[4] for self-only coverage and $8,750 for family coverage. Anyone 55 or older can add $1,000[1], also prorated.
- Remove any overage on time. Withdraw the excess by the due date of your tax return for the year the contributions were made, including extensions, plus any earnings on it. Report those earnings as “Other income.”
Miss the Deadline and the 6% Keeps Coming
Leave the excess in past the filing deadline, and Publication 969 says “The excise tax applies to each tax year the excess contribution remains in the account.” You report it on Form 5329. You also can’t deduct excess contributions, and any excess your employer put in counts as taxable income. The overage can surface at tax time, months after the six-month window has closed.
The money itself is safe. Once you’re on Medicare, Publication 969 says you “can still receive tax-free distributions to pay or reimburse your qualified medical expenses.” If you’re 65 or older, that includes Medicare premiums, though Medigap premiums don’t qualify. With the 2026 standard Part B premium at $202.90[5] a month, a well-funded HSA can cover Medicare premiums in retirement.
For workers past 65 with an HSA, the key dates are the Medicare enrollment date and the point six months before it, when the last deposit would need to be made.
Contact [email protected] for any questions or corrections.








