Percentage Gain and Loss Calculator for Stocks

Percentage gain or loss = (end price − start price) ÷ start price × 100. A stock bought at $20.00 and sold at $25.00 gained 25%. This calculator also adds dividends and fees for a total return, finds the price for a target %, shows the gain needed to recover from a loss, and compounds a series of returns into one figure with an annualized rate.

What do you want to work out?
––
––
––

Inputs Enter your values or choose Show example for the hypothetical FINRA trade.

Position
Time held (for the annualized return)
Price change(end − start) ÷ start; sign flipped for a short
–
Gain or loss per share
–
Gross profit or loss
–
Fees
–
Dividends
–
Net profit or loss
–
Total returnnet ÷ (shares × start price + buy fees)
–
Dividends’ share of the return
–
Annualized return (CAGR)
–
Price move from end back to start
–

Everything runs in your browser. Nothing you type is saved or sent. Use a dot for decimals; a minus sign marks a loss.

How to use the percentage gain calculator

  1. % gain or loss. Enter the start and end price. That alone gives the percentage change. Add the number of shares to see the profit in dollars, then add fees and dividends for the total return. Add years or dates for the annualized return. Switch to “Short” if you sold first and bought back later.
  2. Price for a target %. Enter a start price and the gain or loss you want to measure, such as 25 or −10. The calculator shows the end price that matches it.
  3. Loss recovery. Enter a loss in percent. The calculator shows the gain needed to get back to the starting value, a table from −5% to −90% and a chart. An optional yearly return gives the years it would take at that assumed rate.
  4. Compound several returns. Type up to 12 period returns in order, for example yearly or monthly returns. The calculator compounds them, compares the result with the simple sum and, with a time span, turns the total into a compound annual growth rate.

Percentage gain and loss formulas

Percentage gain or loss = (end price − start price) ÷ start price × 100 Short position = (start price − end price) ÷ start price × 100 Net profit (long) = shares × (end − start) − buy fees − sell fees + dividends Net profit (short) = shares × (start − end) − buy fees − sell fees − dividends paid Total return = net profit ÷ (shares × start price + buy fees) End price for target % = start × (1 + target %) (short: start × (1 − target %)) Gain needed after a loss = loss ÷ (1 − loss) Compounded return = (1 + r1) × (1 + r2) × … × (1 + rn) − 1 Compound average = (1 + compounded return)^(1 ÷ n) − 1 Annualized (CAGR) = (1 + total return)^(1 ÷ years) − 1

The total return uses the money that went in: shares × start price plus the buy fees. This follows FINRA’s rule of thumb to “include the transaction fees you pay when you buy your investments” and, after a sale, to “subtract the fees you paid when you sold.” For a short position the calculator uses the same base, the value of the shares sold short. Margin, borrow fees and interest are not included.

Price return vs total return

A percentage gain worked out from prices alone ignores the cash an investment paid you. FINRA’s “Evaluating Performance” page says that to find total return, “generally considered the most accurate measure of return, you add the change in value—up or down—from the time you purchased the investment to all of the income you collected from that investment in interest or dividends.” It gives the formula:

(Change in value + Income) / Investment amount = Percent return

FINRA’s example: $2,000 buys 100 shares at $20. The price rises to $25 over three years and the shares pay $120 in dividends. The total return is ($500 + $120) ÷ $2,000 = 31%, and the annualized return is 9.42%. The calculator opens with exactly these numbers, so you can check it against the source. The price-only gain is 25%; the dividends add 6 percentage points.

Why a loss needs a bigger gain to recover

A percentage loss and the gain that undoes it are measured from different starting values. A 50% loss turns $10,000 into $5,000. Getting back to $10,000 needs $5,000 more, which is 100% of $5,000. The general rule is:

Gain needed = loss ÷ (1 − loss)
Loss$10,000 becomesGain needed to break even
−10%$9,000+11.1%
−20%$8,000+25.0%
−25%$7,500+33.3%
−30%$7,000+42.9%
−40%$6,000+66.7%
−50%$5,000+100.0%
−60%$4,000+150.0%
−75%$2,500+300.0%
−80%$2,000+400.0%
−90%$1,000+900.0%

Computed with the formula above. The calculator’s loss recovery mode draws the full curve and highlights your own loss.

The gap grows fast. Small losses need gains only slightly larger than the loss, but past about −50% the required gain climbs steeply. This is why traders track the largest peak-to-trough fall of an account. The drawdown calculator measures it from a series of values, and the max drawdown spreadsheet does the same in Excel or Google Sheets.

Why +10% and −10% do not cancel out

Returns in a row multiply; they do not add. A 10% gain followed by a 10% loss leaves 1.10 × 0.90 = 0.99 of the start, a 1% loss, even though the two numbers sum to zero. Investor.gov defines compound interest as “Interest paid on principal and on accumulated interest.” Investment returns compound the same way: each period’s gain or loss applies to the value left after the previous period.

Averages have the same trap. FINRA’s “Calculating Your Investment Returns” page warns that dividing a multi-year total return by the number of years gives an “inflated view” that “is known as a simple average, which doesn’t take compounding into consideration.” FINRA’s standard formula for the annualized return is AR = (1 + return)(1 / years) − 1. The compounding mode shows the simple sum, the arithmetic average, the compound (geometric) average and the CAGR side by side. For two values and a date range only, the CAGR calculator is quicker.

Percent vs percentage points

A percentage point is the plain difference between two percentages. A percent change is relative to the starting figure. If a fund’s return goes from 5% one year to 7% the next, it rose by 2 percentage points, or by 40% (2 ÷ 5). Mixing the two makes small changes look large, or the other way round.

The U.S. Bureau of Labor Statistics makes a similar point about price indexes: “Movements of an index from one month to another are usually expressed as percent changes rather than as changes in index points”, because a change in points depends on how high the index stands, while a percent change does not. Its worked example divides the index point change by the earlier index and multiplies by 100, the same formula as a percentage gain. The calculator shows the gap between compounded and summed returns, and the dividends’ share of a total return, in percentage points (“pts”) for this reason.

Percentage gain on a short position

A short sale reverses the sign. The SEC’s investor bulletin on short sales explains: “If the price of the stock drops, short sellers buy the stock at the lower price and make a profit. If the price of the stock rises, short sellers will incur a loss.” In its example a stock is shorted at $60 a share and bought back at $40, a $20 profit per share; if it rises to $80 instead, the loss is $20 a share. The bulletin adds that “shorting a stock leaves an investor open to the possibility of unlimited losses,” and that if the borrowed stock pays a dividend, “you must pay the dividend to the person or firm making the loan.”

With “Short” selected, the calculator measures the gain as (start − end) ÷ start and subtracts dividends instead of adding them. A short loss can be larger than 100% of the short-sale value. For a full trade with SEC and FINRA fees and tax, use the stock profit calculator.

Worked examples

All four examples are hypothetical. Example 1 uses FINRA’s published example; the others are made-up numbers chosen for the arithmetic, not market data.

1. Percentage gain with dividends (FINRA’s example, the default)

100 shares bought at $20.00, now worth $25.00 after three years, with $120 of dividends. No fees.

StepArithmeticResult
Price gain(25.00 − 20.00) ÷ 20.00+25.00%
Net profit100 × 5.00 + 120.00+$620.00
Total return620.00 ÷ 2,000.00+31.00%
Dividends’ share120.00 ÷ 2,000.00+6.00 percentage points
Annualized(1.31)^(1 ÷ 3) − 1+9.42%

Both results match FINRA’s published figures of 31% and 9.42%.

2. A loss with fees, and what it takes to get back

50 shares bought at $80.00 and now at $56.00. Commission $4.95 on each trade.

StepArithmeticResult
Price change(56.00 − 80.00) ÷ 80.00−30.00%
Net loss50 × (−24.00) − 4.95 − 4.95−$1,209.90
Total return-1,209.90 ÷ (4,000.00 + 4.95)−30.21%
Rise needed back to $8080.00 ÷ 56.00 − 1+42.86%

A 30% fall needs a 42.86% rise to return to the buy price. Fees make the loss on the money invested slightly larger than the price loss.

3. Price for a 25% gain, long and short

Start price $50.00, 100 shares, target +25%, before fees.

StepArithmeticResult
Long: sell price50.00 × (1 + 0.25)$62.50
Long: profit100 × 12.50+$1,250.00
Short: cover price50.00 × (1 − 0.25)$37.50
Short: profit100 × 12.50+$1,250.00
Long: move from $62.50 back to $5050.00 ÷ 62.50 − 1−20.00%

A long position needs the price to rise to $62.50; a short needs it to fall to $37.50. Both make 25% of the $5,000 start value.

4. Five yearly returns: compounded vs summed

$10,000 earns +10%, −10%, +25%, −20% and +5% in five consecutive years.

StepArithmeticResult
Simple sum10 − 10 + 25 − 20 + 5+10.00%
Compounded1.10 × 0.90 × 1.25 × 0.80 × 1.05 − 1+3.95%
Ending value10,000 × 1.0395$10,395.00
Arithmetic average10% ÷ 5+2.00%
CAGR (5 years)1.0395^(1 ÷ 5) − 1+0.78%

The simple sum suggests +10% and $11,000. The money actually grew 3.95%, to $10,395.00. The gap is 6.05 percentage points, and the real yearly pace was 0.78%, not 2%.

Common mistakes

Limits of this calculator

FAQ

How do you calculate the percentage gain on a stock?

Subtract the buy price from the current or sell price, divide by the buy price and multiply by 100. A stock bought at $20.00 that now trades at $25.00 has gained (25 − 20) ÷ 20 × 100 = 25%. To include dividends, add them to the price gain before dividing by the amount invested; with $120 of dividends on 100 shares the total return is ($500 + $120) ÷ $2,000 = 31%.

How do you calculate a percentage loss?

Use the same formula; the result is negative. A stock bought at $80.00 that falls to $56.00 has lost (56 − 80) ÷ 80 × 100 = −30%. Always divide by the price you started from, not the current price.

Why does a 50% loss need a 100% gain to break even?

Because the gain is measured from the smaller, post-loss value. $10,000 that falls 50% becomes $5,000, and getting back to $10,000 needs another $5,000, which is 100% of $5,000. In general the gain needed is loss ÷ (1 − loss): a 20% loss needs 25%, a 30% loss needs about 42.9% and a 90% loss needs 900%.

Why don't a 10% gain and a 10% loss cancel out?

Returns multiply. A 10% gain then a 10% loss leaves 1.10 × 0.90 = 0.99 of the starting value, a 1% loss. The order does not matter: a 10% loss followed by a 10% gain gives the same result. Use the compounded total, not the sum, for any series of returns.

What is the difference between percent and percentage points?

A percentage point is the simple difference between two percentages; a percent change is relative to the starting figure. A return that goes from 5% to 7% is up 2 percentage points, which is a 40% increase. Mixing them up can make a change look much bigger or smaller than it is.

Does percentage gain include dividends?

A price-only percentage gain does not. Total return does: FINRA describes it as the change in value plus all the income collected in interest or dividends, divided by the amount invested, and calls it generally the most accurate measure of return. Enter the number of shares and the dividends received to see both figures.

Related tools and templates

Sources

  1. FINRA, “Evaluating Performance” (total return, percent return formula, annualized return, $20 → $25 example).
  2. FINRA, “Calculating Your Investment Returns”, 4 December 2024 (fees in the cost, annualized vs simple average).
  3. Investor.gov (U.S. Securities and Exchange Commission), Glossary: Compound Interest.
  4. Investor.gov (U.S. Securities and Exchange Commission), Investor Bulletin: An Introduction to Short Sales, 29 October 2015, updated 9 September 2026.
  5. U.S. Bureau of Labor Statistics, “Math calculations to better utilize CPI data” (PDF), percent change vs index point change.

Web sources retrieved 15 Nov 2026.

Educational tool only, not financial, investment or tax advice. Results depend on the numbers you enter and the formulas above. They do not predict future prices and are no promise of any return; investments can lose value, and a short position can lose more than the amount received from the short sale. All example numbers are hypothetical.