HSA contributions have to stop once an employee enrolls in Medicare, and Part A can start up to six months before the day they apply. That retroactive start is where most excess-contribution problems come from. Here is the timing, a worked example and how to handle it in payroll and your cafeteria plan.
Get a Free Benefits Review
Tell us about your business and a specialist from our partner network will follow up.
"*" indicates required fields
An employee can’t contribute to an HSA for any month they are enrolled in Medicare, including premium-free Part A alone. Turning 65 doesn’t end eligibility by itself; enrolling does. When someone applies for Medicare or Social Security after 65, premium-free Part A usually starts up to six months earlier (but not before the month they turned 65), so HSA contributions made during those months become excess contributions. The safe move is to stop payroll HSA deposits, and any employer HSA contributions, about six months before the employee applies.
When HSA Contributions Must Stop
IRS Publication 969 sets the rule plainly: beginning with the first month you are enrolled in Medicare, your HSA contribution limit is zero, and the rule applies to periods of retroactive Medicare coverage. Three situations trigger it:
- Enrolling at 65. Coverage usually starts the first of the birthday month. Contributions stop with that month.
- Applying after 65. Premium-free Part A reaches back up to six months, but no earlier than the first month of eligibility.
- Claiming Social Security after 65. People who take Social Security retirement benefits are enrolled in Part A automatically and can’t decline it while keeping those benefits. The six-month lookback applies.
An employee whose spouse is on Medicare is not affected. Only the account holder’s own Medicare enrollment matters.
The Six-Month Retroactive Part A Rule
| Employee applies for Medicare in | Part A effective (premium-free) | Last month HSA-eligible |
|---|---|---|
| The month they turn 65 | First day of the birthday month (or prior month if born on the 1st) | Month before Medicare starts |
| 10 months after turning 65 | 6 months before the application month | 7 months before the application month |
| 3 months after turning 65 | The month they turned 65 (lookback can’t go earlier) | Month before turning 65 |
Worked Example (Hypothetical)
Say a 66-year-old employee with self-only HDHP coverage applies for Medicare in October 2026. Part A is made effective April 1, 2026. The employee was HSA-eligible for January, February and March only.
| Step | Calculation | Amount |
|---|---|---|
| Self-only limit for eligible months | $4,400 x 3 / 12 | $1,100 |
| Catch-up (55+) for eligible months | $1,000 x 3 / 12 | $250 |
| 2026 HSA limit | $1,350 | |
| Contributed through October payroll | $300 a month employee + $50 a month employer, 10 months | $3,500 |
| Excess contribution | $3,500 minus $1,350 | $2,150 |
The last-month rule can’t rescue this, because the employee is not eligible on December 1. To avoid the 6% excise tax, the employee withdraws the $2,150 excess plus its earnings before their tax filing deadline, including extensions. Employer contributions count toward the same limit.
What the Employer Is Responsible For
IRS guidance (Notice 2004-50, Q&A-81) limits the employer’s job to a few checks, such as whether the employee is covered by your HDHP and the employee’s age for catch-up purposes. The employee is responsible for other eligibility facts, including Medicare enrollment. In practice, employers still help their people avoid the problem:
- Remind employees approaching 65 that Medicare enrollment ends HSA eligibility.
- Stop payroll HSA deductions promptly when an employee tells you they are enrolling.
- Pause automatic employer HSA seed money or matching for employees who say they are enrolling in Medicare.
- Tell employees to work with their HSA custodian on any excess withdrawal.
How It Works Inside a Section 125 Plan
Pre-tax HSA payroll deductions run through a Section 125 cafeteria plan. Unlike health FSA elections, HSA elections can be changed prospectively at least monthly, so an employee can stop contributions mid-year without a qualifying event. Make sure your plan document allows it and that payroll can act within a pay cycle. Our HSA and Section 125 plan guide covers the mechanics.
An employee on Medicare can stay on your HDHP and can keep a health FSA. They just can’t add new HSA money. Medical premiums continue pre-tax through the cafeteria plan, which still saves 7.65% FICA on each dollar for both of you. See 2026 cafeteria plan limits and estimate the savings with the Section 125 payroll tax savings calculator.
Should Employees Delay Medicare to Keep Contributing?
Some employees at companies with 20 or more workers choose to stay on the HDHP, delay Medicare and keep funding the HSA past 65. That works only if they also delay Social Security retirement benefits, because taking benefits enrolls them in Part A automatically. It also only makes sense while your plan is primary and its drug coverage is creditable, so they don’t build up a Part D penalty.
At an employer with fewer than 20 employees, delaying Medicare is usually a bad trade. Medicare pays first, so skipping Part B to protect a few thousand dollars of HSA contributions can leave the employee paying outpatient bills the group plan was never designed to cover. When the employee does plan to retire, the cleanest approach is to set the last HSA payroll deduction about six months before the planned Medicare or Social Security application date, then let the account sit and pay for care, including Medicare premiums, tax-free.
Using HSA Money After Medicare Starts
Money already in the account stays the employee’s and can be spent tax-free on qualified medical expenses. For account holders 65 and older, that includes Medicare premiums such as Part B, Part D and Medicare Advantage, but not Medigap supplement premiums. After 65, non-medical withdrawals are taxed as income but no longer face the 20% penalty.
Can you contribute to an HSA after enrolling in Medicare?
No. Your HSA contribution limit is zero for every month you are enrolled in any part of Medicare, including premium-free Part A alone.
What is the 6-month rule for HSA and Medicare?
When you apply for Medicare or Social Security after 65, premium-free Part A usually starts up to six months earlier, but not before the month you turned 65. HSA contributions for those months become excess, so stop contributing about six months before you apply.
Does turning 65 end HSA eligibility?
No. Enrolling in Medicare ends it. An employee who is 65, still on your HDHP and not enrolled in Medicare or receiving Social Security can keep contributing.
Can HSA funds pay Medicare premiums?
Yes, for account holders 65 or older: Part B, Part D and Medicare Advantage premiums qualify. Medigap premiums do not.
Is the employer liable for excess HSA contributions after Medicare enrollment?
Under IRS Notice 2004-50 the employee is responsible for Medicare-related eligibility. The employee corrects the excess by withdrawing it and its earnings before the tax filing deadline.
See what your business qualifies for. One free review covers cost segregation, R&D, hiring credits and benefits savings together. Call 360-641-7709 or use the button below.
Last updated November 2, 2026. This page is general information, not tax or legal advice. Confirm your situation with a qualified tax professional.