If you own your home for more than two years the sale is now tax free, quite an improvement from the old “one-time exclusion” days....
No...if you lived in the home 2 of the previous 5 years, it can be claimed as your primary residence and not an investment property.