Get your taxes done using TurboTax

I think that the amount of the mortgage is irrelevant. What is your basis for the property? How much did you pay for it and what improvements did you make? Your gain or loss would be the difference between the net sales price and your adjusted cost (basis).