In general, if you sell your primary residence and meet certain criteria, you may be able to exclude some or all of the capital gains from the sale and therefore not have to pay capital gains taxes.
You don't pay capital gains on the first $250,000 of profit for an individual or up to $500,000 for a married couple filing jointly.