You can have an HSA with Medicare Part A, but only if you also have a high-deductible health plan (HDHP) and meet specific timing rules
Medicare Part A covers hospital care, skilled nursing, hospice, and home health services. An HSA is a savings account tied to an HDHP that lets you set aside pre-tax money for medical expenses. The two can coexist, but Medicare enrollment triggers rules that most people don't know about until they make a costly mistake.
The core issue: once you enroll in Medicare Part A, you become ineligible to contribute new money to an HSA. You can keep the account and spend what's already in it, but you cannot add more. This rule applies even if you have an HDHP through an employer or the marketplace. The only exception is if you delay Part A enrollment and meet very specific conditions — which most people cannot do.
Understanding when you lose contribution rights, what you can still do with the account, and how to plan ahead can save you thousands in taxes and out-of-pocket costs.
Key Takeaways
- Once you enroll in Medicare Part A, you stop being able to contribute to an HSA, even if you have an HDHP and are still working.
- You can continue to spend money already in your HSA on medical expenses after you enroll in Medicare Part A.
- If you delay Part A enrollment and do not yet receive Social Security, you may be able to keep contributing, but this requires careful documentation and is rare.
- The six-month period before you turn 65 is the time to decide whether to enroll in Part A or preserve HSA contribution rights.
- Withdrawals from an HSA after age 65 for non-medical expenses are taxed as income but do not face the 20% penalty that applies before age 65.
Why Medicare Part A Stops HSA Contributions
HSA contribution rules are tied to enrollment in any part of Medicare, not just Part A. The IRS treats Medicare enrollment as a signal that you are no longer in a position to benefit from a high-deductible plan. Once you are enrolled in Part A, you are covered by a government health plan, and the IRS considers you ineligible to hold an HDHP.
This rule exists because an HDHP is designed for people without other comprehensive coverage. Medicare Part A is comprehensive coverage for hospital and related services. The IRS sees the two as incompatible for contribution purposes, even though you can legally hold both at the same time.
The rule applies the month you enroll in Part A. If you enroll in March, you cannot contribute to an HSA starting in March. Contributions made before enrollment are valid; contributions made after are not deductible and trigger tax penalties if not corrected.
What Happens to Money Already in Your HSA
The contribution ban does not touch the balance you have already saved. You can withdraw from your HSA to pay for may have access to medical expenses for the rest of your life, even after you enroll in Medicare Part A. may have access to expenses include Medicare premiums, copayments, coinsurance, and deductibles — but not Medicare Advantage premiums in most cases.
You can also use HSA funds to pay for dental, vision, hearing aids, and long-term care insurance premiums. These expenses are not covered by Medicare Part A, so the HSA is often the best place to draw from for them.
After age 65, if you withdraw HSA money for a non-medical expense, you pay income tax on that amount but no longer face the 20% penalty that applies before age 65. This makes an HSA a useful retirement savings tool if you have built up a balance and do not need it all for medical costs.
The Rare Exception: Delaying Part A to Keep Contributing
You can delay Part A enrollment and continue contributing to an HSA if you meet two conditions: you do not yet receive Social Security benefits, and you are still covered by an HDHP. This is possible only if you are working past 65 and your employer offers an HDHP.
To use this exception, you must actively decline Part A when you first become may be able to access at 65. You cannot straightforward not sign up — you must file a written statement with Social Security saying you are declining Part A because you have employer coverage and want to keep your HSA. Social Security will ask you to sign a form acknowledging that you understand you may face a lifetime premium penalty if you enroll in Part A later.
This path works only while you are employed and covered by the HDHP. Once you stop working, retire, or lose the HDHP, you must enroll in Part A within a limited window or face penalties. Most people find this exception too restrictive to use.
Planning Before You Turn 65
The six months before your 65th birthday are the time to make a decision about Part A and your HSA. If you have a large HSA balance and plan to work past 65 with an HDHP, delaying Part A may make sense. If you do not have an HDHP through your employer or cannot meet the exception requirements, you should plan to enroll in Part A and stop contributing to the HSA.
Talk to your employer's benefits team about whether your plan is an HDHP and whether it will continue if you stay employed past 65. Check your HSA balance and think about whether you will need that money for medical expenses in the next 10 to 20 years. If the balance is small and you do not expect large out-of-pocket costs, the HSA may not be worth delaying Part A for.
If you do decide to delay Part A, file the written declination with Social Security at least one month before your 65th birthday. Keep a copy for your records. You will need to show this form if you ever face a premium penalty question later.
HSA Withdrawals for Medicare Costs
After you enroll in Medicare Part A, you can use your HSA to pay Medicare premiums, deductibles, and copayments. This is one of the most valuable uses of an HSA in retirement. You can pay Part B premiums, Part D prescription drug premiums, and Medigap or Medicare Advantage premiums (with some limits) directly from the HSA without triggering income tax.
You cannot use the HSA to pay for services that Medicare does not cover — for example, routine dental or vision care if you do not have a separate dental or vision plan. However, you can use it to pay premiums for standalone dental and vision insurance, and then use it to pay the out-of-pocket costs those plans do not cover.
Keep receipts for all HSA withdrawals. The IRS can audit HSA accounts years later, and you will need documentation that the withdrawal was for a may have access to expense. If you cannot prove the expense was may have access to, you owe income tax plus a 20% penalty on the amount — even if the withdrawal happened years ago.
Common Mistakes to Avoid
The most common mistake is continuing to contribute to an HSA after enrolling in Medicare Part A without realizing it. If this happens, the contribution is not deductible, and you owe income tax on it. You also owe a 6% excise tax on the excess contribution each year it remains in the account. The IRS allows you to correct this by withdrawing the excess contribution and the earnings on it, but only if you catch it in time.
Another mistake is using an HSA to pay for expenses that are not may have access to. Over-the-counter medications, gym memberships, and cosmetic procedures are not may have access to expenses. If you withdraw HSA money for these, you owe income tax and a 20% penalty on the amount (or 6% if you are over 65).
A third mistake is not keeping receipts. The IRS does not require you to submit receipts when you withdraw, but you must be able to produce them if audited. Many people lose track of what they withdrew the money for and cannot prove it was may have access to.
Frequently Asked Questions
Can I use my HSA to pay for Medicare Advantage premiums?
You can use HSA funds to pay Medicare Advantage premiums, but only if the plan is not subsidized by Medicaid or the Indian Health Service. Most Medicare Advantage plans sold on the open market may have access to. Check with your plan or HSA administrator if you are unsure.
What if I enroll in Medicare Part B but not Part A?
Enrolling in Part B alone also stops HSA contributions. The rule applies to any part of Medicare. You must decline all parts of Medicare to keep contributing to an HSA, which is rarely practical.
Can my spouse have an HSA if I enroll in Medicare Part A?
Yes. Your spouse's HSA may be able to access depends only on your spouse's Medicare enrollment and coverage, not yours. If your spouse is not yet 65 or has not enrolled in Medicare, your spouse can continue contributing to an HSA independently.
Do I have to spend my HSA before I enroll in Medicare?
No. You can leave money in the HSA indefinitely and withdraw it after you enroll in Medicare. There is no important date to spend it, and there are no required withdrawals like there are with retirement accounts.
What happens to my HSA if I die?
If you name a beneficiary on your HSA, the account passes to them. If the beneficiary is your spouse, they can treat it as their own HSA. If the beneficiary is not your spouse, they must withdraw the balance within a set time and pay income tax on it. Check your HSA account documents to see who is listed as beneficiary.