Stock Profit Tax Calculator

See the tax on your profit, and what you keep.

  • Free, no sign-up
  • Your numbers stay on your device
  • Updated 9 November 2026

Your details

Tax rules
Enter it as

Fractions are allowed, as many US brokers sell part-shares.

Used for gains that are taxed at your slab rate.

Brokerage and other costs

Securities transaction tax cannot be deducted in India, so leave it out.

Surcharge and exemption

This reduces the ₹1.25 lakh yearly exemption.

Generally 0, unless total income is above ₹50 lakh. It is capped at 15% on special-rate gains.

Dividends received
Profit after tax
₹50,000
Profit before tax
₹50,000
Tax
₹0
Type of gain
Long term
Tax as a share of profit
0%
Profit after tax
Short term₹39,600
Long term₹50,000

Held for 1 year 6 months, this is a long-term gain. Long term means more than 12 months here. The figure includes 4% cess.

₹50,000 of this gain falls within the yearly exemption.

Total₹50,000
  • Profit after tax₹50,000100%
See how this is calculatedReport an issueYour numbers never leave this device

The same profit, short term and long term

ItemShort termLong term
Tax rate20%12.5%
Tax₹10,400₹0
Profit after tax₹39,600₹50,000
How this was worked out, using your numbers

Inputs used

Tax rules
India
What did you sell?
Shares listed in India
Enter it as
Price and quantity
Buying price per unit
₹1,000
Quantity
100
Selling price per unit
₹1,500
Months held
18 months
Your income tax slab
30%
Costs when buying
₹0
Costs when selling
₹0
Long-term equity gains already made this year
₹0
Surcharge on your income
0%

Results

Profit after tax
₹50,000
Profit before tax
₹50,000
Tax
₹0
Type of gain
Long term
Tax as a share of profit
0%

The formula and its rules are set out in the explanation on this page.

Profit after tax₹50,000

For working out costs and tax only. Trading in shares, on margin and in futures and options carries a high risk of loss, and most individual traders in derivatives lose money. This is not a recommendation to trade. ilovefinance.in is not a SEBI-registered intermediary.

At a glance

Shares listed in India and equity funds: long term after 12 months, taxed at 12.5% above ₹1.25 lakh a year.

Short-term gains on those are taxed at 20%.

US shares held by an Indian resident: long term after 24 months, taxed at 12.5% with no ₹1.25 lakh exemption, and otherwise at your slab rate.

Debt funds bought from April 2023 are taxed at your slab rate, however long you hold them.

About the Stock Profit Tax Calculator

Enter what you paid and what you received, either as a price and quantity or as total amounts. The calculator works out whether the gain is long term or short term, the tax, and the profit left after tax. It uses Indian rules by default. To work out tax for another country, choose Another country and enter that country’s rates.

Formula

Profit after tax = Sale value − Purchase cost − Costs − Tax

  • Every input is shown in the calculator above

How to use it

  • Enter your tax rules, what did you sell?, enter it as.
  • Read the profit after tax in the results panel. It updates as you type.
  • Open the Compare, Chart and table tabs for more detail, then copy a link or download the figures.

How long you must hold

Rates are for FY 2026-27, before 4% cess. The rules for some funds depend on when you bought and what the fund holds, so check the fund’s tax note. Long term means held for more than the period shown.

What you soldLong term afterLong-term taxShort-term tax
Shares listed in India12 months12.5% above ₹1.25 lakh20%
Equity mutual funds and ETFs12 months12.5% above ₹1.25 lakh20%
Debt funds bought from April 2023NeverNot applicableYour slab rate
Gold, overseas and other funds24 months12.5%Your slab rate
Unlisted Indian shares24 months12.5%Your slab rate
US and other foreign shares24 months12.5%Your slab rate

If you hold US stocks from India

For an Indian resident, shares listed abroad are treated as unlisted shares. They need more than 24 months to be long term, and the ₹1.25 lakh exemption does not apply. The US generally does not tax a non-resident’s capital gains on shares, so the tax on your profit is paid in India.

Your gain is worked out in rupees, so currency movement counts. If the rupee weakens between purchase and sale, your rupee profit can be higher than the share price alone suggests, and you can even owe tax on a sale that made a small loss in dollars. Our US stocks guide explains dividends, TCS, foreign asset reporting and US estate tax.

What counts as a cost

  • Brokerage, exchange fees and similar costs directly tied to the purchase or sale can reduce your gain.
  • Securities transaction tax on listed shares and equity funds cannot be deducted.
  • For a lot bought before 1 February 2018, grandfathering may let you use the 31 January 2018 market price as your cost. Enter that higher cost if it applies.
  • Mutual fund NAVs are already after the fund’s own expenses, so those are not entered again.

Using another country’s rates

Choose Another country, pick a currency, and enter the short-term rate, the long-term rate and the number of months after which a holding counts as long term. Add any tax-free allowance, and any levy charged on top of the tax. The calculator applies exactly what you enter, and does not know any other country’s law, so check those rates with an official source.

Many countries tax their residents on worldwide gains, and treaties may decide who taxes what. Where you are tax resident usually matters more than where the shares are listed.

What this calculator leaves out

  • Setting off losses against other gains.
  • The use of an unused basic exemption limit, which can lower tax for residents with little other income.
  • Intraday and futures and options trades, which are treated as business income.
  • Indexation, which is not available on these assets at current rules.
  • Income tax on dividends from Indian shares and funds, which is taxed separately at your slab rate.

What changes this result most

With the values shown in the calculator, Profit after tax comes to ₹50,000. These are the inputs that move it most when each is raised by about 10% on its own.

If you changeChangeProfit after tax
Selling price per unit₹1,500 to ₹1,650₹65,000
Buying price per unit₹1,000 to ₹1,100₹40,000
Quantity100 to 110₹55,000

What the inputs mean

  • Quantity: Fractions are allowed, as many US brokers sell part-shares.
  • Your income tax slab: Used for gains that are taxed at your slab rate.
  • Rupees per dollar when bought: Use the SBI TT buying rate for the end of the month before you bought.
  • Rupees per dollar when sold: Use the SBI TT buying rate for the end of the month before you sold.
  • Tax-free long-term gain: Enter 0 if there is none.
  • Any further levy on the tax: For example, a surcharge charged as a percentage of the tax.
  • Costs when selling: Securities transaction tax cannot be deducted in India, so leave it out.
  • Long-term equity gains already made this year: This reduces the ₹1.25 lakh yearly exemption.
  • Surcharge on your income: Generally 0, unless total income is above ₹50 lakh. It is capped at 15% on special-rate gains.
  • US tax withheld on dividends: 25% with a W-8BEN on file, and 30% without.

Frequently asked questions

Is cess included?

Yes, under Indian rules 4% cess is included. Surcharge is included only if you enter it.

Does this work for one trade or many?

It works out one holding at a time. If you made several purchases, enter the totals, or work out each lot on its own, since each purchase has its own holding period.

Are my numbers stored?

No. Everything is calculated in your browser, and your figures are not sent to us.

Is this financial advice?

No. It is an estimate for information only. Please check important decisions with a qualified professional.

Which year does this cover?

The current rules for FY 2026-27 unless the page says otherwise.

Can I use this for filing my return?

Use it to estimate and plan. Your filing should be based on your documents and the official utilities.

What if I bought shares in several lots?

Shares sold are treated as the oldest bought first. Each lot has its own purchase price and holding period, so work out each one separately for an exact figure.

Is the ₹12 lakh rebate available on these gains?

The rebate under the new regime does not reduce tax on gains taxed at special rates, such as listed equity gains.

Which exchange rate applies to US shares?

The rules refer to the State Bank of India telegraphic transfer buying rate at specified dates. Practice can vary on some details, so check the rate and method with a tax professional for large amounts.

Do I need to pay this tax immediately?

It is reported in your return for the year of sale. If your total tax after TDS is ₹10,000 or more, advance tax rules can apply.

Last updated 9 November 2026. Results are estimates for information only and are not financial, tax or legal advice. Please check figures with your lender, adviser or the official source before you act. Everything you enter is calculated on your device and is not sent to us.