Yes, you can use an HSA to pay past medical bills, and there is no deadline for doing it, as long as the expense was incurred after your HSA was opened, was not already paid by insurance or claimed as a deduction, and you have receipts to prove it.1Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans A bill from five years ago works the same as one from last month. The rules turn on three things: when the account existed, what the money was spent on, and what you can document.
The Date Your HSA Was Established Is the Hard Line
An expense qualifies for tax-free reimbursement only if you incurred it after your HSA was established.1Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans Federal law defines an HSA as a trust created in the United States under a written governing instrument, and the account is generally treated as established on the date you complete the application and the custodian opens it.2Office of the Law Revision Counsel. 26 U.S. Code 223 – Health Savings Accounts
Being enrolled in a high-deductible health plan is not the same thing. If you had an emergency room visit in January but did not open your HSA until March, that January bill cannot be paid with HSA money, even though your HDHP coverage was already in place. Pull HSA money for an expense that predates the account and the withdrawal is non-qualified: it gets added to your gross income for the year, and you owe an additional 20% tax on top of your regular income tax.3Internal Revenue Service. Instructions for Form 8889 (2025)
There Is No Deadline to Pay Yourself Back
Once an expense clears the establishment-date rule, it never expires. The IRS does not require you to withdraw the reimbursement in the same tax year, or within any set number of years. You can take tax-free distributions to pay or reimburse yourself for qualified medical expenses incurred after the HSA was established at any time.1Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans
That open timeline is the basis of a strategy some savers call “shoeboxing.” You pay medical bills out of pocket now, keep the receipts, and let the HSA balance grow through contributions and investment returns. Years or decades later, you reimburse yourself tax-free for those old bills. The only working requirements are that the account has enough money in it when you take the distribution and that you kept the paperwork proving the expense qualified.
Which Past Bills Count
IRS Publication 502 defines qualified medical expenses. Broadly, these are amounts paid for the diagnosis, treatment, or prevention of disease that were not reimbursed by insurance.4Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses Doctor visits, dental work, vision exams, eyeglasses, prescription drugs, and medical equipment are typical examples.
Since 2020, over-the-counter medications and menstrual care products such as tampons, pads, and cups also qualify without a prescription.5Internal Revenue Service. IRS Outlines Changes to Health Care Spending Available Under CARES Act If you paid for these out of pocket after opening your HSA, they are eligible for reimbursement now.
One rule is easy to miss: you cannot claim the same expense twice. A bill you already deducted as an itemized medical expense on Schedule A in a prior year is off the table for a tax-free HSA withdrawal.1Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans Only the portion you paid yourself and never claimed elsewhere stays eligible.
Bills for a Spouse or Dependent Count Too
Your HSA can reimburse qualified medical expenses for your spouse, anyone you claim as a dependent, and anyone you could have claimed except for certain technicalities such as their filing a joint return or having income above the exemption amount.1Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans
Your spouse or dependent does not have to be covered by your HDHP for their bills to qualify. HDHP coverage governs who is allowed to contribute to an HSA, not whose expenses it can pay. A child of divorced or separated parents is treated as a dependent of both parents for HSA purposes, regardless of which parent claims the exemption.1Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans
Records You Need to Keep
Your custodian will process a reimbursement without asking for receipts. The IRS is the one that requires documentation, and the burden is on you to show every tax-free distribution went to a qualified expense.1Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans In an audit, you need records that establish three things:
- An itemized statement from the provider showing the date of service, description of care, and amount charged.
- Proof the expense was not reimbursed by insurance or any other source and was not previously claimed as an itemized deduction.
- Evidence the expense occurred after the HSA was established.
The IRS generally requires records to be kept for at least three years from the date you file the return reporting the distribution, or two years from when the tax was paid, whichever is later.6Internal Revenue Service. How Long Should I Keep Records? With shoeboxing, that clock does not start until you actually take the distribution and report it, which can mean holding receipts for a very long time. Digital copies are acceptable if they stay legible and retrievable.7Internal Revenue Service. Rev. Proc. 97-22
Reporting the Reimbursement on Your Taxes
Every HSA distribution has to be reported, even when every dollar went to qualified expenses. Your custodian sends Form 1099-SA showing total distributions for the year with a code identifying the type. Code “1” is a normal distribution, which is what applies to a medical reimbursement.8Internal Revenue Service. Instructions for Forms 1099-SA and 5498-SA
You file Form 8889 with your Form 1040. Line 14a captures the total from the 1099-SA, Line 15 shows the portion used for qualified medical expenses, and anything left over lands on Line 16 as taxable income.3Internal Revenue Service. Instructions for Form 8889 (2025) Receipts do not go with the return, but they need to be in your files.
The 20% Penalty, and When It Does Not Apply
If you pull HSA money for anything other than a qualified medical expense, the distribution is added to your gross income and hit with an additional 20% tax.3Internal Revenue Service. Instructions for Form 8889 (2025) A $1,000 non-qualified withdrawal means income tax on the full $1,000 plus a $200 penalty.
The additional 20% tax does not apply once the account holder:
- Reaches age 65. Regular income tax still applies to non-qualified distributions, but the penalty is gone.2Office of the Law Revision Counsel. 26 U.S. Code 223 – Health Savings Accounts
- Becomes disabled as defined under federal tax law.3Internal Revenue Service. Instructions for Form 8889 (2025)
- Dies. Distributions to a beneficiary are not subject to the penalty.3Internal Revenue Service. Instructions for Form 8889 (2025)
After 65, the HSA behaves much like a traditional retirement account: qualified medical distributions stay entirely tax-free, and other withdrawals are taxed as ordinary income without the added penalty.
Fixing a Mistaken Distribution
If you take money out for something that turns out to be non-qualified, you may be able to reverse it by putting the money back. The IRS allows repayment of a mistaken distribution when the mistake was due to reasonable cause and you return the funds by the due date of your tax return (without extensions) for the year you discovered the error, which typically means April 15.8Internal Revenue Service. Instructions for Forms 1099-SA and 5498-SA
Money returned within that window is not included in gross income, the 20% penalty does not apply, and the repayment is not treated as a new contribution, so it does not eat into your annual contribution limit. Custodians are not required to accept the return of funds, so confirm with yours before assuming the transaction can be undone.8Internal Revenue Service. Instructions for Forms 1099-SA and 5498-SA
What Changes at Death
The unlimited reimbursement window does not carry over the same way for every beneficiary. If your spouse is the named beneficiary, the HSA becomes theirs and continues as an HSA, and they can keep using it for their own qualified expenses.3Internal Revenue Service. Instructions for Form 8889 (2025)
For any other beneficiary, such as an adult child or the estate, the account stops being an HSA on the date of death. A non-spouse beneficiary can still use the funds to pay qualified medical expenses the deceased incurred before death, but only if those expenses are paid within one year of the date of death.3Internal Revenue Service. Instructions for Form 8889 (2025) Anything beyond that is taxable income to the beneficiary, though without the 20% additional tax.