You can have an HSA while on Medicare, but only if you stop making new contributions the month you turn 65
The moment you enroll in any part of Medicare—usually at 65—you become ineligible to contribute new money to your HSA. This is a hard rule with no exceptions. However, you do not have to close the account or withdraw the money. You can keep the HSA open, spend what is already in it on may have access to medical expenses, and let any remaining balance sit there indefinitely. The account itself does not disappear; only your ability to add new funds does.
The reason for this rule is structural: HSAs are designed to pair with high-deductible health plans (HDHPs), and Medicare is not an HDHP. Once Medicare becomes your primary insurance, you no longer meet the may be able to access requirement to contribute. The IRS enforces this strictly, and attempting to contribute after you enroll in Medicare can result in penalties and taxes on the contributions you made.
Key Takeaways
- You must stop contributing to your HSA the month you turn 65 or enroll in Medicare, whichever comes first, even if you delay taking Social Security.
- Money already in your HSA can be spent on Medicare premiums, deductibles, copays, and other may have access to medical expenses without penalty.
- If you contribute after becoming Medicare-may be able to access, you will owe income tax plus a 20 percent penalty on those contributions.
- Your HSA can remain open and invested indefinitely after you stop contributing, and any unused balance passes to your estate if you die.
- You can use HSA funds to pay Medicare Part B and Part D premiums, but not supplemental insurance premiums, with one exception for long-term care policies.
What happens to money already in your HSA when you turn 65
The funds you accumulated before enrolling in Medicare stay yours and remain tax-free when spent on may have access to medical expenses. This includes Medicare premiums themselves—a major advantage many people do not realize. You can use HSA money to pay your Part B premium, Part D prescription drug premium, and Medicare Advantage plan premiums directly from the account.
You can also use the balance to cover Medicare deductibles, copayments, and coinsurance. If you have a Medigap supplemental policy, you cannot use HSA funds for those premiums, with one narrow exception: you can use HSA money to pay premiums for a long-term care insurance policy, which is a separate product from Medigap. After 65, any HSA withdrawal for a non-medical expense is taxed as ordinary income, but the 20 percent additional penalty no longer applies—only income tax is due.
The penalty for contributing after you enroll in Medicare
If you contribute to an HSA after the month you become Medicare-may be able to access, the IRS treats those contributions as excess contributions. You owe income tax on the amount, plus a 20 percent penalty. This is not a small mistake to overlook. A $3,000 contribution made after enrollment could cost you $600 in penalties alone, plus income tax at your marginal rate.
The responsibility to stop contributions falls on you, not your employer or the HSA custodian. If your employer continues to deduct HSA contributions from your paycheck after you enroll in Medicare, you must catch it and request that they stop. Many people discover this problem months later when filing taxes. The safest move is to notify your employer's benefits department and your HSA custodian in writing as soon as you enroll in Medicare, even if you plan to delay taking benefits.
Timing: when the contribution ban starts
The ban on contributions begins the first day of the month in which you turn 65 or enroll in Medicare, whichever comes first. If you turn 65 on March 15, you cannot contribute starting March 1. If you delay Medicare enrollment and turn 65 in March but do not enroll until June, the ban still starts in June when you actually enroll. This matters because some people delay Part B to avoid the premium, but delaying does not extend your HSA contribution window.
If you are self-employed or have a spouse who is self-employed, you must also stop HSA contributions for that spouse the month they become Medicare-may be able to access. Family HSA plans require all covered individuals to be HSA-may be able to access. Once one spouse enrolls in Medicare, the entire family plan becomes ineligible for contributions, though the account balance remains accessible.
Using your HSA to pay Medicare premiums
This is one of the most valuable features of having an HSA at retirement. You can pay Part B premiums, Part D premiums, and Medicare Advantage plan premiums directly from your HSA without penalty or tax consequences. These are considered may have access to medical expenses under IRS rules, so the withdrawal is tax-free.
You cannot, however, use HSA funds to pay Medigap (supplemental insurance) premiums. Medigap is not considered a may have access to medical expense for HSA purposes. The exception is long-term care insurance premiums, which you can pay from your HSA up to an annual limit that changes each year (currently around $430 per month for someone age 65, but this varies by age). If you have a long-term care policy, check with your HSA custodian about the current limit before withdrawing.
What happens if you have not spent your HSA balance by the time you die
Your HSA is part of your taxable estate. If you have a surviving spouse, they can inherit the HSA and treat it as their own, continuing to use it for their may have access to medical expenses. If a non-spouse inherits it, they must withdraw the full balance within a set timeframe (rules vary by custodian), and the withdrawal is taxed as ordinary income at their tax rate. Any amount remaining after that important date is lost.
This is one reason to spend down your HSA strategically in retirement if you have a large balance and no spouse. You can reimburse yourself for past medical expenses that you paid out of pocket, as long as you have documentation. The IRS allows this retroactively, so if you paid $2,000 in dental work in 2020 and did not use HSA funds at the time, you can withdraw $2,000 from your HSA now and it is tax-free.
Keeping your HSA invested after 65
You do not have to spend your HSA balance when ready after turning 65. If you have enough other resources to cover your medical expenses, you can leave the money invested in the HSA's investment options—typically mutual funds or similar vehicles—and let it grow. This is a legitimate long-term strategy, especially if you have a large balance and expect to live a long time with significant medical costs ahead.
The account will continue to earn returns, and as long as you withdraw only for may have access to medical expenses, those withdrawals remain tax-free. Some people treat their HSA as a supplemental retirement account precisely because of this flexibility. Just remember that once you turn 65, any non-medical withdrawal is taxed as income (though the 20 percent penalty no longer applies), so the tax-advantaged status is preserved only for medical expenses.
Frequently Asked Questions
Can I contribute to my HSA if I delay Medicare Part B but turn 65?
No. The ban on contributions starts when you turn 65, regardless of whether you delay Part B enrollment. Delaying Part B does not extend your HSA contribution window. You must stop contributing the month you turn 65.
What if my employer made HSA contributions after I enrolled in Medicare without telling me?
Contact your employer's benefits department when ready and ask them to stop. You will need to report the excess contributions on your tax return and pay the 20 percent penalty plus income tax. Your HSA custodian can provide a statement showing when contributions were made, which helps with your tax filing.
Can I use my HSA to pay for dental or vision care while on Medicare?
Yes. Dental and vision expenses are may have access to medical expenses under IRS rules, so you can use HSA funds for them at any age, including after 65. This applies whether the care is covered by Medicare or not.
If I have a large HSA balance, should I spend it down before turning 65?
Not necessarily. You can continue to use it for may have access to medical expenses after 65, and it can remain invested and grow. The main advantage of spending it down before 65 is that you can withdraw for non-medical expenses without the 20 percent penalty (though you still owe income tax). After 65, non-medical withdrawals are taxed as income but not penalized, so the tax impact is the same either way.
Can my spouse contribute to their HSA if I am on Medicare but they are not yet 65?
Only if you have separate HSA accounts. If you share a family HSA plan, the plan becomes ineligible for contributions once you enroll in Medicare, even if your spouse is younger and still working. If your spouse needs to keep contributing, you would need to move to individual HSA accounts before you turn 65.