Medicare Enrollment and HSA Contributions
Once someone is enrolled in Medicare, they can no longer contribute to an HSA, and the rule reaches back through retroactive coverage. Employers that contribute to older employees’ HSAs need to know where the line is.
What IRS Publication 969 Says
The contribution rule is stated in IRS Publication 969.
Limit Becomes Zero
Beginning with the first month an individual is enrolled in Medicare, the HSA contribution limit is zero. That means neither the employee nor the employer should add to the account for those months. Payroll can build in a check so contributions stop on time, and employees can confirm their own dates with a tax adviser. Check the dates and rules for your own group with our free Medicare enrollment window calculator.
Retroactive Coverage
The rule applies to periods of retroactive Medicare coverage. If enrollment is later backdated, contributions made during the retroactive period are treated as excess. Because Part A can reach back, an employee who signs up late may have months of contributions that no longer qualify. Employees should talk with a tax adviser before choosing an enrollment date. Our free employer HSA contribution calculator turns this into dollars for your plan.
Partial-Year Limits
In the year someone enrolls, the limit is prorated for the months before Medicare. Publication 969 gives an example of a 65-year-old who enrolled in July. Employees and payroll teams should count eligible months carefully, since the prorated figure, not the full annual limit, applies in that year. A tax adviser can confirm the exact amount for each person. Try our free percent vs flat dollar contribution calculator to run the numbers for your own group.
Employer Contributions Count
Employer contributions, including those through a cafeteria plan, reduce the amount the individual can contribute, so they count toward the same limit. Payroll and benefits teams should track both sources together, so an employee does not go over the limit without realizing it. A year-to-date report that shows employer and employee deposits side by side helps.
Excess Contributions
Contributions made when the limit is zero are excess contributions with tax consequences for the employee. See Publication 969. Employees may need to withdraw the excess and could owe additional tax if it stays in the account. Because the details depend on timing, they should work through the correction with a tax adviser.
Existing Balances
Money already in the account can still be used for qualified medical expenses after enrollment. Employees can keep using the balance for qualified medical costs, such as deductibles and prescriptions, for as long as they have eligible expenses. What stops is new contributions, not access to the funds already saved.
Why Employees Are Told to Stop Six Months Early
Medicare’s own guidance explains the practical reason.
The Medicare.gov Advice
If you have an HSA, you and your employer should stop contributing 6 months before you retire or apply for benefits from Social Security or the Railroad Retirement Board, to avoid a tax penalty. Employers can repeat this advice in open enrollment materials so employees see it before they make a retirement or Medicare decision, rather than after contributions have already been made.
Why It Happens
Enrollment in Medicare Part A can be backdated when someone applies late, so contributions in the preceding months can become excess. Employers often do not see the backdating coming, so asking employees nearing 65 to share their Medicare plans early gives payroll time to adjust deposits before a problem builds.
Who It Affects
Employees approaching 65 who are still working, still on a high deductible plan, and still receiving employer HSA contributions. Employers with older or longer-tenured workforces are most likely to see this. It helps to identify these employees each year and give them clear guidance well before they turn 65, not after the fact.
Delaying Medicare
Some people delay Medicare to keep contributing. Others find coverage starts automatically when Social Security benefits begin, so timing matters. Employees weighing this choice should compare the value of continued HSA contributions with the cost of delaying coverage, and get individual advice before deciding. The right answer differs from person to person.
Confirm With A Professional
Eligibility and tax treatment are individual. Employees should check with a tax advisor or Social Security. CFH can help employers explain the general rules to staff and plan the communication, but we do not give tax advice. Employees with specific questions should speak with a tax adviser or contact Social Security directly.
Communicate Earlier
Put a short notice in the benefits materials for employees nearing 65. Include the notice in enrollment guides, HSA mailings or an age-based reminder, and explain the general rule in plain language. Point employees to a tax adviser for questions about their own situation.
What Employers Can Do
Small steps reduce excess contributions.
Track Approaching Ages
Flag employees approaching 65 who receive HSA contributions. A simple annual report from the benefits or HR system can show who is nearing 65 and still receives employer contributions. Review it before open enrollment so there is time to reach out and answer questions.
Ask About Medicare Plans
A simple pre-65 check-in prompts employees to plan. Ask whether they plan to retire, delay Medicare or begin Social Security soon, since each choice affects HSA eligibility. A short conversation or a one-page form makes it easier to catch problems early.
Stop Contributions On Notice
When an employee reports Medicare enrollment, stop employer contributions. Have a clear process for employees to report their Medicare start date to HR, and for HR to act on it quickly. Keep a record of the date so later questions about contributions can be answered accurately.
Exclude From Comparability
Medicare-enrolled employees are excluded from the comparability test. See HSA comparability.
Coordinate Payroll
Make sure payroll can stop contributions quickly. Confirm who in payroll can turn off employer and employee HSA deferrals, how long the change takes, and whether it can be done mid-period. Testing this before it is needed helps avoid excess contributions.
Know The Medicare Secondary Payer Side
If the employee stays on the group plan, the plan’s relationship with Medicare is a separate question. See who pays first.
Questions We Get About Medicare and HSAs
Can someone contribute to an HSA after enrolling in Medicare?
No. Beginning with the first month of Medicare enrollment, the contribution limit is zero.
What about retroactive Medicare coverage?
Contributions made during a period of retroactive coverage are treated as excess.
Why stop six months early?
Medicare.gov advises stopping 6 months before applying for Social Security benefits or retiring, because enrollment can be backdated.
Can the employee still use the HSA?
Yes. Money already in the account can pay qualified medical expenses.
Do employer contributions count toward the limit?
Yes, including contributions made through a cafeteria plan.
Is a Medicare-enrolled employee in the comparability test?
No. They are not an eligible individual and are excluded.
What is an excess contribution?
A contribution above the permitted limit, with tax consequences described in Publication 969.
Where can employees get personal guidance?
A tax advisor or Social Security.
Is this legal advice?
No. This page is general information, not legal advice. Rules change and facts differ, so confirm your situation with your attorney or tax advisor.
Related Guides
Related reading: Medicare Rules for Employer Health Plans · Medicare Secondary Payer Rules · HSA, FSA and Section 125 Limits · HSA Comparability Rules · HSA Employee Education · HSA Last-Month Rule, Testing Period, and Excess Contributions
Send us your renewal.
We’ll tell you whether it looks competitive, where we see opportunity, and the five questions we’d put to your carrier. No cost, and no obligation to move anything.
The renewal letter
Your current plan summary
Contribution split by tier
Enrolled counts by tier
Four documents — two more if your group is 50 or more. Nothing else; every extra one is a reason to postpone.
Laws and rules referenced
26 U.S.C. § 223 — Health savings accounts: eligibility, contribution limits and the age 55 catch-up.
42 U.S.C. § 1395p — Medicare Part B enrollment periods.
IRS Notice 2004-50 — HSA questions and answers: eligibility, other coverage, FSAs and HRAs, and contribution rules.
This page is general information, not legal or tax advice. Rules change and facts matter, so confirm your situation with counsel or a qualified advisor.
An independent employee benefits consulting firm. We look at the entire benefits program — cost, plan performance, risk and administration.
Switch to CFH. Unhappy with your broker? Your employees won’t notice. You will. →
Cookies on This Site
We use cookies to keep the site working properly and to understand how it is used. You can decline anything that is not essential. See our Privacy Policy for the detail.
- Essential — needed for the site to load and for you to move around it. These cannot be switched off.
- Analytics — tell us which pages get read, so we know what is worth writing more of.
- Advertising — set by third parties such as ad and social platforms to measure and target campaigns.

