Most people treat a Health Savings Account as a place to park money for this year’s doctor visits. Used that way, it is a nice tax break. But the HSA has a hidden second life: with the right approach it becomes one of the most powerful long-term retirement accounts available, arguably the best dollar-for-dollar account in the US tax code. The strategy that unlocks this is sometimes called the stealth retirement account or HSA shoebox method.

Here we explain how to flip the HSA from a spending account into an investing one, the receipt trick that makes it work, and the rule at age 65 that completes the picture.

Why the HSA is uniquely powerful

The HSA is the only account that offers a triple tax advantage:

  1. Contributions go in pre-tax (or are tax-deductible), lowering your taxable income now.
  2. The money grows tax-free, with no tax on interest, dividends, or capital gains.
  3. Withdrawals for qualified medical expenses come out tax-free.

A traditional 401(k) is taxed on the way out. A Roth IRA is taxed on the way in. The HSA is taxed at neither end, as long as the money eventually pays for qualified medical care. No other account does all three. The catch is simply that you need a qualifying high-deductible health plan to contribute.

The mistake most people make

The default behavior is to contribute to the HSA and immediately spend it on current medical bills. That still captures the tax deduction, which is worthwhile. But it wastes the account’s greatest strength: tax-free compounding over decades.

If you spend every dollar as it goes in, the balance never grows, and the “grows tax-free” advantage produces nothing. You have used a long-term vehicle for a short-term job.

The stealth retirement strategy

The alternative flips the script. The plan has three moving parts.

1. Contribute the maximum and invest it

Treat the HSA like a retirement account. Contribute as much as the annual limit allows, and rather than leaving it in cash, invest the balance in funds, the same way you would a 401(k). Many HSA providers offer an investment option once your balance clears a small threshold. This is what turns the account into a growth engine. You can project the long-run balance with the compound interest calculator or the dedicated HSA calculator.

2. Pay current medical bills out of pocket

Here is the counterintuitive part. When you have a medical expense today, do not reimburse yourself from the HSA. Pay it from your regular cash or checking account, and leave the HSA invested and growing. Every dollar you let stay compounds tax-free.

3. Save the receipts (the “shoebox”)

This is the key that makes the strategy legal and flexible. The IRS places no time limit on when you reimburse yourself for a qualified medical expense, as long as the expense occurred after the HSA was established and was not already reimbursed or deducted elsewhere.

So you keep every medical receipt, in a literal shoebox or, more sensibly, a digital folder. Each unreimbursed receipt is effectively a tax-free withdrawal voucher you can cash in at any point in the future. Years or decades later, you can withdraw an amount equal to those accumulated receipts, completely tax-free, and spend it on anything you want, because the qualifying expense already happened.

In effect, you have let the money grow tax-free for 20 or 30 years and then pulled it out tax-free using old receipts. That is the full triple advantage, stretched across a lifetime.

A worked example

Suppose at 35 you start contributing $4,000 a year to your HSA, invest it, and pay all current medical bills out of pocket, saving the receipts. At a 7% return, after 30 years the account could hold well over $375,000.

Along the way, you have accumulated, say, $40,000 of unreimbursed medical receipts. At 65 you can:

  • Withdraw $40,000 tax-free immediately, matched against those receipts, to spend however you like, and
  • Continue using the remaining balance tax-free for future medical costs, which tend to rise with age.

Compare that to having spent each year’s $4,000 as it came in: you would have captured the deduction but built no balance at all.

The age-65 rule that completes the picture

After age 65, the HSA gets even more flexible. You can withdraw money for any reason at all, not just medical, without the 20% penalty that normally applies to non-medical withdrawals.

Non-medical withdrawals after 65 are taxed as ordinary income, exactly like a traditional 401(k) or IRA. So at worst, after 65 the HSA behaves like a traditional retirement account. But used for medical costs (which retirees have in abundance), it stays fully tax-free. This is why the HSA is sometimes described as a Roth IRA and a traditional IRA combined: tax-free for medical spending, traditional-like for everything else after 65.

Where it fits in your savings order

A common priority order for these accounts looks like this:

  1. Contribute enough to your 401(k) to capture the full employer match (free money first). Compare your match with the 401(k) calculator.
  2. Max the HSA if you have a qualifying high-deductible plan, because of the unmatched triple advantage.
  3. Then continue with other tax-advantaged accounts such as a Roth IRA or additional 401(k) contributions.

If you are weighing an HSA against a flexible spending account, note the FSA generally has a use-it-or-lose-it rule and no investment growth, which makes it a poor retirement vehicle by comparison. The HSA vs FSA calculator lays out the differences.

Frequently asked questions

What if I have a medical emergency and need the money now?

That is fine, and it is the safety net built into the strategy. The HSA is still your money. If you need cash for a large bill, you can reimburse yourself at any time, either for the current expense or by cashing in your saved receipts. The shoebox method does not lock the money away; it just lets it grow if you can afford to pay out of pocket in the meantime.

Do I need to keep proof of my medical expenses?

Yes, and it is essential to this strategy. Keep dated receipts and proof of payment for every expense you intend to reimburse later, and confirm you did not already deduct or reimburse them elsewhere. Without documentation, you cannot substantiate a tax-free withdrawal if asked.

Can I keep contributing to an HSA after I retire?

Only while you are covered by a qualifying high-deductible health plan and not enrolled in Medicare. Once you enroll in Medicare, you can no longer contribute, though you can still spend down and invest the existing balance. Many people make their final HSA contributions in the year before Medicare begins.

Is the HSA better than a Roth IRA?

For money that will eventually cover medical costs, the HSA is hard to beat because it is untaxed at both ends. The Roth IRA is more flexible for non-medical spending and has no health-plan requirement. Many savers use both: the HSA for its triple advantage, the Roth for flexibility. Project each with the compound interest calculator to compare.

The bottom line

An HSA is far more than a medical spending account. Max it out, invest the balance, pay current medical bills out of pocket, and save your receipts. The money compounds tax-free for decades, and your stored receipts let you withdraw tax-free whenever you choose. After 65 it doubles as a flexible retirement account. For anyone with a qualifying high-deductible plan, the HSA may be the most tax-efficient retirement dollar available.