If you or your spouse are approaching Medicare age, you may be wondering how that will affect your Health Savings Account (HSA). It's vital to understand how Medicare and HSAs interact because there are fines and penalties for making improper contributions. Here's what to know to help protect your finances and health while also helping to ensure that you’re following Medicare rules. Please note this article will explain federal income tax rules that generally apply to HSAs, but state tax treatment can vary.
Understanding Medicare
Medicare is a federal health insurance program for people who are 65 and older, people under age 65 with certain disabilities, and people of any age with End-Stage Renal Disease (ESRD). You can enroll in Medicare when you turn 65, whether or not you're still working, and even if you choose to defer your Social Security benefits. If you take Social Security benefits before 65, you'll automatically be enrolled in Medicare Part A and Part B on your 65th birthday. However, you will have to specifically enroll in Part D, Medicare Supplement, or Medicare Advantage plans if you want those benefits.
Health Savings Accounts (HSAs) Explained
An HSA is a specific type of savings account that allows you to set aside money free from federal income tax to help pay for eligible medical expenses of an eligible individual, their spouse, and their tax dependents. Only those who have a qualified high-deductible health plan (HDHP) and no other disqualifying coverage can contribute to an HSA. That means you can't contribute to an HSA while enrolled in Medicare or while covered by another type of disqualifying health coverage.
No HSA Contributions with Medicare Enrollment
Enrolling in Medicare means you can no longer contribute to an HSA. Keep in mind that if you sign up for premium-free Medicare Part A after age 65, your coverage may be retroactive for up to six months. To help avoid excess HSA contributions and potential tax penalties, consider stopping HSA contributions at least six months before applying for Medicare or Social Security benefits.
If your spouse remains eligible for an HSA, they can continue contributing to their own account even after you're enrolled in Medicare.
HSA Balance Options in Retirement
Even though you can no longer contribute to an HSA once you enroll in Medicare, your HSA funds are still yours to use. For instance, you can:
Pay eligible medical expenses tax-free (for federal income tax purposes)
Pay eligible Medicare premiums, including Part A (if applicable), Part B, Part D, and Medicare Advantage (Medicare supplemental policy premiums, including Medigap premiums, cannot be paid tax-free from an HSA)
Use HSA funds for nonmedical expenses after age 65 without the additional 20% tax, although the distribution will generally be included in taxable income for federal income tax purposes
Important note: There are no joint HSAs. However, an account owner generally may use funds from their HSA tax-free to pay eligible medical expenses incurred by the owner or the owner's spouse or tax dependents.
Help Protect Your Financial Well-Being
By understanding how Medicare enrollment impacts your HSA, you can take the right steps to help avoid unnecessary taxes and potential penalties while making the most of your savings. Planning ahead, especially timing your HSA contributions and Medicare enrollment can help protect your financial well-being in retirement. If you have questions about your situation, consult a benefits expert or financial advisor to make informed decisions that support both your health and your long-term goals.
This blog is up to date as of June 2026 and has not been updated for changes in the law, administration or current events. American Fidelity does not provide financial, legal, or tax advice. Please consult an attorney or a tax professional regarding your specific situation.