CR

CoverRight

Find a Plan

Home › Knowledge › Medicare Enrollment

Can You Have an HSA and Medicare at the Same Time?

CJ Karrer

Writer · Reviewed by Richard Chan

Updated Jun 12, 2026

7 min read

Key Takeaways

A Health Savings Account (HSA) is one of the most powerful tools available for managing healthcare costs. It functions as a personal savings account that lets you set aside pre-tax dollars to pay for qualified medical expenses — deductibles, copayments, coinsurance, and more — then withdraw those funds tax-free when you need them.

For many people approaching Medicare age, an HSA represents years of disciplined saving. That's what makes the rules governing HSAs and Medicare so important to understand before your 65th birthday arrives.

Understanding exactly how an HSA interacts with Medicare — and knowing the precise rules before you enroll — can save you from costly mistakes and keep your tax advantages intact.

Can You Have Both an HSA and Medicare?

The short answer is nuanced: you can have an existing HSA and spend from it while on Medicare — but you cannot make new contributions once Medicare coverage begins.

Compatibility of HSA with Medicare

The moment you enroll in Medicare Part A or Part B, your ability to contribute new pre-tax dollars to an HSA ends. Your contributions must drop to zero. However, the funds already in your account remain fully intact — you can continue to withdraw them tax-free for any qualified medical expenses.

For workers approaching 65 who are still employed and covered by a high-deductible health plan (HDHP), this creates an important strategic question: should you delay Medicare enrollment to keep growing your HSA? The answer depends entirely on your situation — specifically, your employer's size and whether you're already drawing Social Security.

Factors influencing eligibility for both HSA and Medicare

To make new HSA contributions, four eligibility requirements must all be met simultaneously:

Medicare eligibility itself generally begins at age 65, though earlier access is available for individuals with qualifying disabilities, End-Stage Renal Disease, or ALS.

Implications of Having Both HSA and Medicare Coverage

Contributing to your HSA after enrolling in Medicare is a mistake that carries a real financial penalty. The IRS treats those contributions as "excess," subjecting them to an additional 6% tax upon withdrawal. If Medicare enrollment triggers contributions during an HSA testing period, you could owe back taxes plus an extra 10%.

Whether delaying Medicare makes sense for you depends on the size of your employer. If you work for a small employer with fewer than 20 employees, Medicare typically pays first — meaning you likely need Medicare enrollment for adequate primary coverage, even if that means losing HSA contribution eligibility. At larger employers (20 or more employees), employer coverage pays first, allowing you to defer Medicare and continue building your HSA.

One critical piece of timing: if you plan to delay Medicare, you must also delay Social Security. Claiming Social Security at 65 triggers automatic Medicare Part A enrollment — which would halt your HSA contributions immediately, whether you wanted it to or not. Additionally, stop making HSA contributions at least six months before you plan to enroll in Medicare, because Medicare Part A can have a retroactive start date of up to six months.

HSA Contributions and Medicare Enrollment

Understanding the mechanics of how these two systems interact is essential for making the most of both.

How HSA Contributions Work Alongside Medicare

While you cannot contribute new money to an HSA once Medicare begins, the account continues to function for qualified medical expenses. Withdrawals remain tax-free as long as the funds are used for eligible costs — giving your pre-Medicare savings a long and productive life even after enrollment.

Impact of Medicare Enrollment on HSA Contributions

As noted above, enrolling in any part of Medicare ends your ability to make new HSA contributions. Continuing to contribute after enrollment will trigger IRS penalties — a reality that catches many people off guard, particularly those who enroll in Medicare Part A automatically through Social Security without realizing it.

Strategies for Optimizing HSA Contributions and Medicare Benefits

If you established an HSA before joining Medicare, those funds remain available and fully usable even after enrollment begins. Withdrawals for qualified medical expenses — Medicare premiums, deductibles, and copayments among them — remain tax-free indefinitely.

Workers who remain in HSA-eligible plans can maximize contributions right up to the month they turn 65 — there's no need to stop at 64. You can continue contributing through your 65th birthday month without incurring tax issues. Just build in that six-month buffer before your Medicare effective date.

For those working past 65 at large employers, the strategy is straightforward: keep your HDHP, keep funding your HSA, and apply for Medicare when you're ready to leave the workforce. Time your Medicare enrollment to coincide with your departure from your employer health plan to trigger a Special Enrollment Period without penalties.

If you receive Social Security benefits at 65, Medicare enrollment is automatic — and it ends HSA eligibility unless you opt out of Medicare Part A within 12 months and repay any benefits received.

Using HSA Funds for Medicare Expenses

Your HSA doesn't expire at Medicare enrollment — far from it. Here's how to put those accumulated dollars to work.

Approved medical expenses covered by HSA funds

Your HSA funds can cover the monthly premiums for Medicare Part B, Part C, and Part D — including the standard premium and any income-related surcharges. Medicare deductibles and copayments are also eligible. Notably, long-term care insurance premiums and Medigap premiums are not eligible HSA expenses.

Guidelines for using HSA funds to pay for Medicare-related costs

Keep thorough records. Retain receipts for every qualified expense, submit claims as required by your HSA administrator, and stay current on IRS guidance by reviewing Publication 969 on the IRS website. Your HSA funds can be used tax-free for qualified expenses incurred by yourself, your spouse, or your tax dependents — regardless of whether they're enrolled in your HDHP.

Tips for Maximizing HSA Funds while on Medicare

Even though new contributions stop at Medicare enrollment, a well-funded HSA continues to deliver significant tax advantages throughout retirement. The most effective approach: establish your HSA as early as possible, contribute the maximum amount each year you're eligible, and invest the funds for long-term growth. The larger the balance you carry into Medicare, the more financial cushion you'll have for healthcare costs ahead.

Potential Pitfalls and Challenges

The HSA-Medicare intersection is genuinely tricky — and the stakes of getting it wrong are real.

Common Issues Individuals May Face with HSA and Medicare

The most frequent trouble spots: uncertainty about exactly when to stop contributions as Medicare approaches, inadequate documentation of qualified expenses, misunderstanding which Medicare costs an HSA can and can't cover, and misjudging the optimal timing for Medicare enrollment relative to the HSA contribution calendar.

How to Navigate Challenges and Find Solutions

The best protection against these pitfalls is preparation. Review the rules thoroughly well before your 65th birthday, and don't hesitate to consult a financial professional or Medicare specialist who understands both systems. Getting clarity on the rules before enrollment is always better than correcting a mistake after the fact.

Insights on Mitigating Risks

Stay informed as the rules evolve, consult qualified financial professionals who understand both Medicare and HSA regulations, and consider exploring supplemental coverage options that may complement your HSA strategy during and after the Medicare transition.

Frequently Asked Questions

Can I contribute to an HSA while on Medicare?

No. Once you're enrolled in Medicare, new HSA contributions are no longer permitted. You can, however, continue using funds that were already in your account before enrollment to pay for qualified medical expenses.

What eligible medical expenses can I cover with HSA funds on Medicare?

HSA funds can be used for a broad range of qualified expenses including Medicare Part B, C, and D premiums, deductibles, and copayments — but not Medigap premiums or long-term care insurance.

Are there penalties for using HSA funds improperly with Medicare?

Yes. If you use HSA funds for non-qualified expenses, you'll owe ordinary income tax on the withdrawal plus a 20% penalty — unless you're 65 or older, disabled, or in the year of your death. At 65 and beyond, non-qualified withdrawals are still subject to income tax but the 20% penalty no longer applies. The IRS requires that you confirm your distributions are for qualified medical expenses.

Can I open an HSA if I am already enrolled in Medicare?

No. Medicare enrollment disqualifies you from opening a new HSA. You can, however, continue to use any funds already in an existing account tax-free for eligible medical expenses.

Related Articles