HSAs and Medicare: What You Must Know Before You Enroll

If you’re approaching age 65 and still working, you might be covered by an employer's High Deductible Health Plan (HDHP) and actively contributing to a Health Savings Account (HSA). HSAs are incredibly powerful financial tools; they offer a triple tax advantage that no other account can match.

But when Medicare enters the picture, the rules surrounding HSAs become surprisingly complex. A simple misunderstanding about how Medicare enrollment interacts with your HSA can lead to thousands of dollars in IRS penalties.

At Care Compass, we frequently field questions from clients who are navigating this exact transition. Here is everything you need to know about HSAs, Medicare, and how to avoid the most common (and costly) traps.

The Basic Rule: Medicare and HSA Contributions Do Not Mix

The fundamental rule is straightforward: You cannot contribute to an HSA if you are enrolled in Medicare.

To contribute to an HSA, the IRS requires that you be enrolled in a qualified High Deductible Health Plan and have no other "disqualifying" health coverage. Medicare Part A and Part B are both considered disqualifying coverage. The moment your Medicare coverage begins, your eligibility to contribute to your HSA ends.

This rule applies to both your own contributions and any contributions your employer makes on your behalf.

It is important to note that this rule only applies to contributions. You can still keep your HSA open, and you can still spend the funds you have already accumulated on qualified medical expenses tax-free, including Medicare premiums and out-of-pocket costs. You just cannot put new money in.

The Spouse's HSA Trap

One of the most common points of confusion involves married couples where one spouse is on Medicare and the other is still working. The IRS rule applies individually. Your eligibility to contribute to an HSA is based entirely on your coverage, not your spouse's.

If you are the employee carrying the family HDHP and your HSA is in your name, your spouse enrolling in Medicare does not affect your ability to contribute. You can continue contributing up to the family maximum ($8,550 in 2026) as long as you are still covered by the family HDHP and you are not enrolled in Medicare yourself.

However, if your spouse was the one contributing to an HSA in their own name, they must stop contributing the month their Medicare coverage begins.

The Part A Backdating Trap (The Most Dangerous Mistake)

Person circling a date on a calendar planner next to a Medicare health insurance card, representing Medicare enrollment timing

If you delay Medicare past age 65 because you are still working and have creditable employer coverage, you need to be extremely careful when you eventually decide to retire and enroll. This is where the "Part A Backdating Trap" catches many people off guard.

When you apply for Medicare after age 65 (and you are not yet receiving Social Security benefits), your Medicare Part A coverage will automatically backdate up to six months from the date of your application. However, it will never backdate earlier than the month you turned 65.

Because Part A backdates, you could suddenly find yourself with retroactive Medicare coverage for months when you were still actively contributing to your HSA. Those contributions instantly become "excess contributions" in the eyes of the IRS, triggering a 6% excise tax penalty for every year the excess funds remain in the account.

A Real-World Example: Debbie and George

Couple in their 60s reviewing Medicare enrollment and HSA paperwork together at kitchen table

Let's look at a concrete example to see how this plays out.

Debbie turned 65 in January 2026. She continued working and stayed on her employer's family HDHP, which covered both her and her 67 year old husband, George. Because they were on a family HDHP, Debbie contributed the family maximum to the HSA, which was in her name.

Debbie decides to retire at the end of October 2026. George applies for Medicare for November 1st. Because George is over 65, his Part A coverage backdates six months from his application date. However, because the HSA is in Debbie's name and George was never the account holder, his retroactive Medicare enrollment has zero impact on the HSA.

But what about Debbie? She also needs to apply for Medicare. Because she turned 65 in January 2026, her Part A coverage can backdate to January, depending on when she submits her application. Let's assume Debbie stopped contributing to her HSA at the end of March.

Scenario 1: Debbie applies in August 2026

Debbie is retiring at the end of October and wants her Medicare coverage to begin November 1. Because she is losing employer coverage, she qualifies for a Special Enrollment Period and can request a start date up to three months in advance. She submits her application in August 2026. Her Part A coverage will backdate six months from her application date to February 1, 2026. Because her Medicare coverage retroactively began in February, her HSA contributions for February and March become ineligible excess contributions. She will be subject to the 6% IRS excise tax on those funds.

Scenario 2: Debbie applies in October 2026

If Debbie waits and submits her Medicare application in October, her Part A coverage will backdate six months to April 1, 2026. Because she wisely stopped contributing to her HSA on March 31, there is zero overlap between her HSA contributions and her Medicare Part A coverage. She avoids the IRS penalty entirely.


Truman’s Tip

The rule of thumb to avoid the backdating trap is simple: Stop contributing to your HSA six months before the date you plan to APPLY for Medicare. The clock starts ticking on the date your application is submitted, not the date you want your coverage to begin.


What to Do with Your HSA After Medicare

While you cannot add new funds to your HSA once you are on Medicare, the money already in the account remains yours. You can use it tax-free to pay for a wide range of qualified medical expenses, including:

  •   Medicare Part B and Part D premiums

  •   Medicare Advantage premiums

  •   Copayments, coinsurance, and deductibles

  •   Dental, vision, and hearing expenses (which are not covered by Original Medicare)

The only Medicare-related expense you cannot pay for with HSA funds is a Medigap (Medicare Supplement) premium.

If you are navigating the transition from employer coverage to Medicare and have questions about how it impacts your HSA, or if you need help evaluating your plan options, reach out to Care Compass. We are here to help you make sense of the rules and avoid costly mistakes.

Summary

Transitioning to Medicare while managing an HSA requires careful timing, especially if you are working past age 65. Remember that Medicare enrollment instantly disqualifies you from making further HSA contributions. If you are over 65 and applying for Medicare, be aware of the six-month Part A backdating rule, which can trigger IRS penalties if you do not stop your HSA contributions early enough. For a broader overview of how Medicare works, be sure to read our Beginner's Guide to Medicare.

Care Compass is an independent insurance agency that helps seniors navigate the complexities of Medicare and other Senior Products. Our services are offered at NO COST! Care Compass is proudly owned and operated in Blair County, Pennsylvania. We provide Medicare insurance assistance to the residents of Altoona, Hollidaysburg, Duncansville and the surrounding region. If you need assistance with Medicare, contact Care Compass today!

Next
Next

What Medicare Part D Will Cost You in 2027