If your spouse is the beneficiary, the HSA transfers tax-free and becomes your spouse’s account. If a nonspouse inherits the HSA, the full account balance is generally treated as taxable income in the year of inheritance. Because of this, HSAs should be coordinated with estate planning for larger balances.