You cannot open a new HSA once you enroll in Medicare, but you may keep an existing one
The moment you sign up for Medicare Part A or Part B, you become ineligible to contribute new money to a Health Savings Account. This is a hard rule: Medicare enrollment and HSA contributions cannot happen at the same time. If you have an HSA before Medicare, you can keep the account and spend what is already in it, but you cannot add fresh deposits once Medicare begins.
The timing matters because many people turn 65 and assume they can do both. You cannot. If you are still working and want to keep contributing to an HSA, you must delay Medicare enrollment. If you enroll in Medicare, you must stop HSA contributions immediately, even if you are still employed and covered by a workplace health plan.
The IRS treats this as a bright-line rule because Medicare is considered primary coverage — it is a government health plan, and the tax code does not allow HSA contributions once you have it. Your HSA trustee (usually a bank or investment firm) will ask you to confirm you are not on Medicare when you make contributions, and if you lie about it, you face tax penalties and interest on the contributions themselves.
Key Takeaways
- Enrolling in Medicare Part A or Part B disqualifies you from making new HSA contributions, even if you are still working.
- If you already have an HSA before Medicare, you can withdraw money from it tax-free for may have access to medical expenses for the rest of your life.
- You can delay Medicare enrollment to keep contributing to an HSA, but you must weigh the cost of staying uninsured against the HSA tax benefit.
- After age 65, HSA withdrawals for non-medical expenses are taxed as income but no longer carry the 20 percent penalty that applies before 65.
- If you have both an HSA and Medicare, you cannot use HSA funds to pay Medicare premiums unless you use a specific method called a trustee-to-trustee transfer.
What happens to money already in your HSA when you turn 65
Money sitting in an HSA before you enroll in Medicare stays yours and remains tax-free if you use it for may have access to medical expenses. This includes Medicare premiums, copays, deductibles, and coinsurance. You can withdraw from the account at any time without penalty, as long as you spend it on something Medicare recognizes as a medical expense.
The account does not disappear or get seized. It simply stops accepting new contributions. You become what the IRS calls a "Medicare beneficiary with an HSA," and the rules shift: you can spend down the balance, but you cannot add to it. If you have $50,000 in an HSA when you enroll in Medicare, that $50,000 is still there and still tax-sheltered for medical use.
One important detail: you can use HSA funds to pay certain Medicare premiums, but only through a direct transfer from the HSA trustee to the insurance company. You cannot withdraw the money to your bank account and then pay the premium yourself — the IRS requires the trustee to send it directly. This applies to Medicare Part B and Part D premiums, and to premiums for Medicare Advantage plans and Medigap policies.
The penalty rule changes after you turn 65
Before age 65, if you withdraw money from an HSA for something that is not a may have access to medical expense, you pay income tax on the withdrawal plus a 20 percent penalty. After age 65, the penalty disappears. You still owe income tax on non-medical withdrawals, but the 20 percent penalty no longer applies.
This is actually a significant shift in how the account works. Once you are on Medicare and past 65, your HSA becomes more like a traditional retirement account — you can withdraw money for any reason and only pay income tax, not a penalty. Many people use this to their advantage: they let the HSA grow, use it for medical expenses when they can, and treat non-medical withdrawals as a supplemental retirement fund after 65.
Delaying Medicare to keep contributing to an HSA
If you are still working at 65 and covered by a workplace health plan with an HSA, you can delay Medicare enrollment and keep contributing to the HSA. This is legal and sometimes makes financial sense, especially if you are healthy and your employer covers most of your premiums.
The catch is that you must truly delay Medicare — not just avoid signing up, but actively request a delay. If you are covered by an employer plan and do not enroll in Medicare Part B when you first become may be able to access, you can avoid the late-enrollment penalty, but only if your employer coverage is considered "creditable coverage" (most employer plans are). You do need to enroll in Part A at 65 to avoid penalties, and Part A enrollment disqualifies you from HSA contributions.
This creates a real conflict: Part A is hospital insurance and is hard to avoid without penalty, but enrolling in Part A stops HSA contributions. Some people choose to enroll in Part A and Part B but delay until after they leave their job, so they can keep the HSA active while still working. The math depends on your specific situation — how much longer you work, how much you contribute to the HSA, and what your employer pays for coverage.
Using HSA funds to pay for Medicare premiums and out-of-pocket costs
Once you are on Medicare, your HSA can pay for Medicare Part B premiums, Part D premiums, Medicare Advantage premiums, and Medigap premiums. It can also cover deductibles, copays, and coinsurance under any of these plans. This is one of the main reasons to keep an HSA balance into retirement — it gives you a tax-free pool of money for costs Medicare does not cover.
The key restriction is the method: the HSA trustee must transfer the money directly to the insurance company. You cannot withdraw it to your personal bank account and then send a check. If you do that, the IRS may treat it as a non-medical withdrawal, which means you owe income tax on it. Always ask your HSA trustee how to set up a direct payment to your insurance company.
HSA funds cannot pay for long-term care insurance premiums, life insurance, or disability insurance. They also cannot pay for health insurance premiums while you are unemployed, unless you are receiving unemployment benefits — in that case, you can use HSA funds for COBRA or marketplace premiums. These rules are narrow, so check with your trustee before assuming a premium is covered.
What to do if you already enrolled in Medicare and still have an HSA
If you are already on Medicare and have an HSA, stop making contributions immediately. Contact your HSA trustee and tell them you are now a Medicare beneficiary. They will flag your account and refuse any new contributions you try to make. If you have already made contributions after enrolling in Medicare, you need to withdraw them and report the error to the IRS on your tax return, or you will face penalties.
After you notify your trustee, you can still use the existing balance for medical expenses. Set up a system for tracking what you spend it on — receipts matter if the IRS ever audits you. Many people use their HSA debit card for medical expenses and keep the receipts in a folder. Others withdraw the money and pay out of pocket, then reimburse themselves from the HSA later (this is allowed and sometimes makes sense for record-keeping).
If you made contributions after Medicare enrollment and did not catch it, you can amend your tax return for that year. The IRS allows you to correct this mistake, but you need to file an amended return (Form 1040-X) and remove the contributions. It is better to catch it early than to wait for an audit.
Frequently Asked Questions
Can I use my HSA to pay for Medicare premiums if I withdraw the money myself?
No. The HSA trustee must transfer the money directly to the insurance company. If you withdraw it to your bank account and then pay the premium, the IRS may treat it as a non-medical withdrawal and tax it as income. Always ask your trustee to set up a direct transfer to your insurance company.
What if I delay Medicare Part B but enroll in Part A?
Enrolling in Part A disqualifies you from HSA contributions. You cannot contribute to an HSA once you are on any part of Medicare, even if you delay Part B. If you want to keep contributing, you must delay both Part A and Part B, though delaying Part A may result in a late-enrollment penalty.
Can I withdraw money from my HSA for non-medical expenses after I turn 65 and am on Medicare?
Yes, but you will owe income tax on the withdrawal. The 20 percent penalty that applies before age 65 no longer applies after 65. This makes the HSA function more like a traditional retirement account once you are on Medicare and past 65.
What happens to my HSA if I die?
If you name a beneficiary on your HSA, they inherit the account. If the beneficiary is your spouse, they can treat it as their own HSA. If the beneficiary is anyone else, they must withdraw the balance within a set time and pay income tax on it. If you name your estate, the balance is taxed to your estate.
Can I use my HSA to pay for dental or vision care under Medicare?
Yes. Original Medicare does not cover routine dental or vision care, but you can use HSA funds to pay for these services out of pocket. You can also use HSA funds to pay premiums for standalone dental or vision plans if you choose to buy them separately.