Stock Profit Calculator
A trade is not finished when you press sell — it is finished when charges are paid and the true number survives. Enter your average buy price, sell price, and quantity, then add each leg's costs. This stock profit calculator reports what you invested, what came back, the net pre-tax result, and your return on invested capital as a percentage worth comparing across trades.
Loading the calculator…
How to use this calculator
- Enter the average buy price across every lot of the position.
- Type the price you actually sold at, not the day's high you remember.
- Add the total quantity sold in this round trip.
- Include buying-leg and selling-leg charges so the net figure is honest.
- Read net profit and ROI together — rupees for the pocket, percentage for comparison.
The formula behind it
Invested capital equals buy price times quantity plus buying expenses; amount received equals sell price times quantity minus selling expenses; net profit is simply received minus invested. Return on invested capital expresses that profit as a percentage of what left your pocket, which is why a ₹5,000 gain means something entirely different on a ₹25,000 position than on a ₹2 lakh one. The output is deliberately pre-tax: short-term gains face different treatment than long-term ones, and the dedicated capital-gains calculators pick up exactly where this page stops.
Worked example
A designer accumulated 200 shares of a midcap pharma name at an average of ₹250 during a sector slump, held through a volatile year, and exited at ₹310 when results finally landed. Her discount broker charged ₹95 across her buying tranches and ₹118 on the exit order.
| Buy / Sell | ₹250 / ₹310 |
|---|---|
| Quantity | 200 |
| Charges (buy + sell) | ₹95 + ₹118 |
Step by step
- Invested = (₹250 × 200) + ₹95 = ₹50,095
- Received = (₹310 × 200) − ₹118 = ₹61,882
- Net profit = ₹61,882 − ₹50,095 = ₹11,787
- ROI = ₹11,787 ÷ ₹50,095 × 100 ≈ 23.53%
The trade returned ₹11,787 before tax — 23.53% on deployed capital. On paper the price moved 24%; after charges, reality kept 23.53% of it.
Frequently asked questions
Why does ROI matter alongside the rupee profit?
Because capital is finite. A ₹15,000 profit sounds better than ₹11,787 until you learn it needed ₹2 lakh working for months while this one earned its figure on ₹50,095. Percentages let different-sized trades compete fairly for future capital.
Are these figures before or after tax?
Strictly before. Holding period determines whether gains fall under STCG or LTCG rules with their own rates and exemptions — our capital-gains calculators continue the calculation from this page's net-profit starting point.
My broker's P&L includes charges automatically. Why enter them here?
So the result reflects YOUR all-in economics rather than defaults. Brokerage models differ wildly between plans; entering actual contract-note figures keeps the comparison valid no matter who executes your orders.
Can I use this for partial exits?
Yes — treat each tranche as its own round trip by matching the quantity sold against your average entry price. Repeat per tranche, or run the whole position at once if simplicity beats precision today.
Where silent costs nibble a winning trade
Charges behave like headwinds: individually trivial, collectively decisive over many trips. Between brokerage, transaction taxes, exchange fees, stamp duty, and depository debits, a typical delivery round trip surrenders anywhere from a rounding error to a meaningful slice depending on plan style and ticket size. Small orders suffer worst because fixed components spread across fewer shares — one reason this page insists on both legs' real figures instead of flattering defaults.
The habit that converts awareness into advantage is annual aggregation. Summing twelve months of these settled results reveals patterns single trades hide: perhaps losses cluster in positions held under a month where churn dominated edge, or perhaps your best returns came from boring multi-year holds whose charges were one entry and one exit. Data from this calculator, logged consistently, turns those conclusions from vibes into arithmetic.
From trade result to portfolio thinking
Single-trade ROI answers 'was this decision good?' but says nothing about sequence or concentration. Two trades each returning twenty percent deserve different grades if one risked ten percent of your capital for three weeks while the other tied up half of it for a year. Sophisticated comparisons therefore normalise for time — annualising shorter results — and for capital-at-risk, both of which become easy once the raw net profit and invested figures here are recorded per trade in a simple sheet.
Finally, resist grading trades solely by outcome. A disciplined stop-loss exit that books a controlled seven-percent loss executed exactly per plan is a good trade that had a bad result; the reverse — a doubled position held through luck past its thesis — teaches dangerous lessons precisely because it paid. This tool measures money; judgement about process remains yours to supply.
Related calculators
- Capital Gains CalculatorClassify any share sale as STCG or LTCG and estimate tax with cess, sources dated.
- Stock Average CalculatorBlend two buy lots into one weighted average price and see your true total invested.
- Options Profit CalculatorSettle long calls and puts at expiry: net P&L, breakeven, and capped max loss.
- CAGR CalculatorCompress any start value, end value, and duration into one honest annualised growth rate.
Data sources & verification dates
- NSE India — Statutory Levies, STT, and Turnover Charges Schedule — verified as of 2026-08-26
- Income Tax Department — Capital Gains Computation on Shares (Section 111A / 112A) — verified as of 2026-08-26
stockcalculator.in Research Desk — Editorial team; verifies every figure against official sources before publishing
Last updated . Figures are re-verified against official sources on every revision — see our methodology.
Disclaimer
Calculations on stockcalculator.in run entirely in your browser using the inputs you provide. Figures shown are estimates for education and planning only. We are not SEBI-registered investment advisers and nothing on this site is investment advice. Verify anything material with your broker, fund house, or a qualified adviser before acting on it.