Not a government website. Not affiliated with or endorsed by Medicare, CMS, or any government agency.

Medicare enrollment — HSA rules

HSA and Medicare: What Happens to Your Health Savings Account When You Enroll

If you have a Health Savings Account and are approaching Medicare eligibility, the rules around contributions, enrollment timing, and retroactive coverage can be confusing — and costly if you get them wrong. This guide explains exactly how Medicare affects your HSA, when contributions must stop, and what to watch out for.

5 · 94 Google Reviews
Nearly 30 Years Experience
I Personally Return Every Call

You cannot contribute to a Health Savings Account once you are enrolled in any part of Medicare — including Part A. If you want to continue HSA contributions past age 65, you must delay all Medicare enrollment and remain covered only by a qualifying High-Deductible Health Plan. Once you enroll in Medicare, you can still use your existing HSA balance tax-free for qualified medical expenses, but no new contributions are allowed.

Your Independent Medicare Broker

William Gray

Founder of The Medicare Dude · Licensed Since 1998 · Independent Medicare Broker

"I personally return every call."

FL License #W690237Independent — No Carrier BiasNearly 30 Years Experienceus U.S. Air Force Veteran
Verified Google Review

"Very Knowledgable and personable! William made a seemingly difficult transition easy and seamless. I appreciated his unbiased opinion and personalized what was best for me. He took great care in listening to my concerns. I never felt rushed and felt he took a personal interest in assisting me to make the best choice. Not one of those "Big box" sales as seen on TV. Highly recommend William."

Sharon H

Medicare client

5 ★ · 94 reviews

Google

Stop HSA contributions at least 6 months before applying for Social Security or Medicare. When you apply for Social Security, Medicare Part A is automatically enrolled retroactively — up to 6 months back. HSA contributions made during those retroactive months become excess contributions subject to tax and penalty.

How HSA eligibility works

A Health Savings Account (HSA) is a tax-advantaged account available to people enrolled in a qualifying High-Deductible Health Plan (HDHP). Contributions are tax-deductible, growth is tax-free, and withdrawals for qualified medical expenses are tax-free — the triple tax advantage that makes HSAs a powerful retirement savings tool.

To be eligible to contribute to an HSA, you must be enrolled in a qualifying HDHP, not be enrolled in any other health coverage (including Medicare), not be claimed as a dependent on someone else's tax return, and not be enrolled in a general-purpose Flexible Spending Account (FSA). All four conditions must be met for every month you want to contribute.

The IRS sets annual contribution limits for HSAs. For 2026, the limit is $4,300 for self-only HDHP coverage and $8,550 for family coverage, with an additional $1,000 catch-up contribution allowed for individuals age 55 and older. These limits are prorated if you are eligible for only part of the year.

Why Medicare enrollment ends HSA contributions

Medicare is considered 'other health coverage' for HSA purposes. The moment you enroll in any part of Medicare — Part A, Part B, or Part D — you are no longer eligible to contribute to an HSA. This is because HSA eligibility requires that you have no health coverage other than a qualifying HDHP, and Medicare does not qualify as an HDHP.

The month your Medicare coverage begins is the last month you can make a prorated HSA contribution. After that, contributions are not allowed. If you contribute to an HSA after your Medicare enrollment date, those contributions are considered excess contributions and are subject to income tax plus a 6% excise tax for each year they remain in the account.

This rule applies even if you are still working and covered by an employer HDHP. Employer contributions to your HSA also stop once you enroll in Medicare. If your employer contributes to your HSA on your behalf, those contributions must also stop when your Medicare enrollment begins.

The retroactive Part A enrollment risk

One of the most common and costly HSA mistakes involves retroactive Part A enrollment. When you apply for Social Security retirement benefits, Medicare Part A enrollment is automatic and retroactive — up to 6 months back from the date of your application. This means if you apply for Social Security at age 67, your Part A coverage may be backdated to age 66 and 6 months.

If you made HSA contributions during those retroactive months, those contributions become excess contributions — even though you did not know your Part A coverage had started. The IRS treats the retroactive enrollment as if you were enrolled in Medicare during those months, making your contributions ineligible.

To avoid this problem, stop HSA contributions at least 6 months before you plan to apply for Social Security or Medicare. This 6-month buffer accounts for the maximum retroactive enrollment period. If you are unsure about your timing, consult a tax advisor before applying for Social Security or Medicare.

Delaying Medicare to keep contributing to your HSA

If you are still working at 65 and want to continue HSA contributions, you can delay Medicare enrollment — provided your employer has 20 or more employees and your employer plan is primary. Under the Medicare Secondary Payer rules, employers with 20 or more employees must offer the same coverage to employees age 65 and older as to younger employees. Medicare is secondary in this situation, and you can delay enrollment without penalty.

To continue HSA contributions, you must delay both Part A and Part B enrollment. Enrolling in Part A alone — even though it is typically free — ends your HSA eligibility. Many people enroll in Part A at 65 without realizing it stops their HSA contributions. If you want to keep contributing, do not enroll in any part of Medicare until you are ready to stop contributing.

When you eventually retire and enroll in Medicare, you will have a Special Enrollment Period to sign up for Part B without a late enrollment penalty. You will also have a Medigap Open Enrollment Period — the 6-month window beginning when you are 65 or older and enrolled in Part B — during which Medigap insurers cannot use medical underwriting. This window is available even if you enroll in Part B at 67, 68, or later.

Using your existing HSA balance after Medicare enrollment

Enrolling in Medicare does not affect your existing HSA balance. You can continue to use accumulated HSA funds tax-free for qualified medical expenses — including Medicare Part B premiums, Part D premiums, Medicare Advantage premiums, deductibles, copays, and coinsurance. Medigap premiums are not a qualified HSA expense.

After age 65, you can also withdraw HSA funds for non-medical expenses without the 20% penalty that applies before age 65. Non-medical withdrawals after 65 are subject to ordinary income tax, similar to a traditional IRA distribution. This makes an HSA a flexible retirement savings vehicle even after Medicare enrollment ends your ability to contribute.

Many beneficiaries use accumulated HSA balances to pay Medicare premiums and out-of-pocket costs in retirement. If you have been contributing to an HSA for years, the balance can be a meaningful resource for healthcare expenses that Medicare does not fully cover.

Employer contributions and Medicare

If your employer contributes to your HSA, those contributions must also stop when you enroll in Medicare. Employer contributions count toward the annual IRS contribution limit, and they are subject to the same eligibility rules as employee contributions. Once you are enrolled in Medicare, employer contributions to your HSA are treated as excess contributions.

If you are approaching Medicare eligibility and your employer contributes to your HSA, notify your HR department of your enrollment date so they can stop contributions at the right time. Excess employer contributions that are not corrected before the tax filing deadline are subject to the 6% excise tax.

Your existing HSA balance is unaffected by Medicare enrollment

Enrolling in Medicare does not affect your existing HSA balance. You can continue to use accumulated funds tax-free for Medicare Part B premiums, Part D premiums, Medicare Advantage premiums, deductibles, and cost-sharing. Note: Medigap premiums are not a qualified HSA expense.

Medicare and employer coverage guide

Frequently asked questions

Can I contribute to my HSA if I enroll in Medicare Part A only?

No. Enrolling in any part of Medicare — including Part A alone — ends your HSA contribution eligibility. Even though Part A is typically free, it counts as health coverage other than an HDHP and disqualifies you from making HSA contributions.

What happens to my HSA if I enroll in Medicare?

Your existing HSA balance is unaffected. You can continue to use it tax-free for qualified medical expenses, including Medicare premiums (except Medigap), deductibles, and cost-sharing. You simply cannot make new contributions once you are enrolled in Medicare.

How do I avoid the retroactive Part A enrollment problem?

Stop HSA contributions at least 6 months before you plan to apply for Social Security or Medicare. Social Security automatically enrolls you in Part A retroactively up to 6 months, which can make recent HSA contributions excess contributions. The 6-month buffer eliminates this risk.

Can I use my HSA to pay Medicare premiums?

Yes. You can use HSA funds tax-free to pay Medicare Part B premiums, Part D premiums, and Medicare Advantage premiums. Medigap (Medicare Supplement) premiums are not a qualified HSA expense and cannot be paid tax-free from your HSA.

If I delay Medicare to keep contributing to my HSA, will I face a penalty later?

Not if you delay for a valid reason. If your employer has 20 or more employees and you remain actively employed and covered, you can delay Part B without penalty. When you retire, you have an 8-month Special Enrollment Period to enroll in Part B without a late enrollment penalty.

Approaching Medicare and have an HSA?

William Gray is an independent Medicare broker licensed in 19 states. He helps beneficiaries navigate the HSA-to-Medicare transition and choose the right Medigap coverage.

The Medicare Dude

The Medicare Dude is the marketing brand of The Gray Insurance, an independent Medicare insurance agency helping beneficiaries in multiple states compare Medicare Supplement, Medicare Advantage, and Part D plans from represented carriers — at no cost.

The Medicare Dude, LLC | The Gray Insurance.

State Licenses

FL License #W690237

FL Agency #L134055

GA #3718523 · ID #1345734

IN #4150677 · KS #1345734

KY #DOI-641736 · MI #1345734

MO #380055 · MT #3004513517

NC #1345734 · NM #1345734

OH #1606069 · PA #1309973

SC #1345734 · SD #1345734

TX #3305385 · VA #1467411

Not a government website. The Medicare Dude is not affiliated with, endorsed by, or connected to the Centers for Medicare & Medicaid Services (CMS), the U.S. Department of Health and Human Services, or any federal or state government agency. We do not offer every product available in your area. Please contact Medicare.gov, 1-800-MEDICARE, or your local State Health Insurance Program (SHIP) to get information on all of your options. We are a licensed, independent insurance broker. We represent multiple insurance carriers and may receive compensation from the carriers whose plans we sell. This does not affect the cost of your plan.

© 2026 The Medicare Dude. All rights reserved.

Agency License: The Gray Insurance · FL Agency License # L134055  ·  Individual State Licenses (William Gray): FL #W690237 · GA #3718523 · ID #1345734 · IN #4150677 · KS #1345734 · KY #DOI-641736 · MI #1345734 · MO #380055 · MT #3004513517 · NC #1345734 · OH #1606069 · PA #1309973 · TX #3305385 · VA #1467411 · NM #1345734 · SC #1345734 · SD #1345734