Just a note on the "2 of 5" rule with a rental property. It is a bit more complicated than a simple exclusion. (Aka "Section 121 exclusion")
The $250,000/$500,000 exclusion is prorated based on the time it was an owner's principal residence. If you lived in the property 2 of 5 years, you are only eligible for 2/5 or 40% of the allowed exclusion. (I think the tax law changed around 2009.)
Worse yet, if you don't use a 1031 exchange, the claimed depreciation on the rental property is counted as income, not LTCG, and taxed accordingly.
Alas, unwinding all of this was a bit more than I could accomplish with tax programs. 2017 was a CPA year for me. She saved me far more than her fee in taxes. I spent several days trying to work through things, and she definitely earned her keep.