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.
What is a health savings account?

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 aloneEnds HSA deposits
- Part B aloneEnds HSA deposits
- Medicare AdvantageEnds HSA deposits
- Employer depositsMust stop too, not only your own
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?
- Initial Enrollment Period opens3 months before your 65th birthday month
- Medicare usually starts at 65First day of your birthday monthStop deposits for this month
- Initial Enrollment Period ends3 months after your birthday month
- Signing up after 656 months before you applyMake your last deposit before this point
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?

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 dateIt is on your Medicare card and letter
- Count deposits made on or after that date
- Ask your HSA company to remove the extraBefore your tax filing deadline
- Tell your employer to stop payroll deposits
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 premiums | Yes | Includes the higher-income charge |
| Medicare Advantage premiums | Yes | Premiums vary by plan and location |
| Part A premium | Yes | Only if you pay one |
| Medigap premiums | No | Pay these from other money |
| Deductibles, copays and coinsurance | Yes | For Medicare and plan costs |
| Dental, vision and hearing care | Yes | Even when Medicare does not cover it |
Your HSA can still pay many health costs without federal income tax, even after Medicare starts. The table shows the main ones.
| Cost | Can your HSA pay it? |
|---|---|
| Part B and Part D premiums | Yes |
| Medicare Advantage premiums | Yes |
| Part A premium, if you pay one | Yes |
| Medigap premiums | No |
| Deductibles, copays and coinsurance | Yes |
| Dental, vision and hearing care | Yes |
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?
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?

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 costsNot taxed by the federal government
- Other costs after 65Taxed as regular income, no added penalty
- Keep every medical receiptProof for the IRS
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 billsIncluding Medicare deductibles and copays
- Prescription and over-the-counter medicines
- Dental, vision and hearing care
- Medical equipment and supplies
- Medicare premiumsNot Medigap premiums
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
- Write down the month you plan to start Medicare or Social Security, whichever comes first.
- If that month is after you turn 65, count back 6 months and mark your last HSA deposit date.
- Tell your employer's payroll or benefits office the date to stop all HSA deposits.
- Check this year's HSA deposits and ask your HSA company to remove any made after Medicare starts.
- Make a list of Medicare costs you will pay from your HSA, leaving out any Medigap premium.
- Start a folder for medical receipts paid from your HSA.
A real example
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.



