A retiree who assumes every Medicare-related premium can be paid tax-free out of a Health Savings Account is only half right, and the half that’s wrong can trigger an unexpected tax bill. Internal Revenue Service rules allow HSA funds to cover Medicare Part B, Part D and Medicare Advantage premiums tax-free once someone turns 65 and enrolls, treating them the same as any other qualified medical expense. But the IRS draws a specific exception for Medigap, the private supplemental insurance many retirees buy to cover what Original Medicare doesn’t — and that one exclusion is buried deep enough in the tax code that even longtime HSA holders routinely miss it.
What an HSA Can Pay for Tax-Free After 65
Health Savings Accounts exist to let people set aside pretax money for medical costs, and the tax benefit typically requires the withdrawal to go toward a “qualified medical expense.” Before 65, insurance premiums generally don’t count as qualified expenses at all, with narrow exceptions such as COBRA coverage or premiums paid while collecting unemployment. That changes at 65: under IRS Publication 969, once an account holder reaches that age, Medicare premiums themselves become an allowed tax-free HSA expense, covering Part B (medical insurance), Part D (prescription drug coverage) and premiums for a Medicare Advantage plan, which combines Parts A and B through a private insurer.
This is a meaningful benefit for retirees who kept contributing to an HSA through their working years, because it lets them draw down that balance to offset a genuinely recurring cost — most Medicare Part B enrollees get their premium deducted automatically from their Social Security check, and Medicare’s own payment portal accepts an HSA debit card directly for those who pay by bill — without owing income tax on the withdrawal or losing the money to a “use it or lose it” deadline the way a flexible spending account would. Unused HSA balances simply carry forward, so a worker who built up savings in their 50s and 60s can spend it down gradually against Medicare premiums well into retirement.
The rule also reaches beyond premiums for the account holder alone. HSA funds can be used tax-free for a spouse’s Medicare premiums as well, once that spouse is also 65 or enrolled, even though the account itself is owned individually rather than jointly. That detail matters for couples where one spouse continued working and contributing to a family HSA past 65 while the other had already retired and enrolled in Medicare, since the working spouse’s HSA balance can still be tapped to cover the retired spouse’s premiums.
Free retirement updates: Want plain-English help keeping more of your money in retirement? The free Retirement Shield newsletter covers the benefits, deadlines, and money mistakes that cost retirees, a couple times a week. Subscribe free.
Why Medigap Is Carved Out
Medigap policies are sold by private insurers to cover the deductibles, copayments and coinsurance that Original Medicare leaves the beneficiary responsible for — gaps that can add up quickly for someone with an ongoing medical condition. Despite functioning as a Medicare-adjacent expense in every practical sense, the IRS publication is explicit that premiums for “a Medicare supplemental policy, such as Medigap” do not qualify for tax-free HSA distribution, even after age 65. It is one of a short list of named exceptions inside a rule that otherwise treats Medicare premiums generously.
Long-term care insurance premiums sit closer to the Medicare-premium side of the line than the Medigap side, which adds to the confusion: the IRS allows a limited, age-based dollar amount of long-term care premiums to count as a qualified HSA expense each year, an allowance that has no equivalent for Medigap at all. Retirees comparing the two types of supplemental coverage side by side sometimes assume similar tax treatment applies to both, when in fact one has a partial HSA allowance and the other has none.
The consequence of the exclusion is not that Medigap becomes unaffordable through an HSA — account holders can still withdraw money to pay a Medigap premium if they choose. The consequence is tax treatment: a withdrawal used for Medigap is added to the account holder’s taxable income for the year, the same as if the money had simply been withdrawn for a non-medical purpose, and it must be reported on Form 8889 along with every other HSA distribution made that year. Because the account holder is already 65 or older when this typically happens, the additional 20% early-withdrawal penalty that applies to non-medical HSA withdrawals before 65 does not apply — the cost is strictly the income tax, not a penalty on top of it.
Why the Distinction Trips Up New Retirees
The gap between what qualifies and what doesn’t is easy to miss because Part B, Part D, Medicare Advantage and Medigap are all marketed and discussed together as “Medicare costs,” and retirees rarely see IRS Publication 969’s fine print unless they consult a tax professional or read the rule directly. A retiree who has been treating every Medicare-related premium as automatically tax-free HSA-eligible for years can end up with a surprise addition to taxable income the first time the IRS or a tax preparer flags a Medigap withdrawal specifically.
For someone choosing between a Medicare Advantage plan and Original Medicare paired with a Medigap policy, the HSA tax treatment is a real, if secondary, factor in the math: Medicare Advantage premiums draw down HSA savings tax-free, while the equivalent Medigap premium under the Original Medicare path does not carry the same tax advantage. That does not make Medigap the wrong choice for someone who wants broader provider access or fewer network restrictions, but it means the true after-tax cost of a Medigap premium paid from an HSA is higher than the sticker price suggests — a distinction worth confirming with a tax preparer before assuming an HSA balance stretches as far under one Medicare path as it does under the other.
The rule is narrow in one more respect worth flagging: it covers premiums, not the coinsurance, copayments and deductibles a Medigap policy is designed to eliminate. A retiree who skips Medigap altogether and instead pays Original Medicare’s out-of-pocket costs directly out of an HSA is on solid tax footing, since those costs remain fully qualified medical expenses regardless of age. The exclusion applies specifically and only to the Medigap premium itself, which is why the distinction is easy to state precisely but easy to overlook when comparing two coverage paths side by side.
This article was researched and drafted with the assistance of artificial intelligence.
More Financial Reading