A health savings account is one of the most tax-friendly accounts in the tax code, but the rules change the moment Medicare enters the picture. The short version: once you have any part of Medicare, you can no longer put money into an HSA. You can still spend what’s already in it, tax-free, including on some Medicare costs. Getting the timing wrong on that switch can cost you a tax penalty, so it pays to understand the rules before you sign up.

Can you contribute to an HSA once you’re on Medicare?

No. This is the rule that catches the most people, so let’s be clear about it. The month your Medicare coverage begins, your eligibility to contribute to an HSA ends.

It doesn’t matter which part of Medicare you enroll in. Part A alone is enough to end your HSA contributions. Many people assume that because Part A is usually premium-free and feels automatic, it doesn’t count. It does. Enrolling in Part A closes the door on new HSA contributions just as much as full Medicare enrollment.

To put money into an HSA in the first place, you have to be covered by a qualifying high-deductible health plan and have no other disqualifying coverage. Medicare is disqualifying coverage. So the month Medicare starts, the contribution faucet shuts off.

This trips up people who keep working past 65 and want to stay on their employer’s high-deductible plan and keep funding the HSA. That can work, but only if they hold off on Medicare. The moment they enroll in any part of it, the HSA contributions have to stop.


Need Medicare Help? Get FREE personalized guidance from our trusted partner Chapter — they represent all major plans and will help you find the one that’s right for YOU.

-Call Now: 440-703-1224 or click https://hlyshm.it/Chapter to get a complete Medicare plan review


The six-month rule that catches people

Here’s the part that’s easy to miss, and it comes straight from Medicare’s own rulebook.

When you sign up for Part A, your coverage doesn’t just start going forward. Premium-free Part A is backdated up to six months, though no earlier than the first month you were eligible for Medicare. So if you sign up well after turning 65, Medicare treats you as having had Part A for the previous six months.

Why does that matter for your HSA? Because if Medicare considers you covered for those six months, you weren’t eligible to contribute during them either. Any HSA contributions you made in that backdated window can become excess contributions, and excess contributions can trigger a 6 percent excise tax until you fix them.

Picture Susan, who keeps working at 66, stays on her employer’s high-deductible plan, and keeps funding her HSA. At 67 she retires and signs up for Medicare. Part A backdates six months. Those last six months of HSA contributions are now excess, and she has to pull them out and untangle the tax mess.

The fix is to plan the stop date. Medicare’s guidance is to make your last HSA contribution at least six months before you apply for Medicare or Social Security. If you’re enrolling right at 65 during your initial enrollment period, the guidance is to make your last contribution the month before you turn 65. Stop early, and the trap never springs.

One related wrinkle: claiming Social Security after 65 automatically enrolls you in Part A, and you generally can’t decline it. So for someone working past 65 who wants to keep contributing to an HSA, delaying both Medicare and Social Security is part of the plan.

The good news: your HSA money still works on Medicare

Losing the ability to contribute is not the same as losing the account. The balance you’ve built stays yours, keeps growing tax-free, and you can keep spending it tax-free on qualified medical expenses for the rest of your life. Medicare changes what goes in, not what comes out.

And here’s a benefit that often gets overlooked: once you’re on Medicare, your HSA can pay for several Medicare costs, tax-free. You can use HSA money for:

  • Medicare Part B premiums
  • Medicare Part D prescription drug premiums
  • Medicare Advantage (Part C) premiums
  • Deductibles, copayments, and coinsurance under any part of Medicare
  • Out-of-pocket costs for prescriptions, dental, and vision

That’s a meaningful benefit. Part B premiums alone start at $202.90 a month in 2026 and run higher for higher earners. Paying those with pre-tax HSA dollars is the equivalent of a discount equal to your tax rate.

There is one notable exception. You generally cannot use HSA funds tax-free to pay Medicare Supplement (Medigap) premiums. Part B, Part D, and Part C premiums qualify; Medigap does not. It’s an odd line, but it’s the rule.

How an HSA becomes a stealth retirement account

This is why financial planners often tell people to treat the HSA less like a checking account for medical bills and more like a retirement account.

An HSA has three tax advantages stacked together: contributions go in pre-tax, the balance grows tax-free, and withdrawals for qualified medical expenses come out tax-free. Few accounts offer all three. A traditional IRA taxes you on the way out. A Roth taxes you on the way in. An HSA can avoid tax on both ends.

If you can afford to pay current medical bills out-of-pocket during your working years and leave the HSA invested, the account can grow for decades and become a dedicated, tax-free fund for the medical costs that tend to arrive in retirement. And medical costs in retirement are not small. Once you’re on Medicare and the contributions stop, that balance is exactly what covers your premiums, your prescriptions, and your out-of-pocket costs, with no tax bill attached.

There’s even a backstop. After age 65, if you withdraw HSA money for something that isn’t a medical expense, you pay ordinary income tax on it but no penalty, the same treatment as a traditional IRA withdrawal. So a well-funded HSA is never wasted. Medical withdrawals are tax-free; everything else just gets taxed like an IRA.

The 2027 HSA numbers, if you’re still eligible

If you’re under 65, not yet on Medicare, and covered by a qualifying high-deductible plan, the contribution limits rise in 2027. Here’s what the IRS has set:

  • Contribution limit: $4,500 for self-only coverage, $9,000 for family coverage
  • Catch-up contribution (age 55 and older): an extra $1,000, on top of the limits above
  • High-deductible plan minimum deductible: $1,750 self-only, $3,500 family
  • Out-of-pocket maximum: $8,700 self-only, $17,400 family

The $1,000 catch-up is the one to watch if you’re in your late 50s or early 60s. It’s set by law and doesn’t change with inflation, but it lets someone 55 or older add meaningfully to the account in the final stretch before Medicare. A married couple who are both 55-plus can each make the $1,000 catch-up, but they have to do it in separate HSAs, since an HSA belongs to one person.

Those catch-up years, from 55 until the month before Medicare, are the last window to build the balance. After that, the account can only be spent down, not added to.

The bottom line on HSAs and Medicare

If you have a health savings account and Medicare is on the horizon, three things matter most. You can’t contribute to an HSA once any part of Medicare begins. Because premium-free Part A backdates up to six months, your last contribution should come at least six months before you apply for Medicare or Social Security. And the balance you’ve built keeps working, tax-free, for medical costs and most Medicare premiums for the rest of your life.

The timing piece is where people lose money, and it’s tangled up with bigger questions: when to claim Social Security, when to leave your employer plan, when to start Medicare. Those decisions all touch each other, and the right move on one depends on the others. It’s worth mapping out the sequence before you act, or talking it through with someone who handles these transitions regularly, because the cost of an avoidable penalty or a missed enrollment window is far higher than the cost of getting good guidance first.

This article is for educational purposes only and is not personalized financial, tax, or medical advice. Medicare and HSA rules change, and your situation is unique. Confirm the current rules at Medicare.gov and IRS.gov, or talk with a qualified professional before making a decision.

Note Chapter is an affiliate relationship of Holy Schmidt!. This means if you purchase a product or use their service, we earn a small commission. This does not increase your cost.

Chapter Advisory, LLC (“Chapter”) is a private health insurance agency. In California, Chapter does business as Chapter Insurance Services (Lic. No. 6003691). Chapter is not affiliated with or endorsed by any government entity. While Chapter has a database of every Medicare plan option nationwide and can help you to search among all options, it has contracts with many but not all plans. As a result, Chapter does not offer every plan available in your area. Currently, Chapter represents 50 organizations which offer 18,601 products nationwide. You can contact a licensed Chapter agent to find out the number of products available in your specific area. Please contact Medicare.gov, 1-800-Medicare, or your local State Health Insurance Program (SHIP) to get information on all of your options. Enrollment in a plan may be limited to certain times of the year unless you qualify for a Special Enrollment Period or you are in your Medicare Initial Enrollment Period. 

Average potential savings are based on realized premium, co-pay, and out of pocket savings estimates self-reported by consumers that worked with Chapter Advisory LLC to enroll in a Medicare Supplement, Medicare Advantage, and/or Part D Prescription Drug Plan. The average is limited to consumers that chose to self-report. Savings information is subject to periodic updates and corrections. There is no guarantee of savings and any savings may vary by policy type, state, or other factors.

Geoff Schmidt

View all posts

Add comment

Your email address will not be published. Required fields are marked *