Yes. Once you turn 65, you can use HSA funds to pay Medicare premiums tax-free and penalty-free, including Part A (if you owe one), Part B, Part D, and Medicare Advantage. Medigap is the one Medicare-related premium the tax code excludes. Medicare does not accept HSA payments directly, so the mechanics are reimbursement: you pay the premium through the normal channel and pull the matching amount out of your HSA afterward.
Which Medicare Premiums Count
IRS Publication 969 lists Medicare premiums among the insurance costs that qualify for tax-free HSA withdrawals after age 65.1Internal Revenue Service. IRS Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans The qualifying categories:
- Part B, which covers doctor visits, outpatient care, and preventive services. Most people pay this monthly, often by deduction from Social Security.
- Part D prescription drug plan premiums.
- Medicare Advantage (Part C) premiums charged by the private insurer running the plan.
- Part A, if you owe a premium. Most enrollees don’t, because they or a spouse earned enough work credits, but when a Part A premium applies, the HSA can cover it.
All four get the same treatment: the withdrawal comes out free of income tax and free of the 20% additional tax that otherwise hits non-medical HSA spending before 65.
Medigap Is the Exception
Medicare Supplement Insurance, better known as Medigap, is carved out by name in the federal statute.2Office of the Law Revision Counsel. 26 U.S. Code 223 – Health Savings Accounts Pay a Medigap premium with HSA money after 65 and the withdrawal is added to your taxable income, though no additional penalty applies. Before 65, the same withdrawal gets ordinary income tax plus the 20% additional tax.1Internal Revenue Service. IRS Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans This surprises people, because Medigap feels like a medical expense. The tax code treats it separately from the Medicare program itself, so if you carry a Medigap policy, plan to pay that premium with after-tax dollars.
Your Age Is What Matters
The rule hinges on the HSA owner’s age, not the age of whoever gets coverage. If you have not reached 65, Medicare premiums are not a qualified HSA expense, even for a spouse or dependent who is already on Medicare.1Internal Revenue Service. IRS Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans
Once you turn 65, the door opens both ways. You can use your HSA to pay Medicare premiums for yourself and for a spouse or dependents on Medicare. The statute ties the age test to the account beneficiary, meaning the HSA owner.2Office of the Law Revision Counsel. 26 U.S. Code 223 – Health Savings Accounts The 20% additional tax on non-medical withdrawals also disappears at 65, though non-medical withdrawals still count as taxable income.
How to Pay a Medicare Premium From an HSA
Medicare will not accept a direct payment from your HSA. Premiums are either deducted from your Social Security check, billed by your Medicare Advantage or Part D plan, or paid by you directly to Medicare. The HSA sits on the other side of that transaction.
You pay the premium first through the normal channel. Then you withdraw the matching amount from the HSA, typically by transferring it to a linked bank account through the custodian’s website. No one reviews receipts at the time of withdrawal. You keep the documentation in case the IRS wants to see it later. The Part B premium pulled from your Social Security benefit each month is reimbursable the same way: match the deduction, pull the equivalent from the HSA, keep the record.
You Can Reimburse Yourself Years Later
There is no federal deadline for pulling reimbursement out of an HSA. A premium paid in January can be reimbursed in December, or five years out, or a decade out. The only condition is that the HSA already existed when the expense was incurred.1Internal Revenue Service. IRS Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans
That rule enables a common strategy. If you can afford to pay Medicare premiums from current cash flow, you let the HSA stay invested and growing tax-free, meanwhile banking the receipts. Years later you can take a large tax-free withdrawal against that accumulated stack of unreimbursed expenses. It only works if you keep the records. Each reimbursement has to match a specific expense you can produce on request.
Contributions Stop When Medicare Starts
Enrolling in any part of Medicare ends your HSA contribution eligibility. Part A alone is enough, even if you are still working under an employer high-deductible health plan. You cannot be enrolled in Medicare and contribute to an HSA in the same month.1Internal Revenue Service. IRS Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans
Money already in the account stays yours and remains available for qualified expenses for life. The cutoff is on contributions, not on withdrawals.
The Six-Month Lookback
This catches people who work past 65. When you enroll in Part A after your 65th birthday, coverage is backdated up to six months from your application date, though never earlier than the month you turned 65. You were technically on Medicare for those backdated months, which retroactively disqualifies HSA contributions you made during that stretch. Excess contributions carry a 6% excise tax for every year they stay in the account, so you need to withdraw the excess before your tax filing deadline.
The safe move: stop HSA contributions at least six months before you apply for Medicare or claim Social Security retirement benefits. Claiming Social Security triggers automatic enrollment in Part A, which triggers the lookback.3Centers for Medicare & Medicaid Services. Get Started With Medicare – Before 65 Filing in October? March was your last safe contribution month. The clock runs from your application date, not from the date you want benefits to start, so applying in October with a January start date still creates an October lookback.
Other Retirement Health Costs the HSA Covers
Medicare premiums are one slice. The HSA also covers out-of-pocket Medicare costs at any age, including deductibles, copayments, and coinsurance under Parts A, B, C, and D, as long as the expense qualifies as medical care.1Internal Revenue Service. IRS Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans Things Medicare does not cover at all, like routine dental work, eyeglasses, and hearing aids, are also qualified HSA expenses, and for many retirees those uncovered costs add up faster than the premiums themselves.
Three other insurance premiums qualify beyond Medicare: long-term care insurance (up to an age-based annual cap the IRS updates each year), COBRA continuation coverage if you have a gap before Medicare starts, and health coverage paid while receiving unemployment compensation.
Records You Need to Keep
Your HSA custodian reports every distribution to the IRS on Form 1099-SA.4Internal Revenue Service. About Form 1099-SA, Distributions From an HSA, Archer MSA, or Medicare Advantage MSA You report them on Form 8889 and sort out what was qualified and what wasn’t.5Internal Revenue Service. About Form 8889, Health Savings Accounts (HSAs) The IRS doesn’t ask for receipts at filing. If you’re audited, the burden of proof is entirely on you.
For Medicare premiums, save the premium notices from Medicare, documentation of any deductions from your Social Security benefit, and statements from any Medicare Advantage or Part D plan. Each one should show what you paid and the coverage period. Keep them at least three years after the tax filing date for the return showing the distribution.6Internal Revenue Service. How Long Should I Keep Records If you’re using the delayed-reimbursement strategy, hold the original premium documentation until three years after the return that claims the reimbursement, which can run well over a decade past the date you first paid.