Hello and thank you for allowing me to assist you.
That is correct. The total value you pay SDLT on (sometimes called the ‘consideration’) is usually the price you pay for the property or land. This also includes transfer of a debt, including the value of any outstanding mortgage.
If the transfer is contingent on the debts then it is part of the sale unfortunately.