Skip to main content
Illustration for: Medicare and Your HSA: When to Stop and What It Still Pays
Costs & Savings

Medicare and Your HSA: When to Stop and What It Still Pays

Written by My65 Playbook Editorial Team

Is this article for you?

If you do not have a health savings account, this article is not for you; see our guide to 2026 Medicare costs instead.

Stop putting money into your HSA once your Medicare coverage starts. If you sign up after 65, stop 6 months before you apply, because Part A coverage can start up to 6 months back. The money you already saved stays yours for medical costs, including many Medicare premiums.

Key takeaways

  • Any part of Medicare, even Part A alone, ends your right to add money to an HSA.
  • If you enroll after 65, Part A can start up to 6 months back, but not before the month you turned 65.
  • Starting Social Security at 65 or later signs you up for Part A, so plan your last deposit first.
  • You can keep spending your HSA on medical costs, including Part B, Part D and Medicare Advantage premiums.
  • HSA money cannot pay Medigap premiums.
6 months
How far back Part A coverage can start when you sign up after 65
Source: medicare.gov
HSA deposits made during those back months count as extra, so the last deposit comes 6 months before you apply.

What is a health savings account?

Illustration for: Medicare and Your HSA: When to Stop and What It Still Pays
An HSA balance carries over year after year, so money saved while working can pay Medicare costs later.

A health savings account, or HSA, is a savings account for medical costs. You can open one only if you have a high-deductible health plan, often through a job.

Money you put in is not taxed by the federal government. Money you take out for qualified medical expenses (health costs the IRS allows) is not taxed either. Your balance carries over from year to year, and the account stays yours if you leave your job.

There is no age limit on spending the money. Many people build a balance while working and use it to pay health costs after they retire.

Why does Medicare end HSA deposits?

  • Part A alone
    Ends HSA deposits
  • Part B alone
    Ends HSA deposits
  • Medicare Advantage
    Ends HSA deposits
  • Employer deposits
    Must stop too, not only your own
Even Part A with no premium stops deposits, so working people who take only Part A must stop too.

Federal tax law lets you add money to an HSA only if your sole health coverage is a high-deductible plan. Medicare counts as other coverage. So once any part of Medicare starts, new deposits must stop.

This rule covers Part A alone, Part B alone, or both. It covers deposits from your employer, too, not only your own. Stop payroll deposits before your Medicare start date, not after.

The rule is about deposits, not the account. Your HSA stays open, and the money in it stays yours.

When should you stop contributing?

  1. Initial Enrollment Period opens
    3 months before your 65th birthday month
  2. Medicare usually starts at 65
    First day of your birthday month
    Stop deposits for this month
  3. Initial Enrollment Period ends
    3 months after your birthday month
  4. Signing up after 65
    6 months before you apply
    Make your last deposit before this point
People who work past 65 face the 6-month look-back, so their last deposit comes well before they apply.

If you sign up at 65, Medicare usually starts the first day of your birthday month. That is your Initial Enrollment Period, a 7-month window: the 3 months before, the month of, and the 3 months after your 65th birthday month. Stop deposits for the month your coverage begins.

If you keep working past 65 and sign up later, there is a catch. Part A with no premium can start up to 6 months before the month you apply. It cannot start before the month you turned 65.

That means deposits made in those back months count as extra. So stop deposits 6 months before you apply for Medicare. For more on delaying, see our guide to Medicare enrollment periods.

Does Social Security affect your HSA?

Illustration for: Medicare and Your HSA: When to Stop and What It Still Pays
Picking a Social Security start date also picks a Part A start date, so plan both together.

Yes. If you start Social Security retirement benefits at 65 or later, you are signed up for Part A at the same time. You cannot keep Social Security benefits and turn down Part A.

Part A is backdated in this case too, up to 6 months. So if you plan to start Social Security after 65, make your last HSA deposit at least 6 months before you apply.

If you already get Social Security before 65, you are signed up for Medicare on your own. Coverage then starts at 65, so stop deposits before your birthday month.

What if you added money by mistake?

  • Find your Medicare start date
    It is on your Medicare card and letter
  • Count deposits made on or after that date
  • Ask your HSA company to remove the extra
    Before your tax filing deadline
  • Tell your employer to stop payroll deposits
Removing the extra before the filing deadline keeps it from facing an added tax each year.

The yearly HSA limit is figured month by month. For the year Medicare starts, you can add money only for the months before your coverage begins.

If you put in too much, ask your HSA company for a removal of excess contributions. Do this before your tax filing deadline for that year. Money left in as extra can face an added tax each year it stays.

Tell your employer, too, so payroll deposits stop. Keep the letter that shows your Medicare start date with your tax papers.

What can you still pay for with your HSA?

Can your HSA pay it?Good to know
Part B and Part D premiumsYesIncludes the higher-income charge
Medicare Advantage premiumsYesPremiums vary by plan and location
Part A premiumYesOnly if you pay one
Medigap premiumsNoPay these from other money
Deductibles, copays and coinsuranceYesFor Medicare and plan costs
Dental, vision and hearing careYesEven when Medicare does not cover it
Medigap is the one Medicare-related premium your HSA cannot pay, so budget for it from other money.

Your HSA can still pay many health costs without federal income tax, even after Medicare starts. The table shows the main ones.

CostCan your HSA pay it?
Part B and Part D premiumsYes
Medicare Advantage premiumsYes
Part A premium, if you pay oneYes
Medigap premiumsNo
Deductibles, copays and coinsuranceYes
Dental, vision and hearing careYes

The key line is Medigap. Every other Medicare premium on the list is allowed, but Medigap premiums are not.

These costs add up. The 2026 standard Part B premium is $202.90 a month, and the 2026 Part B deductible is $283. The 2026 Part A hospital deductible is $1,736 per benefit period. All are set each year. For a fuller list, see Understanding Your 2026 Medicare Costs.

Can your HSA pay the higher-income charge?

$202.90
2026 standard monthly Part B premium (set each year)
Source: cms.gov
Higher-income enrollees pay more than this amount, and the extra charge can also come from an HSA.

Yes. Some people with higher incomes pay IRMAA (an extra monthly charge on Part B and Part D premiums for higher incomes). You can pay that extra charge from your HSA, since it is part of your Medicare premium.

To learn who pays it and how it is figured, see Navigating IRMAA.

Can your HSA pay a spouse's costs?

Illustration for: Medicare and Your HSA: When to Stop and What It Still Pays
Your spouse does not need to be on Medicare for your HSA to pay their medical bills.

Yes. Your HSA can pay qualified medical expenses for your spouse and dependents, whether or not they have Medicare. If you are 65 or older, it can also pay your spouse's Medicare premiums.

If your spouse is younger and has their own high-deductible plan, they can open their own HSA. Your Medicare does not stop your spouse from adding to their own account.

The rule follows each person. Once your spouse starts Medicare, their own deposits must stop too, using the same 6-month look-back if they sign up after 65.

What about other withdrawals after 65?

  • Medical costs
    Not taxed by the federal government
  • Other costs after 65
    Taxed as regular income, no added penalty
  • Keep every medical receipt
    Proof for the IRS
Receipts let you show the IRS which withdrawals paid for care and should not be taxed.

After 65, you can take HSA money out for any reason. If you use it for something other than medical costs, you pay regular income tax on it. There is no added tax penalty after 65.

Money used for qualified medical costs is still not taxed. Keep receipts for each medical payment. They show the IRS why a withdrawal was not taxed.

Here is an example. If you take money out to pay for a trip, that amount is added to your taxable income for the year. If you take the same amount out to pay a hospital bill, it is not taxed.

What counts as a qualified medical expense?

  • Doctor, hospital and lab bills
    Including Medicare deductibles and copays
  • Prescription and over-the-counter medicines
  • Dental, vision and hearing care
  • Medical equipment and supplies
  • Medicare premiums
    Not Medigap premiums
A cost paid from your own pocket can be paid back from your HSA later, as long as you keep the receipt.

A qualified medical expense is a cost to diagnose, treat or prevent an illness or injury. The care must be for you, your spouse or your dependents. Common examples include:

  • Doctor, hospital and lab bills, including Medicare deductibles, copays and coinsurance
  • Prescription drugs, and over-the-counter medicines
  • Dental care, eyeglasses, contact lenses and hearing aids
  • Medical equipment, such as a walker, a wheelchair or diabetic supplies
  • Part A, Part B, Part D and Medicare Advantage premiums, but not Medigap premiums

Costs that are mainly for general health or looks do not count. Cosmetic surgery, gym fees and vitamins taken for general health are common examples. If a cost is not on the list above and is not for a medical condition, treat the withdrawal as taxable income.

You do not have to pay yourself back right away. You can pay a medical bill from your own pocket, keep the receipt, and take that amount from your HSA later, as long as the cost came after you opened the HSA.


Have questions? Call 1-877-443-3251 to talk it through with a licensed insurance agent. You never pay the agent; the plans they represent do, and the decision stays yours.

We do not offer every plan available in your area. Please contact Medicare.gov or 1-800-MEDICARE to get information on all of your options. Medicare has neither reviewed nor endorsed this information.

What to do this week

  1. Write down the month you plan to start Medicare or Social Security, whichever comes first.
  2. If that month is after you turn 65, count back 6 months and mark your last HSA deposit date.
  3. Tell your employer's payroll or benefits office the date to stop all HSA deposits.
  4. Check this year's HSA deposits and ask your HSA company to remove any made after Medicare starts.
  5. Make a list of Medicare costs you will pay from your HSA, leaving out any Medigap premium.
  6. Start a folder for medical receipts paid from your HSA.

A real example

Kevin turned 65 last March and is now 66. He still works full time and has a high-deductible plan with an HSA through his job. He plans to retire and apply for Medicare and Social Security together in October. Since he is past 65, Part A can start up to 6 months before he applies, which puts his Part A start date in April. Kevin tells payroll in writing to make his last HSA deposit in March, so no deposit falls in April through October. For that year, he can add money only for January through March, so he limits his own deposits to those months. In May, he checks his pay stub and sees that one employer deposit went in for April. He asks his HSA company for a removal of excess contributions for that deposit before his tax filing deadline, and payroll confirms deposits have stopped. After Medicare starts, he plans to pay his Part B premium from his HSA. The 2026 standard Part B premium is $202.90 a month and is set each year. He will pay for any Medigap policy from his checking account.

Medicare Disclaimer

We do not offer every plan available in your area. Please contact Medicare.gov or 1-800-MEDICARE to get information on all of your options. Medicare has neither reviewed nor endorsed this information.

Frequently asked questions

Can I keep my HSA after I sign up for Medicare?

Yes. The account stays open and the money stays yours. You just cannot add new money once any part of Medicare starts.

Why do I need to stop HSA deposits 6 months before I apply?

If you sign up after 65, Part A coverage can start up to 6 months before the month you apply, but not before the month you turned 65. Deposits made in those months count as extra.

Can my employer keep putting money in my HSA after Medicare starts?

No. The rule covers employer deposits as well as your own, so ask your employer to stop payroll deposits before your Medicare start date.

Can I use my HSA to pay Medigap premiums?

No. Your HSA can pay Part B, Part D, Medicare Advantage and Part A premiums, but not Medigap premiums.

Can I delay Part A to keep contributing to my HSA?

If you are not getting Social Security benefits, you can delay Part A while you have job-based coverage. If you get Social Security at 65 or older, you are signed up for Part A and cannot turn it down while keeping those benefits.

Is HSA money taxed if I use it for non-medical costs after 65?

Yes, it is taxed as regular income, but there is no added tax penalty after 65. Money used for qualified medical costs is not taxed.

Keep reading