Get your taxes done using TurboTax

The tax is applied to your net gain. Remember that you can add any capital improvements you have made to your cost basis.