You cannot use an HSA for funeral expenses without paying tax and a penalty on the withdrawal. The IRS defines qualified medical expenses as costs of diagnosing, treating, or preventing disease in a living person, and funerals fall outside that definition. Publication 502 states the exclusion in six words: “You can’t include in medical expenses amounts you pay for funerals.”1Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses
Why Funerals Don’t Qualify
The rule traces back to Internal Revenue Code Section 213(d), which limits “medical care” to amounts spent diagnosing, treating, or preventing disease, or affecting a structure or function of the body.2Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses Burial plots, cremation, caskets, headstones, and funeral director fees all fail that test. There are no exceptions for the method of disposition, the provider, or whose funeral it is. Pre-planned arrangements for yourself count the same as a family member’s services: personal, not medical.
What It Costs If You Do It Anyway
A withdrawal used for a funeral is a non-qualified distribution. Two things happen. The full amount is taxable income for the year, reported on Form 8889.3Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans – Section: Distributions From an HSA If you’re under 65, the IRS adds a 20% penalty on top.4Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts
The math bites hard. A $7,000 withdrawal by someone under 65 in the 22% bracket loses $1,540 to income tax and another $1,400 to the penalty. That’s $2,940 gone, close to 42% of the withdrawal, before a single funeral bill is paid.
After Age 65
The 20% penalty does not apply to distributions made after you turn 65, become disabled, or die.3Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans – Section: Distributions From an HSA A funeral withdrawal after 65 is still taxed as ordinary income, so you lose the tax-free treatment you’d have kept by spending the money on genuine medical care, but no penalty stacks on top.
What Your HSA Does Cover Near the End of Life
The funeral itself is off limits, but the medical care leading up to a death is a different category, and families juggling both kinds of bills often miss the difference.
Physician visits, prescription medications, medical equipment, lab work, diagnostic tests, hospital stays, surgery, ambulance transport, and physical therapy all remain qualified through the end of someone’s life. Prescribed home equipment such as oxygen or a wheelchair is covered. Hospice care qualifies. If the primary reason someone is in a nursing home is medical care, the full cost qualifies, including meals and lodging; if the primary reason is personal, only the medical or nursing portion does.5Internal Revenue Service. Medical, Nursing Home, Special Care Expenses Qualified long-term care services for a chronically ill person also count, and HSA funds can pay tax-qualified long-term care insurance premiums up to age-based annual limits the IRS adjusts each year.
Using the HSA on these bills frees other savings for the funeral. That’s not a loophole; it’s how the account is designed to work.
What Happens to the HSA When the Account Holder Dies
The answer turns entirely on who was named as beneficiary.
Spouse as Beneficiary
If your surviving spouse is the designated beneficiary, the HSA becomes theirs. They can use the funds for their own qualified medical expenses with no tax consequences, and the account keeps its tax-advantaged status.6Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts – Section: 223(f)(8)(A) A spouse can also use the account to pay the deceased’s outstanding medical bills, which is worth remembering when hospital or hospice invoices arrive after the death.
Non-Spouse Beneficiary
If anyone else inherits the account, the HSA stops being an HSA on the date of death. The fair market value becomes taxable income to that beneficiary in the year of death. If the estate is the beneficiary, the value goes on the deceased’s final return.7Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts – Section: 223(f)(8)(B)
A non-spouse beneficiary (other than the estate) can reduce that taxable amount by paying the deceased’s qualified medical expenses that were incurred before death, as long as the payments happen within one year of the date of death.8Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans – Section: Death of HSA Holder Funeral costs do not count toward that offset, no matter how quickly they’re paid.
Better Ways to Pay for the Funeral
Since the HSA is the wrong tool, a few common ones fit better.
A payable-on-death (POD) designation on a bank account lets a named beneficiary access the funds after presenting a death certificate and identification, bypassing probate. Many families set up a dedicated POD account earmarked for final expenses so the money is available within days.
A preneed funeral contract locks in arrangements and pricing with a specific funeral home during your lifetime. Some states allow these contracts to be funded through irrevocable funeral trusts, which can also shelter those assets from Medicaid eligibility calculations. State dollar caps on such trusts vary widely, so check your state’s rules before funding one.
Small whole life or final expense insurance policies, commonly $5,000 to $25,000 in coverage, pay a named beneficiary who can use the proceeds for any purpose. Life insurance death benefits are generally received income-tax-free.
If cash flow is the real problem, the strategic move is to run end-of-life medical bills through the HSA so other savings stay available for the funeral. Every hospice charge, prescription, and medical equipment invoice paid from the HSA is a dollar of ordinary money you keep for arrangements the HSA can’t touch.