You cannot contribute to an HSA once you enroll in Medicare Part A, but you may keep the account and withdraw money from it without penalty
The moment you sign up for Medicare Part A—whether at 65 or earlier due to disability or end-stage renal disease—you become ineligible to add new money to an HSA. This is a hard rule set by the IRS. However, the account itself does not close. You can continue to withdraw money from it for may have access to medical expenses, and those withdrawals remain tax-free. The account simply stops accepting contributions.
If you have not yet enrolled in Medicare and still have an HSA, you need to decide whether to enroll now or delay. The timing of that choice directly affects whether you can keep contributing. If you delay Medicare Part A past 65, you can keep contributing to your HSA during those extra years—but once you enroll, contributions stop immediately.
Key Takeaways
- Enrollment in Medicare Part A ends HSA contributions the same month you enroll, even if you do not yet receive benefits.
- You can withdraw money from an existing HSA after Medicare enrollment without paying income tax or the 20 percent penalty, as long as the money goes toward may have access to medical expenses.
- If you delay Medicare Part A past age 65, you can continue contributing to your HSA during the delay period.
- Medicare premiums, copays, and deductibles count as may have access to medical expenses, so your HSA can pay for them tax-free.
- Withdrawals for non-medical expenses after Medicare enrollment are taxed as income but do not trigger the 20 percent penalty that applies to non-Medicare HSA holders.
What happens to your HSA balance when you enroll in Medicare
Your HSA does not disappear or get seized. The money stays in the account and earns interest or investment returns just as it did before. You simply cannot add to it. The account custodian—usually a bank, brokerage, or insurance company—will continue to hold and manage the funds according to your instructions.
You should notify your HSA custodian that you have enrolled in Medicare. Some custodians flag accounts automatically when they detect Medicare enrollment, but others do not. Sending written notice prevents confusion later and ensures the custodian knows not to accept contributions on your behalf.
Using your HSA to pay Medicare costs
Medicare Part A premiums (if you did not pay into Social Security for 40 quarters), Part B premiums, Part D premiums, and Medigap or Medicare Advantage plan premiums all count as may have access to medical expenses. So do Medicare deductibles and copays. This means your HSA can pay these bills tax-free, which is one of the main reasons to keep the account open after enrollment.
You can also use HSA funds for dental, vision, hearing aids, and prescription drugs—expenses Medicare does not cover. Long-term care insurance premiums (up to a yearly limit set by age) and may have access to long-term care services also may have access to. Keep receipts and documentation in case the IRS asks for proof that withdrawals were for may have access to expenses.
If you withdraw money for a non-may have access to expense after Medicare enrollment, you pay income tax on that amount, but you do not pay the 20 percent penalty that would apply if you were not yet on Medicare. This is a significant difference and one reason HSA funds remain valuable even after you stop contributing.
Deciding whether to delay Medicare to keep contributing
If you are still working and covered by your employer's health plan, you may have the option to delay Medicare Part A past 65. During the delay, you can continue to contribute to your HSA. This strategy makes sense only if you have the income to fund the HSA and expect to use the money later in retirement.
Delaying Part A also means delaying Part B unless you file a specific form (Form CMS-L564) to delay Part B alone. Delaying Part B past 65 triggers a permanent premium increase of 10 percent per year of delay, so most people do not pursue this route. Delaying Part A alone has no penalty, but it is available only if you or your spouse are still working and you are covered by an active employer plan.
Before you delay, confirm with your employer that your health plan will still cover you and that your HSA remains open for contributions. Some employers close HSAs when an employee reaches Medicare age, regardless of whether the employee has enrolled.
HSA withdrawals and Medicare tax reporting
After you enroll in Medicare, HSA withdrawals do not appear on your tax return unless the withdrawal was for a non-may have access to expense. may have access to withdrawals are tax-free and require no reporting. Keep your own records of what you withdrew and what it paid for, in case you need to prove the expense was may have access to.
If you withdraw money for a non-may have access to expense, you will report that amount as income on your tax return. The IRS does not require your HSA custodian to report these withdrawals separately, but you are responsible for reporting them yourself. Failure to report non-may have access to withdrawals can trigger an audit.
What to do with your HSA before you turn 65
If you know Medicare enrollment is coming, you can maximize your HSA contributions in the years before you turn 65. Catch-up contributions (an extra $1,000 per year if you are 55 or older) are allowed as long as you are not yet enrolled in Medicare. This builds a larger balance to draw from during retirement.
You can also use your HSA to pay for medical expenses you incur before Medicare enrollment, even if you pay the bill after you enroll. The rule is that the service or expense must occur before enrollment; the payment can come after. This allows you to reimburse yourself from the HSA for bills paid out of pocket during your final working years.
Frequently Asked Questions
Do I have to close my HSA when I enroll in Medicare?
No. Your HSA remains open and you can withdraw from it. You simply cannot add new contributions. Closing the account is your choice, though there is usually no reason to do so—keeping it open preserves access to the tax-free balance.
Can I use my HSA to pay for Medicare Advantage or Medigap premiums?
Yes. Both types of supplemental coverage premiums count as may have access to medical expenses. You can withdraw HSA funds to pay these premiums without income tax or penalty, regardless of whether you are enrolled in Medicare.
What if I withdraw money from my HSA for something that is not medical after I enroll in Medicare?
You will owe income tax on that amount. You will not owe the 20 percent penalty that applies to non-Medicare HSA holders. The tax is due when you file your return for the year of the withdrawal.
Can I roll my HSA into another account or transfer it to someone else?
You cannot transfer an HSA to another person, even a spouse. You can move the account to a different custodian (a different bank or brokerage), but the funds must stay in an HSA. After your death, the account passes to your estate or beneficiary according to your HSA documents.
If I delay Medicare Part A, can I keep my HSA open and contributing indefinitely?
You can keep contributing as long as you are not enrolled in Part A and you remain covered by an may be able to access high-deductible health plan. Once you enroll in Part A—whether at 65 or later—contributions stop. There is no age limit on the delay itself, but most people enroll eventually.