TL;DR
Tax comes when you sell
Receiving a gift is not a sale, so a tax-free gift has no capital gains tax on the day you get it. The tax comes when you sell.
Your cost for a gifted asset
A tax-free gift: your cost is what the previous owner paid, plus any cost of improving it.
A taxed gift: if the gift was added to your income because the giver was not a relative and the value was above ₹50,000, your cost is the value that was taxed. This stops the same amount being taxed twice.
Your holding period
The holding period decides if the gain is short-term or long-term. For a gifted asset, the time the previous owner held it counts as yours.
Listed shares held for more than 12 months are long-term. Most other assets, such as property and gold, need more than 24 months.
Example
Sana sells shares her father gifted her
Her father bought the shares in Mar 2021 for ₹1,00,000.
He gifted them to Sana in Jun 2026. The gift is tax-free.
Sana sold them in Oct 2026 for ₹1,80,000.
Cost: ₹1,00,000, her father's cost
Gain: ₹1,80,000 − ₹1,00,000 = ₹80,000, a long-term gain
The gain is long-term because her father's time of holding counts. Sana held the shares for only four months herself.
Keep the previous owner's proof of purchase: the contract note, sale deed or bill. Without it, working out your cost is hard.
Watch out
Key takeaways
For a tax-free gift, your cost is the previous owner's cost.
The previous owner's holding period counts as yours.
If the gift was taxed in your hands, your cost is the value that was taxed.
General information, not tax advice. Rules change, so check with a CA before you act.