A couple in their late fifties sits across from their financial advisor with two stacks of paperwork: one is a quote for a knee replacement surgery scheduled next spring, the other is an HSA statement showing a balance they have been letting grow for a decade. The advisor poses the obvious question: tap the HSA now for the surgery, or keep the money invested and pay out of pocket?
HSA contributions and Medicare enrollment: the cutoff that catches people
The IRS sets the HSA contribution limit to zero for any month a person is enrolled in Medicare. The tricky part: that month is not always the month you expect.
Read also: Roth IRA conversions: tax considerations before retirement
Medicare Part A coverage can be applied retroactively. If contributions landed in the HSA during any of those retroactive months, the fix involves withdrawing the excess plus any attributable earnings before the tax filing deadline.
Someone who works past 65 and delays Medicare should track the exact enrollment date, not just the birthday. Retroactive Medicare coverage can turn legal HSA deposits into penalties. The correction window closes at the tax filing deadline, and missing it triggers both income tax and a 6% excise on the excess for every year it stays in the account.
Related reading: Downsizing in retirement: housing costs, home equity and taxes

Spending the HSA now versus letting it grow: a real trade-off
Consider a household facing a $15,000 surgical bill with $8,000 in regular savings. Paying entirely out of pocket to preserve the HSA balance sounds smart on paper, until the remaining $7,000 goes on a credit card at 22% APR. In that scenario, withdrawing from the HSA costs nothing in taxes (it is a qualified expense), while the credit card route destroys value fast.
Leaving money in the HSA has a clear advantage: investment growth is tax-free, and qualified withdrawals in retirement stay tax-free too. Pulling it out today for a qualifying expense is also tax-free. The difference comes down to opportunity cost. A dollar withdrawn now cannot compound for another 10 or 15 years.
The break-even depends on investment returns inside the HSA versus the cost of alternative financing. A family managing a chronic condition that generates recurring bills every year runs a fundamentally different calculation than someone with low annual medical costs banking on a large HSA balance for retirement. The variable is not just future returns. It is current health spending intensity.
HSA withdrawals in retirement: what qualifies and what does not
After 65, the account becomes more flexible. Withdrawals for qualified medical expenses remain completely tax-free. Withdrawals for anything else lose the 20% additional penalty that applies before 65, but the money is still taxed as ordinary income, similar to a traditional IRA distribution.
That matters for retirees who view their HSA as a general-purpose backup fund. Using it for non-medical costs simply adds to taxable income for the year. Depending on the amount, it can push a retiree into a higher bracket or increase Medicare Part B premium surcharges through IRMAA.
Qualified expenses in retirement cover more ground than many people realize, but they have specific boundaries:
- Medicare Part B, Part D, and Medicare Advantage premiums qualify for tax-free HSA withdrawals, giving the account a direct role in covering ongoing insurance costs.
- COBRA continuation coverage premiums also qualify, which can matter for someone who retires before 65 and bridges the gap to Medicare.
- Eligible long-term-care insurance premiums qualify up to age-based limits the IRS adjusts annually, not the full premium amount.
- Medigap (Medicare Supplement) premiums do not qualify as a tax-free HSA expense, a gap that can reshape a retirement spending plan if someone assumed all Medicare-related insurance was covered.
A retiree who selects a Medigap plan expecting to pay those premiums from the HSA tax-free will face an unpleasant surprise at tax time.
Non-medical HSA withdrawals after 65: flexibility with a tax cost
Some retirement strategies treat the HSA as a stealth IRA: contribute the maximum during working years, invest aggressively, then draw it down for any purpose after 65. The logic is that the worst outcome is ordinary income tax, same as a traditional IRA withdrawal.
That framing is technically correct but skips a practical downside. Unlike a traditional IRA, HSA contributions made through payroll deduction during working years reduce FICA-taxable wages. No IRA offers that benefit. Using the HSA for non-medical costs after 65 converts a triple-tax-free vehicle into a single-tax-free one, erasing two of its three advantages.
For retirees with substantial medical expenses ahead, depleting the HSA on non-medical spending leaves the most tax-efficient tool empty right when healthcare costs tend to peak.
Before 65: the penalty makes it simple
Withdrawing HSA funds for non-qualified expenses before 65 means the amount is included in income and hit with an additional 20% tax. That penalty is steep enough that early non-medical withdrawals rarely make financial sense. After 65, the penalty disappears, but income tax remains.

Building an HSA strategy that fits actual health costs
Start with real numbers, not assumptions. Pull up the last three years of out-of-pocket medical spending. If costs consistently run several thousand dollars a year, a strategy built entirely around preserving the HSA balance may not hold up.
- Keep receipts for every qualified expense paid out of pocket. The IRS has no deadline for reimbursement, so you can pay today, save the receipt, and withdraw tax-free years later once the balance has grown.
- Review HSA investment options carefully. Many custodians offer a limited menu with higher fees than a typical brokerage account. Moving to a custodian with low-cost index fund options can materially improve long-term growth.
- Confirm your Medicare enrollment timeline at least a year before 65, especially if you plan to keep working. Coordinate the last HSA contribution month with the first month of Medicare coverage to avoid excess contributions.
An HSA works best in retirement when it still has money in it. The tension between today’s medical bills and tomorrow’s healthcare reserve is real, and the right split between spending now and preserving for later depends on annual health costs, available cash outside the HSA, and how many years separate you from Medicare.

