Investors & landlords

your gain is not the proceeds from the sale. it's the sales price less selling costs less your basis in the property. the mortgage does not enter into the computation of the gain.