Medicare and HSA may be able to access don't mix the way you might expect
Once you enroll in Medicare, you can no longer contribute new money to a Health Savings Account. The moment you sign up for any part of Medicare—Part A, Part B, or Part D—your HSA contributions stop. This is a hard rule set by the IRS, not a guideline that varies by plan or provider.
If you try to contribute after Medicare enrollment, the IRS treats that money as a taxable distribution and adds a 20 percent penalty on top. The money goes into your HSA, but you lose the tax advantage that made the account worth having in the first place.
However, you can still withdraw money from an existing HSA after you're on Medicare. The account doesn't close. You just can't add to it. This matters because many people reach Medicare age with years of HSA savings still sitting there—money they can use to pay Medicare premiums, copays, deductibles, and other may have access to medical expenses without tax consequences.
Key Takeaways
- You must stop HSA contributions the month you enroll in any part of Medicare, or face a 20 percent penalty plus taxes on the contribution.
- Money already in your HSA can still be withdrawn tax-free for Medicare premiums, copays, deductibles, and other may have access to medical costs.
- If you delay Medicare enrollment past age 65, you can continue contributing to your HSA during that delay, but only if you have not yet enrolled in any Medicare part.
- HSA funds can pay for Medicare Part B and Part D premiums, but not for supplemental insurance (Medigap) premiums or long-term care insurance.
When your HSA contributions must stop
The IRS considers you enrolled in Medicare the first day you are may have access to to benefits, not the day you sign up. For most people, that's the first day of the month you turn 65. Even if you haven't received your Medicare card yet, the clock has started.
If you are still working and have health insurance through your employer, you may be able to delay Medicare enrollment without triggering this rule. This is called creditable coverage. If your employer plan is considered creditable, you can keep contributing to your HSA past 65 as long as you don't enroll in Medicare. Once you do enroll—even if you enroll years later—contributions stop immediately.
The penalty for contributing after Medicare enrollment is steep. The IRS adds a 20 percent penalty to the contribution amount, plus you owe income tax on it. If you contributed $4,000 after enrolling in Medicare, you'd owe $800 in penalties plus income tax at your tax bracket. Your employer or HSA custodian may catch this and reject the contribution, but if they don't, you discover the problem at tax time.
What you can still do with your HSA after Medicare
Your HSA doesn't disappear when you enroll in Medicare. You can withdraw money from it for any may have access to medical expense, and those withdrawals remain tax-free. The list of may have access to expenses includes Medicare premiums, copays, coinsurance, and deductibles.
Specifically, HSA funds can pay for:
- Medicare Part B premiums (the insurance for doctor visits and outpatient care)
- Medicare Part D premiums (the prescription drug coverage)
- Medicare Part A premiums (if you didn't pay into Social Security long enough to get it free)
- Copays and coinsurance under any Medicare plan
- Deductibles under any Medicare plan
- Dental, vision, and hearing care not covered by Medicare
- Prescription medications
- Medical equipment and supplies
HSA funds cannot pay for Medigap (supplemental insurance) premiums or long-term care insurance premiums. This is a common mistake. Many people assume their HSA can cover all insurance costs, but the IRS draws a line here.
The strategy of delaying Medicare to keep contributing
If you are still working at 65 and your employer offers health insurance, you have a choice: enroll in Medicare now, or wait. If you wait, you can keep contributing to your HSA. This only works if your employer plan is creditable coverage—meaning it meets federal standards for health insurance.
Most large employer plans are creditable. Your employer or benefits administrator can tell you whether yours is. If it is, you can delay Medicare Part B without penalty as long as you have the employer coverage. You must still enroll in Part A at 65 if you are receiving Social Security, but Part A enrollment does not stop HSA contributions—only Part B and Part D do.
This strategy makes sense if you have a high income and can afford to max out your HSA contributions ($4,150 for individual coverage in 2024, or $8,300 for family coverage; these amounts change yearly). Every year you delay Medicare, you add another year of tax-free HSA growth. When you eventually enroll in Medicare and stop contributing, you'll have a larger balance to draw from during retirement.
How to handle the transition to Medicare
Start planning three to four months before you turn 65. Contact your HSA custodian—the bank or financial company holding your account—and ask them to confirm that your account will remain open after Medicare enrollment and that you can continue withdrawing from it.
Make a list of your expected Medicare costs: premiums, deductibles, copays for regular doctors or medications. This helps you decide whether to keep your HSA balance invested (if you have years of retirement ahead) or move it to cash (if you plan to use it soon).
When you enroll in Medicare, do not attempt to contribute to your HSA. If your employer still deducts HSA contributions from your paycheck after you enroll, contact your payroll department immediately and ask them to stop. Catching this early prevents the penalty.
What happens if you miss the contribution deadline
If you or your employer accidentally contributes to your HSA after you've enrolled in Medicare, you have a window to fix it. You can request that your HSA custodian return the contribution to you or your employer. If the custodian returns it before you file your tax return for that year, you can avoid the penalty.
If the contribution stays in the account and you discover it at tax time, you'll need to report it on your tax return. Form 8889 is where HSA contributions and withdrawals are reported. The IRS will assess the 20 percent penalty and income tax. You can file an amended return if you catch the error after filing, but it's simpler to prevent it from happening.
HSA funds and Medicare Advantage vs. Original Medicare
Your HSA works the same way regardless of which Medicare plan you choose. Whether you enroll in Original Medicare (Part A and Part B) plus a Medigap policy, or you choose a Medicare Advantage plan (Part C), your HSA can pay for may have access to expenses under either option.
Medicare Advantage plans often have lower premiums but higher copays and deductibles. If you choose a Medicare Advantage plan with a high deductible, your HSA balance becomes especially valuable—you can use it to cover those out-of-pocket costs without touching other savings.
Original Medicare has no deductible for most services, but it also has no out-of-pocket maximum. If you choose Original Medicare, your HSA can still pay for copays, coinsurance, and premiums, but you may not need a large balance unless you have significant ongoing medical costs.
Frequently Asked Questions
Can I contribute to my HSA if I delay Medicare enrollment past 65?
Yes, as long as you have not enrolled in any part of Medicare and you have creditable health coverage through an employer or spouse's employer. The moment you enroll in Part A, Part B, or Part D, contributions must stop. Check with your employer to confirm your plan is creditable coverage.
What if I enrolled in Medicare by mistake and didn't realize it?
Contact your HSA custodian and ask them to reverse any contributions made after your Medicare enrollment date. If they reverse it before you file taxes, you avoid the penalty. If you've already filed, you can file an amended return to report the error and request penalty relief from the IRS.
Can my HSA pay for my spouse's Medicare premiums?
Only if your spouse is listed as a beneficiary on your HSA and you have family coverage. If you have individual HSA coverage, the account is in your name only and can only pay for your may have access to medical expenses, not your spouse's.
Do I have to spend my HSA before I turn 65?
No. HSA funds roll over year to year with no expiration date. You can let the balance grow and use it throughout retirement to pay Medicare costs. Many people use their HSA as a retirement medical savings account and don't touch it until they need it.
Can my HSA pay for over-the-counter medications after I'm on Medicare?
Yes, as long as you have a prescription from a doctor. Over-the-counter medications are only may have access to HSA expenses if prescribed by a physician. Vitamins and supplements that are not prescribed do not count.