Stock Profit Calculator
Calculate total cost, total proceeds, profit or loss, ROI, break-even price, and per-share result.
Use this Stock Calculator to estimate the profit or loss from buying and selling shares. It includes optional buy and sell commissions and calculates total cost, net sale proceeds, ROI, break-even selling price, and profit or loss per share.

Important: This is a trade-return calculator, not a stock-price prediction or valuation tool. Taxes, dividends, market slippage, and investment holding period are not included.
Stock Profit Calculation
First calculate the value of the shares purchased:
Purchase value = number of shares × buy price per share
If a buy commission applies:
Total buy cost = purchase value + buy commission
For the sale:
Sale value = number of shares × sell price per share
Net sale proceeds = sale value − sell commission
The resulting profit or loss is:
Profit or loss = net sale proceeds − total buy cost
Return on Investment (ROI)
The calculator uses a simple trade-level return:
ROI = profit or loss ÷ total buy cost × 100
A positive result represents a gain, while a negative result represents a loss.
Profit or loss per share is:
Per-share result = profit or loss ÷ number of shares
Break-Even Share Price
The break-even price is the selling price needed for net sale proceeds to equal your total buy cost.
With a fixed selling commission:
Break-even price = (total buy cost + sell commission) ÷ number of shares
If the selling commission is percentage-based, the calculator also accounts for that percentage when solving for the required selling price.
Worked Example
Suppose you:
- Buy 100 shares at $20 each
- Pay a $10 buy commission
- Sell the shares at $24 each
- Pay a $10 sell commission
Purchase value:
100 × $20 = $2,000
Total buy cost:
$2,000 + $10 = $2,010
Sale value:
100 × $24 = $2,400
Net sale proceeds:
$2,400 − $10 = $2,390
Profit:
$2,390 − $2,010 = $380
ROI:
$380 ÷ $2,010 × 100 ≈ 18.91%
Profit per share:
$380 ÷ 100 = $3.80
The break-even selling price with the $10 selling commission is:
($2,010 + $10) ÷ 100 = $20.20 per share
Important Notes
- The calculator includes entered transaction commissions when estimating the trade result.
- If you enter commissions as percentages, they are calculated from the corresponding transaction value.
- Brokerage fees, regulatory fees, bid-ask spreads, and market slippage may make actual proceeds different from the estimate.
- Dividends and other distributions are not included, so this is not a total-return calculation.
- Taxes on capital gains or losses are not calculated.
- ROI is a simple percentage return and does not account for how long the investment was held. It should not be interpreted as an annualized return.
- Stock prices can fluctuate significantly, and a calculated potential profit does not predict future investment performance.
- The currency selection is for expressing the entered values consistently; do not mix amounts denominated in different currencies without first converting them.
How to Use the Stock Calculator
Start with one clearly defined scenario and collect the values the calculator requests: shares, purchase price, selling price, commissions, fees, and dividends. Use figures from current statements, quotes, pay records, contracts, or official documents whenever possible. Keep every rate and time period on the same basis before calculating. If one value is uncertain, enter a realistic estimate and then test a lower and higher alternative instead of treating a single forecast as certain.
Enter the values carefully, check the units, and calculate. The main results are cost basis, proceeds, gain or loss, and percentage return. Save the assumptions alongside the result so you can reproduce the calculation later. For comparisons, change only one major input at a time. That makes it easier to see which variable is responsible for the difference and reduces the chance of comparing scenarios built on inconsistent assumptions.
How to Interpret the Results
This calculator is designed to combine price change, income, and transaction costs into a simple position result. The result is an estimate based on the values supplied, not a quote, approval, tax ruling, investment recommendation, or contractual promise. Read the output together with its assumptions and compare the total cost or benefit—not only the most attractive headline number. A result that looks better in the short term may be less suitable when fees, timing, risk, or long-term obligations are included.
For a useful sensitivity check, recalculate with a less favorable rate, a different term, a larger cost, or a smaller income or return. Note the point at which the decision changes. This break point often provides more practical insight than a single best-case result because it shows how much uncertainty the plan can absorb.
Scenario Checklist
Before acting, confirm the source and date of every input; distinguish percentages from decimal values; include relevant fees and recurring costs; align monthly and annual figures; and verify whether values are before or after tax. Also consider inflation, opportunity cost, liquidity, and risk where relevant. Document the scenario name and calculation date so later comparisons use the same basis.
Important limitation: tax lots, corporate actions, currency, bid-ask spread, taxes, and reinvested dividends may be omitted. Rules, market conditions, provider terms, and personal circumstances can change. Verify material decisions with the appropriate lender, employer, tax authority, regulator, financial professional, or contract documentation.
Related Finance Calculators
Continue your comparison with the Margin & VAT Calculator and ROI (Return on Investment) Calculator. Using related calculators can reveal costs or assumptions that a single result does not capture.
Frequently Asked Questions
What does the Stock Calculator calculate?
It uses shares, purchase price, selling price, commissions, fees, and dividends to estimate cost basis, proceeds, gain or loss, and percentage return. The exact fields and displayed results depend on the values entered and the calculator formula.
Which inputs have the biggest effect on the result?
The inputs with the greatest effect are usually the largest balances, prices, rates, time periods, payments, or recurring amounts. Change one of these at a time and compare the results to identify the most sensitive variable.
How accurate is the Stock Calculator?
It is mathematically accurate for the supplied inputs and stated assumptions. Real-world accuracy depends on the quality of those inputs and whether all relevant fees, taxes, timing rules, rate changes, and personal circumstances are represented.
How should I compare different scenarios?
Create a realistic base case, then a conservative case and an optimistic case. Keep units and timing consistent, alter one important assumption at a time, and compare total outcomes as well as periodic amounts.
Does the calculator include every tax, fee, and rule?
No general calculator can capture every jurisdiction, provider term, exemption, fee, or future change. Include additional costs where fields allow and confirm the final figures with current official documents or the relevant provider.
Can I use this result for an official financial decision?
Use it for education, planning, and initial comparison. Before signing, filing, investing, borrowing, or making another material commitment, confirm the assumptions and final numbers with authoritative documents and an appropriately qualified professional.