Get your taxes done using TurboTax

The loan payoff does not factor into the gain calculation.