Yes, you can use your Health Savings Account (HSA) to pay Medicare Part B premiums — completely tax-free. IRC Section 223(d)(2) allows HSA holders age 65 and older to withdraw funds for Medicare Part B, Part A, Part C (Medicare Advantage), and Part D premiums without owing any federal income tax. The catch? You cannot contribute to an HSA once you enroll in Medicare — a rule that trips up roughly 8% of Medicare Part B beneficiaries who pay higher premiums due to income-related adjustments and may not realize how HSA planning could offset those costs.
Here is what you will learn in this article:
- 💰 Exactly which Medicare premiums qualify for tax-free HSA withdrawals — and which ones don’t
- ⚠️ How the IRS 6-month lookback rule creates surprise penalties when you enroll in Medicare
- 📋 Real-world scenarios showing how retirees, working seniors, and spouses use HSA funds for Part B premiums
- 🚫 The costly mistakes people make with HSA contributions after signing up for Medicare
- ✅ Step-by-step guidance on timing your HSA contributions and Medicare enrollment to keep every tax advantage
What Federal Law Says About HSAs and Medicare Premiums
IRS Publication 969 spells out which insurance premiums count as “qualified medical expenses” for HSA purposes. Health insurance premiums are generally not a qualified expense. The IRS carved out a narrow list of exceptions, and Medicare premiums for people age 65 or older sit squarely on that list.
The legal foundation comes from IRC Section 223(d)(2), which defines qualified medical expenses as those meeting the definition of “medical care” under IRC Section 213(d). Under that definition, insurance premiums are normally excluded — but Congress added specific carve-outs for Medicare, COBRA, and long-term care premiums.
This means once you turn 65 and enroll in Medicare, your existing HSA balance becomes a powerful tool to cover monthly premiums. The money comes out tax-free, grows tax-deferred until you need it, and has no deadline for reimbursement — you can withdraw today for premiums you paid years ago.
Which Medicare Premiums Your HSA Can and Cannot Cover
Not every Medicare premium qualifies. The IRS draws a bright line between standard Medicare coverage and supplemental policies. Knowing this difference protects you from an unexpected tax bill.
| HSA-Eligible Medicare Premiums | NOT HSA-Eligible |
|---|---|
| Medicare Part A (hospital) | Medigap / Medicare Supplement |
| Medicare Part B (medical) | Private health insurance premiums (non-Medicare) |
| Medicare Part C (Medicare Advantage) | Marketplace (ACA) plan premiums |
| Medicare Part D (prescription drug) | Healthcare sharing ministry plans |
IRS Publication 969 specifically states that premiums for a “Medicare supplemental policy, such as Medigap” do not qualify. This is the single biggest area of confusion. Medigap policies cover deductibles and copayments — the IRS does not treat them the same as core Medicare coverage.
Medicare Advantage (Part C) premiums do qualify because Part C replaces Original Medicare rather than supplementing it. If you switch from Original Medicare to a Medicare Advantage plan, your HSA can still cover those premiums tax-free.
How Much the Standard Part B Premium Costs in 2026
Understanding the dollar amounts helps you see exactly how much your HSA can save you. The standard Medicare Part B premium for 2026 is $202.90 per month, which works out to $2,434.80 per year. That entire amount can come from your HSA without triggering a single dollar of income tax.
Higher earners pay more through the Income-Related Monthly Adjustment Amount (IRMAA). The 2026 IRMAA brackets are based on your 2024 Modified Adjusted Gross Income (MAGI). Every dollar of IRMAA can also be paid from your HSA tax-free.
| Individual MAGI (2024) | Joint Filer MAGI (2024) | Monthly Part B Premium (2026) |
|---|---|---|
| $109,000 or less | $218,000 or less | $202.90 |
| $109,001–$137,000 | $218,001–$274,000 | $284.10 |
| $137,001–$171,000 | $274,001–$342,000 | Higher bracket |
| $205,001–$499,999 | $410,001–$749,999 | $649.20 |
| $500,000+ | $750,000+ | $689.80 |
A person paying the highest IRMAA bracket owes $8,277.60 per year in Part B premiums alone. Paying that from an HSA instead of after-tax dollars saves thousands in income taxes over a retirement.
You Can Reimburse Yourself — Even for Past Premiums
One of the most powerful (and overlooked) HSA rules is the unlimited lookback. There is no time limit for withdrawing HSA money to reimburse yourself for qualified expenses, as long as those expenses happened after the HSA was opened.
This means if you’ve been paying Medicare Part B premiums out of pocket for three years and never touched your HSA, you can withdraw funds today to reimburse yourself for all of those premiums — completely tax-free. You just need receipts or records proving the expenses were not already reimbursed by insurance.
Even when Part B premiums are deducted directly from your Social Security check, you can still withdraw from your HSA to reimburse yourself. The IRS does not care whether you paid the premium out of pocket or had it withheld from Social Security. The expense still qualifies.
Three Real-World Scenarios: HSA Meets Medicare Part B
Scenario 1: Linda Retires at 65 and Enrolls in Medicare
Linda turns 65 in March 2026. She retires from her job, loses her employer HDHP, and enrolls in Medicare Parts A and B. She built up $45,000 in her HSA over 12 years. Her Part B premium is $202.90/month.
| What Linda Does | What Happens |
|---|---|
| Stops HSA contributions the month Medicare begins | Avoids the 6% excise tax on excess contributions |
| Withdraws $202.90/month from HSA for Part B | Tax-free — counts as a qualified medical expense |
| Also pays Part D premium ($36/month) from HSA | Also tax-free under IRC 223(d)(2) |
| Leaves remaining HSA balance invested | Funds continue to grow tax-deferred |
Linda pays $2,867 per year in combined Part B and Part D premiums entirely from her HSA. At a 22% marginal tax rate, she saves roughly $631 per year in federal income taxes compared to paying from a taxable account.
Scenario 2: Robert Works Past 65 and Delays Medicare
Robert is 67, still works full-time, and has an HDHP through his employer. He has not enrolled in Medicare because his employer has more than 20 employees. He contributes $5,400 per year to his HSA (the 2026 self-only limit of $4,400 plus the $1,000 catch-up contribution).
| What Robert Does | What Happens |
|---|---|
| Delays Medicare enrollment while on employer HDHP | Keeps making tax-deductible HSA contributions |
| Retires at 69 and enrolls in Medicare | Stops contributions immediately |
| Uses HSA to pay Part B, Part D, and Part C premiums | All withdrawals are tax-free |
| Never pays a late enrollment penalty for Part B | Employer coverage counted as creditable coverage |
Robert’s strategy lets him grow his HSA for four extra years. If his balance was $60,000 at age 65 and earned a 6% return, it could reach roughly $75,000 by age 69 — all available tax-free for Medicare costs.
Scenario 3: Maria Uses Her HSA for Her Spouse’s Part B Premium
Maria is 62 and still on her employer’s HDHP. Her husband, James, is 66 and enrolled in Medicare. Maria has an HSA with $30,000 in it. James’s Part B premium is $284.10/month because of IRMAA.
| What Maria Does | What Happens |
|---|---|
| Continues contributing to her own HSA | She is still HDHP-eligible (not on Medicare) |
| Withdraws from her HSA to pay James’s Part B | Tax-free — spousal Medicare premiums qualify |
| Pays James’s Part D premium from HSA too | Also qualifies as long as James is 65+ |
| Does NOT use HSA for James’s Medigap premium | Medigap is never HSA-eligible |
This is a strategy many couples miss. An HSA holder can pay qualified medical expenses for a spouse — including Medicare premiums — even if the spouse is the one on Medicare and the account holder is not.
The 6-Month Lookback Rule That Catches People Off Guard
When you apply for Medicare Part A after age 65, the coverage is backdated up to 6 months. This is the “6-month rule,” and it creates a trap for people who were still contributing to their HSA during that window.
Here is how it works: If you turn 65 in June 2026 and apply for Medicare in December 2026, your Part A coverage could be retroactive to June 2026. Any HSA contributions you made from June through December are now considered excess contributions and subject to a 6% excise tax for every year they remain in the account.
The fix is straightforward but requires planning. Stop contributing to your HSA at least 6 months before you plan to enroll in Medicare. If you’re turning 65 and plan to enroll in Medicare that same month, you should stop HSA contributions no later than 6 months before your 65th birthday.
What Happens If You Contribute to an HSA After Medicare Enrollment
This is one of the most expensive mistakes in retirement health planning. Once your Medicare coverage begins, your HSA contribution limit drops to zero. Any money deposited after that point is an “excess contribution” under IRS rules.
The penalties stack up quickly. You owe a 6% excise tax on excess contributions for every year the money sits in the account. You also lose the tax deduction you claimed for those contributions, meaning you owe back taxes. On top of that, any earnings generated by the excess contributions are subject to additional income tax.
You can fix the problem by withdrawing the excess contributions (and any earnings on them) before the tax filing deadline for the year the contribution was made. The IRS requires you to report the withdrawn earnings as “Other income” on your tax return, but you avoid the ongoing 6% penalty.
HSA Contribution Limits for 2025 and 2026
Even though you cannot contribute after Medicare enrollment, knowing the limits helps you maximize contributions before you enroll. Every dollar you put in now is a dollar you can withdraw tax-free later for Medicare premiums.
| 2025 | 2026 | |
|---|---|---|
| Self-only HDHP coverage | $4,300 | $4,400 |
| Family HDHP coverage | $8,550 | $8,750 |
| Catch-up contribution (age 55+) | +$1,000 | +$1,000 |
| Max self-only with catch-up | $5,300 | $5,400 |
| Max family with catch-up (both spouses 55+) | $10,550 | $10,750 |
These limits are set by the IRS annually and adjusted for inflation. If you are in your late 50s or early 60s, maximizing your HSA contributions now builds a larger tax-free pool for Medicare costs later.
A married couple where both spouses are 55+ and not yet on Medicare can contribute up to $10,750 in 2026. Each spouse must have their own HSA — the IRS does not allow joint HSAs. Each spouse contributes their own $1,000 catch-up amount to their own account.
Mistakes to Avoid When Using Your HSA for Medicare Premiums
Mistake 1: Paying Medigap premiums from your HSA. Medigap (Medicare Supplement) premiums are never a qualified HSA expense. If you withdraw HSA funds for Medigap, the withdrawal is taxed as ordinary income. After age 65, you won’t owe the 20% penalty, but you will owe income tax.
Mistake 2: Continuing HSA contributions after Medicare enrollment. Your HSA contribution limit is zero starting the first month of Medicare coverage. Forgetting to stop automatic payroll deductions is a common way people accidentally trigger the 6% excise tax.
Mistake 3: Ignoring the 6-month retroactive coverage rule. If you sign up for Medicare Part A after 65, your coverage can be backdated up to 6 months. Contributions made during that backdated window become excess contributions.
Mistake 4: Not keeping receipts for reimbursement. The IRS does not require you to withdraw HSA funds in the same year you incur the expense. But if you get audited, you need proof that the withdrawal matched a legitimate qualified expense. Save every premium statement.
Mistake 5: Thinking your HSA disappears when Medicare starts. Your HSA never goes away. You just cannot put new money in. The balance stays yours, continues to grow tax-deferred, and can be used for qualified expenses for the rest of your life.
Dos and Don’ts of Using HSA Funds for Medicare
| Do ✅ | Don’t ❌ |
|---|---|
| Do use HSA funds for Part B, Part D, and Part C premiums — they’re all tax-free qualified expenses | Don’t use HSA funds for Medigap premiums — they are never qualified and you’ll owe income tax |
| Do reimburse yourself for past premiums paid since the HSA was opened — there’s no time limit | Don’t forget to stop automatic HSA contributions before Medicare starts — the 6% penalty adds up fast |
| Do stop HSA contributions at least 6 months before enrolling in Medicare Part A after 65 | Don’t assume the HSA custodian will flag ineligible withdrawals — the IRS puts the burden on you |
| Do max out HSA contributions in the years before Medicare enrollment to build your tax-free reserve | Don’t withdraw from your HSA for non-medical expenses before 65 — you’ll owe income tax plus a 20% penalty |
| Do keep all premium statements and Social Security benefit notices as proof of qualified expenses | Don’t double-dip by deducting premiums on your tax return and paying them tax-free from your HSA |
| Do use your HSA to pay your spouse’s Medicare premiums if your spouse is 65+ | Don’t open a new HSA after enrolling in Medicare — you can keep an existing one but cannot contribute |
Pros and Cons of Paying Medicare Part B From an HSA
| Pros ✅ | Cons ❌ |
|---|---|
| Tax-free withdrawals — Part B premiums paid from an HSA owe zero federal income tax | No more contributions — once on Medicare, you cannot add new money to the HSA |
| No time limit on reimbursement — reimburse yourself for premiums paid years ago | Medigap exclusion — supplemental policy premiums cannot be paid from an HSA |
| Spousal coverage — pay your spouse’s Medicare premiums from your HSA | Finite balance — once the HSA is spent, the tax benefit is gone |
| Triple tax advantage — contributions were tax-deductible, growth is tax-deferred, and qualified withdrawals are tax-free | Record-keeping burden — you must save receipts and proof; the IRS can audit years later |
| Flexibility after 65 — non-medical withdrawals are taxed as income but carry no penalty | 6-month trap — retroactive Medicare coverage can turn prior contributions into excess contributions |
How Social Security and Part B Premiums Interact With Your HSA
Most Medicare beneficiaries have their Part B premium automatically deducted from their monthly Social Security check. This creates confusion: “If I never wrote a check for Part B, can I still use my HSA?”
Yes, you can. The IRS allows you to reimburse yourself from your HSA for Part B premiums withheld from Social Security. You simply withdraw the equivalent amount from your HSA. The premium deduction on your Social Security statement serves as your receipt.
This matters because it means every Medicare beneficiary with an HSA balance can benefit — not just those who pay premiums directly. If you receive Social Security and Medicare Part B, you can pull that premium amount from your HSA each month (or as a lump sum at year’s end) without paying a dime in tax.
The 20% Penalty: What Happens Before and After Age 65
If you withdraw HSA funds for non-qualified expenses before age 65, you owe income tax plus a 20% additional penalty. That 20% penalty is higher than the 10% early withdrawal penalty on IRAs, making HSA misuse especially costly for younger account holders.
After age 65, the 20% penalty disappears. Non-qualified withdrawals are still taxed as ordinary income, but there is no extra penalty. This effectively turns your HSA into something similar to a traditional IRA after 65 — any money not used for medical expenses is taxed like regular income when withdrawn.
For Medicare Part B premiums specifically, no penalty and no income tax apply at any point after age 65, because these premiums are always a qualified medical expense. The 20% penalty only matters if you use the funds for something other than qualified medical costs before turning 65.
How Self-Employed Individuals Should Handle the HSA-Medicare Overlap
Self-employed individuals get a special tax deduction for Medicare premiums on their federal return — even without itemizing. This creates a choice: deduct the premiums on your tax return, or pay them tax-free from your HSA.
You cannot do both. If you use HSA funds to pay Part B premiums, you cannot also claim the self-employed health insurance deduction for those same premiums. That would be “double-dipping,” and the IRS does not allow it.
The smarter move depends on your tax situation. If you have a large HSA balance and want to preserve your cash flow, using the HSA makes sense. If your HSA balance is small and you’d rather keep those funds for out-of-pocket costs, taking the self-employed deduction on your return and paying premiums from other income may be the better path.
Filing Form 8889: Reporting HSA Activity on Your Taxes
Every year you have an HSA — whether you contribute, withdraw, or just hold a balance — you must file Form 8889 with your federal tax return. This form reports contributions, deductions, and distributions. It is also where excess contributions and the associated penalties are calculated.
Part I of Form 8889 covers contributions you (and your employer) made during the year. Part II covers distributions — this is where you report withdrawals used for Part B premiums and other qualified expenses. Part III handles the math if you have excess contributions or failed the testing period for the last-month rule.
Your HSA trustee sends you Form 1099-SA showing total distributions for the year. You also receive Form 5498-SA showing total contributions. Use both forms to complete Form 8889 accurately. Errors on this form are one of the most common triggers for IRS notices related to HSAs.
How IRMAA Surcharges Affect Your HSA Strategy
Higher-income retirees pay significantly more for Part B through IRMAA. In 2026, the top bracket pays $689.80 per month — more than three times the standard premium. Every dollar of that IRMAA surcharge is a qualified HSA expense.
IRMAA is based on your tax return from two years prior. For 2026 premiums, the IRS looks at your 2024 MAGI. This means a high-income year — perhaps from selling a business or taking a large retirement account distribution — can spike your Part B premium two years later.
Planning ahead with your HSA can soften that blow. If you know a high-income year is coming, you can prepare by maximizing HSA contributions in advance. When the IRMAA surcharge hits, you withdraw from your HSA to cover the inflated premium — all tax-free.
State Tax Treatment: Not Every State Follows Federal Rules
Most states follow federal law and treat HSA contributions as tax-deductible and qualified withdrawals as tax-free. But California and New Jersey do not recognize HSAs for state tax purposes. If you live in either state, your HSA contributions are not deductible on your state return, and the investment earnings inside the HSA are taxable at the state level.
This does not change the federal tax benefit of using your HSA for Medicare Part B premiums. The withdrawal is still federal-income-tax-free. But residents of these two states should factor in the state-level treatment when deciding how aggressively to fund their HSA.
New Hampshire and Tennessee do not have a broad income tax but do (or recently did) tax certain investment income, which could affect HSA earnings in some cases. For most other states, HSAs receive the same favorable treatment as they do under federal law.
FAQs
Can I use my HSA to pay Medicare Part B premiums?
Yes. Medicare Part B premiums are a qualified medical expense under IRS Publication 969. Withdrawals for Part B are completely tax-free if you are age 65 or older.
Can I pay my spouse’s Medicare Part B premium from my HSA?
Yes. You can use your HSA to pay qualified medical expenses for your spouse, including Medicare Part B and Part D premiums, as long as your spouse is 65 or older.
Can I use my HSA to pay for Medigap premiums?
No. Medicare Supplement (Medigap) premiums are specifically excluded by the IRS. Using HSA funds for Medigap means you owe income tax on the withdrawal.
Can I contribute to my HSA after enrolling in Medicare?
No. Your HSA contribution limit drops to zero the first month of Medicare coverage. Contributing after enrollment creates excess contributions subject to a 6% excise tax.
What is the 6-month lookback rule for HSAs and Medicare?
Medicare Part A coverage can be backdated up to 6 months when you enroll after 65. HSA contributions made during that retroactive period become excess contributions.
Can I reimburse myself from my HSA for past Medicare premiums?
Yes. There is no time limit on reimbursement. You can withdraw now for any qualified expense incurred after the HSA was opened — including years of past premiums.
Do I owe a penalty for non-medical HSA withdrawals after age 65?
No. The 20% penalty for non-qualified withdrawals only applies before age 65. After 65, non-medical withdrawals are taxed as ordinary income but carry no penalty.
Can I use my HSA if my Part B premium is deducted from Social Security?
Yes. Even when premiums are withheld from your Social Security check, you can withdraw the same amount from your HSA as a tax-free reimbursement.
What is the standard Medicare Part B premium for 2026?
The standard monthly premium is $202.90. Higher earners pay more through IRMAA surcharges based on their 2024 modified adjusted gross income.
Can I deduct Medicare premiums AND pay them from my HSA?
No. That would be double-dipping. You must choose one: the tax-free HSA withdrawal or the tax deduction. You cannot claim both for the same premium.
Does my HSA close when I enroll in Medicare?
No. Your HSA stays open indefinitely. You simply cannot make new contributions. The existing balance remains yours, continues to grow, and can be used for qualified expenses at any time.
What are the 2026 HSA contribution limits?
The 2026 limits are $4,400 for self-only coverage and $8,750 for family coverage. The catch-up contribution for those 55 and older remains $1,000.
Related reading
- Does an HSA Really Lower Your Taxable Income? – Avoid This Mistake + FAQs
- Can You Have an HRA and HSA? (w/Examples) + FAQs
- Are HSA Contributions Worth It? (w/Examples) + FAQs
- Are HSA Contributions Tax Deductible? (w/Examples) + FAQs
- When Can You Withdraw From HSA? (w/Examples) + FAQs
- Can Long-Term Care Insurance Premiums Be Paid From HSA? (w/Examples) + FAQs
- Does HealthEquity HSA Roll Over? (w/Examples) + FAQs