Stock profit calculator
Profit = shares × (sell price − buy price) − fees. Divide it by what you paid to get your return in %. A second calculator below shows the catch every investor learns: after a 50% fall, a stock has to rise 100% just to get back to where it was.
How it's worked out
Profit = shares × (sell − buy) − fees · Return % = profit ÷ (shares × buy + buy fee)
Example: 50 shares bought at $40 ($2,000) and sold at $52 ($2,600) with $2 in fees. Profit is $598, a 29.9% return. Held for 2 years, that's about 14% a year (see the CAGR calculator for why it isn't 15%). The calculator treats the fees as part of what you paid, which is close enough for small fees.
How much does a loss need to recover?
Losses and gains aren't symmetrical. A fall takes a bite out of a smaller base, so the climb back has to be bigger.
| If it falls | It must rise |
|---|---|
| 10% | 11.1% |
| 20% | 25% |
| 30% | 42.9% |
| 50% | 100% |
| 75% | 300% |
| 90% | 900% |
This is why spreading your money over many companies matters: a broad fund rarely falls as far as a single stock can (see how many stocks to own).
Things the simple maths leaves out
- Dividends you received while holding the stock are part of your return too. Add them to the profit.
- Taxes on the gain depend on your country and how long you held the shares.
- Several buys at different prices? Work out your average buy price first with the stock average calculator.
- Currency. If you bought in another currency, the exchange rate can add to or eat into the gain.
Questions people ask
How do I calculate the percentage gain on a stock?
Take (sell price − buy price) ÷ buy price × 100. From $40 to $52 is $12 ÷ $40 = 30%.
Is a paper loss a real loss?
Not until you sell. But the money is worth less today either way, so it's still worth knowing the number honestly.
Why is the yearly return lower than total return divided by years?
Because returns compound. 29.9% over 2 years is 14% a year, since 1.14 × 1.14 ≈ 1.30.
Should I include fees?
Yes. On small trades a fixed fee can take a big share of the profit. Many brokers now charge no fee on stocks, but there may be a currency fee.
This article is for education only and isn't financial advice. Examples use made-up numbers.