A Guide To HSA and Medicare Contributions & Eligibility

🚀 Fast Facts: Can you have an HSA and Medicare?
Yes, you don’t lose your HSA funds and you are still able to have your HSA while you’re on Medicare
Once on Medicare, you’re no longer allowed to contribute to your HSA
There are cases where it’s beneficial to delay taking Medicare to continue to contribute and build your HSA fund
Many people build up significant savings in their Health Savings Accounts (HSAs) during their working years. Then Medicare eligibility arrives at age 65, and suddenly the rules around contributions and eligibility change.
If you are approaching retirement, you may wonder whether you can have an HSA and Medicare at the same time, or if you need to stop contributing. Understanding how these two programs interact can help you avoid penalties and make the most of your healthcare savings.
In this guide, you will learn how HSAs work alongside Medicare and how to manage your account once you enroll, including:
Understanding these rules helps you avoid costly mistakes and continue using your tax-advantaged healthcare funds effectively.
Before diving into each topic, let’s start with the core question most people ask when they turn 65: Can you have an HSA and Medicare at the same time?
Note: This content is for informational purposes only and should not be considered financial, tax, or legal advice.
Can you have an HSA and Medicare?
If you already have an HSA, you can keep it after Medicare starts, but you must stop making new contributions as soon as you enroll. However, the money already in your HSA account remains available for qualified medical expenses. You cannot open a new HSA if you are enrolled in Medicare, because you would be unable to contribute any money to it while on Medicare.
If you plan ahead, you can avoid penalties and keep using your saved funds for qualified medical expenses later. Understanding the difference between contributing to an HSA and spending from it will help you manage your account correctly once you enroll in Medicare. Here’s some more detailed answers to questions you may have:
Can I enroll in Medicare if I have a Health Savings Account (HSA)?
Yes, you can enroll in Medicare even if you already have an HSA, and your account does not disappear when you join Medicare.
Instead, two important things happen once Medicare coverage begins:
You must stop contributing to your HSA
Your existing HSA balance remains available to spend
The IRS only allows HSA contributions if you are enrolled in a high-deductible health plan (HDHP) and do not have other health coverage. Once you enroll in Medicare, you no longer meet that requirement.
For example, if you turn 65 and enroll in Medicare Part A and Part B, any HSA contributions through your employer must stop. If contributions continue after enrollment, the IRS may treat them as excess contributions and apply penalties.
Can I still use my HSA funds after I enroll in Medicare?
Yes, your HSA funds remain available to use even after you enroll in Medicare. You can still use your HSA dollars tax-free for many qualified medical expenses, including:
Medicare Part B premiums
Medicare Advantage (Part C) premiums
Copayments and coinsurance
Dental and vision care
One important exception applies: HSA funds cannot be used for Medigap premiums.
Should you enroll in Medicare or keep contributing to your HSA?
If you are still working at age 65 and have an HDHP through your employer, you may have a choice: enroll in Medicare or continue contributing to your HSA. In many cases, people delay Medicare so they can keep contributing to their HSA for a few more years.
This strategy can be helpful because HSAs offer unique tax advantages:
Contributions are tax-deductible
Growth is tax-free
Withdrawals for qualified medical expenses are tax-free
However, delaying Medicare does not make sense for everyone. Factors that often influence this decision include:
Whether your employer coverage qualifies as an HDHP
The size of your employer (some smaller employers require Medicare enrollment)
Your healthcare costs and retirement timeline
Many workers choose to maximize their HSA contributions until retirement, then enroll in Medicare and use their HSA savings to cover healthcare expenses later in life.
Once you stop contributing, your HSA can still serve as a valuable healthcare spending account. You can continue using it for eligible services and products, including those available through the Flex Marketplace, where hundreds of online retailers offer items that qualify to be purchased with your HSA.
Understanding how contributions work after Medicare enrollment helps you avoid mistakes and plan your healthcare finances carefully. Next, we’ll look at what happens if contributions continue after Medicare begins and the penalties that may apply.
HSAs and the Medicare “6 month rule” explained
One of the most confusing parts of HSA and Medicare coordination is the Medicare 6-month rule. When you enroll in Medicare Part A after age 65, the coverage is typically applied retroactively for up to six months, as long as it does not go earlier than the month you became eligible for Medicare.
This retroactive coverage can create an unexpected problem for HSA contributions.
For example, if you enroll in Medicare in October, Part A of Medicare will be applied retroactively to April. Any HSA contributions made between April and October may now be considered excess contributions. Because of this rule, many financial planners recommend stopping HSA contributions six months before enrolling in Medicare.
This simple step helps ensure that none of your contributions fall within the retroactive Medicare coverage window and helps you avoid confusion.
Even after contributions stop, your HSA remains a valuable healthcare spending tool. You can continue using your balance for qualified medical expenses, including healthcare services, supplies, and many everyday health products. You just want to ensure you aren’t making excess contributions leading up to when you plan to enroll in Medicare.
Next, let’s look at how to navigate HSA and Medicare eligibility as you approach retirement.
How HSA contributions work when you’re on Medicare
We’ve explained how once you enroll in Medicare, you should stop making new contributions to your HSA, but there is some nuance to these rules that’s important to understand to avoid tax penalties, and plan your healthcare savings more effectively.
Can you contribute to your HSA while on Medicare?
No, once you enroll in any part of Medicare, you can no longer contribute to your HSA. The IRS requires HSA contributors to remain covered by a high-deductible health plan (HDHP) and to have no other disqualifying health coverage. Medicare counts as other disqualifying health coverage, which means you are no longer eligible to make HSA contributions while on Medicare.
What are the penalties for making HSA contributions while on Medicare?
Contributing to your Health Savings Account after enrolling in Medicare can trigger IRS penalties. Because Medicare counts as disqualifying health coverage, any HSA contributions made after enrollment are considered “excess contributions” and needs to be corrected to avoid ongoing tax consequences.
If you contribute to an HSA after enrolling in Medicare, the IRS treats those deposits as excess contributions. Excess contributions are subject to a 6% excise tax each year that the extra funds remain in the account. This penalty continues annually until the issue is corrected.
If you correct the mistake before filing your tax return for that year, you can usually avoid the ongoing penalty. To fix the problem, you’ll typically need to withdraw any excess contributions and remove any earnings generated from the contributions.
Can you delay Medicare and keep using an HSA?
If you continue working after age 65, you may be eligible to delay Medicare and keep contributing to your Health Savings Accounts (HSAs). This option can help you grow your HSA balance longer, but it only works if you remain eligible under IRS rules.
You can continue contributing to your HSA if:
You are still working past age 65
Your employer offers a qualifying HDHP
You have not enrolled in Medicare
You have not started Social Security benefits (which often triggers automatic Medicare Part A enrollment)
Final thoughts on HSAs and Medicare
Managing Health Savings Accounts (HSAs) alongside Medicare can feel complicated, but the core rules are straightforward once you understand them. You can keep your HSA after enrolling in Medicare, but you must stop making contributions once your Medicare coverage begins.
Planning ahead is important. If you expect to enroll in Medicare soon, stopping HSA contributions early—up to 6 months before you enroll in Medicare—can help you avoid excess contribution penalties and issues related to the Medicare six-month rule.
Even after contributions stop, your HSA can remain a powerful healthcare savings tool throughout retirement. Many retirees use their HSA funds to cover expenses such as Medicare premiums (excluding Medigap), copayments, dental care, vision services, and other qualified medical costs.
If you’re looking for an easy and efficient way to spend the dollars in your HSA account even after Medicare, and possibly on some things Medicare may not cover, check out the Flex Marketplace, which brings together hundreds of online stores that sell HSA-eligible products you can pay for directly using your HSA dollars.
Note: This content is for informational purposes only and should not be considered financial, tax, or legal advice.
Related content from Flex
HSA/FSA ELIGIBLE SHOPPING
Shop the Flex HSA/FSA Marketplace
Shop Now

