
Frank is 67, still working, and until this fall he thought he'd done everything right. He kept his family's high-deductible health plan at work, and he kept funneling money into his health savings account, the full 2026 family limit plus the catch-up he's allowed at his age, $9,750 for the year. Then, in November, he signed up for Social Security. Because he was well past 65, Medicare Part A backdated six months, to May 1. On paper, he'd been ineligible to put a dollar into an HSA for eight months of the year.
His real limit for 2026 was four-twelfths of $9,750, which comes to $3,250. He'd contributed $9,750. That $6,500 gap is now what the IRS calls an excess contribution, and it collects a 6% excise tax on the amount every year until he pulls it back out. Nobody at his bank flagged it. His HSA statement still showed a healthy, growing balance.
This is the frustrating thing about health savings accounts. The tax break is real and unusually generous, but a handful of quiet timing rules can reverse it, and not one of them shows up on your account statement. You already know the pitch: money goes in pre-tax, grows tax-free, and comes out tax-free for medical costs. What almost nobody explains is when you're allowed to put money in, and what it costs you when you get that part wrong.
There are three separate traps here, with three separate penalties. We'll take them in order.
The account is worth protecting, which is the whole point
An HSA is the only account in the tax code with a triple tax advantage. Your contributions are deductible, the balance grows without tax, and withdrawals for qualified medical expenses are never taxed. For 2026 you can put in $4,400 with self-only coverage or $8,750 with family coverage, plus an extra $1,000 if you're 55 or older. Those limits rise to $4,500 and $9,000 in 2027.
People are clearly buying in. Devenir's year-end 2025 research report found Americans holding nearly $174 billion in HSAs across 41.7 million accounts, with roughly $85 billion of that invested rather than sitting in cash. The account has turned into a stealth retirement vehicle. Which is exactly why an avoidable penalty on it stings.
The catch is that every one of these tax perks depends on your being an "eligible individual," and eligibility is a monthly test, not an annual one. The IRS checks it on the first day of each month: are you covered by a qualifying high-deductible health plan, with no disqualifying coverage and no Medicare? Miss that test for part of the year and your contribution room shrinks, whether or not anyone tells you.
Trap one: the last-month rule gives, and the testing period takes it back
There's a helpful shortcut buried in the rules called the last-month rule. If you're an eligible individual on December 1, the IRS lets you contribute the full annual limit for that year, even if you only had qualifying coverage for the last few months. It's a real gift for anyone who picks up an HDHP partway through the year.
Take Maya, 41, who starts a new job in the fall of 2026 with HDHP coverage effective October 1. She's only eligible for the last three months of the year, so a straight proration would cap her at three-twelfths of $4,400, or $1,100. The last-month rule lets her skip that math and contribute the full $4,400. Nice.
The gift comes with a string attached, and the string is the part people never read. Using the last-month rule commits you to a testing period that runs from December 1 of the contribution year through December 31 of the following year, thirteen months in all. You have to stay an eligible individual for that entire stretch. IRS Publication 969 is blunt about what happens if you don't: the amount you contributed that you wouldn't have been allowed without the last-month rule gets added back to your taxable income, and you owe an extra 10% tax on top of it.
So picture Maya switching to a traditional PPO in June 2027 when a better job comes along. She's just failed the testing period. The difference between what she put in ($4,400) and what she'd have been allowed by simple proration ($1,100) is $3,300, and that $3,300 lands back on her 2027 tax return as income, plus a 10% penalty of $330. The only outs are death or disability, which is not the escape hatch anyone's hoping for.
None of this means avoid the last-month rule. It means use it when you're confident you'll keep qualifying coverage through the next full year, and prorate instead when your job or plan is in flux.
Trap two: part-year coverage means a part-year limit
If you skip the last-month rule, or you lose eligibility mid-year, your contribution ceiling is simply prorated. Count the months you were eligible on the first of the month, divide by twelve, and multiply by the annual limit. The $1,000 catch-up gets prorated the same way. Go over that prorated number and the extra becomes an excess contribution, subject to the same 6% excise tax that's quietly eating Frank's balance.
The people who trip on this are usually the ones who front-load. Say Priya and her husband carry family HDHP coverage into 2027 and, feeling organized, drop the full $9,000 into the HSA in January. In July, her husband takes a job with a traditional PPO that covers them both. Their eligibility ended June 30, so they qualified for six months, which caps them at six-twelfths of $9,000, or $4,500. They're now $4,500 over the line. That excess draws a 6% excise tax, $270 a year, and it keeps applying every year the money stays in.
The common triggers are worth knowing because they rarely feel like tax events at the time: a new job with a non-qualifying plan, a spouse enrolling in family coverage that isn't an HDHP, going on a partner's plan, or simply aging onto Medicare. Each one can end your eligibility on the first of a month, and your payroll deductions or automatic transfers usually keep going as if nothing changed.
Trap three: Medicare backdates six months, and your HSA can't
Frank's problem is the sneakiest of the three, because it involves a date that hasn't technically happened yet when the damage is done. Once you enroll in any part of Medicare, including premium-free Part A, you're no longer an eligible individual and you can't contribute to an HSA. That much is well known.
Less known is the backdating. If you enroll in Part A after 65, coverage is retroactive for up to six months, though never earlier than your 65th birthday. And if you claim Social Security at or after 65, you're automatically enrolled in Part A, whether you wanted it or not. So the act of filing for benefits can reach back six months and retroactively erase your HSA eligibility for that whole window. Any contributions you made during those months become excess contributions after the fact, which is precisely how Frank ended up $6,500 over without doing anything he thought was wrong.
The clean rule of thumb, one that benefits advisers and Fidelity both repeat, is to stop HSA contributions six months before you plan to enroll in Medicare, or six months before you claim Social Security if you're already past 65. If you're working past 65 with employer coverage and delaying Medicare on purpose, that six-month runway is the number to protect.
One reassuring note, so nobody overcorrects: this trap is about putting money in, not taking it out. You can keep spending your HSA on medical costs for life. And once you turn 65, even non-medical withdrawals only owe ordinary income tax, without the 20% penalty that would apply to a younger account holder. The account stays useful. You just have to stop feeding it at the right time.
How to unwind an over-contribution before it compounds
If you catch an excess contribution early, the fix is clean. Tell your HSA administrator you need to withdraw an excess contribution, and pull out both the excess and any earnings it generated, before your tax-filing deadline including extensions. Do that and you sidestep the 6% excise tax entirely. You'll owe ordinary tax on the small amount of earnings, and that's the whole cost.
Miss that window and the 6% applies for the year, and it keeps applying every year the excess sits there. You can also let a future year's unused contribution room absorb the excess, though that only works if you'll have room to spare. For the Medicare lookback specifically, some administrators can process what's called a "return of excess" tied to the retroactive coverage date, so call and ask before you assume you're stuck.
The tool that keeps all of this straight is Form 8889, which you file with your return every year you contribute to or withdraw from an HSA. It's where the proration math and the last-month-rule testing period get calculated, and reviewing last year's copy is the fastest way to see whether your contributions matched your real eligibility.
The Bottom Line
Your HSA is one of the best accounts you'll ever own. Protecting the tax break is mostly about timing your contributions to your actual eligibility, month by month. Three moves are worth making this week:
-
If you're 65 or older and still working, map your exit. Decide roughly when you'll enroll in Medicare or claim Social Security, then stop HSA contributions six months earlier. If you've already claimed and kept contributing, call your administrator now about a return of excess.
-
If your coverage started or ended mid-year, run the proration. Count the months you were eligible on the first of the month, divide by twelve, and multiply by your limit ($4,400 self-only or $8,750 family for 2026). Compare that number to what you've put in.
-
If you used the last-month rule, calendar the testing-period end date. You need qualifying HDHP coverage through December 31 of the following year. Pull up last year's Form 8889 to confirm which rule you relied on, and fix any excess before your filing deadline while the fix is still free.
Related Reading
Get Smarter With Your Money
Join 10,000+ readers getting weekly tips on budgeting, investing, and building wealth — no spam, just actionable advice.
Free forever. Unsubscribe anytime.