Health Savings Accounts and Medicare do not mix well, and the rules that connect them are some of the most misunderstood in retirement planning. If you are approaching 65, still working, or thinking about claiming Social Security, one wrong step can turn tax-deductible HSA contributions into excess contributions subject to a 6% IRS excise tax every year they sit in the account. This guide walks you through why Medicare enrollment ends HSA contributions, how the 6-month Part A lookback creates hidden penalties, which Medicare expenses you can still pay tax-free from an existing HSA, and how workers past 65 can preserve HSA eligibility while keeping employer coverage. You will also find a decision framework for the year before Medicare and answers to the most common spousal HSA questions.
Medicare and HSA Rules: Contributions, Penalties and How to Avoid Tax Traps
How Medicare enrollment ends HSA contributions, why the 6-month lookback matters, and how to use existing HSA dollars for Medicare premiums.
Key Takeaways
- Any Medicare enrollment ends HSA contribution eligibility that month
- Part A backdates up to 6 months, creating excess contributions
- Excess HSA contributions face a 6% IRS excise tax yearly
- HSA funds pay Part B, D, and Advantage premiums tax-free
Why Medicare Enrollment Ends HSA Contributions
Federal tax law says you can only contribute to a Health Savings Account if you are covered by a qualifying high-deductible health plan (HDHP) and have no other disqualifying coverage. The IRS treats Medicare as disqualifying coverage. Beginning the first month you are enrolled in any part of Medicare, including premium-free Part A, your HSA contribution limit drops to zero, according to IRS Publication 969. That rule holds even if you keep your HDHP through an employer.
This is one of the most common sources of confusion for people working past 65. Simply being eligible for Medicare does not end your HSA eligibility. Actual enrollment does. If you delay Medicare and stay on a qualifying HDHP, you can keep contributing. The moment any Medicare coverage becomes effective, contributions must stop.
This Applies to Every Part of Medicare
The good news is that your existing HSA balance is not affected. You keep the account, the money stays invested, and you can continue to withdraw funds tax-free for qualified medical expenses for the rest of your life. You just cannot add new money once Medicare starts. For workers weighing this decision, our guide on working past 65 with employer coverage walks through the trade-offs in detail.
Find a Better Medicare Plan in Ohio
Compare quotes from top-rated carriers with free, unbiased help from licensed advisors.
The 6-Month Part A Lookback Rule
Here is where most people get burned. If you enroll in premium-free Part A after age 65, Medicare backdates your coverage by up to six months from your application date, but not earlier than the month you first became eligible (usually the month you turned 65). That retroactive start date, not your enrollment date, is what ends your HSA eligibility.
For example, if you apply for Medicare on August 1, Part A can be treated as having started as early as February 1. Any HSA contributions you or your employer made between February and August become excess contributions the moment Medicare backdates.
Medicare Savings Tip
Why This Trap Is So Easy to Fall Into
Most people assume their HSA cutoff is the month Medicare "starts," but the IRS uses the effective date of Part A coverage, which can be six months earlier than they expect. Payroll deductions, employer matches, and automatic transfers all keep flowing during that lookback window, quietly building excess contributions.
The IRS Penalty and How to Fix Excess Contributions
Contributions made after your Medicare effective date are treated as excess HSA contributions. The IRS charges a 6% excise tax on the excess amount every year it stays in the account. Leave the excess in for three years and you have paid 18% in penalties on that money before you even withdraw it.
There is a way to correct the mistake if you catch it in time. You can withdraw the excess contribution plus any earnings on that money by the due date of your tax return (including extensions) for the year the contribution was made. This is called a "withdrawal of excess contribution," not a regular HSA distribution, so you must contact your HSA custodian and specifically request the corrective withdrawal.
| Correction Step | Action |
|---|---|
| Identify the excess | Calculate contributions made during Medicare's retroactive coverage period |
| Contact custodian | Request a "removal of excess contribution" (not a normal withdrawal) |
| Withdraw by deadline | Take out the excess plus earnings by your tax filing deadline |
| Report earnings | Include the earnings portion in your gross income for that year |
If you miss the correction window, the only way to stop the 6% penalty from repeating is to eventually pull the excess out or die (excess contributions cannot be absorbed by future contribution room once Medicare has started, because your limit is permanently zero).
Free & No Obligation
Compare Medicare Supplement Plans in Ohio
See if you qualify for a better Medigap rate in less than 2 minutes.
Using HSA Funds to Pay Medicare Expenses Tax-Free
Once you are 65 or older, your existing HSA becomes a powerful tool for paying Medicare costs. Withdrawals for qualified medical expenses remain tax-free at any age, and after 65 the list of qualified expenses expands to include most Medicare premiums.
HSA-Eligible Medicare Costs
- Part B premiums ($202.90/month in 2026)
- Part D prescription drug premiums
- Medicare Advantage (Part C) premiums
- Deductibles, copays, coinsurance
- IRMAA surcharges on Part B and Part D
NOT HSA-Eligible
- Medigap (Medicare Supplement) premiums
- Over-the-counter cosmetics
- Non-medical expenses (taxed as income)
- Health club dues
- Funeral expenses
The Medigap exclusion catches many retirees off guard. If you buy a Medicare Supplement plan, you have to pay the premium with after-tax money, not HSA dollars. For most people, Original Medicare plus Medigap is still the best coverage structure, and our Medigap plans comparison explains the trade-offs. Just plan to fund the premium outside your HSA.
Reimbursing Yourself
You do not have to swipe your HSA debit card at the moment you pay a Medicare premium. If Social Security deducts your Part B premium from your check, you can reimburse yourself from the HSA later. Just keep documentation showing the premium was paid and that you had HSA-eligible status at the time.
Delaying Medicare to Preserve HSA Contributions
If you are still working at 65 with employer HDHP coverage, delaying Medicare can be a smart financial move. The 2026 HSA contribution limits are $4,400 for self-only coverage and $8,750 for family coverage, plus a $1,000 catch-up for anyone 55 or older. That is meaningful tax-deductible savings you would lose by enrolling in Medicare early.
Pros
- Continue tax-deductible HSA contributions past age 65
- Avoid Part B premiums while working ($202.90/month in 2026)
- Special Enrollment Period protects you from late penalties
- Employer plan may offer richer benefits than Medicare
Cons
- Must stop HSA contributions 6 months before Medicare starts
- Only works if employer has 20+ employees (Medicare Secondary Payer rules)
- Losing track of the SEP window creates permanent Part B penalty
- Some employer HDHPs cost more than Medicare + Medigap
Under Medicare Secondary Payer rules, if you or your spouse works for an employer with 20 or more employees, your group health plan pays primary and you can safely delay Part B without a late enrollment penalty. When you retire or lose that coverage, you get an 8-month Special Enrollment Period to sign up. For smaller employers (fewer than 20 employees), Medicare typically pays primary, so most workers should not delay. Learn more about how Medicare coordinates with other insurance before making a delay decision.
Compare Medicare Supplement Plans in Ohio
Find the right Medigap plan with free, unbiased advice from licensed advisors.
Spousal HSA Rules and the Social Security Trap
Medicare enrollment is individual. If your spouse enrolls in Medicare but you remain on a qualifying HDHP, you can still contribute to your own HSA. In fact, if your HDHP is family coverage that still covers your Medicare-enrolled spouse as a dependent, you may still contribute up to the full family limit of $8,750 for 2026, even though your spouse can no longer contribute anything.
A few important spousal points:
- Each spouse's $1,000 catch-up contribution (age 55+) must go into that spouse's own HSA. It cannot be added to the other spouse's account.
- Once one spouse enrolls in Medicare, that spouse's own HSA contribution limit becomes zero, but they can still use their existing HSA to pay qualified expenses.
- HSA funds can pay for a spouse's qualified medical expenses, including a Medicare-enrolled spouse's Part B, Part D, or Advantage premiums.
The Social Security Enrollment Trap
Here is the trap that catches high earners who plan to work past 65. If you file for Social Security after 65, the Social Security Administration automatically enrolls you in premium-free Part A. And because of the 6-month lookback, Part A is backdated up to six months from your Social Security filing date. Every HSA contribution during those retroactive months becomes an excess contribution.
Filing for Social Security = Filing for Medicare Part A
Decision Framework for Approaching 65 With an HSA
Here is a straightforward way to decide what to do with your HSA in the year before 65:
| Your Situation | Recommended Action |
|---|---|
| Retiring at 65, not working | Enroll in Medicare at 65; stop HSA contributions the month before Medicare starts |
| Working at 65+, large employer HDHP | Delay Medicare, keep contributing to HSA, monitor employer coverage status |
| Working at 65+, small employer (under 20) | Enroll in Medicare; group plan pays secondary anyway |
| Claiming Social Security after 65 | Stop HSA contributions 6 months before filing |
| Spouse turning 65, you are younger | Your HSA is unaffected if you stay on an HDHP |
| Already made excess contributions | Withdraw excess plus earnings before tax deadline |
Once you do enroll in Medicare, the next planning step is choosing coverage. Many people pair Original Medicare with a supplement policy for predictable costs. Our guide on choosing a Medigap plan walks through Plan G and Plan N benchmarks and the 6-month Medigap Open Enrollment Period that starts the month your Part B becomes effective.
Find a Better Medicare Plan in Ohio
Compare quotes from top-rated carriers with free, unbiased help from licensed advisors.
Frequently Asked Questions
Can I contribute to an HSA if I only have Medicare Part A?
No. Enrollment in any part of Medicare, including premium-free Part A alone, ends your HSA contribution eligibility starting the first month of coverage. This applies even if you keep your HDHP through an employer. Existing HSA funds remain available for qualified medical expenses.
What if I already made HSA contributions after enrolling in Medicare?
Contact your HSA custodian and request a "withdrawal of excess contribution" (not a regular distribution) before the due date of your tax return, including extensions. You must remove the excess amount plus any earnings on it. The earnings portion is taxable income in the year withdrawn, but you avoid the 6% excise tax that would otherwise apply every year the excess remains.
Can I use my HSA to pay for my Medigap premium?
No. Medicare Supplement (Medigap) premiums are specifically excluded from HSA-eligible expenses under IRS rules. You can use HSA funds tax-free for Part B, Part D, and Medicare Advantage premiums, but Medigap premiums must be paid with after-tax dollars.
Does my spouse's Medicare enrollment end my HSA eligibility?
No. HSA eligibility is determined individually. If your spouse enrolls in Medicare but you remain covered under a qualifying HDHP and have no other disqualifying coverage, you can continue contributing to your own HSA. If you carry family HDHP coverage that still covers your spouse, you may still use the full family contribution limit.
How far in advance should I stop HSA contributions before enrolling in Medicare?
Stop all HSA contributions at least 6 months before your Medicare effective date or before applying for Social Security after age 65. This accounts for the retroactive Part A lookback, which can backdate coverage up to six months. Both your personal contributions and employer contributions must stop during this window.
Ready to Compare Guides Plans?
Get personalized Medicare Supplement quotes in Ohio. Free, no obligation — compare plans from top-rated carriers.
Get My Free Quote