Register
Free toolNo sign-up

Stock Profit Calculator for Share Trades After Charges and Tax

This stock profit calculator shows what a share trade leaves you after brokerage, STT, exchange charges, stamp duty, GST, the DP charge and income tax. Enter the buy and sell price and the quantity, pick your broker and how long you held the shares, and see the profit in hand, the tax, the break-even sell price and the profit at other prices.

Holding period
₹
₹
shares
₹
Stock profit after charges and tax
+₹7,679.75Profit in hand

7.68% on the ₹1,00,000 you invested, after charges and tax.

Gross profit+₹10,000.00
Charges₹248.202.5% of the gross profit
Tax₹2,072.06On a taxable gain of ₹9,962
Break-even sell price₹1,002.38₹2.38 a share above the buy price
Brokerage₹0, on the buy and the sell
₹0.00
STT0.1% of the buy and the sell value
₹210.00
Exchange and SEBI feesNSE transaction charges and ₹10 per crore
₹6.66
Stamp duty0.015% of the buy value
₹15.00
GST18% of brokerage, exchange charges and the SEBI fee
₹1.20
DP chargeOn the day you sell
₹15.34
Income tax20% short-term capital gains tax, plus 4% cess
₹2,072.06
Charges and tax₹2,320.25
Profit at other sell prices
Sell priceGross profitChargesTaxIn hand
₹900.00 (−10%)−₹10,000₹227₹0−₹10,227
₹950.00 (−5%)−₹5,000₹233₹0−₹5,233
₹1,050.00 (+5%)+₹5,000₹243₹1,032+₹3,725
₹1,100.00 (+10%)+₹10,000₹248₹2,072+₹7,680
₹1,200.00 (+20%)+₹20,000₹259₹4,152+₹15,589
₹1,500.00 (+50%)+₹50,000₹290₹10,392+₹39,319

Charges other than STT are deducted from a capital gain before tax; for intraday business income all charges are. Surcharge is not included. A loss pays no tax. NSE rates; brokerage from each broker’s standard plan.

Compare what the same trade costs at each broker.Open the brokerage calculator

A share trade is cut twice before the money reaches you: first by charges, then by tax. Buying 100 shares at ₹1,000 and selling at ₹1,100 within a year makes ₹10,000 gross. Charges at Zerodha are ₹248.20 and short-term capital gains tax ₹2,072.06, so ₹7,679.75 is left. Held for more than a year, the gain is within the ₹1.25 lakh exemption and ₹9,751.80 is left. The calculator works out both cuts for your own trade, at the rates in force from 1 April 2026.

What the stock profit calculator does

PartWhat it does
Holding periodIntraday, up to 12 months, or over 12 months
BrokerUses the standard brokerage plan of the broker you pick
ChargesBrokerage, STT, NSE transaction charges, SEBI fee, stamp duty, GST and the DP charge on a sale of delivered shares
Tax20% short-term, 12.5% long-term above the exemption left, or your slab rate for intraday, each with 4% cess
ExemptionTakes the long-term gains you have already made this year, because they share the ₹1.25 lakh exemption
Break-evenSolves for the sell price at which the trade covers its charges
Price tableThe same trade sold from 10% below to 50% above your buy price

A short history of tax on share profits in India

For most of the last twenty years, the tax on a share trade has depended on one thing: whether STT was paid on it. The securities transaction tax arrived on 1 October 2004, under the Finance (No. 2) Act, 2004. In return, long-term gains on listed shares sold through a stock exchange became fully exempt, and short-term gains were taxed at a flat 10%.1 The deal was simple: the government collected a small tax on every trade instead of chasing gains.

The short-term rate rose to 15% from the 2008-09 financial year. Long-term gains stayed exempt until the Union Budget of 2018 brought them back into tax: from 1 April 2018, long-term gains above ₹1 lakh a year were taxed at 10%, with gains made up to 31 January 2018 protected by a grandfathering rule.2

The next large change came in the Union Budget of 23 July 2024. Short-term gains on listed shares rose to 20%, long-term gains to 12.5%, and the yearly exemption rose to ₹1.25 lakh, all from 23 July 2024.3 The Income-tax Act, 2025, which replaced the Act of 1961 from 1 April 2026, kept these rates, and the Union Budget 2026-27 left them unchanged.4 What did change on 1 April 2026 was STT on futures and options, not on shares.5

How to use the stock profit calculator

  1. Choose the holding period: intraday, up to 12 months, or over 12 months.
  2. Pick your broker. The calculator uses its standard brokerage plan.
  3. Enter the buy price, the sell price and the number of shares.
  4. For delivery trades, check the DP charge on the sale. For long-term gains, enter any other long-term gains you have made this year, because they share the ₹1.25 lakh exemption.
  5. For intraday trades, enter your income tax rate.

The table under the result shows the same trade sold at other prices, from 10% below your buy price to 50% above it. The break-even figure tells you how far the price must move before the trade stops losing money.

How stock profit is calculated

Formula
Profit in hand = (sell price − buy price) × quantity − charges − income tax

The charges are brokerage on the buy and the sell, STT, exchange transaction charges, the SEBI fee, stamp duty on the buy, GST, and the DP charge when delivered shares are sold. Tax depends on the holding period:

HoldingIncome typeTax rateCharges deducted before tax
IntradaySpeculative business incomeYour slab rateAll charges, including STT
Up to 12 monthsShort-term capital gain20%All charges except STT
Over 12 monthsLong-term capital gain12.5% above ₹1.25 lakh a yearAll charges except STT

A 4% health and education cess applies on top of the tax. The calculator does not add surcharge, which applies only above ₹50 lakh of income.

The charges, one by one

ChargeDelivery tradeIntraday trade
BrokerageYour broker's plan; several charge nothing on deliveryUsually ₹20 or a small percentage per order, whichever is lower
STT0.1% of the buy and the sell value0.025% of the sell value
NSE transaction charges60.00307% of turnover0.00307% of turnover
SEBI fee₹10 per crore of turnover₹10 per crore of turnover
Stamp duty0.015% of the buy value0.003% of the buy value
GST18% of brokerage, transaction charges and the SEBI feeSame
DP chargeA flat fee per company on the day you sellNone

On a ₹1 lakh delivery trade, STT is ₹210 of the ₹248.20 of charges at Zerodha. On delivery, STT is almost the whole bill, and it is the one charge you cannot deduct from a capital gain.

Worked examples

All three examples are at Zerodha on NSE, which charges no brokerage on delivery and the lower of ₹20 or 0.03% per intraday order.

IntradayUp to 12 monthsOver 12 months
Trade100 shares, ₹1,000 to ₹1,010100 shares, ₹1,000 to ₹1,100100 shares, ₹1,000 to ₹1,100
Gross profit₹1,000.00₹10,000.00₹10,000.00
Charges₹82.97₹248.20₹248.20
Taxable gain₹917.03₹9,961.80₹9,961.80
Tax₹286.11 at a 30% slab₹2,072.06₹0.00, within the exemption
Profit in hand₹630.92₹7,679.75₹9,751.80
Break-even sell price₹1,000.83₹1,002.38₹1,002.38

In the delivery trades, STT is ₹210 of the ₹248.20 of charges. It is not deducted from the gain, so the taxable gain is ₹10,000 less the other ₹38.20 of charges. In the intraday trade, all ₹82.97 of charges are deducted, because the profit is business income.

A losing trade

Buy 200 shares at ₹500 and sell them at ₹450 within the year. The gross loss is ₹10,000. Charges add ₹227.45, of which ₹190 is STT and ₹15.34 the DP charge, so the loss in hand is ₹10,227.45. No tax is due. For tax, the short-term capital loss is ₹10,037.45: the loss plus the charges other than STT. It can be set against other capital gains in the same year, or carried forward, as explained below.

A larger intraday trade

Buy 500 shares at ₹2,400 and sell them at ₹2,430 on the same day. The gross profit is ₹15,000. Charges at Zerodha are ₹477.29: ₹40 of brokerage, ₹303.75 of STT, ₹74.14 of transaction charges, ₹36 of stamp duty, ₹20.98 of GST and ₹2.42 of SEBI fee. At a 30% slab, tax with cess is ₹4,531.09, and ₹9,991.63 is left. The break-even sell price is ₹2,400.95, less than a rupee above the buy price, because intraday STT is charged only on the sale and at a quarter of the delivery rate.

Capital gains tax calculator for India: STCG and LTCG

The same calculator works as a capital gains tax calculator for India's listed shares. Gains on shares held for up to 12 months are short-term and taxed at 20%. Gains on shares held for more than 12 months are long-term: the first ₹1.25 lakh of long-term gains in a financial year is exempt, and the rest is taxed at 12.5%.

The holding period makes a large difference on a large gain. Take 500 shares bought at ₹800 and sold at ₹1,400:

Up to 12 monthsOver 12 monthsOver 12 months, ₹1 lakh of the exemption already used
Gross profit₹3,00,000.00₹3,00,000.00₹3,00,000.00
Charges₹1,216.49₹1,216.49₹1,216.49
Taxable gain₹2,99,883.51₹1,74,883.51 after the exemption₹2,74,883.51 after the ₹25,000 left
Tax with cess₹62,375.77₹22,734.86₹35,734.86
Profit in hand₹2,36,407.74₹2,76,048.66₹2,63,048.66

Waiting past 12 months leaves ₹39,640.92 more in hand on this trade. The exemption is shared by all your long-term gains on shares and equity funds in the year, so if you have already used part of it, enter those gains in the calculator. In the third column, ₹1 lakh of earlier gains leaves only ₹25,000 of the exemption, and the tax rises by ₹13,000.

How the holding period is counted

The holding period runs from the day after you buy to the day you sell. Shares held for more than 12 months are long-term. Check the dates on your contract notes before you sell near the line: a sale one day early turns a 12.5% gain, with an exemption, into a 20% gain without one.

Several purchases of the same share

When you buy the same share several times and sell part of the holding, the shares sold are taken as the earliest ones bought, first in, first out. Suppose you bought 50 shares at ₹900 in March 2025 and 50 at ₹1,000 in March 2026, and you sell 60 at ₹1,100 in October 2026. The first 50 sold are the March 2025 shares, held for more than 12 months: a long-term gain of ₹10,000 before charges. The other 10 come from the March 2026 lot, held for about seven months: a short-term gain of ₹1,000, taxed at 20%. One sale, two kinds of gain. The calculator works on one lot at a time, so run it once for each lot with a different buy price or holding period.

Shares bought before 1 February 2018

Long-term gains made up to 31 January 2018 are protected. For shares bought before 1 February 2018, the cost is the higher of what you paid and the share's highest price on 31 January 2018, but that price is capped at the sale price. If you bought at ₹600 in 2016, the share's highest price on 31 January 2018 was ₹850, and you sell at ₹1,400, the cost for tax is ₹850, not ₹600. Enter ₹850 as the buy price in the calculator.

Short term capital gain tax on shares

Short term capital gain tax on shares is a flat 20% plus cess, whatever your slab, as long as the shares are listed and STT was paid on the sale. There is no exemption for short-term gains. A resident whose other income is below the basic exemption limit can set the unused part of the limit against the gain; the calculator assumes your other income already uses it.

Losses pay no tax. A short-term capital loss can be set against short-term or long-term gains in the same year, and a long-term loss only against long-term gains. Either can be carried forward for eight years if you file your return on time. An intraday loss is a speculative loss: it can be set only against speculative gains and carried forward for four years.

Intraday profit at different slab rates

Intraday profit is added to your income and taxed at your slab rate. The 100-share trade from ₹1,000 to ₹1,010 leaves a taxable profit of ₹917.03 after all charges:

Your slab rateTax with 4% cessProfit in hand
No tax due₹0.00₹917.03
5%₹47.69₹869.35
10%₹95.37₹821.66
20%₹190.74₹726.29
30%₹286.11₹630.92

Because intraday profit is business income, you report it in the income tax return for business income and can deduct the costs of trading, such as charges, data and software. Ask a tax adviser how this applies to your own return.

A worked example: one year of share trades

The calculator works trade by trade, but tax is worked out on the year. Take a trader whose year, after charges, looks like this:

ItemAmount
Short-term gains on delivery trades₹40,000
Short-term losses on delivery trades₹15,000
Long-term gains on shares held over 12 months₹1,60,000
Intraday profit₹20,000

The steps:

  1. Set the short-term loss against the short-term gain. ₹40,000 − ₹15,000 leaves ₹25,000 of short-term gain, taxed at 20%: ₹5,000.
  2. Apply the exemption to the long-term gain. ₹1,60,000 − ₹1,25,000 leaves ₹35,000, taxed at 12.5%: ₹4,375.
  3. Add the intraday profit to income. At a 30% slab, ₹20,000 adds ₹6,000.
  4. Add 4% cess. ₹5,000 + ₹4,375 + ₹6,000 = ₹15,375 of tax, plus ₹615 of cess: ₹15,990 in all.

The short-term loss saved ₹3,000 of tax, because it was set off before the 20% rate applied. Had the trader made an intraday loss instead of a profit, it could not have been set against any of the capital gains: a speculative loss is kept apart and carried forward against speculative gains only.

Dividends, bonus shares and splits

  • Dividends are not part of the trade's profit. They are added to your income and taxed at your slab rate, and the company deducts tax at source above a yearly threshold. Enter only the buy and sell prices in the calculator.
  • Bonus shares have a cost of nil, and their holding period starts on the day they are allotted. Selling bonus shares within 12 months of allotment gives a short-term gain on the full sale price.
  • Splits do not create a gain. The cost of each original share is divided across the new shares, and the holding period still runs from the day you bought the original shares. If you bought 100 shares at ₹1,000 and the company split them 1:5, you hold 500 shares at a cost of ₹200 each.
  • Equity ETFs and equity fund units sold on the exchange are taxed at the same 20% and 12.5% rates as shares, and share the same ₹1.25 lakh exemption. STT on selling ETF units is 0.001%, much lower than on shares.

Before you sell: a short checklist

  • Check the buy date of every lot, and whether any lot is a few days short of 12 months.
  • Add up the long-term gains you have already made this year, so you know how much of the ₹1.25 lakh exemption is left.
  • Check whether you have short-term or long-term losses this year that could absorb the gain.
  • For intraday trades, remember the profit is added to your other income and taxed at your slab.
  • Look at the break-even price before you set a target, so the target is worth the charges.
  • Keep the contract notes: they are the record of every charge you paid.

Break-even price and targets

Formula
Break-even sell price = the sell price at which gross profit equals the charges

Charges grow a little with the sell price, so the calculator solves for the break-even price. A delivery trade at ₹1,000 needs ₹1,002.38 to break even at Zerodha, mainly because of STT on both sides. An intraday trade needs ₹1,000.83.

The table shows the delivery trade from the examples, held up to 12 months, sold at other prices.

Sell priceGross profitChargesTaxIn hand
₹900 (−10%)−₹10,000₹227₹0−₹10,227
₹950 (−5%)−₹5,000₹233₹0−₹5,233
₹1,050 (+5%)+₹5,000₹243₹1,032+₹3,725
₹1,100 (+10%)+₹10,000₹248₹2,072+₹7,680
₹1,200 (+20%)+₹20,000₹259₹4,152+₹15,589
₹1,500 (+50%)+₹50,000₹290₹10,392+₹39,319

A loss costs its charges on top of the price fall. A gain is cut by both charges and tax. The break-even price is a useful floor for a target: a target only 0.2% above the buy price on a delivery trade earns almost nothing after charges.

Profit as a percentage, and per year

The calculator shows the profit in hand as a percentage of the money you put in. To compare trades held for different lengths of time, turn it into a yearly figure:

Formula
Yearly return = (1 + return in hand) ^ (365 ÷ days held) − 1

The ₹1,000 to ₹1,100 trade leaves 7.68% in hand after short-term tax. Held for 90 days, that is about 35.0% a year. The same trade held for 400 days leaves 9.75% after the long-term exemption, which is about 8.9% a year. The longer trade made more rupees and paid less tax, but the shorter one made its money faster. Neither figure says anything about the next trade; it only puts two past trades on the same scale.

Short selling on the same day

You can sell shares you do not hold and buy them back the same day: an intraday short sale. The charges are the same as for an intraday buy and sell, and STT is still charged on the sale. To use the calculator for a short sale, enter the buy-back price as the buy price and the price you sold at as the sell price. Selling 100 shares at ₹1,010 and buying them back at ₹1,000 gives the same ₹1,000 gross profit and the same ₹82.97 of charges at Zerodha as the long trade in the examples. Delivery shares cannot be sold short overnight in the cash market; a position that must be held overnight on the short side uses futures or options instead.

What the calculator leaves out

  • Surcharge, which applies only above ₹50 lakh of total income.
  • Your full-year position, such as losses carried forward from earlier years or other income that uses up the basic exemption limit.
  • Unlisted and foreign shares, which follow different rates and holding periods.
  • Buybacks and corporate actions beyond bonus shares and splits, which have their own rules.
  • Brokers' other fees, such as call-and-trade charges, payment gateway fees or account maintenance charges.

For these, use the calculator for the trade itself and ask a tax adviser about the rest of the year.

How the broker changes the result

On delivery trades the broker matters less than tax. The ₹1 lakh trade above costs ₹248.20 at a broker that charges no delivery brokerage, and ₹295.40 at a broker that charges ₹20 per order. The profit in hand is ₹7,679.75 against ₹7,642.37, a gap of ₹37.38. Tax on the same gain is ₹2,072.06, more than fifty times that gap.

On frequent intraday trades the gap grows with every order. Ten intraday round trips a day at ₹20 an order is ₹400 of brokerage a day before GST, about ₹8,800 over 22 trading days. The brokerage calculator compares the same trade broker by broker, and the STT tax calculator shows the statutory charges alone.

Tracking share profits in QuantPower

QuantPower shows your holdings as your broker holds them, with the profit and loss on each, so you can check a sale before you place it. A few features help with the after-tax result:

  • Holdings with P&L. Each holding shows its average price and its gain, and holdings can be pledged for margin instead of sold.
  • Stock SIP. A stock SIP buys a share or ETF on a schedule; each instalment has its own buy date, which decides when it turns long-term.
  • Charges in backtests. Backtests deduct brokerage, STT, exchange charges, the SEBI fee, stamp duty and GST from every trade, so a strategy's result is shown after the same charges as this calculator.
  • Quanty. Ask Quanty, the AI assistant in the app, to explain a charge or a tax rule in plain words. It is software, not a tax adviser, and it does not file returns.

Charts, the option chain, the screener and the strategy builder are free. Live algos and backtests are priced in tokens (1 token = ₹1, GST extra): a live algo costs 200 tokens per 28 days and a backtest 2 tokens, with the first 10 each week free. See pricing.

Common mistakes when working out share profit

  • Forgetting STT on the buy. Delivery STT is charged on both sides, so a round trip pays 0.2% of the trade value.
  • Deducting STT from a capital gain. STT is not deductible from capital gains; only the other charges are.
  • Selling a day before 12 months. One day turns a long-term gain into a short-term one, with no exemption.
  • Counting the exemption twice. The ₹1.25 lakh is for all your long-term gains on shares and equity funds in the year, not for each sale.
  • Ignoring the DP charge on small sales. On a ₹5,000 sale, a ₹15.34 DP charge is 0.3% of the value.
  • Treating intraday profit as a capital gain. It is business income at your slab rate, reported differently.

Where taxes on share trading are going

The rates in this calculator have changed four times since 2004, each time in a Union Budget. The broad direction has been a narrower gap between short-term and long-term rates, a larger exemption for small long-term investors, and higher transaction taxes on futures and options rather than on shares. The Income-tax Act, 2025 rewrote the law's language and section numbers from 1 April 2026 without changing these rates. Check the calculator's date and the latest Budget before you plan a large sale around a tax rate.

Start with 500 free tokens

Connect your broker, build a strategy and test it on paper before a single live order goes out.

Frequently asked questions

How do I calculate profit on a share after charges?

Multiply the price difference by the quantity, then subtract brokerage, STT, exchange charges, the SEBI fee, stamp duty, GST and any DP charge. Subtract income tax on what remains to get the profit in hand.

How much tax do I pay on short-term gains on shares?

20% of the gain plus 4% cess, if you sold within 12 months of buying. On a ₹9,961.80 taxable gain that is ₹2,072.06.

When are share profits tax-free?

When the shares were held for more than 12 months and your total long-term gains on shares and equity funds in the year are within ₹1.25 lakh.

Are brokerage and other charges deductible from capital gains?

Brokerage, exchange charges, stamp duty, GST and the DP charge are part of the cost of buying or selling and reduce the gain. STT is not deductible from capital gains.

How is intraday profit taxed?

As speculative business income, at your slab rate plus cess. All charges, including STT, are deducted as business expenses.

What is the DP charge?

A fee from the depository and your broker when shares leave your demat account on a sale, charged per company per day. At Zerodha it is ₹15.34 including GST.7

Does the calculator include surcharge?

No. Surcharge applies only when total income is above ₹50 lakh, and on capital gains on shares it is capped at 15%. Add it yourself if it applies to you.

Which shares are sold first when I sell part of a holding?

The earliest ones bought, first in, first out. Each lot keeps its own buy price and buy date, so one sale can contain both long-term and short-term gains.

Can I set a loss on shares against my salary?

No. A capital loss on shares can be set only against capital gains, and an intraday loss only against speculative income. Losses you cannot use this year can be carried forward if you file your return on time: capital losses for eight years and speculative losses for four.

References

  1. Finance (No. 2) Act, 2004: securities transaction tax from 1 October 2004, and the exemption for long-term gains on listed shares on which STT was paid (incometaxindia.gov.in)
  2. Finance Act, 2018: tax on long-term capital gains on listed equity above ₹1 lakh from 1 April 2018, with gains up to 31 January 2018 grandfathered (indiabudget.gov.in)
  3. Finance (No. 2) Act, 2024: short-term gains on listed shares at 20% and long-term gains at 12.5% above ₹1.25 lakh, from 23 July 2024 (indiabudget.gov.in)
  4. Income-tax Act, 2025, in force from 1 April 2026, and the Union Budget 2026-27, which left capital gains rates on listed shares unchanged (incometaxindia.gov.in)
  5. Finance Act, 2026: STT on futures and options from 1 April 2026; equity STT unchanged (indiabudget.gov.in)
  6. NSE: transaction charges on equity, including the investor protection fund charge (checked 16 October 2026)
  7. Zerodha: published brokerage and DP charges (checked 10 October 2026)
The calculator and examples are estimates. Your broker's contract note shows the exact charges, and your tax depends on your full income for the year. This page is for information only and is not tax or investment advice.