How to Calculate Capital Gain From Shares?
Match each sale with the earliest purchase lots (FIFO) and compute gain lot by lot.
Quick Answer
For each sale: sale value − purchase cost (and expenses). Classify each lot as short-term or long-term, apply 20% or 12.5% (after ₹1.25 lakh exemption), and net losses as per set-off rules.
For a simple share transaction, compare the transfer value with the applicable cost of acquisition and eligible expenses. Then determine whether the result is short-term or long-term and apply the relevant tax provisions.
FIFO
First purchased, first sold.
Classify
Per lot.
Net
Apply set-off.
One year of trades
| Category | Amount |
|---|---|
| STCG on equity (111A) | ₹1,80,000 |
| STCL on equity | ₹-60,000 |
| LTCG on equity (112A) | ₹2,10,000 |
| Net STCG | ₹1,20,000 |
| LTCG after exemption | ₹85,000 |
Tax: STCG ₹1,20,000 × 20% = ₹24,000; LTCG ₹85,000 × 12.5% = ₹10,625; total ₹34,625 plus cess = ₹36,010.
Cross-set-off
If the STCL were ₹3 lakh, ₹1.8 lakh would absorb the STCG and the remaining ₹1.2 lakh would reduce LTCG from ₹2.1 lakh to ₹90,000, then the exemption wipes it out.
Practical Checklist
- Download the broker P&L.
- Match lots.
- Classify.
- Compute gains.
- Report.
Frequently Asked Questions
Are bonus and rights shares included?
With their own cost and dates.
Does brokerage reduce gain?
Yes.
Related EZTax Resources
- What Is AIS (Annual Information Statement) in Income Tax?
- AIS vs Form 26AS: What Is the Difference?
- Does AIS Show Capital Gains?
- AIS Reconciliation and AI-Powered Income Tax Filing with EZTax
- Capital Gains Indexation Calculator


