Capital gains tax is a tax on the profit you make from selling an asset, such as a home. The profit is calculated by subtracting the purchase price (plus any improvements) from the sale price. For example, if you bought your home forĀ 300,000andsolditfor300,000andsolditfor500,000, your capital gain would be $200,000.