How do I report the sale of rental property?

Sold what has been used as a rental property in 2016.  It was not rented out in 2016 but had been for 14 years prior.  It won't let me use it as sale of rental where I can add expenses and depreciation - which has been taken in prior years.  If I put it in the sale of investment then it shows as a loss but given the depreciation taken it probably isn't correct.  Any thoughts?