Investors & landlords

You can exclude all of the gain (up to the $250,000/$500,000 limit) except for the depreciation.  If it is taxing more than that, go back through the questions and read them very carefully.