Every dollar in a Health Savings Account is nonforfeitable under federal law, meaning the balance belongs to you permanently from the moment it hits the account. Your employer cannot claw it back, the custodian cannot forfeit it for inactivity, and changing jobs does not put it at risk. The protection comes from a single sentence in the Internal Revenue Code, and it shapes what happens to your HSA at nearly every life event that follows.
What Nonforfeitable Means in the Tax Code
Section 223(d)(1)(E) of the Internal Revenue Code requires that an account holder’s interest in an HSA balance be nonforfeitable.1Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts Once money lands in the account, it is yours. No vesting schedule, no waiting period, no conditions an employer can attach.
That is a real departure from how many workplace benefits work. Employer 401(k) contributions often vest gradually, and leaving early forfeits the unvested portion. HSAs allow no version of that arrangement. Whether the money came from your paycheck, an employer match, or a one-time seed deposit, it becomes your private property on deposit, and any investment gains inside the account carry the same protection.1Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts
An employer who tries to reverse HSA contributions after a termination is violating federal tax law. One boundary is worth flagging: HSAs typically fall outside ERISA when employer involvement is limited to making contributions, so the Department of Labor generally does not oversee them the way it oversees 401(k) plans.2U.S. Department of Labor. Field Assistance Bulletin No. 2006-02 The ownership rule sits in the tax code, not in ERISA.
Leaving a Job Does Not Touch Your Balance
Because ownership does not depend on employment, the HSA travels with you when you quit, get laid off, or retire. Your former employer cannot close the account, freeze it, or demand the money back. You have three options: leave the account where it is, move the funds through a trustee-to-trustee transfer, or do a 60-day rollover.
Trustee-to-trustee transfers are the cleanest route. You instruct your current custodian to send the funds directly to a new one. The IRS does not treat these as distributions, does not count them toward any rollover limit, and does not require you to report them as income.3Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans There is no cap on how many you can do in a year.
A rollover is the alternative. You take the funds and redeposit them into a new HSA within 60 days. Miss the window and the amount becomes taxable, potentially with a 20% additional tax on top. You are also limited to one rollover per 12-month period.4Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts – Section: 223(f)(5)
The Balance Never Expires
HSA funds have no expiration date. Unlike a Flexible Spending Account, which forces you to spend down the balance each year or lose it, an HSA balance carries over indefinitely. A deposit made today can sit for 30 years, grow through investments, and still come out tax-free for qualified medical expenses.1Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts
The IRS imposes no deadline for spending HSA funds and no penalty for leaving a balance untouched. Custodians may charge maintenance or investment fees that reduce the balance, and fees withdrawn directly by the trustee are not even reported as distributions.3Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans But no agency and no financial institution can forfeit your balance because of inactivity or the passage of time.
What Changes at Age 65
Turning 65 changes what you can do with withdrawals, not who owns the money. Before 65, a distribution used for something other than qualified medical expenses gets hit with income tax plus a 20% additional tax. After 65, that 20% penalty disappears.5Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts – Section: 223(f)(4)(C) You still owe ordinary income tax on non-medical withdrawals, so the account essentially functions like a traditional IRA at that point. Withdrawals for qualified medical expenses remain tax-free at any age.3Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans
Medicare enrollment is the catch most people miss. Once you enroll in Medicare Part A or Part B, you can no longer contribute to an HSA, because Medicare counts as disqualifying coverage beyond an HDHP. Your existing balance stays intact and fully accessible for qualified expenses. It just stops growing from new contributions.
Dividing an HSA in Divorce
Federal law provides a clean path for splitting HSA assets. Under IRC Section 223(f)(7), transferring an HSA interest to a spouse or former spouse under a divorce or separation instrument is not a taxable event.6Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts – Section: 223(f)(7) The receiving spouse becomes the account holder for the transferred portion, and the account continues under normal rules. No penalties, no income inclusion, no 20% additional tax. The nonforfeitability principle protects both sides: the original holder cannot be forced to give up more than the decree requires, and the receiving spouse gains the same permanent ownership over what was transferred.
What Happens When the Account Holder Dies
Inheritance treatment depends entirely on who the named beneficiary is.
If your spouse is the designated beneficiary, the HSA simply becomes theirs. It continues as a normal HSA in the surviving spouse’s name, with no income tax consequences at transfer. The spouse can use the funds for their own qualified medical expenses and can keep contributing if they are otherwise eligible.3Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans
A non-spouse beneficiary gets a worse outcome. The account stops being an HSA on the date of death, and the entire fair market value becomes taxable income to the beneficiary that year. One partial offset applies: the beneficiary can reduce the taxable amount by any qualified medical expenses of the deceased that the beneficiary pays within one year of the death.3Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans If the estate is the named beneficiary, the fair market value is included on the decedent’s final tax return. Naming the right beneficiary makes a significant difference, and it is easy to overlook during account setup.
How You Can Still Lose the Tax Shelter
Nonforfeitability protects you from losing your money to an employer or a deadline. It does not protect you from losing the account’s tax status through your own actions. If the HSA engages in a prohibited transaction, the account ceases to be an HSA. Under IRC 223(e)(2), the full balance is treated as a distribution on the first day of the year the violation occurs.7Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts – Section: 223(e)(2)
Prohibited transactions include using the HSA as loan collateral, selling property to the account, or having the account buy assets from a disqualified person, generally you, your family, or entities you control. The normal excise taxes that apply to prohibited transactions in other accounts do not apply here, because the consequence is arguably worse: complete disqualification of the account.8Office of the Law Revision Counsel. 26 USC 4975 – Tax on Prohibited Transactions – Section: 4975(c)(6) You owe income tax on the entire balance plus the 20% additional tax if you are under 65. The money is still yours in a literal sense, but the tax shelter is gone.
Creditors Are a Separate Question
The nonforfeitable status of an HSA balance does not automatically shield it from creditors. ERISA-qualified retirement plans have strong federal protection from judgment creditors, but HSAs generally fall outside ERISA when employer involvement is limited to contributions.2U.S. Department of Labor. Field Assistance Bulletin No. 2006-02 There is no dedicated federal bankruptcy exemption for HSAs either.
In bankruptcy, the federal wildcard exemption under 11 U.S.C. ยง 522(d)(5) is the main tool available to protect HSA funds. For 2026, the wildcard allows you to exempt up to $1,675 in any property, plus up to $15,800 of unused homestead exemption.9Office of the Law Revision Counsel. 11 USC 522 – Exemptions Those amounts may not cover a large HSA balance. Some states offer additional protection under their own exemption laws, but the level varies widely. This is a known gap in HSA protection compared to 401(k)s and IRAs, and it is the one direction from which a nonforfeitable balance can still be reached.