How to Calculate Capital Gains for Multiple Share Purchases?
Use FIFO to decide which lot you sold.
Quick Answer
Example: you bought 100 shares at ₹100 and later 100 at ₹150; you sell 150 shares at ₹200. FIFO: 100 shares at ₹100 and 50 at ₹150 are sold; gains: 100 × 100 = ₹10,000 and 50 × 50 = ₹2,500, each classified by its holding period.
Create a lot-wise record of purchases and sales, apply the prescribed matching method, calculate the cost and holding period for each matched lot, and then aggregate the resulting gains or losses.
Rule
FIFO for demat shares.
Lots
Gain per lot.
Classify
Per lot’s holding.
Worked FIFO
| Lot | Bought | Qty | Price | Sold |
|---|---|---|---|---|
| 1 | Jan 2025 | 100 | ₹100 | 100 |
| 2 | Aug 2025 | 100 | ₹150 | 50 |
Sale: 150 shares at ₹200 in March 2026. Lot 1 (13+ months): gain 100 × ₹100 = ₹10,000, long-term. Lot 2 (7 months): gain 50 × ₹50 = ₹2,500, short-term. LTCG ₹10,000 falls under the exemption; STCG tax = ₹2,500 × 20% = ₹500 plus cess = ₹520.
Why it matters
The two lots sit in different tax buckets. Report each as a separate row in the capital gains schedule.
Practical Checklist
- List purchase lots.
- Apply FIFO.
- Compute per-lot gain.
- Classify.
- Report.
Frequently Asked Questions
Can I choose lots?
Not in demat form.
What about physical shares?
Specific identification.
Related EZTax Resources
- What Is Capital Gain in Income Tax?
- What Is Short-Term and Long-Term Capital Gain?
- How to Calculate Capital Gain From Shares?
- How to Report Capital Loss in ITR?
- Which ITR Form Should I Use for Capital Gains?
- Does AIS Show Capital Gains?
- Capital Gains Indexation Calculator
Official Sources
Income Tax Department — ITR-2 FAQ
Income Tax Department — Set-off / Carry-forward of Losses FAQ


