Skip to content
Turning 65 Clock

Turning 65?

HSAs and Medicare: what changes at 65

Key takeaways

  • Once you're enrolled in any part of Medicare — even premium-free Part A — you can't contribute to an HSA.
  • Part A coverage can be backdated up to 6 months (not before the month you turned 65), so stop contributions 6 months before you enroll.
  • In the year you enroll, your contribution limit is prorated by month.
  • You can keep using HSA money tax-free for qualified costs, including Part B, Part D, and Medicare Advantage premiums — but not Medigap premiums.

Can I contribute to an HSA once I have Medicare?

No. Once you're enrolled in any part of Medicare, including premium-free Part A, you can no longer contribute to a health savings account. Your employer can't contribute either. This rule applies from the first month your Medicare coverage starts. You can still keep the account and spend the money already in it.

Being eligible for Medicare doesn't end HSA contributions by itself — being enrolled does. That's why some people who work past 65 with a high-deductible health plan choose to delay Medicare. It's a decision with trade-offs, so it helps to understand each rule below.

Why should I stop HSA contributions 6 months before Medicare?

If you sign up for premium-free Part A after your 65th birthday month, your Part A coverage is usually backdated up to 6 months, but not earlier than the month you turned 65. Any HSA contributions made during those retroactive months may count as excess contributions, which can lead to taxes and penalties unless corrected.

To avoid this, many people stop HSA contributions 6 months before they plan to enroll in Medicare. For example, if you plan to retire and sign up for Part A in July, you'd stop contributions after December of the year before. If you enroll at 65 during your Initial Enrollment Period, there's no retroactive period before your 65th birthday month.

When you sign up for Part AHow far back coverage can start
During your Initial Enrollment PeriodNot before your 65th birthday month (or the month you sign up, if later)
After your Initial Enrollment PeriodUp to 6 months back, but not before the month you turned 65

How do HSA contributions work in the year I enroll?

In the year your Medicare coverage starts, your HSA contribution limit is prorated. You can contribute 1/12 of the yearly limit for each full month you were HSA-eligible before Medicare began. If you're 55 or older, the catch-up contribution is prorated the same way. The months covered by retroactive Part A count as Medicare months.

For example, if your Medicare coverage starts July 1, you were eligible for 6 months, so you can contribute about half the yearly limit, including half the catch-up. If you've already contributed more, ask your HSA provider how to withdraw the excess before your tax filing deadline. IRS Publication 969 explains the details.

Does starting Social Security end my HSA contributions?

Yes. If you start Social Security retirement benefits at 65 or older, you're automatically enrolled in premium-free Part A, and you can't turn it down without paying back your benefits. Part A may also be backdated up to 6 months. So starting Social Security effectively ends your ability to contribute to an HSA.

If you plan to claim Social Security while still working, factor this into your timing. Stop HSA contributions about 6 months before you apply. If you claim before full retirement age while working, the Social Security earnings limit calculator shows how much of your benefit could be withheld.

Can I delay Medicare to keep contributing to my HSA?

If you or your spouse have group health coverage from current employment, you can usually delay Part A and Part B and keep contributing to an HSA. When the job or coverage ends, you'll have a 8-month Special Enrollment Period to sign up without a Part B late penalty. COBRA and retiree coverage don't count.

At an employer with fewer than 20 employees, Medicare usually pays first, so delaying can leave you underinsured. Before you decide, check with the employer's benefits office about how its plan works with Medicare. Delaying Part B also delays your Medigap Open Enrollment Period.

What Medicare costs can I pay with my HSA?

You can use HSA money tax-free for qualified medical expenses at any age, including after you enroll in Medicare. Qualified Medicare expenses include Part B premiums, Part D premiums, Medicare Advantage premiums, and premium-based Part A if you pay it, plus deductibles, copays, and coinsurance. Medigap premiums don't qualify.

ExpenseQualified HSA expense?
Part B premium ($202.90/month standard in 2026)Yes
Part D premiumYes
Medicare Advantage premiumYes
Part A premium (if you pay one)Yes
Deductibles, copays, and coinsuranceYes
Medigap (Medicare Supplement) premiumsNo

If your Part B premium is deducted from your Social Security check, you can still reimburse yourself from your HSA. Keep records. After 65, you can also withdraw HSA money for non-medical reasons without the 20% penalty, but it's taxed as income.

Should I talk to a tax professional?

It's a good idea. HSA and Medicare rules interact with your taxes, your employer's plan, and your spouse's coverage. A qualified tax professional can help you time your last contribution, prorate your final-year limit, and fix any excess contributions. Social Security or 1-800-MEDICARE can confirm your Medicare start dates.

Higher incomes can also affect your Medicare premiums. See IRMAA brackets to understand how income from two years earlier is used.

Check your dates

Enter your birthday to see your exact sign-up window, when coverage starts, and any late penalty estimate.

Open the calculator

Frequently asked questions

Can I contribute to an HSA after I enroll in Medicare?

No. Once you're enrolled in any part of Medicare, including premium-free Part A, you can no longer make or receive HSA contributions. You can still spend money already in the account.

Why should I stop HSA contributions 6 months early?

When you sign up for premium-free Part A after 65, coverage usually starts up to 6 months earlier (but not before the month you turned 65). Contributions made during those retroactive months may count as excess contributions.

Can I use my HSA to pay Medicare premiums?

Yes, for Part B, Part D, and Medicare Advantage premiums. Medigap (Medicare Supplement) premiums are not a qualified expense.

Does starting Social Security affect my HSA?

Yes. If you start Social Security retirement benefits at 65 or later, you're automatically enrolled in Part A, which ends your ability to contribute to an HSA.

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

No. Employer contributions count toward the same limit, so they must stop too once your Medicare coverage begins.

Related guides

Sources

Confirm with Medicare.gov or 1-800-MEDICARE.