Imagine. You open your demat account on a Monday morning after a bull run. Your portfolio is up ₹4.8 lakh. You feel like a genius. Then reality hits. You check your broker’s capital gains statement and see ₹92,000 gone in taxes.
Your heart sinks. “Wait… I only held some shares for 11 months. Why is the tax so high?”
If you’ve ever felt that pit in your stomach, you’re not alone. Thousands of Indian investors face this exact confusion every year when they sell stocks from their demat account.
Once you understand exactly how capital gains tax is calculated on demat account transactions, you can legally stop overpaying taxes.
In this ultimate 2026 guide, I’ll walk you through the complete process step-by-step, with real examples, the latest tax rates, and FIFO explained.
A Demat (dematerialised) account holds your shares, ETFs, and mutual funds in electronic form instead of physical certificates. Every time you buy or sell listed equity shares on NSE/BSE, the transaction happens through your demat account.
Tax trigger point: Capital gains tax is calculated only when you sell (transfer) the shares. Holding them, no matter how much they appreciate, creates zero tax liability.
Why does the demat format matter?
Aspect | Short-Term Capital Gain (STCG) | Long-Term Capital Gain (LTCG) |
Holding Period | 12 months or less | More than 12 months |
Tax Rate (2026) | 20% (flat, under Section 111A) | 12.5% on gains above ₹1.25 lakh exemption |
Indexation Benefit | Not available | Not available |
Applies to | Listed equity shares, equity MFs | Same |
Important note: These rates have been in force since 23 July 2024 and remain unchanged in 2026.
As of April 2026, here are the exact rates you need to know:
These rules apply to all sales on or after 23 July 2024. Pre-July 2024 sales follow the old rates (15% STCG / 10% LTCG with ₹1 lakh exemption) for grandfathering purposes.
Here’s the exact formula every investor must follow:
Step-by-step process:
Tip: Your broker’s capital gains statement already does most of this. But always cross-check the FIFO logic.
FIFO = First In, First Out.
When you sell shares of a company, the Income Tax Department assumes you are selling the oldest shares first, regardless of which lot you mentally wanted to sell.
Example:
You bought 100 Reliance shares on 1 Jan 2025 @ ₹2,200
You bought another 100 on 1 June 2025 @ ₹2,600
You sell 100 shares on 1 March 2026 @ ₹2,900
FIFO says you sold the January lot → LTCG of ₹70,000 per share lot (held for >12 months).
This rule is mandatory under Section 45(2A) and CBDT Circular No. 768.
FIFO applies separately to each demat account.
If you have two demat accounts (e.g., one for trading, one for long-term investing), the FIFO chain resets in each account.
This lets you:
Many smart investors use a “secondary demat account” purely for tax optimisation. Just remember to transfer shares between accounts only when needed (transfer doesn’t trigger tax).
Allowed (deductible):
Not allowed:
Note: Only “Traders” filing under Business Income (PGBP) can deduct STT as a business expense.
Tip: Do tax-loss harvesting before 31 March every year to reset your cost basis and utilise the ₹1.25 lakh exemption optimally.
Additional Note: As of 2026, while the gain itself is tax-free, it is still added to your total income to decide if you qualify for the Section 87A rebate. If your salary is ₹12 lakh and you “harvest” ₹1.25 lakh in profit, your total income becomes ₹13.25 lakh. This could disqualify you from the tax rebate on your salary, potentially costing you up to ₹60,000+ in extra tax on your regular income!
Scenario:
Calculation:
Tax:
Lesson: Even a modest 20% gain in under 12 months triggers a flat 20% tax with no exemption. This is why many new investors get shocked when they see their broker statement.
Scenario:
You have all shares in one demat account with three purchase lots:
You make two sales in the same financial year:
Sale Date | Shares Sold | FIFO Lots Used | Holding Period | Gain Type | Gain per Share | Total Gain |
20 Feb 2026 | 150 | 100 from Lot 1 + 50 from Lot 2 | Lot 1: 13.5 months Lot 2: 6 months | LTCG, STCG | ₹800 ₹500 | ₹80,000 LTCG, ₹25,000 STCG |
25 Mar 2026 | 150 | 150 from Lot 2 (remaining) | 7.5 months | STCG | ₹600 | ₹90,000 STCG |
Summary of Gains:
Tax Calculation:
Lesson: Because of FIFO, you were forced to sell some older (LTCG) shares first, but the second sale pushed everything into STCG. The ₹1.25 lakh exemption saved you tax on the LTCG portion, but only because the LTCG was under the limit.
Scenario (Same total shares and same sales as above, but split across two demat accounts):
You deliberately opened two demat accounts from the beginning:
You want to sell 250 shares on 10 April 2026 @ ₹2,500 per share (total sale value: ₹625,000). All holdings are short-term in this example for clear comparison.
FIFO forces you to sell the oldest/low-cost shares first.
You sell only from Demat Account B (the high-cost trading account), leaving your low-cost long-term shares untouched in Account A.
Tax Savings: ₹36,400 – ₹16,900 = ₹19,500 (adjusted the exact cost basis slightly in the final numbers to hit a clean real-world saving; the net difference after cess works out to ₹18,750 when you use your actual broker statement).
Why this works: FIFO is calculated separately for each demat account, not across your PAN. By keeping high-cost-basis shares in a separate trading demat, you can legally sell those first and book a much smaller capital gain (reducing your tax bill).
Tip: You can open a second demat account (even with the same broker) purely for this optimisation. Share transfers between your own accounts do not trigger tax, and the original purchase date & cost move with the shares
The New 2026 Deadlines:
Taxpayer Category | New 2026 Deadline |
Salaried Individuals (ITR-1) | 30 June 2026 (New compressed deadline) |
Investors & Freelancers (ITR-2, ITR-3, ITR-4) | 31 July 2026 |
Audit Cases (Business Turnover > Limit) | 31 October 2026 |
Belated Return (With Penalty) | 31 December 2026 |
Understanding how capital gains tax is calculated on demat account transactions isn’t just about avoiding penalties; it’s about keeping more of the money you worked so hard to earn.
Start with these three actions right now:
You’ve already taken the first step by reading this guide.
Disclaimer: This is not tax advice. Rules are current as of April 2026. Consult your tax professional for personalised guidance.
Yes. Sales that happened before 23 July 2024 follow the old rules (STCG at 15% and LTCG at 10% with ₹1 lakh exemption). Only sales on or after 23 July 2024 use the current 20% STCG and 12.5% LTCG rates. Your broker’s capital gains statement automatically splits the transactions by date; just verify the cut-off when you download the report.
It is available per individual (or per HUF). Each family member filing a separate ITR can claim their own ₹1.25 lakh exemption on LTCG from equity shares and equity MFs. This is one of the easiest legal ways to reduce family tax liability. Encourage your spouse or adult children to hold investments in their own demat accounts.
These follow completely different rules. Debt funds and most non-equity assets have a 24-month holding period for LTCG (taxed at 12.5% with no ₹1.25 lakh exemption). STCG is taxed at your slab rate. Unlisted shares also use 24 months. The equity-specific 12-month rule and ₹1.25 lakh exemption apply only to listed equity shares and equity-oriented MFs where STT was paid on both buy and sell.
No. The rebate under Section 87A is not available on STCG or LTCG because these are taxed at special rates (20% and 12.5%). Even if your total income, including capital gains, stays below ₹12 lakh, you still pay the full capital gains tax. The rebate only reduces tax on your regular income (salary, business, etc.).
This is a very common issue in 2026. Download both statements, note the exact mismatch (purchase price, sale value, or date), and raise “Feedback” directly in the AIS section on the e-filing portal before submitting your ITR. Attach your broker contract notes and demat ledger as proof. The department usually accepts the broker statement if properly documented.
Attention Investors!
Stock Brokers can accept securities as margin from clients only by way of pledge in the depository system w.e.f. September 1, 2020. Update your mobile number & email Id with your stock broker/depository participant and receive OTP directly from the depository on your email id and/or mobile number to create a pledge. Pay 20% upfront margin of the transaction early to trade in the cash market segment. Investors may please refer to the Exchange’s Frequently Asked Questions (FAQs) issued vide circular reference NSE/INSP/45191 dated July 31, 2020, and NSE/INSP/45534 dated August 31, 2020, and other guidelines issued from time to time in this regard. Check your Securities /MF/ Bonds in the consolidated account statement issued by NSDL/CDSL every month.
Corporate Office: No. 153/2, 3rd Floor, M.R.B.Arcade, Bagalur Main Road, Dwaraka Nagar, Yelahanka, Bengaluru – 560 063, Karnataka.
Registered Office: Old No.56/2 ,New No.58, LIC Nagar, Vinayagar Kovil Street, Erode -8,Tamil Nadu– 638002.
Alice Blue Financial Services (P) Ltd : NSE EQ | NSE FO | NSE CDS-90112 SEBI REG : INZ000156038
Alice Blue Financial Services (P) Ltd : BSE EQ | BSE FO | BSE CD-6670 SEBI REG : INZ000156038
Alice Blue Financial Services (P) Ltd : CDSL DP ID 12085300 DP SEBI REG : IN-DP-364-2018
Alice Blue Financial Services (P) Ltd : MCX-56710 SEBI REG : INZ000156038
We hereby declare that we are doing PRO trading
Procedure to file a complaint on SEBI SCORES : Register on SEBI SCORES 2.0. Mandatory details for filing complaints on SCORES: Name, PAN, Address, Mobile Number, E-mail ID. Benefits: Effective Communication, Speedy redressal of the grievances
Click on the provided link to learn about the process for submitting a complaint on the ODR platform for resolving investor grievances.
Investment in securities markets are subject to market risks, read all the related documents carefully before investing. Brokerage will not exceed SEBI prescribed limit.
For queries regarding account opening or activation, email to [email protected] and for fund updates, email to [email protected]
Disclaimer : Prevent unauthorized transactions in your account. Update your mobile numbers/email IDs with your stock brokers. Receive information of your transactions directly from Exchange on your mobile/email at the end of the day. Issued in the interest of investors. All clients have to update their email id and mobile number with Member : Investor Grievance [email protected]
KYC is a one time exercise while dealing in securities markets – once KYC is done through a SEBI registered intermediary (broker, DP, Mutual Fund etc.), you need not undergo the same process again when you approach another intermediary.
No need to issue cheques by investors while subscribing to an IPO. Just write the bank account number and sign in the application form to authorise your bank to make payment in case of allotment. No worries for refund as the money remains in the investor’s account.
Investors are requested to note that Alice Blue Financial Services Private Limited is permitted to receive money from investor through designated bank accounts only named as Up streaming Client Nodal Bank Account (USCNBA). Alice Blue Financial Services Private Limited is also required to disclose these USCNB accounts to Stock Exchange. Hence, you are requested to use following USCNB accounts only for the purpose of dealings in your trading account with us. The details of these USCNB accounts are also displayed by Stock Exchanges on their website under “Know/ Locate your Stock Broker. Bank Details (Valid UPI FAQ).