The HSA shoebox rule, explained
Published
The HSA shoebox rule is the informal name for a federal tax rule: you can reimburse yourself from your HSA for a qualified medical expense years after you paid it, as long as the expense came after you opened the HSA and you kept the records. People use it to pay medical bills out of pocket now, leave the HSA money invested, and take the money out tax-free later.
This is general information, not tax advice. Rules can change, and your situation may differ. Ask a tax professional before you rely on it.
What the rule says
The IRS answered this in Notice 2004-50, Q&A-39. A distribution from an HSA this year can pay or reimburse qualified medical expenses from any earlier year, as long as those expenses were incurred after the HSA was established. In the IRS’s words, “there is no time limit on when the distribution must occur.” Publication 969 says the same thing more briefly: you can take a distribution from your HSA at any time, and you don’t have to take one every year.
The name comes from the shoebox of receipts people keep while they wait. Nothing in the tax code calls it that.
The three conditions
1. It is a qualified medical expense
A qualified medical expense is an amount you paid for medical care for yourself, your spouse, or your dependents, to the extent insurance or another source did not cover it. The Form 8889 instructions say these are, in general, the unreimbursed expenses that could otherwise be deducted on Schedule A, and point to Publication 502 for the list: doctor and dental visits, prescriptions, eyeglasses and contact lenses needed for medical reasons, and so on.
A few HSA rules differ from that list. Nonprescription medicines and menstrual care products count for an HSA. Most insurance premiums do not. The exceptions are long-term care insurance (up to an age-based limit), COBRA continuation coverage, health coverage while you receive unemployment compensation, and Medicare and other coverage once you are 65, but not Medigap.
2. It was incurred after your HSA was established
Publication 969: “expenses incurred before you establish your HSA aren’t qualified medical expenses.” State law decides when an HSA is established. Ask your HSA custodian for the date if you aren’t sure, and write it down.
If you fund a new HSA by rolling money over from an older HSA, the new account counts as established on the date the older one was. That matters if you switch custodians: a new HSA opened without that rollover has its own, later date.
3. It was not paid another way, and you kept the records to prove it
Under Q&A-39 the tax-free treatment depends on records. You need to be able to show that:
- the distribution was used only to pay or reimburse qualified medical expenses,
- those expenses were not already paid or reimbursed from another source, such as insurance, an FSA, or an earlier HSA withdrawal, and
- you did not take those expenses as an itemized deduction in any year.
You don’t send these records with your tax return. You keep them in case the IRS asks.
Why people wait to reimburse themselves
Federally, an HSA’s investment earnings are not taxed while they stay in the account, and a distribution used for qualified medical expenses is not taxed either. If you pay a bill from your own checking account and leave the same amount invested in the HSA, the money can grow for years. You then take out the amount of the old receipts, tax-free, and whatever growth is left stays in the HSA.
You can also reimburse yourself the same week. The rule only means you don’t have to.
Illustrative example
This is an illustration, not a forecast. Assumptions: you have $1,200 of qualified medical expenses this year and pay them yourself. You leave $1,200 invested in your HSA. It earns an assumed 6% a year, compounded once a year, for 15 years, with no fees and no other deposits or withdrawals. Real returns vary from year to year and can be negative.
| After year | Balance |
|---|---|
| 0 | $1,200.00 |
| 1 | $1,272.00 |
| 5 | $1,605.87 |
| 10 | $2,149.02 |
| 15 | $2,875.87 |
The math: $1,200 × 1.0615 = $1,200 × 2.3966 ≈ $2,875.87. In year 15 you reimburse yourself the $1,200 you paid, tax-free. About $1,675.87 of growth stays in the HSA for future qualified expenses. You can only take out what your receipts add up to, so the growth is not a bigger reimbursement. It is money that would not be in the account if you had withdrawn the $1,200 in year one.
To try your own numbers, use the HSA shoebox calculator. It also checks a spreadsheet of expenses in your browser.
Risks and trade-offs
- Losing the records. Thermal receipts fade, patient portals close, and email accounts change. If you can’t show what a withdrawal paid for, it can be treated as a taxable distribution.
- Tax on a withdrawal that doesn’t qualify. The part of a distribution not used for qualified medical expenses is added to your income, and there is an additional 20% tax unless the distribution is made after you turn 65, become disabled, or die.
- You may need the money sooner. Paying out of pocket only works if you can cover the bills now. If a large bill would strain your budget, reimbursing yourself right away is a reasonable choice.
- Investments can lose value. Money in HSA investments can be worth less than you put in when you want it.
- Custodian rules and fees. Many HSA custodians require a cash balance before you can invest, charge account or investment fees, and offer a limited set of funds. Read your custodian’s terms.
- State taxes. Some states, including California and New Jersey, don’t follow the federal HSA tax treatment. Contributions or investment earnings can be taxed on the state return there. Check your state’s rules.
- Tax law can change. The rules above are current federal rules. Congress or the IRS could change them before you reimburse yourself.
Common questions
Do I need to still have an HSA-eligible health plan?
No. The Form 8889 instructions say you can take distributions from an HSA even if you can no longer contribute to one. The expense still has to be incurred after the HSA was established.
Does my HSA custodian check my receipts?
Don’t count on it. Keeping the proof is your responsibility: you don’t file receipts with your tax return, and if the IRS asks what a withdrawal paid for, it asks you.
How do I actually do the reimbursement?
See how to pay yourself back from your HSA later for the steps, from saving the receipt to Form 8889.
Keep the records in PocketHSA
Bring the HSA spreadsheet you already keep: every row is saved as an expense after you check the preview. Upload receipts and AI reads the date, provider, and amount for you to confirm. Connect Google Drive and your receipt files go in a folder you own, with a copy of your expenses in a Google Sheet. You can export everything on every plan.
IRS sources
- IRS Notice 2004-50, Q&A-39 (Internal Revenue Bulletin 2004-33)A distribution can reimburse expenses from any earlier year incurred after the HSA was established. "There is no time limit on when the distribution must occur."
- IRS Publication 969, Health Savings Accounts and Other Tax-Favored Health PlansQualified medical expenses, expenses incurred before the HSA was established, the records to keep, Form 1099-SA, and the additional 20% tax.
- Instructions for Form 8889, Health Savings Accounts (HSAs)Lines 14a to 17b: total distributions, distributions used for qualified medical expenses, the taxable amount, and the exceptions to the additional tax.
- IRS Publication 502, Medical and Dental ExpensesWhat counts as medical care. Form 8889 instructions add HSA-specific items, such as nonprescription medicines and menstrual care products.
Checked against the IRS pages for tax year 2025. If the IRS changes a rule, the IRS page is what counts.