Business & farm

Yes, and yes.

 

You will owe tax on the depreciation that you were able to claim, but the rest of the gain will be tax-free if the gain is less than the $250,000/$500,000 exclusion amount.