Once you enroll in any part of Medicare, your Health Savings Account (HSA) contribution eligibility ends immediately. You can still spend the money already in your HSA, but you cannot add a single new dollar. This is one of the most common planning mistakes people make when turning 65, and the IRS charges a 6% penalty on every excess contribution until the problem is corrected.
Here is exactly how the conflict works, what the 2026 limits are, and how to avoid a costly mistake if you are approaching Medicare age.
Why the IRS Prohibits Contributing to an HSA While on Medicare
An HSA is only available to people enrolled in a qualifying High-Deductible Health Plan (HDHP) with no other "disqualifying" coverage. According to IRS Publication 969, Medicare is disqualifying coverage. Every part of Medicare triggers this rule:
- Part A (hospital insurance)
- Part B (medical insurance)
- Part C (Medicare Advantage)
- Part D (prescription drug coverage)
You cannot be enrolled in any of these and still make HSA contributions. The rule applies to the exact month your Medicare coverage begins, not your birthday. If Medicare starts July 1, your contribution limit for the full year is pro-rated based on the months you were eligible before July.
The 2026 annual HSA contribution limits from the IRS (Notice 2026-05):
| Coverage Type | 2026 Limit | Age 55+ Catch-Up | Total Age 55+ |
|---|
| Self-only HDHP | $4,400 | $1,000 | $5,400 |
| Family HDHP | $8,750 | $1,000 | $9,750 |
If you enroll in Medicare partway through 2026, your limit is pro-rated. Enrolled in July means you were eligible for 6 of 12 months, so your limit drops to 50% of the annual amount. For self-only, that is $2,200.
The Retroactive Enrollment Trap
The most dangerous part of the HSA-Medicare conflict is not the rule itself. It is the retroactive enrollment rule that catches thousands of people off guard every year.
When you delay Medicare past age 65 and later apply, Medicare.gov allows Part A to be backdated up to 6 months before your enrollment date (but never earlier than the month you first became eligible). This retroactive window exists as a convenience, but it silently makes all HSA contributions made during that backdated period into excess contributions.
Example: You turn 65 in January 2025. You delay Medicare and keep contributing to your HSA through 2025 and into 2026. In July 2026 you apply for Medicare. Social Security backdates your Part A coverage to January 2026. Every HSA contribution you made from January through June 2026 is now classified as excess. You owe 6% on the total amount for each year it sits uncorrected.
The fix: stop contributing to your HSA at least 6 months before you plan to apply for Medicare or Social Security benefits.
Social Security and the Automatic Enrollment Problem
This one surprises a lot of people. If you claim Social Security retirement benefits at any age, you are automatically enrolled in Medicare Part A. There is no opt-out.
For people who claim Social Security before age 65, Medicare begins at 65. For those who claim at 65 or later, Part A starts immediately. You cannot claim Social Security and delay Part A separately. That means anyone drawing Social Security who still holds an HSA-eligible HDHP at work must stop HSA contributions the month Part A takes effect.
If you are still working past 65 and covered by an employer group health plan, you may be able to delay Medicare entirely. Consult a licensed Medicare counselor or your State Health Insurance Assistance Program (SHIP) before making that decision.
What You Can Do With Your Existing HSA Balance
Enrolling in Medicare does not make your HSA balance disappear. You can continue to spend the money already in the account tax-free for qualified medical expenses. You can also use existing HSA funds to pay premiums for:
- Medicare Part B
- Medicare Part D (prescription drug coverage)
- Medicare Advantage (Part C) plans
You cannot use HSA funds to pay Medigap (Medicare Supplement) premiums. That is one of the few Medicare-related expenses that does not qualify.
After age 65, HSA funds can also be withdrawn for non-medical expenses without a penalty, though ordinary income tax applies, the same treatment as a traditional IRA.
How to Avoid the HSA-Medicare Penalty: Step-by-Step
Use this checklist to avoid triggering excess contributions.
Documents you will need:
- Medicare card or enrollment notice showing Part A effective date
- Your employer's HSA plan documents
- IRS Form 8889 (filed with your tax return each year you have HSA activity)
- Proof of HDHP coverage dates from your insurer
Steps to take:
-
Calculate your Medicare start date. Your Initial Enrollment Period (IEP) opens 3 months before the month you turn 65 and closes 3 months after. Identify the earliest month your Part A can start.
-
Stop contributions 6 months before applying. If you plan to apply for Medicare in July 2026, make your last HSA contribution in January 2026 to avoid any retroactive coverage overlap.
-
Notify your employer. If your employer contributes to your HSA, they must also stop. Employer contributions count toward your annual limit and are also subject to the 6% penalty if excess.
-
File IRS Form 8889 correctly. Report your pro-rated contribution limit and any months of disqualifying coverage on this form. It is attached to your Form 1040.
-
Withdraw excess contributions by the tax deadline. If you discover excess contributions, withdraw them plus any earnings before your tax filing deadline (including extensions) to avoid the 6% penalty. After the deadline, the penalty applies for each year the excess remains.
-
Check your Medicare Part A effective date, not just your Part B. Many people only watch for Part B to start. Part A alone is enough to trigger the contribution ban.
Common reasons HSA-Medicare planning goes wrong:
- Assuming Medicare starts on your birthday rather than the first of the month
- Forgetting that Social Security enrollment automatically triggers Part A
- Missing the 6-month retroactive look-back window when applying late
- Employer continuing contributions after employee enrolls in Medicare
- Contributing the full annual limit in January when Medicare starts mid-year
Household Eligibility Reference: HSA Contribution Limits in 2026
This table shows the maximum contributions for HSA-eligible individuals in 2026. Once any household member covered under an HDHP enrolls in Medicare, their portion of the contribution limit goes to zero.
| Coverage Type | 2026 Annual Limit | Notes |
|---|
| Self-only HDHP | $4,400 | Pro-rated if Medicare starts mid-year |
| Family HDHP | $8,750 | Spouse on Medicare: self-only limit applies to remaining eligible spouse |
| Catch-up (age 55+) | +$1,000 | Per eligible person; terminates at Medicare enrollment |
| Monthly self-only equivalent | $367 | Multiply by eligible months if pro-rating |
| Monthly family equivalent | $729 | Same pro-rate rule |
When one spouse enrolls in Medicare and the other remains on an HDHP, the Medicare-enrolled spouse can no longer contribute. The other spouse can still contribute up to the self-only limit for their own HSA. They cannot contribute to their spouse's HSA.
HDHP Minimum Requirements in 2026
To even be eligible for an HSA in 2026, your health plan must qualify as an HDHP under IRS Revenue Procedure 2025. The 2026 thresholds:
| HDHP Parameter | Self-Only | Family |
|---|
| Minimum deductible | $1,700 | $3,400 |
| Maximum out-of-pocket | $8,500 | $17,000 |
If your plan falls below the minimum deductible or you have other non-HDHP coverage, you were never eligible to contribute even before Medicare enters the picture.
What Happens After You Enroll in Medicare
Once Medicare is in effect, you transition to Medicare's own out-of-pocket structure. In 2026:
- Part A hospital deductible: $1,736 per benefit period (per cms.gov)
- Part B monthly premium: $202.90 standard
- Part B annual deductible: $283
- Part D premiums vary by plan
Your existing HSA balance can cover any of these costs. Many people use their accumulated HSA funds as a healthcare reserve specifically for Medicare cost-sharing during retirement.
How to Check Your Medicare Eligibility and Enrollment Options
Not sure when Medicare starts for you or whether delaying makes sense in your situation? The free screener at CoveredUSA can help you understand which programs you qualify for, when your enrollment window opens, and what your options look like. It takes about 2 minutes.
Check your eligibility now at CoveredUSA, it takes 2 minutes.
You can also verify Medicare eligibility details directly at medicare.gov or call 1-800-MEDICARE (1-800-633-4227) any time, 24 hours a day.
Frequently Asked Questions
Can I have an HSA and Medicare at the same time?
You can hold an existing HSA balance while enrolled in Medicare. What you cannot do is make new contributions. Any dollar added to an HSA after your Medicare effective date is an excess contribution subject to a 6% IRS excise tax.
Does enrolling in only Medicare Part A affect my HSA?
Yes. Part A alone is enough to make you ineligible to contribute to an HSA. Many people believe only Part B triggers the conflict, but the IRS treats any part of Medicare as disqualifying coverage.
What if I delay Medicare and keep contributing to my HSA?
You can delay Medicare if you have qualifying employer coverage. But when you eventually apply, Part A can be backdated up to 6 months. Any HSA contributions made during that retroactive period become excess contributions. Stop contributions 6 months before applying to be safe.
Can my spouse keep contributing to their HSA if I enroll in Medicare?
Yes, if your spouse is covered under an HDHP and is not on Medicare. They can contribute up to the self-only limit for their own account. They cannot contribute to your HSA.
What can I spend my existing HSA funds on after joining Medicare?
You can use the balance for Medicare Part B premiums, Medicare Part D premiums, Medicare Advantage premiums, and most qualified medical expenses. You cannot use it for Medigap premiums. After age 65, you can also spend it on anything without a penalty, though non-medical withdrawals are taxed as ordinary income.
What is the 6-month rule for HSA and Medicare?
When applying for Medicare, Part A can be backdated up to 6 months before your application date. If you contributed to your HSA during any of those backdated months, those contributions become excess contributions. The fix is to stop all contributions at least 6 months before you apply for Medicare or Social Security.
Can I use my HSA to pay for Medicare premiums?
Yes. You can use your existing HSA balance to pay for Medicare Part B, Part D, and Medicare Advantage (Part C) premiums tax-free. Medigap premiums are the one exception, they do not qualify as a tax-free HSA expense.
Where can I learn more about Medicare eligibility rules?
Visit medicare.gov for official enrollment guidance, or cms.gov for detailed cost information. The IRS Publication 969 covers the complete HSA rules including Medicare interaction. You can also use the CoveredUSA eligibility screener at coveredusa.org/screener to check your specific situation in about 2 minutes.