Health savings account and Medicare

Also called: HSA, health savings account, Form 8889, Medicare MSA

In short: You cannot add money to a health savings account (HSA) for any month you are enrolled in Medicare. Because Part A can start up to 6 months before the date you sign up, Medicare tells workers to stop HSA deposits 6 months before they apply. Money already in the HSA stays yours and can pay many Medicare costs tax-free.

What it means

An HSA is a savings account you can open if you have a high-deductible health plan, often through a job. Money you put in lowers your taxable income, grows without tax, and comes out tax-free when used for qualified medical costs.

The tax rules say you can only contribute if you have no other health coverage that disqualifies you. Medicare is one of those. So when Medicare starts, your contributions must stop.

Back to the page menu

How it works

Contributions stop. The IRS says that beginning with the first month you are enrolled in Medicare, your HSA contribution limit is zero. This applies to Part A alone, too. Your employer must also stop putting money in.

The year you enroll. Your limit for that year is divided by months. For example, if you are enrolled in Medicare from July, you may contribute for January to June only: half the yearly limit. In 2026 the full yearly limits are $4,400 for self-only coverage and $8,750 for family coverage. People 55 or older may add a $1,000 catch-up amount.

The 6-month look-back. If you are over 65 when you apply, your Part A coverage begins up to 6 months before the month you apply. Any HSA money put in for those back months counts as an excess contribution. That is why Medicare advises stopping HSA contributions 6 months before you retire or apply.

Excess contributions. Excess money put into an HSA generally owes a 6% excise tax. You can avoid that tax by taking the excess, and the income it earned, out of the account by your tax return due date (including extensions).

Using the money after Medicare starts. Your HSA stays open. Tax-free withdrawals can pay for:

  • Part A (if you pay a premium), Part B and Part D premiums;
  • Medicare Advantage plan premiums;
  • deductibles, copays and coinsurance; and
  • other qualified medical costs under the tax rules.

You cannot use HSA money tax-free for Medigap premiums.

After 65, non-medical uses. If you take money out for something that is not a medical cost, you pay regular income tax on it. The extra 20% tax does not apply once you are 65, disabled, or after death.

Reporting. You report HSA contributions and withdrawals on IRS Form 8889 with your tax return.

Back to the page menu

An example

A man plans to retire in October at 67 and has an HSA through work. He signs up for Medicare in October. His Part A will start in April, 6 months earlier. He and his employer stop HSA deposits at the end of March. His contribution limit for the year is 3/12 of the yearly amount, for January to March.

Back to the page menu

Why it matters to you

  • Plan ahead. Tell your employer's benefits office 6 months before you will apply for Medicare or Social Security.
  • Social Security brings Part A with it. If you are 65 or older and get Social Security benefits, you are enrolled in Part A automatically, so HSA deposits must stop.
  • Do not cash out the HSA. It is a good way to pay Part B premiums and medical bills tax-free in retirement.
  • Keep receipts for anything you pay with HSA money.
  • Do not confuse this with a Medicare MSA. A Medicare Medical Savings Account is a kind of Medicare Advantage plan. Only Medicare puts money into it.

Back to the page menu

Where you will see it

  • IRS Publication 969 and Form 8889.
  • Your HSA bank's year-end Form 5498-SA (contributions) and Form 1099-SA (withdrawals).
  • Medicare.gov's "Working past 65" pages.
  • 1-800-MEDICARE (1-800-633-4227; TTY 1-877-486-2048) and your State Health Insurance Assistance Program (SHIP) for free help with timing.

Back to the page menu

Back to the page menu

Check what you may qualify for

Sources

Page last reviewed: 2026-10-20 · Next check: 2027-01-05