HSA and Medicare: What You Need to Know Before Enrolling

Last Modified: 10/05/2026 | Reviewed by Keith Armbrecht (NPN 634015)

Quick Summary

Once you’re enrolled in Medicare, you can no longer contribute to a Health Savings Account without potential tax consequences.

This becomes especially important for people working past age 65.

Medicare advises people with an HSA who are applying for Medicare or Social Security after 65 to generally stop HSA contributions at least 6 months before retiring or applying for Social Security benefits, because premium-free Medicare Part A can be retroactive for up to six months when you enroll after 65, but not earlier than your first month of Medicare eligibility.

Key Facts

  • You can use existing HSA money after Medicare begins.
  • You generally can’t make HSA contributions once enrolled in Medicare.
  • Medicare Part A enrollment affects HSA contribution eligibility.
  • Part B enrollment also means you’re enrolled in Medicare.
  • Premium-free Part A can be retroactive when enrolling after 65.
  • Medicare recommends stopping HSA contributions six months before retirement or applying for Social Security/Railroad Retirement benefits in applicable situations.
  • Employer HSA contributions also matter.
  • You don’t have to spend your HSA before Medicare begins.
  • Existing HSA funds can still be used for qualified medical expenses.
  • HSA funds can be used for certain Medicare premiums, but not generally Medigap premiums.

Can You Keep Your HSA After 65?

Yes.

Turning 65 doesn’t require you to close your HSA.

You can continue owning the account and spending existing funds.

The issue is making new contributions after Medicare coverage begins.

Can You Contribute to an HSA While on Medicare?

Generally no.

Once you’re enrolled in Medicare, you’re no longer eligible to make HSA contributions.

This applies even if you still have an HSA-qualified employer health plan.

The Six-Month Medicare Part A Issue

Suppose you’re 68 and finally enroll in Medicare.

If you’re eligible for premium-free Part A, your Part A coverage can generally be retroactive for up to six months.

That retroactive period can overlap with HSA contributions you’ve already made.

This is why Medicare recommends planning HSA contributions carefully before applying.

Example

You plan to retire:

December 31

and apply for Medicare after age 65.

Medicare advises people in this situation to consider stopping HSA contributions approximately:

6 months before retirement/application

to avoid excess-contribution problems created by retroactive Part A.

Your specific tax situation should be reviewed with a qualified tax professional.

Can You Spend HSA Money After Medicare Starts?

Yes.

Existing HSA funds remain yours.

You can use them tax-free for qualifying medical expenses.

Certain Medicare premiums can also qualify for HSA reimbursement under tax rules.

Video Explanation from Keith

HSA and Medicare: The 6-Month Rule You Need to Know

Keith's Take

This is a planning issue people often discover too late.

They’re working past 65, contributing to an HSA and then decide:

“I’m retiring next month. I’ll sign up for Medicare.”

The problem is that Part A can potentially reach backward.

If you’ve continued contributing to the HSA during those retroactive months, you may create a tax problem.

If you’re working after 65 with an HSA, put Medicare planning on your calendar well before retirement.

Keith Armbrecht
Keith Armbrecht
Medicare on Video

Frequently Asked Questions About HSAs and Medicare

Q. Can I have an HSA after age 65?
A. Yes.
Q. Can I contribute to it after Medicare starts?
A. Generally no.
Q. Can I keep spending my existing HSA money?
A. Yes.
Q. Why does Medicare mention six months?
A. Premium-free Part A can generally be retroactive for up to six months when you enroll after 65.
Q. What if I enroll in only Part A?
A. Part A is Medicare coverage, so it affects HSA contribution eligibility.
Q. Can my employer keep contributing after I'm on Medicare?
A. Employer contributions also count toward HSA contribution limits and eligibility rules.
Q. Do I lose the money already in my HSA?
A. No.
Q. Can I use HSA funds for Medicare premiums?
A. Certain Medicare premiums can qualify. Medigap premiums generally don't qualify for tax-free HSA reimbursement.

Official Government Sources

Explore Related Guides

Explore Related Guides

Medicare On Video Logo

Get Your Free Medicare Quote

Invalid Date Format

Have more questions?

GET MEDICARE ENROLLMENT HELP Call 877-885-3484.

GET MEDICARE ENROLLMENT HELP

Call 877-885-3484

Medicare On Video Logo Icon dark
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.