If you have a Health Savings Account and you are approaching 65, there is a rule that catches people off guard. Once you enroll in Medicare, you can no longer contribute to your HSA. Not even a dollar. Contributing after Medicare enrollment triggers tax penalties. This trips up a lot of working 65-year-olds. They delay Medicare because they are still employed, then enroll later, and discover the HSA rule has a retroactive bite. Here is what you need to know before it costs you.
Why Medicare Ends HSA Eligibility
To contribute to an HSA, you must be enrolled in a qualifying high-deductible health plan and have no other disqualifying coverage. Medicare counts as disqualifying coverage.
The moment you enroll in Medicare Part A or Part B, you are no longer HSA-eligible. It does not matter that you still have your high-deductible plan through work. It does not matter that you are still employed. Medicare enrollment ends your ability to make new HSA contributions.
Your existing HSA balance is fine. The money stays yours. You can still use it tax-free for qualified medical expenses, including Medicare premiums, deductibles, and copays. You just cannot add new money.
The 6-Month Lookback: The Part That Surprises People
Here is the trap. When you enroll in Medicare Part A after age 65, your Part A coverage is backdated up to 6 months. If you apply at 65 and 6 months, your Part A is backdated to when you turned 65.
Why does that matter? Because HSA eligibility is determined month by month. If Part A backdates 6 months, you were technically enrolled in Medicare for those 6 months. Any HSA contributions you made during those months become excess contributions.
What to Do Before 65
If you are still working at 65 and want to keep your HSA, you have a decision to make. You can delay Medicare enrollment while you have qualifying employer coverage, and keep contributing to your HSA. Many people do this. It is allowed.
But if you do, plan your exit. When you are ready to enroll in Medicare, stop your HSA contributions at least 6 months before you apply for Part A. This avoids the lookback problem entirely. Tell your employer's benefits team. Stop the payroll deductions. Make it clean.
If You Already Made Excess Contributions
First, do not panic. This is fixable. Calculate the contributions made during the months you are now considered enrolled in Medicare. Withdraw the excess amount plus any earnings attributable to it before your tax filing deadline.
Report it correctly on your tax return. HSA excess contributions go on Form 5329. If you withdraw the excess in time, you avoid the 6 percent excise tax. The earnings are taxable as income in the year you withdraw them.
Using Your HSA After Medicare
Stopping contributions does not mean the account is dead. Your HSA becomes a powerful retirement healthcare fund. You can use it tax-free for:
Medicare Part B, Part D, and Medicare Advantage premiums. Note that Medigap premiums are generally not a qualified expense, with limited exceptions.
Deductibles, copays, and coinsurance under Medicare.
Dental, vision, and hearing costs that Medicare does not cover.
Long-term care expenses, up to annual limits set by the IRS.
Many people let their HSA grow invested after 65 and use it as a dedicated medical expense fund in retirement. The triple tax advantage you built up does not disappear. You just stop adding to it.
The Bottom Line
This article is for general information only and is not legal, tax, or insurance advice. Tax rules are complex and change over time. For free, unbiased Medicare help, contact your State Health Insurance Assistance Program (SHIP) or call 1-800-MEDICARE. For the tax side, talk with a qualified tax professional or a local licensed insurance agent who understands the Medicare rules.
Questions people ask me about this
Why Medicare ends HSA eligibility?
To contribute to an HSA, you must be enrolled in a qualifying high-deductible health plan and have no other disqualifying coverage. Medicare counts as disqualifying coverage. The moment you enroll in Medicare Part A or Part B, you are no longer HSA-eligible. It does not matter that you still have your high-deductible plan through work.
What is the 6-Month lookback: the part that surprises people?
Here is the trap. When you enroll in Medicare Part A after age 65, your Part A coverage is backdated up to 6 months. If you apply at 65 and 6 months, your Part A is backdated to when you turned 65. Why does that matter? Because HSA eligibility is determined month by month.
What to do before 65?
If you are still working at 65 and want to keep your HSA, you have a decision to make. You can delay Medicare enrollment while you have qualifying employer coverage, and keep contributing to your HSA. Many people do this. It is allowed. But if you do, plan your exit.
Get the next guide by email
New guides go out when they are published. No spam, no selling your address, unsubscribe any time.

