You only have to pay a Capital Gains Tax when you sell your home if you make more than $250,000.00 profit on the home sale and you've lived in the home for two of the five years before you sale the home.
If you're married and own the home jointly then you don't have to pay Capital Gains Tax unless you profit $500,000.00 or more from the sale of your home.