How to Avoid the HSA-Medicare 6-Month Lookback Trap in 2026: A Step-by-Step Guide for Workers Approaching 65
By HealthCalc Team
Published June 28, 2026
11 min read
One of the most expensive mistakes a 65-year-old worker can make has nothing to do with picking the wrong health plan. It's the quiet collision between two perfectly legal programs — a Health Savings Account and Medicare — that produces an excess-contribution tax most people never see coming until their CPA flags it the following spring.
The mechanism is called the six-month lookback. When you apply for Medicare Part A after age 65, or when you file for Social Security retirement benefits, Medicare automatically backdates your Part A coverage by up to six months. Because Medicare disqualifies you from contributing to an HSA, any contribution you made during those retroactive months becomes an "excess contribution" subject to a 6% IRS excise tax for every year it stays in the account — plus regular income tax in the year it was deposited. A maxed-out family HSA contribution and a 55+ catch-up can easily produce a $600-plus annual penalty on top of the ordinary tax bill.
This guide walks through how the 2026 rules actually work, how to time your last contribution so it never happens, and the corrective distribution that fixes the mistake if you've already made it.
Why the Lookback Exists
Two rules collide here. The first is that HSA eligibility is tested month by month, on the first day of the month, and requires that you not be "entitled to" Medicare benefits. The second is a long-standing Social Security policy that lets people who delay enrollment claim up to six months of retroactive premium-free Part A coverage on their initial enrollment.
That retroactive coverage doesn't cost you anything in cash — premium-free Part A is, well, premium-free — but for HSA purposes it counts as if you were enrolled in Medicare the entire time. The Treasury has held this position consistently since 2004 (Notice 2004-50), and the IRS has never relaxed it. The lookback was not in any 2025 or 2026 legislative changes; it remains exactly as it has been.
The Three Triggers That Start the Lookback
The retroactive enrollment only happens when one of these three things happens. Until then, you can keep contributing to your HSA as long as you're still on a qualifying HDHP.
- You file for Medicare (any part). Submitting an enrollment application for Part A, Part B, Part D, or a Medicare Advantage plan triggers the retroactive Part A look-back. People who only want Part B for a future date can still get the look-back if Social Security backs Part A into the prior six months.
- You file for Social Security retirement benefits. Anyone who claims Social Security after 65 is automatically enrolled in Part A. Retroactive months of Social Security entitlement bring retroactive Part A with them.
- You take any other action that triggers automatic enrollment. The most common is reaching the 24th month of Social Security Disability Insurance (SSDI), which auto-enrolls you in both Part A and Part B with the first day of month 25.
If none of those things happen, the lookback never triggers and your HSA stays clean. People who delay both Medicare and Social Security past 65 — common for high-earners working past Full Retirement Age — routinely contribute to HSAs into their late 60s or early 70s. You can too.
Estimate Your Medicare Costs HSA Contribution CalculatorThe 2026 Math: A Worked Example
Maria turns 66 in March 2026. She works for a 400-employee company and stays on its HDHP. Her employer payroll-deducts $300/month into her HSA. She also makes a January 2026 personal contribution of $1,000 to reach her family-coverage target. She has been planning to file for Social Security in September 2026, when she retires.
Here's what happens if she doesn't stop her HSA contributions in time:
| Month | Action | HSA Contribution | Medicare Status After SS Filing |
|---|---|---|---|
| Jan 2026 | $1,000 personal + $300 payroll | $1,300 | Not yet enrolled |
| Feb 2026 | $300 payroll | $300 | Not yet enrolled |
| Mar 2026 | $300 payroll | $300 | Retroactive Part A |
| Apr–Aug 2026 | $300 payroll x 5 | $1,500 | Retroactive Part A |
| Sep 2026 | Files for Social Security | — | Active |
When Maria filed in September 2026, Social Security backdated Part A to March 2026 (six months). The eligibility test on the first of each month from March through September shows she was enrolled in Medicare. Every dollar contributed from March onward — $1,800 — is an excess contribution.
The IRS treatment of $1,800 in excess contributions: income tax in 2026 on the full amount (it should never have been excluded from wages in the first place, so it goes back on the W-2 wages line), plus a 6% excise tax of $108 for 2026, repeating every year until the excess is removed.
The Seven-Month Rule: Timing Your Last Contribution
The safe timing rule everyone in the HSA-and-Medicare world repeats: stop contributing seven months before the month you file. The extra month accounts for the fact that Part A is retroactive to the first day of a month, not a partial month. If you cut it close, a one-day Medicare enrollment date can sweep in an entire month of contributions.
Here's the framework:
- Pick your planned Medicare or Social Security application month. For most people this is the month they actually retire or step down from their employer's coverage.
- Count back six full months from the first of that month. That gives you the earliest month Part A could be backdated to.
- Add one safety month on top. That's the month you should send the last HSA contribution to your custodian.
- Notify payroll to stop the per-pay-period HSA contribution the month before the cutoff. Most employer HSA deductions run a pay cycle behind, so a request submitted in May typically zeroes out by the first June paycheck.
Worked example: A worker planning to apply for Medicare on October 1, 2026 should stop HSA contributions after February 2026. Anything credited to the HSA in March or later is at risk of becoming excess if Part A is backdated.
What the 2026 Contribution Limits Look Like
HSA limits for 2026 were set by IRS Rev. Proc. 2025-22 last spring:
- Self-only HDHP coverage: $4,400 annual limit
- Family HDHP coverage: $8,750 annual limit
- Catch-up (age 55+ by year-end): $1,000 additional
- HDHP minimum deductible: $1,700 self-only / $3,400 family
- HDHP out-of-pocket maximum: $8,500 self-only / $17,000 family
Those limits prorate month by month based on eligibility. If your eligibility ends in March (because of retroactive Medicare back to March), your allowed 2026 contribution is two-twelfths of the annual maximum — not the full year. For a family-coverage HSA holder turning 65 in 2026 who plans to file for Social Security in September, the new ceiling is roughly $1,625 for the year, not $9,750.
Use that prorated number to back into how much of your January-and-February contributions are safe and how much must come out as a corrective distribution.
HSA/FSA Calculator 2027 HSA LimitsHow to Fix Excess Contributions (Step-by-Step)
If you've already over-contributed and are reading this in the months between deposit and tax deadline, you have a real opportunity to avoid the 6% penalty. The fix is called a corrective distribution, and HSA custodians process these all the time.
Step 1: Calculate the excess
Total all HSA contributions credited from the first day of your retroactive Part A month forward, including both employer and employee deposits. That total is the excess.
Step 2: Calculate the earnings on the excess
Your HSA custodian will do this for you, but the formula is published in IRS regulations. It is essentially the proportional share of investment gains or losses attributable to the excess contribution amount over the period it was in the account. If the market went up, you'll owe earnings. If it went down, you may have a small wash.
Step 3: Request a corrective distribution (not a regular withdrawal)
Call the HSA custodian and use the words "corrective distribution due to excess contribution." This is a specific transaction code; a normal withdrawal will not solve the problem and may create a separate 20% penalty. Most custodians have a one-page form; some require a notarized signature.
Step 4: Report on Form 5329 with your tax return
The earnings on the excess get reported as "other income" on Schedule 1 in the year you take the corrective distribution. Form 5329 documents the excess and the corrective withdrawal. The 6% excise tax shows $0 because you removed the money in time.
Step 5: If the deadline has passed
You can still remove the excess by simply taking it out as a regular distribution — but expect the 6% excise tax every year it stays in the HSA and ordinary income tax in the year of withdrawal. There's no statute of limitations on the 6% — it compounds annually until the excess is gone or the account is closed.
What About Employer Contributions and HSA-Compatible HRAs?
Two common workplace twists complicate the analysis:
Employer HSA seed contributions. An employer's annual seed money (the $500-$1,500 some companies front-load on January 1) counts toward your annual limit and counts the same way during a retroactive Part A period. If your employer makes the deposit January 5 and you become retroactively Medicare-enrolled back to January, the seed money is excess. Some HR departments will reverse the deposit if you catch it fast; otherwise the corrective-distribution path applies.
HRA integration. Some employers offer a limited-purpose HRA alongside an HDHP. Limited-purpose HRAs (and limited-purpose FSAs) don't disqualify you from HSA contributions while you're still pre-Medicare. They become irrelevant the moment Medicare backdates — you just stop seeing reimbursements once the HSA stops being funded.
COBRA continuation of HDHP coverage. COBRA premiums can be paid from the HSA, but the HSA-contribution clock still depends on Medicare status, not COBRA status. Many retirees pay their first Medicare premiums and last COBRA premiums simultaneously; the HSA contribution side ended at the Medicare date.
Is COBRA Worth It in 2026? Maximize Your HSA in 2026Three Real-World Scenarios
Scenario 1: Delaying both Medicare and Social Security
Janice is 67, still working full time at a large hospital system, and intends to delay Social Security to 70 for the larger benefit. She did not enroll in Medicare at 65 because her employer's HDHP is creditable coverage and she wants to keep contributing to her HSA. Her 2026 contribution: full family limit of $8,750 plus $1,000 catch-up = $9,750. No lookback applies because she has not triggered any of the three Medicare or Social Security events. She can continue this approach indefinitely — until she eventually files for either Medicare or Social Security, at which point she'll need to stop contributing seven months ahead of that month.
Scenario 2: Retiring mid-year and filing Social Security immediately
Marcus retires June 30, 2026, two months after his 66th birthday. He files for Social Security on July 1, which auto-enrolls him in Part A retroactive to January 2026 (Part A can't be backdated past the month you became eligible, which was the month he turned 65 in April). His allowed 2026 HSA contribution is the prorated amount through March (three months) — roughly $2,188 for family coverage plus catch-up. Anything contributed in April, May, June must come out as a corrective distribution by October 15, 2027.
Scenario 3: SSDI conversion at 24 months
Robert has been on SSDI since 2024 and reaches his 24th month of benefits in March 2026. Auto-enrollment in both Part A and Part B kicks in on March 1, 2026. The "lookback" doesn't apply — this is automatic enrollment with a defined start date — but the practical result is the same: any HSA contributions in March or later are excess. SSDI recipients usually receive a Medicare card 90+ days in advance, which gives them time to stop the payroll deduction.
The Best-Case 2026 Strategy
If you're approaching 65 and want to preserve every HSA dollar you've earned, three planning moves dominate:
- Do not file for Social Security in the same year you plan to keep contributing to an HSA. If you can fund the HSA for a partial year, time the Social Security application for the following January and you avoid mixing the two in one year.
- Front-load contributions in January through the seventh-from-last month of contributions. January contributions are bulletproof if you don't trigger Medicare until after midyear. A lump sum contribution in January 2026 is safer than dripping in payroll deductions all year if you plan to file in the fall.
- Set a calendar reminder seven months before any planned Medicare or Social Security application date. Notify payroll to stop the deduction and stop making personal contributions on the same day. Confirm with your HSA custodian that no recurring transfer is scheduled to run after that month.
The conservative version: stop HSA contributions on January 1 of the year you plan to retire, and don't lose sleep over the prorated dollars left on the table. The $400-$800 of foregone contribution is far less painful than figuring out a corrective distribution under deadline pressure.
Frequently Asked Questions
Does enrolling only in Medicare Part B trigger the lookback?
Enrolling in Part B alone is unusual at 65 because Part A is premium-free for most workers and is the default. If you somehow enroll only in Part B and decline Part A, you remain HSA-eligible (Part B alone does not disqualify HSA contributions for federal tax purposes — only Part A or Medicare Advantage do). In practice, almost no one declines premium-free Part A. If you specifically want to keep contributing to an HSA, the more common move is to delay all of Medicare, not just Part B.
What if I enroll in a Medicare Advantage plan?
MA plans require Part A and Part B enrollment, so enrolling in MA stops HSA eligibility immediately on the MA effective date. The same lookback math applies to the underlying Part A.
Are catch-up contributions affected the same way?
Yes. The $1,000 catch-up for age 55+ is treated like any other HSA contribution. If it lands in a retroactive Medicare month, it's excess. Many catch-up contributions are made in late December and can be especially vulnerable for someone who files for Medicare or Social Security the following year.
Can I just refuse the retroactive Part A?
Generally no. Withdrawing Part A retroactively requires withdrawing your Social Security application entirely — including paying back any benefits already received — and is administratively complex. The standard remedy is the corrective distribution, not unwinding Medicare.
Does the HSA-eligible spouse on family coverage have to stop too?
No. If you and a spouse share a family HDHP and only one spouse is enrolling in Medicare, the non-Medicare spouse can keep contributing to their own HSA at the family rate (plus catch-up if 55+). Family coverage continues to allow the family-level contribution as long as one spouse remains HSA-eligible.
Where does the IRS publish the rules?
The HSA-Medicare interaction lives in IRS Notice 2004-50 (Q-2 and Q-3), Section 223 of the Internal Revenue Code, and Form 8889 instructions. The corrective-distribution mechanics are in Section 223(f)(3) and Form 5329 instructions. These have been stable for years; no 2026 legislation changed the framework.
How to Take Action Today
If you're between 60 and 72 with an HSA balance, three short tasks this week protect you from an avoidable tax bill.
First, find your planned Medicare or Social Security application month. If you don't have one, that's a planning conversation worth having now — ideally with a SHIP counselor (1-877-839-2675, free) who can walk you through the options.
Second, count back seven months and write that month on a calendar reminder. That is the last clean month for HSA contributions.
Third, audit your 2026 HSA contributions year-to-date against your prorated annual limit. If you're already over, contact your HSA custodian and ask about the corrective-distribution process. You have until October 15, 2027 to clean up 2026 excess contributions if you file an extension.
Medicare Cost Calculator HSA/FSA Calculator Maximize Your HSA in 2026Related Calculators & Tools
Estimate your healthcare costs and find savings with these free tools:
Privacy Note: All calculations happen in your browser. We never collect your data.