FIFO method
Also written First-in-first-out method · FIFO
The rule that securities sold from a demat account are deemed to be those that entered the account first — which fixes both their period of holding and their cost of acquisition for capital gains.
In plain language
Shares in a demat account are fungible — one share of a company is indistinguishable from another. So when an investor who bought the same share at different dates and prices sells part of the holding, tax law needs a rule for which shares were sold.
Under Section 45(2A), for securities held in demat form, that rule is First-In-First-Out (FIFO): the securities that first entered the demat account are deemed to be the first sold. Equivalently, the securities acquired last are taken to be the ones still held.
FIFO decides two things at once: the period of holding (short-term or long-term) and the cost of acquisition. The investor does not get to pick.
How it works
Account-wise, not investor-wise. An investor may hold several demat accounts. FIFO is applied account by account: when one account is debited for a sale, securities lying in another account cannot be treated as sold, because they remain there.
Date of entry, not date of purchase. If old physical shares are dematerialised and credited later into an existing account, FIFO looks at the date of entry into the account.
Period of holding is otherwise determined from the contract note or broker's note, provided the transaction is followed by delivery and transfer deeds.
The workbook's Example 1:
| Credit date in demat | Purchase date | How acquired | Quantity |
|---|---|---|---|
| 1-6-2020 | 25-5-2020 | Bought in demat form | 2,000 |
| 5-6-2020 | 1-11-2005 | Certificates dematerialised | 5,000 |
| 10-6-2020 | 10-6-2020 | Bought in demat form | 4,000 |
| 15-6-2020 | 1-5-2001 | Certificates dematerialised | 3,000 |
If 2,500 shares are sold, the first 2,000 take their cost from 25-5-2020, and the other 500 are treated as acquired on 1-11-2005, at the relevant cost. The 3,000 shares bought in 2001 are last in the queue — despite being the oldest purchase — because they were credited last.
A worked example
Illustrative figures.
Rahul has two demat accounts holding shares of the same listed company.
| Account | Credited | Quantity | Cost per share |
|---|---|---|---|
| A | March 2023 | 1,000 | Rs 400 |
| A | January 2025 | 1,000 | Rs 600 |
| B | 2020 | 500 | Rs 250 |
In September 2025 he sells 1,200 shares from account A at Rs 700, through the exchange with STT paid. He would like to say he sold the newer, costlier shares. FIFO says otherwise:
| Shares deemed sold | Held | Type | Gain |
|---|---|---|---|
| 1,000 from March 2023 | More than 12 months | Long-term | 1,000 × (700 − 400) = Rs 3,00,000 |
| 200 from January 2025 | About 8 months | Short-term | 200 × (700 − 600) = Rs 20,000 |
The 500 shares in account B are untouched — FIFO does not reach across accounts.
Tax, assuming no other equity gains in the year:
LTCG u/s 112A: (3,00,000 − 1,25,000) × 12.5% = Rs 21,875
STCG u/s 111A: 20,000 × 20% = Rs 4,000
The workbook's Chapter 13 caselet adds a twist. Where inherited shares are credited first and bonus shares later, FIFO sends the inherited shares out first — with their grandfathered cost — and the nil-cost bonus shares last, so the large taxable gain arrives in a later year.
Why NISM asks about it
Chapter 8 (Capital Gains), Table 8.2 on the period of holding for securities in demat form and Table 8.4 on cost of acquisition; Chapter 11 (Taxation of Equity Products), section on securities held in demat form, with Example 1; Chapter 13 Caselet 2 on inherited and bonus shares. Expect a table of credits and a sale quantity, and a question on the resulting holding period or cost.
Common exam traps
- FIFO is compulsory for demat holdings. The investor cannot choose which lot was sold.
- Account-wise. A sale from one demat account never draws on another account.
- Date of entry into the account governs, not the original purchase date — dematerialised old certificates join the queue on their credit date.
- FIFO sets both period of holding and cost of acquisition.
- Bonus shares credited later are sold later, and carry nil cost unless the Section 112A grandfathering conditions apply.
Check yourself
1.Under section 45(2A), how is the FIFO method applied where an investor holds more than one demat account?
- a)Across all accounts taken together, oldest purchase first
- b)Account-wise, because securities in another account cannot be construed to have been sold
- c)Only to the account with the largest holding
- d)At the investor's option in each year
Show the answer
Answer: (b) Account-wise, because securities in another account cannot be construed to have been sold
The workbook states that where an investor has MORE THAN ONE SECURITY ACCOUNT, FIFO METHOD WILL BE APPLIED ACCOUNT-WISE. This is because where a particular account is debited for sale of securities, THE SECURITIES LYING IN HIS OTHER ACCOUNT CANNOT BE CONSTRUED TO HAVE BEEN SOLD as they continue to remain in that account. This is one of the few genuine planning tools in the chapter, but the accounts must be separated at the time of purchase.
Where this is taught
Free preparation for NISM Series X-BRelated terms
- Bonus sharesAdditional shares issued free to existing shareholders in proportion to their holding — no tax at allotment, a nil cost of acquisition, and a fresh holding period from the allotment date.
- Cost of acquisitionWhat an assessee is treated as having paid for a capital asset — usually the price actually paid, but overridden by special rules for bonus shares, ESOPs, gifts and inherited assets.
- GrandfatheringThe Budget 2018 provision that kept long-term gains on equity funds accrued up to 31 January 2018 tax-free, by treating the value on that date as the base for computing taxable gain.
- Long-term capital assetA capital asset held for more than the prescribed period before transfer — generally more than 24 months, and more than 12 months for listed securities and equity oriented fund units.
- Short-term capital assetA capital asset taxed as short-term: listed securities held 12 months or less, unlisted securities 24 months or less, plus MLDs, specified mutual funds and unlisted bonds deemed short-term whatever the holding.
- Demat accountAn account with a depository participant of NSDL or CDSL that holds your shares and other securities in electronic form. Since April 1, 2019, shares must be in demat form to be transferred.
- Allotment dateThe date shares are actually credited to an employee under an ESOP — distinct from the vesting date and the exercise date, and the date from which the period of holding for capital gains is counted.