If your surviving spouse is the beneficiary, then account ownership will be transferred to them. The transfer is not taxable, and they can continue using funds for their own medical expenses and, at age 65, begin taking penalty-free non-medical distributions. When the account’s beneficiary is not your spouse, the account ceases to be an HSA. Funds become taxable income to your beneficiaries. There is no 20% early withdrawal penalty.