With mortgage term life insurance you select an amount of coverage that matches your outstanding loan balance on your home mortgage.
And, you choose a term (duration) that matches the length of your mortgage loan - 10, 15, 20, 25 or 30 years.
That way, if your spouse dies before the mortgage is fully paid off, you have the money from the insurance policy to pay the mortgage loan.
Make sure you name yourself as the beneficiary, and your spouse is the insured person on the life insurance policy.
Learn more about life insurance to pay off home if your spouse dies.