MarketHUD

Free calculator

Stock Return Calculator

Calculate the profit, total return, annualised return and estimated capital gains tax on shares or equity funds you bought and sold, including dividends.

Your investment

₹
₹
₹

Profit on shares

+₹22,500

+37.50% absolute

Total return with dividends

+39.50%

Dividends ₹1,200

Annualised return (CAGR)

14.51%

897 days held

Estimated tax

₹0

Long-term capital gains

What this means

You put in ₹60,000 and got back ₹83,700 including ₹1,200 of dividends, a total profit of ₹23,700 or 39.50% over 897 days.

Spread evenly over the 2.5 years you held it, that is the same as earning 14.51% a year, compounded. Use this figure to compare with investments held for different lengths of time.

You held the shares for more than 12 months and the gain is within the ₹1.25 lakh yearly exemption, so no tax is due if you have no other long-term gains this year.

Breakdown

Amount invested₹60,000.00
Sale value₹82,500.00
Capital gain₹22,500.00
Dividends received₹1,200.00
Total profit before tax₹23,700.00
LTCG tax (12.5% above ₹1.25 lakh + 4% cess)₹0.00
Profit after capital gains tax₹23,700.00

Tax uses the rates for listed shares and equity funds with STT paid, sold on or after 23 July 2024. It assumes no other long-term gains in the year, no surcharge and no brokerage. Dividends are taxed at your slab rate and are not in the tax figure. Not tax advice.

By Rupesh Kumar · Last updated: · How our calculators work

How it's calculated

Capital gain = (S − B) × Q

Total return = (Capital gain + D × Q) ÷ (B × Q)

Annualised return = ((S × Q + D × Q) ÷ (B × Q))^(365 ÷ days) − 1

STCG tax (held ≤ 12 months) = gain × 20% × 1.04

LTCG tax (held > 12 months) = max(0, gain − ₹1,25,000) × 12.5% × 1.04

B
Buy price per share
S
Sell price per share (or today's price, to value a holding you still own)
Q
Number of shares
D
Total dividends received per share while you held it
days
Calendar days between the buy date and the sell date
1.04
Adds the 4% health and education cess

Tax rates are for listed shares and equity-oriented mutual funds where STT was paid, sold on or after 23 July 2024. Budget 2026 left them unchanged for tax year 2026-27, when the Income-tax Act, 2025 replaced the 1961 Act.

Worked example

You bought 50 shares at ₹1,200 on 1 April 2024, received ₹24 a share in dividends, and sold at ₹1,650 on 15 September 2026. You paid ₹60,000 and the shares sold for ₹82,500, a capital gain of ₹22,500 or 37.5%.

Adding ₹1,200 of dividends brings the total return to 39.5%. You held the shares for 897 days, about 2.5 years, so the annualised return is (83,700 ÷ 60,000)^(365 ÷ 897) − 1 ≈ 14.51% a year.

Because you held for more than 12 months, the gain is long-term, and ₹22,500 is within the ₹1.25 lakh yearly exemption, so no LTCG tax is due, assuming no other long-term gains that year.

How the capital gains tax estimate works

Short-term: sell within 12 months and the whole gain is taxed at 20% plus 4% cess. A ₹10,000 short-term gain means about ₹2,080 of tax.

Long-term: hold for more than 12 months and the first ₹1.25 lakh of long-term gains in a financial year is exempt; the rest is taxed at 12.5% plus cess. A ₹2,00,000 long-term gain means tax on ₹75,000: about ₹9,750.

The exemption is for all your listed equity long-term gains in the year together, not per stock. If you have other long-term gains, part or all of the exemption may already be used.

Assumptions and limitations

  • Brokerage, STT and other charges are not deducted. Include them in your buy and sell prices, or check them with the brokerage calculator.
  • It assumes no other capital gains or losses in the year, no surcharge, and that the grandfathering rule for shares bought before 1 February 2018 doesn't apply.
  • Dividends are counted in your return but not in the tax figure; they are added to your income and taxed at your slab rate.
  • It handles one purchase and one sale. For several buys and sells, or a SIP, use XIRR.
  • Stock splits and bonus issues aren't adjusted automatically. Use adjusted prices and quantities for both the buy and the sell.

Frequently asked questions

How do I calculate the return on a stock?
Subtract the buy price from the sell price, multiply by the number of shares, add any dividends, and divide by the amount invested. ₹60,000 that returned ₹82,500 plus ₹1,200 of dividends is a 39.5% total return.
What is the tax on share profits in India?
For listed shares sold on or after 23 July 2024: gains on shares held up to 12 months are short-term and taxed at 20%; gains on shares held longer are long-term and taxed at 12.5% on the amount above ₹1.25 lakh in a financial year. 4% cess applies on top, and surcharge may apply at higher incomes.
Are dividends taxed separately?
Yes. Dividends are added to your income and taxed at your slab rate, so the calculator includes them in your return but not in the capital gains tax estimate.
Can I use it for a stock I still hold?
Yes. Enter today's price as the sell price and today's date as the sell date to see your return so far and the tax you would owe if you sold now.
Does it work for equity mutual funds?
Yes, for a single lump-sum purchase in an equity-oriented fund, which is taxed the same way. Enter the NAV as the price and the number of units as the quantity.

Sources