Home › Knowledge › Medicare Enrollment
CJ Karrer
Writer · Reviewed by Richard ChanUpdated Jun 12, 2026
7 min read
You cannot legally contribute to a Health Savings Account (HSA) once your Medicare coverage (Part A or Part B) goes into effect.
If you plan to delay Medicare to continue HSA contributions, you must also delay drawing Social Security benefits to avoid retroactive Medicare Part A enrollment.
You can still use the funds already accumulated in your HSA tax-free to pay for qualified medical expenses, including Medicare premiums, deductibles, and copayments.
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.
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.
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.
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.
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.
Understanding the mechanics of how these two systems interact is essential for making the most of both.
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.
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.
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.
Your HSA doesn't expire at Medicare enrollment — far from it. Here's how to put those accumulated dollars to work.
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.
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.
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.
The HSA-Medicare intersection is genuinely tricky — and the stakes of getting it wrong are real.
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.
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.
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.
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.
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.
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.
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.