The month any part of Medicare starts, your legal limit on new HSA contributions drops to zero, and a backdated enrollment rule can quietly turn last year's contributions into a tax bill. Health Savings Accounts and Medicare don't mix the way people expect, and the place it goes wrong is timing. This guide walks through what changes when you enroll, the six-month trap that catches people who work past 65, what you can still spend your HSA on, and the 2026 contribution limits.

The one rule that surprises everyone

You can keep your HSA after you go on Medicare. What you can't do is keep funding it.

A Health Savings Account is paired with a high-deductible health plan, and the tax rules say you can only contribute while you have that qualifying coverage and no disqualifying coverage. Medicare counts as disqualifying coverage. So beginning the first month you're enrolled in any part of Medicare, including premium-free Part A, your HSA contribution limit is zero, per IRS Publication 969. It isn't reduced or prorated for that month. It's zero.

This catches people because Part A enrollment is often automatic and easy to forget. If you started collecting Social Security, you were enrolled in Part A whether you thought about it or not. From that month forward, any money you or your employer puts into your HSA is an excess contribution.

How the six-month trap works

This is the costliest mistake, so it's worth slowing down on.

Say you turn 66 and decide to retire. You apply for Social Security in June. The Social Security Administration grants premium-free Part A, and federal rules backdate that coverage six months, to December of the prior year. The catch is that you were contributing to your HSA through your employer's plan for all of those months, January through June, believing you were still eligible. You weren't. Part A had retroactively started in December, so every contribution after that point is an excess contribution.

Excess contributions don't just get refunded quietly. They're included in your taxable income, and if they aren't removed in time, they can carry an additional excise tax for each year they sit in the account. The IRS has a procedure for withdrawing excess contributions, but it's far easier to never make them.

The practical rule is simple to state and easy to get wrong. If you think you'll enroll in Medicare or start Social Security at some point, stop HSA contributions six full months before that date. People who plan to work well past 65 sometimes set a personal cutoff the moment they decide on a retirement timeline, precisely so the backdating can't reach a single contributed dollar.

What you can still do with the money

Losing the ability to contribute doesn't lock up the balance you already have. The funds stay yours, and they keep their tax advantage when you spend them on qualified medical expenses.

In fact, an HSA becomes genuinely useful once you're on Medicare, because it can pay for a long list of Medicare costs tax-free:

  • Medicare premiums. You can use HSA funds tax-free for Part B premiums, Part D premiums, and Medicare Advantage (Part C) premiums.
  • Out-of-pocket Medicare costs. Deductibles, copayments, and coinsurance under Parts A and B all qualify.
  • Other qualified medical expenses. The usual list still applies, from prescriptions to dental and vision care that Medicare doesn't cover.

There's one important exception. You cannot use HSA funds tax-free to pay a Medigap (Medicare Supplement) premium. Medigap premiums are specifically excluded, even though most other Medicare premiums are allowed. Pay those with other money.

If you're working past 65

A lot of people now stay on the job past 65 and keep their employer's high-deductible health plan, which is exactly the setup that makes an HSA worth protecting. You can keep contributing, but only under specific conditions.

The key idea is that HSA eligibility is determined month by month. You can contribute for any month in which you have qualifying high-deductible coverage and no part of Medicare, including no retroactive Part A. The federal guidance on working past 65 explains how delaying Medicare works when you have current employer coverage. The thing to hold onto for HSA purposes: the moment any Medicare coverage begins, including a backdated Part A start, your contribution eligibility ends for those months.

Two situations trip people up here:

  • Drawing Social Security while still working. Once you're receiving Social Security, you're enrolled in Part A and can no longer contribute, even if you're still covered by your employer's plan. If you want to keep funding your HSA, you generally can't be collecting Social Security.
  • Delaying both Medicare and Social Security. If you delay both and keep creditable employer coverage, you can keep contributing right up until coverage starts, then account for the six-month backdating when you finally enroll.

How and when you eventually move onto Medicare ties into your enrollment windows and how your coverage coordinates. The timing of that handoff is its own decision worth getting right.

2026 HSA contribution limits

For anyone still HSA-eligible in 2026, here are the figures the contribution rules are built around.

Coverage type 2026 contribution limit
Self-only high-deductible coverage $4,400
Family high-deductible coverage $8,750
Catch-up contribution (age 55 and older) $1,000 additional

The $1,000 catch-up is per eligible person, so a married couple who both qualify and are both 55 or older can each add a catch-up, though each catch-up must go into that person's own HSA. And remember the prorating rule: if you're only HSA-eligible for part of the year because Medicare starts mid-year, your annual limit is reduced for the months you're no longer eligible.

These figures and timing rules carry real tax consequences, and everyone's situation has its own wrinkles, so it's worth confirming your specific case with a tax professional before you act.

Frequently asked questions

No. Any part of Medicare, including premium-free Part A, makes you ineligible to contribute. The contribution limit becomes zero starting the first month Part A is in effect, even if you have no Part B and are still covered by an employer's high-deductible plan.

It stays yours. You keep the account and can spend the balance tax-free on qualified medical expenses, including most Medicare premiums, deductibles, copays, and coinsurance. You simply can't add new contributions.

Yes, for Part B, Part D, and Medicare Advantage premiums, all tax-free. The exception is Medigap (Medicare Supplement) premiums, which do not qualify for tax-free HSA payment.

At least six months. Because premium-free Part A is backdated up to six months when you enroll after 65, stopping six months ahead keeps the retroactive start from overlapping any contribution.

Learn More

Find personalized help timing your Medicare enrollment around an HSA at brevy.com.


The information on Brevy.com is for educational purposes only and is not a substitute for professional legal, financial, or medical advice. Rules vary by state and program and change frequently. Always verify with the relevant agency or a qualified professional. Brevy is not a law firm, financial advisor, or healthcare provider.

BC

Brevy Care Team

Expert eldercare guidance from Brevy's team of healthcare professionals and researchers.