The short version
When you sell listed shares in India at a profit, the gain is a capital gain. How it is taxed depends on two things: how long you held the shares, and whether the shares were sold on a recognised exchange with Securities Transaction Tax (STT) paid. Dividends are a separate category, taxed as income.
This guide explains the logic and works through a rupee example. Tax rules in India are revised often, usually in the annual Union Budget. Where we mention rates and thresholds, treat them as at the time of writing and confirm them on the Income Tax Department's official site or with a qualified tax professional.
Step 1: Work out the holding period
The holding period runs from the date you buy the shares to the date you sell them.
- Short-term: listed equity shares held for 12 months or less.
- Long-term: listed equity shares held for more than 12 months.
The classification is made per purchase lot. If you bought 50 shares in January and another 50 in September, and sell all 100 the following March, the first lot is long-term and the second is short-term. Under the usual first-in, first-out approach, the earliest purchases are treated as sold first, though your broker's statements will show the lot-wise detail.
Holding periods differ by asset. Unlisted shares, property, debt funds and foreign shares each follow their own rules, so do not assume the equity rule applies elsewhere. Equity-oriented mutual funds have their own treatment, covered separately in our guide on how mutual funds are taxed in India.
Step 2: Apply the right tax category
Short-term capital gains (STCG)
Gains on listed equity sold within the short-term window are taxed at a flat special rate rather than your slab rate. At the time of writing, this rate is 20%, having been raised from 15% in a 2024 Budget change. Cess and any applicable surcharge are added on top.
Long-term capital gains (LTCG)
Gains on listed equity held beyond the long-term threshold are taxed at a lower flat rate, and only the gain above an annual exemption is taxed. At the time of writing, the rate is 12.5% on gains above an exemption of ₹1.25 lakh per financial year, again plus cess and any surcharge. Earlier, the rate was 10% above ₹1 lakh. This is a good example of why you should check the current figures each year.
Two features matter here:
- The exemption applies to your total long-term gains on such assets in the year, not per stock.
- There is no indexation benefit on listed equity gains. You are taxed on the nominal gain.
Dividends
Dividends from Indian companies are taxed in the hands of the shareholder. They are added to your total income and taxed at your applicable slab rate. Companies or payers may deduct TDS when dividends exceed a threshold in a financial year, and the threshold and rate are set by law and revised from time to time. TDS is not an extra tax: it is credited against your final liability when you file your return.
For a wider comparison, see our guide on how dividends are taxed around the world.
Step 3: Understand STT and other costs
Securities Transaction Tax (STT) is a small tax charged on transactions in listed securities on Indian exchanges. For delivery-based equity trades it applies on both buying and selling. You do not claim STT as a deduction against capital gains, and it is not the same as capital gains tax. The concessional STCG and LTCG rates for listed equity are generally linked to the sale being on a recognised exchange with STT paid.
Other costs, such as brokerage, exchange charges, GST on brokerage and stamp duty, are separate. Brokerage and similar transfer expenses can generally be deducted when computing the gain, but STT cannot. See our guide on how trading costs, fees and taxes add up for the full picture.
Worked example in ₹
Assume the following hypothetical trades in one financial year. All figures are illustrative and use the rates described above.
| Item | Amount |
|---|---|
| Sold Stock A (held 18 months): gain | ₹2,00,000 |
| Sold Stock B (held 5 months): gain | ₹80,000 |
| Sold Stock C (held 3 months): loss | ₹30,000 |
Step 1: Set off the loss. A short-term loss can be set off against both short-term and long-term gains. Apply it to the short-term gain first: ₹80,000 − ₹30,000 = ₹50,000 net STCG.
Step 2: Tax the STCG. ₹50,000 × 20% = ₹10,000.
Step 3: Tax the LTCG. ₹2,00,000 − ₹1,25,000 exemption = ₹75,000 taxable. ₹75,000 × 12.5% = ₹9,375.
Total before cess and surcharge: ₹19,375, on total gains of ₹2,50,000 after the loss (₹2,80,000 − ₹30,000). Cess, currently 4% on tax, would add a little more.
Notice that the order of set-off affects the result. Setting the short-term loss against the short-term gain usually helps, because that gain is taxed at the higher rate.
Loss set-off and carry-forward
Losses are not wasted, but they follow rules:
- Short-term capital loss can be set off against both short-term and long-term capital gains.
- Long-term capital loss can be set off only against long-term capital gains.
- Unused capital losses can generally be carried forward for up to eight assessment years, provided you file your return by the due date and report the loss.
- Capital losses cannot be set off against salary or business income.
Deliberately realising losses to reduce tax is a strategy some investors use. We explain the idea in our guide on how tax-loss harvesting works, and note that Indian rules and anti-avoidance provisions should be checked before relying on it.
Delivery trades versus intraday and derivatives
The rates above apply to shares you buy and hold in your demat account (delivery). Other activities are treated differently:
- Intraday equity trades, where you buy and sell on the same day without taking delivery, are generally treated as speculative business income and taxed at slab rates.
- Futures and options gains and losses are generally treated as non-speculative business income, which has its own reporting and audit considerations.
Because the classification can change the tax return form and the rate, frequent traders should consult a qualified adviser. Our guide on futures and options risks for Indian retail traders covers the risk side of that activity.
What to watch out for
- Assuming old rates still apply. Rates, exemptions and holding periods have been revised several times. Check the current year's figures.
- Ignoring the date arithmetic. The difference between selling on day 365 and day 367 can change the tax rate. Check your contract notes.
- Forgetting to file to carry forward losses. A late return can forfeit the right to carry forward.
- Treating the exemption as per stock. It applies to total eligible long-term gains in the year.
- Overlooking other income. Dividends, interest and gains on other assets are taxed under their own rules.
- Letting tax drive the decision. A lower tax rate is a reason to understand holding periods, not a reason to hold an investment that no longer fits your plan.
Keeping records and reporting
Most brokers provide a capital gains statement, and the tax department's annual information statement shows many of your transactions. Reconcile these against your own records, including purchase dates and any bonus issues, splits or corporate actions, which can change cost and holding period. Gains are reported in the income tax return, and some are subject to advance tax if the liability is large.
Where this fits in your wider plan
Tax is one cost among several. Understanding it helps you compare after-tax outcomes, choose sensible holding periods and avoid surprises. For the broader framework, see our beginner overview of how investments are taxed and our explainer on short-term versus long-term capital gains.
This article is educational and does not constitute tax advice. Your circumstances, residency status and the current law determine what applies to you.