Skip to main content
CodeLint.Dev Dev Tools

Stock Profit & Loss Calculator

Position outcome including brokerage and fees, with the break-even price shown.

Stock Profit / Loss Calculator

Type

Net Profit

+1,442.5

Net ROI

28.85%

Gross Profit

1,500

Breakeven Price

101.01

Trade Breakdown

Buy Value 5,000
Sell Value 6,500
Gross Profit 1,500
Total Brokerage -57.5
Net Profit / Loss 1,442.5

Net profit and break-even

The number that matters is net of costs on both sides. Break-even is the price at which the position covers all fees — always above the purchase price.

net P/L = (sell × qty − sell fees) − (buy × qty + buy fees)

buy / sell
Price per share on entry and exit
qty
Number of shares
fees
Brokerage, exchange charges, stamp duty and any transaction tax

Worked example

Bought
100 shares at 250 = 25,000
Buy costs
75
Sold
100 shares at 280 = 28,000
Sell costs
85
Net
27,915 − 25,075

Net profit 2,840 (11.3%) · Break-even price 250.75

Costs of 160 on a 25,000 position are 0.64% — which sounds trivial and is not, for anyone trading frequently. Ten round trips a year at that cost is 6.4% of capital consumed before any return.

About

The Stock Profit/Loss Calculator gives you a complete picture of a share trade — buy side cost, sell side proceeds, brokerage charges, and net profit or loss after fees. It calculates the breakeven price at which you neither gain nor lose on the trade, accounting for your entry brokerage. This is essential for day traders, swing traders, and long-term investors to understand true returns after transaction costs.

How to use

  1. 1 Enter the buy price per share and the number of shares purchased.
  2. 2 Enter the sell price per share and the number of shares sold.
  3. 3 Add brokerage as a percentage or flat fee for both buy and sell sides.
  4. 4 The calculator shows gross profit, total brokerage cost, net profit, and ROI.
  5. 5 The breakeven price shows the minimum sell price to cover buy cost and brokerage.
What is the breakeven price in stock trading?
The breakeven price is the minimum sell price at which you neither profit nor lose on a trade, after accounting for buy price and brokerage fees. If you bought at ₹100 and paid 0.1% brokerage on the buy side, your breakeven is ₹100.10 — you need to sell above this to profit. Knowing your breakeven helps you set a realistic minimum target price before entering a trade.
Should I use percentage or flat fee brokerage?
Most modern discount brokers in India (Zerodha, Groww, Angel One) charge a flat fee per trade (e.g. ₹20 per order) regardless of trade size, making them far cheaper for large trades than percentage-based brokers. For example, a ₹1 lakh trade at 0.1% costs ₹100, while a flat ₹20 fee costs 80% less. Enter your broker's actual fee structure for an accurate profit calculation.
Does this calculator include taxes like STT and GST?
The calculator focuses on brokerage costs and buy/sell prices, which you can customise. In India, Securities Transaction Tax (STT), exchange transaction charges, and GST are additional costs charged per trade by the broker and exchange. For a complete picture, add these as part of your flat fee input or use your broker's brokerage calculator for exact charges.