"KEY TAKEAWAYS
You can sell your primary residence and be exempt from capital gains taxes on the first $250,000 if you are single and $500,000 if married filing jointly.
This exemption is only allowable once every two years.
You can add your cost basis and costs of any improvements that you made to the home to the $250,000 if single or $500,000 if married filing jointly."
From:
Do You Have to Pay Capital Gains Tax on a Home Sale?