A glass jar of saved medical receipts and a teal notebook beside a navy folder, suggesting HSA savings carried from working years into retirement
Article

How Should I Use My HSA Before and During Retirement?

Explore Medicare & IRMAA

RetirementNeuron Editorial · October 22, 2026 · 6 min read

Use an HSA as a separate pool for qualified medical costs: save while you are eligible, keep receipts if you pay bills from other cash, and spend the balance in retirement on eligible care. After you enroll in Medicare you generally cannot contribute, but you can still spend money already in the account on qualified expenses. Not every Medicare premium qualifies.

An HSA is a health savings account paired with a high-deductible health plan. IRS Publication 969 describes the tax pattern in plain terms. Contributions can be deductible or excluded from income, growth inside the account is tax-free, and withdrawals for qualified medical expenses are tax-free. That combination is why people treat the HSA as healthcare savings rather than as a general checking account. The publication is the rulebook. This article is the planning translation.

Who can still contribute

To contribute, you generally must be covered by a qualifying high-deductible health plan, have no disqualifying other coverage, and not be enrolled in Medicare. You also cannot be claimed as someone else's dependent. The annual dollar limit changes. Do not use a limit from an old article. IRS Publication 969 and the instructions for Form 8889 publish the figure for the tax year.

Employer contributions count toward the limit. If you are 55 or older, the rules may allow an additional catch-up contribution while you remain eligible. The month you enroll in Medicare, the contribution limit for that month becomes zero. Publication 969 is explicit that this includes retroactive Medicare coverage. If Part A is backdated, contributions you already made for those months can be excess and may need to be withdrawn.

Want to see how this applies to your retirement?

Healthcare savings belong on the same timeline as Medicare and your retirement date.

Spending the account before and after you retire

Qualified medical expenses are the bills Publication 969 and IRS Publication 502 treat as medical care, subject to the HSA limits. Doctor visits, prescriptions, dental and vision costs that qualify, and many out-of-pocket amounts can be paid from the HSA. Insurance premiums generally cannot, with important exceptions. Publication 969 allows HSA funds for long-term-care insurance within age-based limits, COBRA-style continuation coverage, health coverage while you receive unemployment compensation, and, once you are 65 or older, Medicare and other health care coverage other than premiums for a Medicare supplemental policy such as Medigap.

Read that last exception twice. At 65 or older, an HSA can pay certain Medicare premiums. It cannot pay Medigap premiums. It also does not become a free pass for every premium in the household. Publication 969 says that if you, the account holder, are not yet 65, Medicare premiums for a spouse or dependent are generally not qualified medical expenses. Keep the HSA in the name of the person whose bills it will pay, and do not assume one spouse's account covers the other's premiums before that spouse reaches 65.

UseUsually allowed from an HSA?
Qualified out-of-pocket medical billsYes, if they are qualified medical expenses incurred after the HSA was established.
Medicare Part B, Part D, or Medicare Advantage premiums at 65 or olderPublication 969 allows Medicare premiums for the account holder who is 65 or older, other than Medigap.
Medigap or other Medicare supplemental premiumsNo. Publication 969 excludes Medicare supplemental premiums.
New contributions after any Medicare enrollmentNo. The contribution limit is zero starting that month, including retroactive months.

Receipts, and why the account is not the household spending fund

Some people pay a current medical bill with taxable cash and leave the HSA invested, then reimburse themselves years later. That can work only if the expense was qualified, it was incurred after the HSA existed, and you kept the receipt. The IRS can ask. A shoebox you cannot find is not a strategy. If you reimburse yourself, the withdrawal is tax-free only to the extent of those documented expenses. A withdrawal that is not for a qualified expense is taxable. After age 65 the extra penalty on non-medical withdrawals generally does not apply, but income tax still can.

That is why the HSA should stay labeled as healthcare money in your retirement plan. Mixing it into the monthly spending budget hides the fact that a future surgery, dental bill, or Medicare premium might have been payable tax-free from this account and taxable from an IRA. Medicare at 65 is the moment when contributions usually stop and spending rules shift. Long-term care costs are a later use, and only the portion that qualifies, including limited long-term-care insurance premiums, should be assumed.

Healthcare savings are part of retirement planning—not a separate problem.

See how an HSA, Medicare enrollment, and your retirement date fit on one timeline.

Tradeoffs around age 65

  • Keep contributing until Medicare starts. You add a year or two of tax-favored savings. You must stop in time, including for any retroactive Part A months.
  • Spend the HSA early on current bills. You lower today's out-of-pocket cost. You also have less left for Medicare premiums and later care.
  • Invest the HSA and save receipts. The balance may grow. You take recordkeeping risk, and the investments can fall in a year when you need the cash.

Common mistakes

Contributing for months after Medicare enrollment, especially retroactive Part A, is the mistake that creates an excess-contribution problem. Using the HSA for Medigap premiums because "it is a Medicare premium" is another. So is reimbursing a bill from before the account was opened, or losing the receipts and then treating the whole balance as tax-free. Couples sometimes contribute to the wrong spouse's account after one of them enrolls in Medicare.

What this means for your retirement plan

Put the HSA on the healthcare line of the plan, next to the month you turn 65 and the month work coverage ends. Decide whether the balance is for premiums, for a later care reserve, or for bills you are documenting now. Do not fold it into the general withdrawal plan until you have used the qualified-expense rules on purpose. Analyze your retirement healthcare timeline with your own enrollment month and savings.

Frequently asked questions

Can I pay all of my Medicare premiums from an HSA?

No. IRS Publication 969 lets an account holder who is 65 or older treat Medicare premiums as qualified expenses, other than premiums for a Medicare supplemental policy such as Medigap. Medigap is the clear exclusion. Confirm any other premium against the current publication before you withdraw.

Can I contribute to an HSA after I retire but before I take Medicare?

Only if you are still an eligible individual: qualifying high-deductible coverage, no disqualifying coverage, and no Medicare enrollment. Retirement by itself does not ban contributions. Medicare enrollment does.

What if I already contributed and then learned Part A was retroactive?

Publication 969 treats contributions during retroactive Medicare months as excess. The IRS describes how to withdraw excess contributions by the tax-return deadline, including extensions. Do not ignore the extra months. Read the excess-contribution section or ask a tax professional.

Should I spend the HSA before my IRA?

For qualified medical bills, the HSA is often the cleaner source because a qualified withdrawal is tax-free, while a traditional IRA withdrawal is generally taxable. For non-medical spending, the HSA is usually the wrong tool. Match the dollar to the bill.

Related reading

Ready to look at your own retirement?

General retirement information is useful, but your results depend on your own household, savings, Social Security, taxes, healthcare, spending and retirement timeline.

This article is educational and not tax advice. Contribution limits, qualified expenses, and Medicare enrollment rules change. Use IRS Publication 969, the Form 8889 instructions, and Medicare.gov for the year you are planning.

Educational planning software—not investment, tax, legal, Medicare, or Social Security advice. Projections depend on your inputs and assumptions. Optional professional review is separate when available.

Don't stress about retirement— take control of it.

Educational tools make it easy to plan retirement and see the numbers behind Social Security, withdrawals, and tax-aware scenarios.

Get Started

You might also like

Your personalized path to financial wellness starts here.

Build a household plan, run scenarios, and keep a tax-aware action list in one workspace.

Get Started