Stock Market Calculators
Stock Profit and Loss Explained: Fees, Return and Break-Even
Learn how to reconcile a closed stock trade, separate gross price gains from net profit, choose the return denominator and interpret fixed-charge break-even.
- Published:
- Updated:
- Reviewed:
Editorial dates are calendar dates in India Standard Time.
Keywords
- stock profit and loss calculator
- stock profit calculator
- share trading profit after fees
- stock break even price
- fractional shares profit calculator
What did this closed trade actually earn?
A stock quote measures a price, while a closed trade produces a cash outcome. This guide explains one fully purchased and fully sold long position. It separates price movement from charges and names the cost used for the percentage. It does not tell you whether to buy or sell.
Start with the contract note or a clearly labeled hypothetical scenario. Decide which quantity, currency and charges belong to this single round trip before interpreting a percentage. A tidy result cannot repair an inconsistent input basis.
Inputs and cash components
Quantity q is the same positive number of shares bought and fully sold. Purchase price b is positive; sale price s may be zero. Buy charge fb and sale charge fs are total nonnegative monetary amounts, not percentages. Prices and charges use one major currency and shares use consistent units.
When this model is useful
Use it to check the arithmetic of a homogeneous closed position or to compare hypothetical sale prices with fixed user-entered charges. Fractional shares are accepted, but the calculator does not establish whether a broker permits a particular quantity or order.
It is not a portfolio performance engine. Multiple cash-flow dates, remaining holdings, dividends, tax lots, margin financing and corporate actions require additional accounting. Do not hide those items inside a number and claim the calculator has modeled them.
From cash ledger to net profit
B = q×b; C = B+fb; S = q×s; N = S−fs; G = q×(s−b); P = G−fb−fs; return = 100P/C; fixed-charge break-even = (C+fs)/q. C is the positive upfront purchase outlay. Selling charges reduce net proceeds once; they are not also added to C. Profit is computed directly from the price difference and charges, preserving small gains or losses beside large cash totals. The percentage is a simple holding-period accounting return, with no annualisation, dates or reinvestment.
B = q×b; C = B+fb; S = q×s; N = S−fs; G = q×(s−b); P = G−fb−fs; return = 100P/C; fixed-charge break-even = (C+fs)/q.
- q is the matched quantity; b/s are per-share buy/sell prices; fb/fs are total monetary charges.
- P is evaluated from q×(s−b) minus charges, not by subtracting two nearly equal large totals. N−C remains an independently checked accounting identity.
- Fixed-charge break-even holds the entered fees constant. It excludes tax and does not implement a fee schedule.
Verified gain, loss and additional-payment examples
Buy 10 shares at 100, pay a buy charge of 2, then sell all 10 at 120 with a sale charge of 3. Purchase consideration is 1000, upfront outlay 1002, gross proceeds 1200 and net proceeds 1197. Gross price gain is 200; net profit is 195. Return is 195/1002×100 = 19.4610778443…%, displayed as 19.461078%. Fixed-charge break-even is (1002+3)/10 = 100.50 per share. If the sale price were 80, net profit would be −205, not −200.
Zero sale price example: buy one share for 1 with no buy charge, sell for 0 with a closing charge of 2. Gross proceeds are 0, net proceeds −2 and upfront outlay 1. Net profit is −3 and the defined accounting return is −300%. The additional closing payment is explicit; the result is not clipped to −100%.
Small-difference example: buy 1000000000000 shares at 1000000000000, sell at the same price, and enter a buy charge of 0.000000000001 and zero sale charge. Net profit is −1e-12 despite the very large turnover. The direct difference calculation preserves the loss; the money display flags its nonzero magnitude.
- Purchase: 10×100+2 = 1002 upfront.
- Sale: 10×120−3 = 1197 net proceeds.
- Profit: 1197−1002 = 195; return 100×195/1002 ≈ 19.461078%.
- Break-even: (1002+3)/10 = 100.50; 10×100.50−3−1002 = 0.
How to calculate and reconcile a trade
Choose a display market without changing currency units. Enter the full quantity, purchase price, sale price, and explicit total buy/sell charges; enter 0 for each absent charge. Confirm the consistent closed-trade basis. Calculate, inspect every cash component and the named denominator, and reconcile with your own records. Load the verified example or clear values to start again. Do not double-count a charge already embedded in a supplied price.
What the result means
Positive P is a gain after the entered charges; negative P is a loss. Zero P is cash break-even for this narrow model. A price increase can still produce a net loss after charges. A return is meaningful only with its denominator and exclusions; it does not measure risk, compare unequal holding periods, or establish a tax-reportable capital gain.
The closed long-only contract
One fully closed, long-only homogeneous quantity in one currency, with separately stated fixed total buy and sell charges. No rate basis, compounding, recurring contribution, beginning/end timing, date convention or leap-year assumption applies. The confirmation is your assertion, not verification of a brokerage record. Market selection changes formatting only: USD, GBP, CAD, AUD or INR; GBP means pounds rather than GBX/pence.
Precision, display and unsupported scenarios
Each input is a trimmed ungrouped decimal string of at most 48 characters and 12 fractional places. Quantity and buy price are 1e-12 through 1e12; other inputs are 0 through 1e12. Monetary outputs have absolute bounds of 2e24, return 2e38%, and break-even 3e24. Unsupported results are rejected. The isolated 120-digit half-even engine is checked against independent exact rational cash ledgers with absolute plus relative 1e-100 tolerances on deterministic vectors; this is not a uniform accuracy certification for every input. Currency rounds half-even to two places with tiny nonzero markers, return to six places, and extra summaries to eight significant figures. Never treat a rounded break-even display as an executable tick or a guarantee.
Common mistakes that change the answer
Do not enter 0.5 to mean a 0.5% commission: convert any percentage or per-share charge into the actual monetary total outside this model first. Do not combine mixed currencies, mismatched share units, partial sales or unmatched tax lots. Do not include a sell fee both in the net price and the fee box. Excluded dividends, taxes, spreads, financing and other costs can change a real economic outcome.
Purchase average, ROI and annualised return
The Stock Average Price Calculator combines purchase quantities and charges; it does not determine which tax lots a sale consumes. This calculator instead follows one fully closed homogeneous quantity and accounts for the sale charge. Keep fees consistent when transferring a reconciled basis.
The general ROI calculator supports a broader cost-and-benefit question. This trade model fixes an upfront denominator and deducts closing charges in profit. Annualised return adds a horizon and different eligibility conditions; this simple trade return contains no date or annual rate. Comparing the outputs without their conventions is misleading.
USA, UK, Canada, Australia and India
USA: use consistent USD amounts and distinguish fee-adjusted cash profit from tax reporting. UK: enter pounds for GBP; a GBX/pence quote must be reconciled into the same unit before use. Canada: use consistent CAD amounts and consult your transaction records rather than assuming a display average establishes tax basis.
Australia: AUD formatting does not add taxes or brokerage schedules. India: INR formatting, including local digit grouping on output, does not estimate brokerage, statutory charges or tax. In every market, enter actual monetary charges yourself and seek current official guidance for obligations outside this tool.
The linked primary education sources support the importance of fees, investment risk and record reconciliation. They do not certify this algorithm or supply a universal charge schedule. Reviewed 6 November 2026; no current product fees, tax rates or expected returns are asserted.
Educational scope and financial disclaimer
Educational cash-accounting calculator, not personalized investment advice, tax reporting, a trade recommendation or a forecast. No live prices, FX, dividends, corporate-action adjustments, tax-lot matching, partial sales, shorts, leverage, fee schedule or tax calculation. Figures are user supplied; local account rules and qualified advice may be needed.
Companion calculator
Put the method into practice.
Frequently asked questions
Why did my share price rise while my net trade lost money?
Is a 20% price increase the same as a 20% after-fee return?
How should I use a brokerage contract note?
Can I compare this result with an annual return?
What does the fixed-charge break-even example prove?
Do identical numbers imply identical taxable gains across countries?
Sources and review
Sources reviewed . Consult current local rules before relying on time-sensitive information.
Continue learning
- Stock Profit and Loss Calculator: Net Gain After Fees
- Stock Average Price Calculator: Weighted Purchases and Fees
- Stock Average Price Explained: Weighted Lots and Fees
- ROI Calculator: Gross Benefit, Net Profit and Total Cost
- How to Calculate ROI: Costs, Net Profit and Limits
- Annualised Return Calculator: Holding Period to Annual Rate
- Annualised Return Explained: Total Return and Compounding
- Stock Return Calculator: Price Change and Cash Dividends
- Stock Return With Dividends: Cash Income and Price Gains