When you die, your HSA passes to whoever you named as beneficiary, and the tax result depends entirely on who that is. A surviving spouse who is named on the account takes it over tax-free and keeps using it as their own HSA. Anyone else, including your children, a trust, or your estate, owes ordinary income tax on the full value of the account. That is the core of what happens to your HSA when you die, and on a six-figure balance the difference can run into the tens of thousands of dollars.
If Your Spouse Is the Named Beneficiary
A surviving spouse listed as beneficiary gets the best possible outcome. Federal law treats the HSA as if the spouse had owned it all along, so the transfer is tax-free and the account keeps its full tax-advantaged status.1Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts The spouse becomes the new account holder rather than a beneficiary receiving a distribution, so the custodian does not issue a Form 1099-SA for the transfer.2Internal Revenue Service. Instructions for Forms 1099-SA and 5498-SA
Once ownership transfers, the normal HSA rules apply. Withdrawals for qualified medical expenses stay tax-free. If the spouse has HSA-eligible high-deductible coverage, they can keep contributing up to the annual limit. If they don’t, the balance stays in the account and can still be used tax-free for medical costs at any time.
This treatment only applies when the spouse is the named beneficiary. Being married to the deceased is not enough on its own. If the account lists someone else, the spouse cannot claim tax-free ownership.
If Anyone Other Than Your Spouse Inherits
When a non-spouse inherits, the HSA stops being an HSA on the date of death. The full fair market value on that date becomes taxable income to the beneficiary in the year the owner died.3Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans There is no way to roll it into the beneficiary’s own HSA, spread the tax over multiple years, or defer it. The whole balance hits one tax return at once.
The custodian reports the fair market value in box 4 of Form 1099-SA.2Internal Revenue Service. Instructions for Forms 1099-SA and 5498-SA The amount is taxed at the beneficiary’s ordinary income rate, and a large balance can push the beneficiary into a higher bracket. The 20% additional tax that normally applies to non-medical HSA withdrawals does not apply here.3Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans
Paying the Deceased’s Medical Bills to Reduce the Tax
A non-spouse beneficiary can shrink the taxable amount by paying qualified medical expenses the deceased owner incurred before death, as long as those payments happen within one year after the date of death.1Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts Only expenses the owner incurred before death qualify. If there are $8,000 in unpaid hospital bills and the beneficiary pays them from the inherited funds within 12 months, that $8,000 comes off the taxable balance. Save every receipt and explanation of benefits in case the IRS asks.
Post-Death Earnings
Any interest, dividends, or investment gains the account produces between the date of death and the date the beneficiary actually receives the money are also taxable to the beneficiary. Those earnings are separate from the date-of-death fair market value and get reported on the beneficiary’s return for the year received.4Internal Revenue Service. Instructions for Form 8889 If the custodian takes months to process the claim and the account holds mutual funds during that stretch, the gains belong to the beneficiary for tax purposes.
Estate Tax Deduction
If the owner’s estate was large enough to owe federal estate tax, a non-spouse beneficiary may claim a deduction for the portion of estate tax attributable to the HSA. This is the income in respect of a decedent deduction under Section 691(c), and it keeps the same dollars from being taxed twice.5Office of the Law Revision Counsel. 26 USC 691 – Recipients of Income in Respect of Decedents The HSA statute specifically extends this deduction to inherited HSAs.1Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts It only matters for estates that exceed the federal exemption, but when it does apply, the savings can be substantial.
If No Beneficiary Was Named
If no beneficiary was ever named, or every named beneficiary died before the owner, the HSA defaults to the estate. The fair market value goes on the deceased owner’s final income tax return rather than on a beneficiary’s return.4Internal Revenue Service. Instructions for Form 8889 The executor files the final Form 1040 and reports the HSA balance there.
This is worse than the non-spouse result in two ways. The estate cannot use the one-year medical expense offset, because that offset is only available to beneficiaries other than the estate.3Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans And the money passes through probate, which means potential delays, court costs, and executor fees before anything reaches the family. Whatever is left after taxes and administration is distributed according to the will, or under state intestacy rules if there is no will.
Naming a Trust
Some owners name a revocable living trust as the HSA beneficiary as part of a broader estate plan. A trust is not a spouse, so it is taxed like any other non-spouse beneficiary: the account stops being an HSA on the date of death and the full value becomes taxable income.3Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans The trust either pays the tax itself or passes it through to its beneficiaries, depending on its structure.
Because the tax hits immediately, a trust rarely adds value for an HSA the way it can for a retirement account. Naming individuals directly is simpler and produces the same tax outcome. The main reason to route an HSA through a trust is when distribution controls actually matter, such as funds intended for a minor or a beneficiary with special needs.
How the Beneficiary Claims the Account
The process starts the same way for everyone: contact the HSA custodian, provide a certified copy of the death certificate, and complete the custodian’s claim form. The custodian will freeze the account until the paperwork is processed.
A surviving spouse uses the claim form to elect ownership, which triggers the tax-free transfer. A non-spouse beneficiary uses it to request a lump-sum distribution, because there is no tax-advantaged option to keep the funds in place. The full balance gets distributed and reported on Form 1099-SA.
Do not use the debit card, move money online, or withdraw funds before the custodian has processed the death claim. Transactions made in that window create reporting errors that are tedious to fix with the IRS. Most custodians finalize claims within a few weeks after receiving everything they need, though invested balances that have to be liquidated can take longer.
Reporting an Inherited HSA on Form 8889
A surviving spouse who assumes ownership files Form 8889 as if the HSA had always been theirs, reporting any contributions and distributions in the ordinary way.4Internal Revenue Service. Instructions for Form 8889
A non-spouse beneficiary handles Form 8889 differently:
- Write “Death of HSA account beneficiary” across the top of the form.
- Skip Part I. You are not the account owner, so the contribution and deduction section does not apply.
- On line 14a, enter the fair market value of the HSA as of the date of death.
- On line 15, enter any qualified medical expenses the decedent incurred before death that you paid within one year after death. This reduces the taxable amount.
- Complete the rest of Part II to calculate the taxable portion.
When the estate is the beneficiary, the executor reports the HSA value on the decedent’s final Form 1040 rather than on a separate beneficiary return.4Internal Revenue Service. Instructions for Form 8889
Keep Your Beneficiary Designation Current
The single most useful step you can take is naming a beneficiary, and keeping that name current. HSA beneficiary designations are filed directly with the custodian, separate from your will. The custodian’s records control who receives the account, even if your will says something else. Marriage, divorce, a new child, or the death of a named beneficiary can all make an old form wrong.
If you want your spouse to inherit, put that on the form explicitly. Assuming a spouse will inherit automatically is risky: some custodians default to the estate when no beneficiary is listed, which drops the account into probate and forfeits the tax-free spousal transfer. The form takes a few minutes and can save your family a five-figure tax bill.