November 22, 2026

HSA and Medicare: When to Stop Contributing

You cannot contribute to an HSA once Medicare starts. See the six-month look-back, when to stop contributing, and what HSA money can pay for.

Glass jar of coins beside a stethoscope and notebook

By Ryan O'Connell, licensed Medicare agent, Lifetime Medicare Partners. Updated November 21, 2026.

You cannot contribute to a Health Savings Account (HSA) once you are enrolled in any part of Medicare. You can keep the account and keep spending the money in it on qualified medical expenses, tax-free. The timing of your last contribution matters because Medicare Part A coverage can start up to six months before the date you apply.

The basic rule

To contribute to an HSA, you must be covered by a high-deductible health plan and have no other disqualifying health coverage. Medicare counts as other coverage. That includes premium-free Part A.

The rule applies to contributions from you and from your employer.

The six-month look-back

If you sign up for Medicare Part A after you turn 65, your Part A coverage is retroactive. It is backdated up to six months, but not earlier than the month you turned 65. Any HSA contributions made during those backdated months are excess contributions.

For that reason, many people stop HSA contributions six months before they apply for Medicare.

Applying for Social Security retirement benefits at 65 or later also enrolls you in Part A automatically. You cannot collect Social Security and decline premium-free Part A.

Your contribution limit in the year you enroll

Your HSA limit for that year is prorated. You can contribute for the months before your Medicare coverage began, counting the look-back.

Excess contributions that are not withdrawn are subject to a 6% excise tax for each year they remain in the account. Your tax professional or HSA custodian can help you correct an excess contribution.

If you are still working at 65

You may be able to delay Medicare enrollment and keep contributing to your HSA if you have a high-deductible group health plan through current employment. HSAs and Medicare do not mix, so the decision is all or nothing. To do that:

  • Do not enroll in Part A or Part B.
  • Do not apply for Social Security retirement benefits.
  • Confirm how your employer plan works with Medicare. At employers with fewer than 20 employees, Medicare generally pays first, so delaying may leave gaps.

See Working Past 65: Do You Need Medicare Part B?

What you can spend HSA money on after you have Medicare

Your HSA funds stay yours, whether you choose Original Medicare or a Medicare Advantage plan (Part C). Withdrawals for qualified medical expenses remain tax-free. Qualified expenses include:

  • Medicare Part B premiums
  • Medicare Part D premiums
  • Medicare Advantage plan premiums
  • Deductibles, copayments and coinsurance
  • Dental, vision and hearing care
  • Qualified long-term care insurance premiums, up to limits set by the IRS

Medicare Supplement (Medigap) premiums are not a qualified expense.

After age 65, withdrawals for anything other than qualified medical expenses are taxed as ordinary income, without the additional penalty that applies before 65.

If your spouse is still under 65

HSA eligibility is individual. If your spouse is not on Medicare and is covered by a high-deductible health plan, your spouse can open and fund an HSA in their own name, even after you enroll in Medicare.

Source: IRS Publication 969 and Medicare.gov.

A short checklist

  1. Decide when you will apply for Medicare or Social Security.
  2. Stop HSA contributions six months before that date if you will be past 65.
  3. Tell your employer's payroll or benefits office so employer contributions stop too.
  4. Calculate your prorated limit for the year with your tax professional.
  5. Keep receipts for qualified medical expenses.

Frequently asked questions

Can I contribute to an HSA after enrolling in Medicare?

No. Once you are enrolled in Medicare Part A, Part B or both, you are no longer eligible to contribute. You can keep using the money already in the account.

Do Social Security benefits affect my HSA?

Yes. Starting Social Security benefits at 65 or later enrolls you in Part A, which ends your eligibility to make HSA contributions.

Can I contribute to an HSA if I only have Medicare Part A?

No. Enrollment in any part of Medicare ends your eligibility to contribute.

Can I use my HSA to pay Medicare premiums?

Yes, for Part B, Part D and Medicare Advantage premiums. Not for Medicare Supplement premiums.

What happens if I contribute after Medicare starts?

The contribution is an excess contribution. Unless it is withdrawn, a 6% excise tax applies each year.

Does turning 65 end my HSA eligibility?

No. Enrolling in Medicare does. If you delay Medicare and Social Security and keep a high-deductible health plan, you can keep contributing.

Can my employer keep contributing to my HSA after I enroll in Medicare?

No. Employer contributions count the same as your own.

Planning your move to Medicare? Request a plan review or call 800-560-9373.

Lifetime Medicare Partners is not connected with or endorsed by the U.S. government or the federal Medicare program. This article is general information, not tax advice. Consult a tax professional about your situation.

Read more

Folder of paperwork, prescription bottles and a checklist notepad on a table

What to Bring to a Medicare Appointment

November 22, 2026

A checklist of what to bring to a Medicare appointment: cards, prescriptions, doctors and dates, plus what to expect at a plan review.

Alarm clock beside a desk planner, pen and envelope

Medicare Late Enrollment Penalties: Part A, Part B and Part D

November 22, 2026

How the Medicare Part A, Part B and Part D late enrollment penalties are calculated, how long they last, and how to avoid them.

Calculator, paper forms, pen and reading glasses on a desk

What Is IRMAA? How Medicare's Income Surcharge Is Calculated

November 22, 2026

IRMAA is the income surcharge on Medicare Part B and Part D premiums. See what income counts, the 2027 brackets, and how to ask for a lower amount.

Illustrative scene of an advisor listening to an older couple

A conversation built around you.

Your doctors. Your prescriptions. Your priorities. Bring your questions, and we’ll help you understand your options and next steps.

Prefer to call? 800-560-9373
Contact Us

Let’s review your Medicare options

Request a free conversation with our team. We’ll contact you to arrange your review, or you can choose a meeting time that works for you.

Thank you—your request has been received. Our team will contact you to arrange a conversation. Your meeting is not booked until a time is confirmed.
We couldn’t send your request. Please try again, or call 800-560-9373 for help.