Back to all tools

Guide

HSA and Medicare: When You Must Stop Contributing

Your HSA contribution limit drops to zero starting the first month you are enrolled in Medicare. Money already in the account stays yours.

By Iliya Iliev · Last verified November 2026

Starting with the first month you are enrolled in Medicare, your HSA contribution limit is zero, according to IRS Publication 969. To contribute to an HSA you must have qualifying high-deductible health plan coverage and must not be enrolled in Medicare. Turning 65 does not end your eligibility by itself; enrollment in Medicare does.

The months before your Medicare enrollment still count. Your annual limit is prorated by the number of months you were eligible. For example, if you are otherwise eligible for self-only coverage in every month before your Medicare enrollment starts in July 2027, six months count. With the $1,000 catch-up for people 55 and older, the 2027 calculation is ($4,500 + $1,000) × 6 ÷ 12 = $2,750. Your own figure depends on your coverage type and the months you qualify.

Watch for backdated coverage. Publication 969 says the zero limit applies to periods of retroactive Medicare coverage, and that HSA contributions made during a period of retroactive coverage are treated as excess contributions. Excess contributions can trigger a 6% excise tax for each year they stay in the account unless they are corrected, so see our guide on what to do if you over-contribute to your HSA.

Money already in your HSA stays yours after you enroll in Medicare. You can keep spending it on qualified medical expenses tax-free. Once you are 65 or older, HSA funds can also pay premiums for Medicare coverage, but not premiums for a Medicare supplement (Medigap) policy. If you withdraw HSA money for something that is not a qualified medical expense after 65, it is taxed as income, but the additional 20% tax that applies to younger people does not apply.

If you are close to 65, plan the timing before you enroll rather than after. Confirm your Medicare start date, stop contributions in time, and check whether any of your coverage could be backdated. The HSA Eligibility Checker shows whether you can still contribute under your current coverage.

Source

IRS Publication 969

Checked against the source document above. Report an error.

Run the numbers

HSA Contribution Calculator

Frequently asked questions

Can I contribute to an HSA at 65 if I am not enrolled in Medicare?

Age alone does not end HSA eligibility; enrollment in Medicare does. If you are not enrolled in Medicare and still have qualifying HDHP coverage, you may be able to contribute. Check your enrollment status before you do.

Can I still use my HSA after I enroll in Medicare?

Yes. The money in your HSA is still yours. You can continue to spend it on qualified medical expenses tax-free. You just cannot make new contributions.

Can I pay Medicare premiums from my HSA?

Generally yes once you are 65 or older, for premiums for Medicare coverage. Premiums for a Medicare supplement (Medigap) policy do not qualify.

What if I withdraw HSA money for non-medical costs after 65?

The withdrawal is taxed as ordinary income. The additional 20% tax that applies to non-medical withdrawals before 65 does not apply after you reach 65.

What happens if my Medicare coverage is backdated?

HSA contributions made during a period of retroactive Medicare coverage count as excess contributions. They should be corrected to avoid the 6% excise tax. See our guide on what to do if you over-contribute to your HSA.

This guide provides general information for informational purposes only, based on publicly published IRS guidance. It is not tax, legal, or financial advice. Verify your specific situation with a tax professional or your plan administrator.

More guides