A 67-year-old software engineer plans to work until 70. Her employer’s high-deductible health plan remains the cheapest coverage she has found, so she maxes her Health Savings Account every January. In May, she files for Social Security. Three weeks later, a Medicare card arrives. Premium-free Part A is effective up to six months earlier, but not before the month she turned 65. Every HSA dollar deposited for a month covered by Medicare is now an excess contribution, subject to a 6% IRS excise tax each year it remains uncorrected.
This article addresses older workers who stay on an HSA-eligible employer plan after 65. BLS says 19.1% of people age 65 and older were in the labor force in 2025, and some of them are still using high-deductible health plans. If you are already on Medicare, you stopped being HSA-eligible the month Part A started. If you are under 65, file this away before the year you plan to claim Social Security or enroll in Medicare.
The Retroactive Six Months No One Mentions
HSA eligibility requires coverage under a qualifying high-deductible health plan and no disqualifying other coverage, including Medicare. Part A counts. Once Medicare coverage begins, HSA contributions must stop for the covered months. The trap is that premium-free Part A can start before you think it does.
Two common triggers can backdate premium-free Part A by up to six months for someone who delayed Medicare past 65:
- Filing for Social Security retirement benefits after 65. Social Security can enroll you in premium-free Part A and backdate coverage up to six months, but not earlier than the first month you were eligible for Medicare.
- Applying for Medicare after 65. The same retroactive Part A rule can apply when premium-free Part A begins after a delayed application.
The practical takeaway is simple: do not try to squeeze in one last HSA contribution without checking the Medicare date first. For someone claiming Social Security after 65, Part A may reach back six months and erase HSA eligibility for months that already passed. The extra deduction from one more contribution can be much smaller than the tax cleanup if payroll and Medicare dates are not coordinated.
How the 6% Penalty Compounds
The IRS treats HSA contributions made for months you were not eligible as excess contributions, including months later covered by retroactive Medicare. The excise tax is 6% of the excess contribution, reported through the HSA and additional-tax forms, and it can apply every year the excess remains in the account.
A 66-year-old with family coverage who contributes the full $9,750 in January, then files for Social Security in July, may have Part A backdated to January. If Medicare coverage applies for every month of that tax year, the full $9,750 contribution can become excess. The 6% excise tax would be $585 for the first year and another $585 for each later year the excess remains uncorrected. If it sits five years, penalties can reach $2,925 on a single year’s mistake.
The fix has a deadline. Withdraw the excess contribution plus earnings by your tax filing deadline, including extensions, and the 6% excise tax generally does not apply to that excess for the year. Miss that window and the clock starts. The earnings are taxable, so the custodian should process the request as an excess-contribution withdrawal rather than an ordinary HSA distribution.
The Bigger Picture on Healthcare Costs
Walking away from HSA contributions still hurts because medical costs keep rising. CMS says national health expenditures grew 7.2% to $5.3 trillion in 2024 and are projected to outpace GDP growth from 2025 through 2034. The 2026 Social Security COLA was 2.8%, while the standard Part B premium rose from $185.00 to $202.90. Losing months of tax-advantaged saving for medical costs in this environment is real money.
What to Do
-
Stop HSA contributions at least six months before you apply for Social Security or Medicare after 65. If you turn 65 mid-year and plan to claim Social Security at 66, count back from the application month, not from when you happen to notice the Medicare card. Tell payroll in writing; do not assume HR knows the rule.
-
If you already over-contributed, withdraw the excess plus earnings before your tax filing deadline. Call the HSA custodian and request an “excess contribution withdrawal.” The earnings are taxable, but the 6% penalty disappears.
-
If you want to keep contributing past 65, delay Social Security and do not enroll in any part of Medicare while you remain on a qualifying HDHP. Premium-free Part A is available only to people with sufficient work history, but enrolling still ends HSA eligibility for covered months. Staying off Medicare entirely while on a qualifying HDHP is the way contributions remain legal.
The HSA Rule Turns on the Medicare Date
Working past 65 can make an HSA more valuable, but only until Medicare coverage begins. The danger is that the Medicare date may be earlier than the day you apply or the day the card arrives. Before claiming Social Security or enrolling in Medicare after 65, count back six months, stop contributions, and fix any excess before the tax deadline.
Sources: SSA guidance on Medicare enrollment and HSA timing; IRS Rev. Proc. 2025-19 for 2026 HSA limits; IRS Form 8889 instructions for excess HSA contributions; CMS 2026 Medicare Parts A & B premium materials; CMS national health expenditure data. Figures reflect 2026 rules.