Whether you have a gain or loss when you sell your rental property is determined by the Original Cost, minus the amount of Depreciation you have taken on the property (Cost Basis) and the Sales Price.
Don't forget to include any Sales Expenses you paid, and add any Capital Improvements you made to the Cost Basis of the property
Here's how to enter the Sale of Rental Property:
https://ttlc.intuit.com/replies/6686119