HeadroomDESK

Stock profit calculator

Type the shares, the price you paid, the price you sold at or are looking at, and the fees. The page shows the profit or loss after fees, the return on what the shares cost you, and the sale price at which you are even.

1 · Your shares (example values)

$
$
$
$

Bought at several prices? Find your average cost first with the stock average calculator and type it as the price paid.

Your result

–

Before tax. Taxes depend on where you live, how long you held the shares and your broker's cost basis method.

3 · How it is calculated

Runs in your browser. Nothing you type leaves this page.

Profit or loss = what the sale brings in after its fees, minus what the shares cost with the purchase fees. Exact to the cent; the return is rounded once, to 2 decimals.

This calculator does not know your broker, account type, tax position or fees.

Dividends received, borrow costs and currency conversion are not included.

What the numbers mean, with a worked example

How to read these numbers: what they mean, the formula in plain words, a worked example, the common mistake and the conventions.

How to read the result

Profit, return and break-even, in five parts

What the numbers mean

The profit or loss is the cash difference between what the sale brings in and what the shares cost you, fees on both sides included. The return puts it as a share of the cost. The break-even sale price is the price at which the sale, after its fees, brings back exactly what you paid.

The formula, in plain words

Multiply the shares by the price paid and add the purchase fees: that is the cost. Multiply the shares by the sale price and take off the sale fees: those are the proceeds. The difference is the profit or loss; divide it by the cost for the return.

cost = shares × price paid + purchase fees proceeds = shares × sale price − sale fees profit or loss = proceeds − cost return on cost = (proceeds − cost) ÷ cost break-even price = (cost + sale fees) ÷ shares

One worked example

The calculator's starting inputs: 100 shares paid at $50, a sale at $56, a $1 fee each way.

  1. Cost100 × 50 + 1 = 5,001.00
  2. Proceeds100 × 56 − 1 = 5,599.00
  3. Profit5,599.00 − 5,001.00 = 598.00
  4. Return on cost598.00 ÷ 5,001.00 ≈ 11.96%
  5. Break-even sale price(5,001.00 + 1) ÷ 100 = 50.02

The common mistake

Leaving the fees out of the break-even price. With a $1 fee each way, 100 shares paid at $50 are even at $50.02, not $50.00. On small positions or with per-share commissions the gap is larger, and a sale at the price paid is a loss.

Conventions

  • Fees: the purchase fees raise the cost; the sale fees lower the proceeds. Type 0 or leave them empty if your broker charges none.
  • Shares: whole or fractional, up to 4 decimals. Prices up to 4 decimals.
  • Return: on the cost, fees included, for the whole holding period. For a yearly figure use the annualized return calculator.

Questions traders ask

How do you calculate profit on a stock?

Multiply the shares by the sale price, take off the sale fees, then subtract what the shares cost you, purchase fees included. 100 shares paid at $50 and sold at $56 with a $1 fee each way leave a profit of $598.00.

How do you calculate the percentage return on a stock?

Divide the profit or loss by what the shares cost you, fees included, and multiply by 100. $598.00 on a cost of $5,001.00 is a return of about 11.96% for the time the shares were held.

What is my break-even price on a stock?

The cost of the shares, purchase fees included, plus the fees on the sale, divided by the number of shares. Below that sale price the trade is a loss after fees.

Does this include taxes?

No. The result is before tax. Taxes depend on where you live, how long you held the shares and how your broker matches sales to purchases.

Related

Last reviewed (UTC).