Investing

Stock percentage change calculator

A percentage gain calculator for shares: find the price return from your buy and sell prices, add dividends for the total return, and see the gain needed to recover a loss. Enter a number of shares to see the gain or loss in dollars.

  • Price return and total return
  • Loss recovery: the rise needed to get back
  • Log return, for adding returns over time

Examples and sources checked on November 21, 2026.

Price return-20.00%Decrease

Buying at $50.00 and selling at $40.00 is a price return of -20.00%. With $1.50 a share in dividends, the total return is -17.00%. A fall of 20.00% needs a rise of 25.00% to get back to $50.00. On 100 shares the loss is $850.00.

Total return with dividends-17.00%
Gain needed to recover+25.00%
Log return-22.31 log points

Working

  1. Price change: $40.00 - $50.00 = -$10.00
  2. Price return: -10.00 / 50.00 = -20.00%
  3. Total return: (40.00 + 1.50 - 50.00) / 50.00 = -17.00%
  4. Log return: 100 x ln(40.00 / 50.00) = -22.31

Spreadsheet formula Excel and Google Sheets

Put the buy price 50.00 in A2, the sell price 40.00 in B2 and dividends a share 1.50 in C2.

Price return=(B2-A2)/A2
Total return=(B2+C2-A2)/A2
Log return=LN(B2/A2)
With your numbers=(40-50)/50

Reverse check

$40.00 x 1.25 = $50.00: from the sell price, a change of +25.00% takes you back to the buy price.

Price return and total return

The price return is the percentage change in the share price: (sell minus buy) divided by buy. In the example a share bought at $50.00 and sold at $40.00 has a price return of -20.00%.

The total return adds income received while you held it, usually dividends: (sell plus dividends minus buy) divided by buy. With $1.50 a share in dividends, the total return is -17.00%. On 100 shares that is a loss of $850.00. These are our own example figures, not a real company.

Loss recovery

A fall of 20% takes $50.00 to $40.00. Getting back to $50.00 needs a rise of 25.00%, because the rise is measured from the lower price. The bigger the loss, the faster the required gain grows:

LossGain neededLog points down / up
-10%11.11%-10.54 / 10.54
-20%25.00%-22.31 / 22.31
-30%42.86%-35.67 / 35.67
-50%100.00%-69.31 / 69.31
-80%400.00%-160.94 / 160.94

The printable tables list more loss recovery levels. If returns are spread over several years, the CAGR calculator gives the yearly rate, and the successive change calculator chains yearly gains and losses.

Simple return vs log return

The log return is 100 times the natural logarithm of sell over buy, -22.31 log points in the example. Its appeal is symmetry: the way back is the same size with the opposite sign, 22.31 log points, and log returns over consecutive periods simply add. Simple returns do neither: a 20% fall is undone by a 25% rise, not a 20% one.

Statisticians Törnqvist, Vartia and Vartia argued in a paper in The American Statistician that the log change is the measure of relative change with these properties. Most brokers report simple returns, so the calculator leads with those and shows the log return beside them.

What this does not include

  • Fees and taxes: subtract trading fees from the sale and add them to the cost for a return after costs.
  • Time: a return of 20% over five years is very different from 20% in one. Use the CAGR calculator to compare holdings over different periods.
  • Splits: adjust the buy price for any split so both prices are per share on the same basis.
  • Reinvested dividends compound over time; this calculator adds them as cash, which is the simple total return.

Results are estimates from the numbers you enter. This is not investment advice.

In a spreadsheet

With the buy price in A2, the sell price in B2 and dividends a share in C2: price return =(B2-A2)/A2, total return =(B2+C2-A2)/A2, log return =LN(B2/A2), and the gain needed to recover =A2/B2-1.

Questions people ask

How do I calculate the percentage gain on a stock?

Sell price minus buy price, divided by buy price, times 100. Add dividends to the sell price for the total return.

Why does a 50% loss need a 100% gain?

Half the value is left. Doubling it, a 100% gain, gets you back to the start.