When you sell a property received as a gift or inheritance, you may need to pay capital gains tax. The cost of acquisition for tax purposes is generally the original cost to the person who first bought the property, not the person who gifted it. For long-term capital gains, this cost is adjusted using the cost inflation index to account for inflation.