A stock percentage calculator shows how a trade worked out, both in money and as a percentage of what you put in. Enter the number of shares, your buy and sell prices, and any fees and dividends. You’ll see your profit or loss, your total return, your gain per share, the price you need to break even, and your yearly return if you add how long you held the shares. You can also use it to test a trade you’re thinking about. It’s for working out numbers, and it isn’t investment advice.
How this stock return calculator works
Total cost = shares × buy price + buying fees
Proceeds = shares × sell price − selling fees + dividends
Profit or loss = proceeds − total cost
Return % = profit or loss ÷ total cost × 100
Yearly return = (proceeds ÷ total cost)^(1 ÷ years) − 1
The last formula is the compound yearly return, which lets you compare trades held for different lengths of time.
How to use this stock percentage calculator
- Enter your shares and currency. Part shares are fine.
- Enter the buy and sell prices. Use prices per share.
- Add fees and dividends if you have them. These fields are optional, but they make your result more accurate. Enter them as totals for the whole trade.
- Add the years held. This is optional too, and it adds your yearly return.
Worked examples
A gain: you buy 100 shares at $50 and sell at $65, paying $10 in fees each way. Your total cost is $5,010 and your proceeds are $6,490. That’s a profit of $1,480, a return of 29.54%. If you held for 2 years, that’s about 13.82% a year.
A loss: you buy 200 shares at $40 and sell at $34, with no fees. Your cost is $8,000 and your proceeds are $6,800, which is a loss of $1,200, or −15%.
A loss softened by dividends: if that same holding had paid $200 in dividends, your loss would fall to $1,000, or −12.5%.
Break-even price: in the first example, you’d need to sell at $50.20 a share to cover your cost and fees.
What gains and losses take to recover
Percentages work against you after a fall, because a recovery starts from a smaller amount:
| Fall | Gain needed to get back |
|---|---|
| −10% | +11.11% |
| −20% | +25% |
| −30% | +42.86% |
| −50% | +100% |
Share profit and loss: what to include
- Fees: brokerage, exchange charges and other costs reduce your return. They’re a bigger drag on small trades.
- Dividends: a price-only return ignores cash paid to you along the way, so add it for your full return.
- Taxes: this calculator doesn’t include tax on gains or dividends, which depends on your country, income and holding period. Check your local rules or ask a tax professional.
- Inflation: a real return is what you earn after allowing for inflation and taxes, so your gain in buying power may be smaller.
- Splits and more purchases: if you bought at several prices or the stock split, use your average price per share and your adjusted share count.
Bought at more than one price?
Use your average price, weighted by the shares in each purchase. Say you bought 50 shares at $100 and 50 more at $120. You paid $11,000 for 100 shares, so your average is $110. Selling all 100 at $132 gives you $13,200, for a profit of $2,200 and a return of 20%. Brokers may also list this average as your cost basis, so you can check your result against their statement.
Why the yearly return matters
A 30% gain sounds the same whether it took one year or ten, but it isn’t. Over one year, it’s 30% a year. Over ten years, it’s about 2.66% a year, which might not beat inflation. The yearly return puts different trades on the same footing, though it assumes steady growth, which real markets don’t deliver. It’s also only a backward look, since past returns can’t tell you what comes next.
Using it before you trade
Enter a target sell price to see what it would earn after fees, or a lower price to see what a fall would cost you. This doesn’t predict anything. It only helps you understand the numbers before you decide. All investing carries risk, including the loss of the money you invest, so consider speaking with a licensed adviser about your own situation.
Related calculators
For a percent move without any share data, use the percentage change calculator. For longer-term planning, try the savings calculator or the retirement calculator.
Worked example with dividends and years held
You buy 40 shares at $120 with a $5 fee, collect $60 in dividends, and sell three years later at $150 with another $5 fee.
- Total cost: 40 × $120 + $5 = $4,805
- Total proceeds: 40 × $150 − $5 + $60 = $6,055
- Profit: $1,250, or $31.25 a share, a return of 26.01%
- Yearly return over three years: 8.01%
- Break-even sell price: $118.75, lower than the buy price because the dividends cover more than the fees
Stock gains and US taxes
In the US, how long you held the shares sets the type of gain. The IRS says a gain or loss is generally long-term if you held the asset for more than one year, and short-term if you held it one year or less.[3] If your losses are larger than your gains, the excess you can use to lower your income is limited to $3,000 a year, or $1,500 if married filing separately, and the rest can be carried forward.[3] To estimate the tax on a gain, try the US capital gains tax calculator.
What next
Use this often? Add Stock to your Home screen.
Frequently asked questions
How does a stock percentage calculator work?
It subtracts your total cost from your proceeds, then divides the result by your total cost and multiplies by 100 to give your percentage return.
How do I calculate profit and loss on shares?
Multiply your shares by the sell price, subtract fees and add dividends. Then subtract what you paid, including buying fees. A positive result is a profit.
What is my return on 100 shares bought at $50 and sold at $65?
With no fees, your profit is $1,500 and your return is 30%. With $10 in fees each way, your profit is $1,480 and your return is 29.54%.
What is the break-even price?
It’s the sell price at which you make no profit or loss after fees and dividends. In this calculator, it’s your total cost plus selling fees, minus dividends, divided by your shares.
Does this include taxes?
No. Tax on gains and dividends depends on where you live and how long you held the shares, so check your local rules.
Is my stock gain short-term or long-term?
In the US, the IRS generally treats a gain as long-term if you held the shares for more than one year, and short-term if you held them one year or less. The two can be taxed at different rates.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.