The IRS requires that if a loan is outstanding when a life insurance contract is surrendered or lapses, the taxable amount reported is generally determined by comparing the gross cash value of the contract to the remaining cost basis. The transaction is reported as if the gross cash value were distributed at the time of the surrender or lapse and then used to pay off the loan; value, if any, is distributed to the contract owner.