CalcStocks
Investing maths, shown in full
EN

Stock Profit Calculator

Enter how many shares you bought, the buy price, and a sell or current price. Your net stock profit or loss, return, total cost, proceeds, and break-even update immediately.

Profit or loss with fees Formula and substituted values shown Nothing leaves your browser
One stock position

Use prices and fees from the same position. All money fields must use the same currency.

Live result: +$200.00 · +2.50%

Whole or fractional shares are accepted.

$

Use the cost basis per share for the shares being measured.

$

Use the actual sale price, or a hypothetical/current price for an unrealized estimate.

Add trading fees (optional)
$

Total purchase-side cost for this share quantity, not per share.

$

Total sale-side cost for this share quantity, not per share.

Net profit or loss

+$200.00

$8,200.00 net proceeds minus $8,000.00 total cost

Return on total cost
+2.50%
Profit or loss per share
+$2.00
Total purchase cost
$8,000.00
Net sale proceeds
$8,200.00
Break-even sale price
$80.00
Total fees
$0.00
Share-price change
+2.50%
Shares
100

Your stock profit formula

No intermediate value is rounded. Currency displays to cents by default; the calculation keeps the full entered precision.

($82.00 × 100 − $0.00) − ($80.00 × 100 + $0.00) = +$200.00

+$200.00 ÷ $8,000.00 × 100 = +2.50%

($8,000.00 + $0.00) ÷ 100 = $80.00 per share

Net proceeds minus total cost — check the method and primary sources. Pre-tax estimate for one long stock position. It does not determine your tax basis, lot selection, dividends, or an annualized return.

Now plan the next trade before it happens

A completed trade tells you what happened. A risk-reward plan makes the entry, stop, and target explicit before a new position is opened.

Use the Stock Risk Reward Calculator for one planned long or short stock trade. This profit calculator does not carry values across because it has no stop price, and inventing one would make the next result misleading.

Plan stock risk and reward

How to use the stock profit calculator

1

Enter the share quantity

Use the number of shares sold, or the shares you want to value at a hypothetical current price. Fractional shares work.

2

Enter buy and sell prices

The buy price is per-share cost basis for this position. The sell field can be an actual exit price or a current/target price for an unrealized estimate.

3

Add fees only when they apply

Buy and sell fees are total transaction amounts. They increase the cost or reduce the sale proceeds and move the true break-even price.

4

Audit the result

Read net profit or loss and ROI first, then check total cost, net proceeds, per-share result, break-even, and the substituted formulas.

How to calculate stock profit or loss

First multiply each price by the same share quantity. Add the buy fee to purchase cost, subtract the sell fee from sale proceeds, then subtract total cost from net proceeds. A positive result is profit; a negative result is loss.

Net profit or loss = (sell price × shares − sell fee) − (buy price × shares + buy fee)

Return on total cost = net profit or loss ÷ (buy price × shares + buy fee) × 100

Break-even sale price = (total purchase cost + sell fee) ÷ shares

Why cost basis can differ from the price you remember

For a simple purchase, cost basis generally begins with purchase price plus acquisition costs. Several purchase lots, reinvested distributions, splits, mergers, gifts, inheritances, return of capital, and other adjustments can change the basis that belongs to the shares sold. Use your broker records and the applicable tax rules rather than asking this one-position calculator to choose a lot.

Realized profit versus an unrealized estimate

If the sell field contains an executed sale price, the arithmetic describes that transaction before tax and any omitted costs. If it contains today's or a target price, the result is hypothetical: spread, slippage, price movement, and fees can change what an actual sale realizes.

What this calculator deliberately leaves out

It does not fetch a ticker, choose a sale price, model short selling or leverage, track several lots, add dividends, annualize a return, adjust for inflation, or estimate capital-gains tax. Those are separate tasks with extra assumptions.

Stock profit and loss examples

The first example reproduces Fidelity's published long-stock comparison. The others show how fees, losses, and fractional shares change the same arithmetic.

  • Fidelity example. Buy 100 shares at $80 and sell at $82 with no fees. Total cost is $8,000, net proceeds are $8,200, profit is $200, and return on cost is 2.50%.
  • Fees move break-even. Buy 100 shares at $50 with a $5 buy fee and expect a $5 sell fee. The break-even price is $50.10, not $50.00.
  • Losing position. Buy 40 shares at $75 and sell at $69 with $4 of total fees. Net result is a $244 loss, or about −8.13% on the $3,002 purchase cost.
  • Fractional shares. Buy 2.5 shares at $120 and value them at $132 with no fees. The unrealized estimate is $30 profit and 10.00%.
  • Same currency, any symbol. Entering 100, 120, and 132 produces the same arithmetic in dollars, euros, or pounds, but the page displays a dollar sign and performs no currency conversion.

Verified against a Fidelity stock example

Fidelity publishes a teaching comparison in which 100 shares are bought for $80 and sold for $82. With the fee inputs at zero, this calculator reproduces:

  • Initial investment: 100 × $80 = $8,000.
  • Sale proceeds: 100 × $82 = $8,200.
  • Gross profit: $8,200 − $8,000 = $200.
  • Return on investment: $200 ÷ $8,000 × 100 = 2.50%.

Fidelity Learning Center — Options for Equity Traders — the first-party teaching deck containing the 100-share $80-to-$82 long-stock comparison.

Checked 28 July 2026. Fidelity supplied the public teaching example; it has no connection with CalcStocks and has not reviewed or endorsed this calculator. The comparison verifies arithmetic, not whether any trade is suitable.

Stock profit calculator questions

Inputs, formulas, fees, cost basis, limits, tax boundaries, sharing, and privacy.

Inputs

What does a stock profit calculator calculate?

It compares the cost of buying a stated number of shares with the net proceeds from selling the same quantity. This page reports dollar profit or loss, return on total purchase cost, per-share result, price change, total fees, and the fee-adjusted break-even sale price.

Can I enter the current stock price instead of a sale price?

Yes. The result is then an unrealized or hypothetical estimate, not cash you have received. An actual sale can differ because the price moves and because spread, slippage, or fees may apply.

Does the calculator accept fractional shares?

Yes. Enter any positive share quantity. The same multiplication works for 2.5 shares as for 250 shares, provided your buy price and sell/current price are per share.

Are the fee fields per share or for the whole trade?

For the whole measured transaction. If a broker charged $4.95 to buy the entire position, enter 4.95 once. Do not multiply it by the share count.

Can I use euros, pounds, or another currency?

The arithmetic works if every monetary input uses the same currency, but the interface displays dollar signs and performs no conversion. Interpret the output in the currency you consistently entered.

What if I bought the stock several times at different prices?

Use the cost basis per share for the exact shares being measured. The Stock Average Calculator can find a weighted average, but a taxable sale may require specific-lot or FIFO rules rather than a simple average.

Formula

What is the formula for stock profit?

Net profit or loss equals sell price times shares, minus the sell fee, minus buy price times shares, minus the buy fee. Written as one expression: (sell price × shares − sell fee) − (buy price × shares + buy fee).

How do I calculate the percentage gain on a stock?

Divide net profit or loss by total purchase cost and multiply by 100. Total purchase cost is buy price times shares plus the buy fee. This makes fees part of the capital actually committed.

Why can ROI differ from the stock price percentage change?

Price change compares only sell price with buy price. ROI on this page uses net profit after entered fees divided by total purchase cost including the buy fee. With zero fees the two percentages match; with fees they do not.

How is profit or loss per share calculated?

The calculator divides net profit or loss after both entered fees by the number of shares. That spreads transaction-level fees across the measured quantity.

How is the break-even stock price calculated?

Add total purchase cost and the expected sell fee, then divide by shares. The resulting sale price makes net proceeds equal total cost. With no fees, break-even is the buy price.

What does a negative stock profit mean?

It is a loss: net sale proceeds are lower than total purchase cost. The displayed return and per-share result are negative by the same economic direction.

Fees and basis

What is cost basis?

Cost basis is generally the amount paid for an investment, including acquisition costs, subject to later adjustments. It is the starting point for figuring gain or loss, but the correct basis for a taxable sale can depend on the shares and events involved.

Should buy commission be included in stock cost basis?

For US tax context, IRS Publication 550 says stock basis is generally purchase price plus costs of purchase such as commissions and transfer fees. This calculator adds the entered buy fee to total cost, but it does not determine your reportable tax basis.

How does a sell commission affect profit?

It reduces net sale proceeds dollar for dollar. It also raises the sale price needed to break even because the position must recover both purchase-side and sale-side costs.

Why does this result differ from my broker?

Possible causes include a different tax lot, adjusted basis, accrued or regulatory fees, currency conversion, spread, fractional rounding, dividends, or a broker view that reports unrealized P/L using a different price. Compare the substituted figures with the broker's trade confirmation.

How do stock splits affect this calculation?

A split changes the share count and per-share basis without changing total basis at the split moment. Enter the post-split shares and adjusted per-share basis; do not mix a pre-split price with a post-split share count.

Do reinvested dividends affect cost basis?

They can. Reinvesting a dividend buys additional shares with their own basis. Cash dividends normally affect total return but not this price-only transaction result. Use broker records for the adjusted basis of shares sold.

Limits and privacy

Does this stock profit calculator include capital-gains tax?

No. Tax depends on jurisdiction, holding period, account type, lot identification, basis adjustments, loss rules, and personal circumstances. The result is pre-tax arithmetic, not a tax estimate or filing calculation.

Is the percentage return annualized?

No. It is the simple return for the measured buy-to-sell price change, regardless of whether the holding period was one day or ten years. Annualizing requires dates and a separate convention.

Are dividends included in stock profit?

No. This calculator measures the share transaction only. Cash dividends would add to total return, while reinvested dividends create additional shares and basis. The DRIP Calculator handles a different reinvestment task.

Can I use this for short selling or leveraged stock trades?

Not reliably. Short positions can include borrow fees and dividends owed, while margin adds interest and liquidation mechanics. Those assumptions are intentionally outside this one-long-position calculator.

Can I save or share a stock profit calculation?

Yes. Copy link puts the five inputs into the URL so the same result opens immediately. The values are not stored by CalcStocks, but anyone who receives the URL can read them.

Are my inputs private, and is the result investment advice?

The calculation runs in your browser and the inputs are not sent to CalcStocks. The output is arithmetic from values you supplied; it is not investment, tax, or legal advice and does not tell you whether to buy, hold, or sell.

Method, primary sources, and limitations

Built and maintained by CalcStocks as a browser-only arithmetic tool. Net profit is net sale proceeds minus total purchase cost; ROI uses that net result over total purchase cost. The default values reproduce a first-party Fidelity teaching example.

Educational pre-tax estimate for one long stock position. The result excludes dividends, adjusted basis events, multiple-lot selection, spread, slippage, currency conversion, inflation, financing, borrowing, and tax. Fidelity, FINRA, and the IRS did not review or endorse CalcStocks. Nothing here is investment, tax, or legal advice.

Contact

Found a bug, disagree with a formula, or want a calculator that is not here yet? Tell us.

Your message is emailed to us and not stored in a database. Please do not include account numbers, passwords or other sensitive details.