What is a stock profit calculator?
A stock profit calculator works out how much you made or lost on a share trade. Enter the buy price, sell price, number of shares and your charges, and it shows the net profit or loss in rupees and as a percentage of the money invested. The other tabs answer the questions that usually come next: what that return is per year (CAGR), where to set a target and stop-loss, and how much a fallen stock has to rise to get back to your buy price.
Stock profit and return formulas
Profit = (Sell - Buy) × Quantity - Charges Return % = Profit ÷ (Buy × Quantity) × 100 CAGR = (Sell ÷ Buy)^(1 ÷ Years) - 1 Gain needed = 100 ÷ (100 - Loss%) - 1
The return is always measured against what you paid, not what you sold for. See the stock profit calculator methodology for assumptions and sources.
Worked example: profit on 40 shares
- Bought 40 shares at ₹1,250.00: invested ₹50,000.00
- Sold at ₹1,480.00: sale value ₹59,200.00
- Gross profit: (1480 - 1250) × 40 = ₹9,200.00, a 18.40% rise in the share price
- Charges from the contract note: ₹60.00
- Net profit: ₹9,140.00, a net return of 18.28%
Click Example on the Profit / Loss tab to load these numbers. On delivery trades, charges are usually a small slice of the profit. On small intraday trades they can take most of it, so always enter them.
Why losses need bigger gains to recover
A percentage fall is measured from a higher price than the recovery that follows it, so the gain needed to break even is always larger than the loss. The gap widens fast after a 30% fall:
| Stock falls by | ₹100 becomes | Gain needed to recover |
|---|---|---|
| 5% | ₹95 | 5.26% |
| 10% | ₹90 | 11.11% |
| 20% | ₹80 | 25.00% |
| 25% | ₹75 | 33.33% |
| 30% | ₹70 | 42.86% |
| 40% | ₹60 | 66.67% |
| 50% | ₹50 | 100.00% |
| 60% | ₹40 | 150.00% |
| 75% | ₹25 | 300.00% |
| 80% | ₹20 | 400.00% |
| 90% | ₹10 | 900.00% |
The same rule explains why +20% followed by -20% leaves ₹100 at ₹96, not ₹100. Keeping losses small matters more than it looks, which is the reason traders decide a stop-loss before they buy.
Total return vs annual return (CAGR)
A big total return can hide an ordinary yearly return. The Nifty 50 closed at 8,296 on 11 November 2016 and at 25,144 on 13 November 2026:
- Total return: 203.09% over 10 years
- Simple average: 20.31% a year, which overstates it
- CAGR: 11.73% a year, the actual compounded rate
Use the Annual Return tab to compare a stock you held for several years with an FD rate or a mutual fund's CAGR on the same basis. These are price returns only; dividends add to the real return. Year-by-year index figures are in the Nifty 50 year wise returns table.
Target price, stop-loss and risk-reward
For a ₹500.00 buy price with a 15% target and a 5% stop-loss, the target price is ₹575.00 and the stop-loss is ₹475.00. The possible gain is 3 times the possible loss, a risk-reward ratio of 1:3. A higher ratio means a trade can be wrong more often and still break even, but a wider target is also less likely to be reached. The calculator only does the arithmetic; it says nothing about whether a price level is realistic for a given stock.
What this calculator does NOT model
- Charges you don't enter: brokerage, STT, exchange transaction charges, SEBI fees, GST, stamp duty and DP charges are only deducted if you add them to the charges field. Your broker's contract note lists the exact amounts.
- Income tax (as of October 2026): gains on listed shares held 12 months or less are short-term and taxed at 20%. Long-term gains above ₹1.25 lakh in a financial year are taxed at 12.5%. Cess and surcharge are extra, and intraday profits are treated as business income.
- Dividends: the return is based on price alone. Add dividends received to the sell value to include them.
- Splits and bonus issues: after a split or bonus, use the adjusted buy price per share (total cost ÷ new number of shares), or the return will look wrong.
- Multiple buys: if you bought at different prices, use your weighted average buy price.
Related tools and guides
- Lumpsum Calculator - project what a one-time investment could grow to at a CAGR.
- SIP Calculator - estimate the value of monthly investments.
- Position Size Calculator - size a trade from your account balance and stop-loss distance.
- Stock analysis - see why Indian and US stocks moved today.
- How to start investing in the stock market in India