Solved.tools: Free Online Calculators & Tools

We use cookies for analytics and advertising. Learn more about our cookie policy

Stock Return Calculator

Last updated: 27 June 2026

Reviewed by Gavin Meiring, Lead research and primary author · Doctoral Candidate (Corporate Governance) · Research and drafting assisted by AI

Was this helpful?


Stock Return Calculator

A stock return calculator works out the total return from an investment in shares, including both capital gains and dividends received over the holding period. It is used by individual investors, traders, and portfolio managers who want to accurately measure how well a stock has performed relative to their initial investment or to a benchmark. The total return gives a more complete picture than the share price change alone.

How to Use the Stock Return Calculator

  1. Enter the purchase price per share and the number of shares bought.
  2. Input any brokerage or transaction costs paid at purchase.
  3. Enter the current or sale price per share and any costs paid at sale.
  4. Add the total dividends received during the holding period.
  5. The calculator outputs the total return in pounds (or currency of your choice) and as a percentage, along with the annualised return if you provide the holding period in years.

The Formula

Total Return = (Ending Value minus Beginning Value plus Dividends) divided by Beginning Value, multiplied by 100

Where:

Beginning Value = purchase price per share multiplied by number of shares, plus transaction costs.

Ending Value = current or sale price per share multiplied by number of shares, minus sale transaction costs.

Dividends = total cash dividends received during the holding period.

To annualise the total return for periods other than exactly one year, use:

Annualised Return = ((1 plus Total Return as a decimal) raised to the power of (1 divided by years held)) minus 1, multiplied by 100

This converts a multi-year total return into an equivalent annual growth rate for easy comparison.

Real-World Example

You purchase 100 shares of a company at £12.50 per share. Transaction costs at purchase are £10. Over two years, you receive dividends of £0.80 per share per year (£160 total). You sell all shares at £17.00 per share, paying £10 in transaction costs at sale.

Beginning Value = (100 multiplied by £12.50) plus £10 = £1,260 Ending Value = (100 multiplied by £17.00) minus £10 = £1,690 Total Dividends = £160

Total Return = (£1,690 minus £1,260 plus £160) divided by £1,260 = £590 divided by £1,260 = 46.8%

Annualised Return = ((1 plus 0.468) raised to the power of 0.5) minus 1 = (1.468 to the power of 0.5) minus 1 = 1.2116 minus 1 = 21.2% per year

This two-year holding returned 46.8% in total, equivalent to approximately 21.2% per year on an annualised basis.

Return measures compared

The same holding, measured seven ways. Each row uses the figures from the example above and nothing else.

MeasureWorkingResult
Price return(17.00 minus 12.50) divided by 12.50+36.0%
Total return before costs(450 plus 160) divided by 1,250+48.8%
Total return after costs590 divided by 1,260+46.8%
Annualised, after costs, two years1.468 to the power of 0.5 minus 1+21.2%
Annualised, price only, two years1.36 to the power of 0.5 minus 1+16.6%
Dividend income over the hold160 divided by 1,26012.7%
Cost drag over the hold48.8 minus 46.82.0 percentage points

The first row and the fourth are the pair that matters most in practice. The price rise alone is 36.0 percent, and the annualised version of it is 16.6 percent. Add the dividends and remove the costs and the same holding returns 46.8 percent, which annualises to 21.2 percent in the formula section above. An investor comparing this share against a fund using the price-only figure would mark it down by more than five percentage points a year.

Annualising the return

A 46.8 percent total return over two years is not 23.4 percent a year. Dividing by the number of years ignores compounding, because the second year starts from a larger base than the first.

Years heldAnnualised return
1+46.8%
2+21.2%
3+13.7%
4+10.1%
5+8.0%

The same 46.8 percent spread over five years is 8.0 percent a year rather than the 9.4 percent that dividing by five suggests. The gap widens with the holding period. Convert every multi-year return to an annual figure before comparing it with anything else, including a savings rate.

What costs do

The two £10 charges come to £20 on an outlay of £1,250, which is 1.6 percent of the money committed. They take 2.0 percentage points off the two-year return.

Fixed costs scale the other way. Put the same trade through with 1,000 shares instead of 100 and the two charges stay at £20 on an outlay of £12,500. The return before costs is still 48.8 percent, and the return after costs is 48.4 percent, so the drag falls to 0.4 percentage points. The same £20 costs a small account five times as much as a large one over an identical trade.

Sources of return

The £590 of gain has three parts, and each one has a different character.

SourceAmountShare of the gain
Capital gain£45076.3%
Dividends£16027.1%
Costs-£20-3.4%

The capital gain is unrealised until the shares are sold, and it depends on the sale price being there when you need it. The dividends arrived as cash along the way, which is why they are the more reliable half of the return and the half a price-only measure hides.

Yield on cost

Dividends of £160 over two years on a cost base of £1,260 come to 12.7 percent, or 6.35 percent a year. Measured against the £1,250 of share purchases alone, the same dividends are 12.8 percent. Measured per share, £1.60 on a £12.50 purchase price is 12.8 percent as well.

The three figures sit close together because the cost base sits close to the purchase value, and they answer different questions. Yield on cost tells you what the holding has paid against what you put in. Yield on the current price tells you what it pays against what the holding is worth today, and that is the figure a buyer looking at the share now would use.

Understanding Total Return vs Price Return

A common mistake is to measure investment performance using share price change alone, ignoring dividends. This price return substantially understates the actual return for dividend-paying stocks, particularly over longer holding periods.

For a stock paying a 4% dividend yield held for 10 years, dividends can account for 40% to 50% of the total return even before reinvestment. If dividends are reinvested into additional shares (dividend reinvestment, sometimes called DRIP), the compound effect is even more powerful.

The S&P 500, for example, returned approximately 10% per year in total return over the 20th century, but roughly 4 to 5 percentage points of that came from dividends. An investor who ignored dividends would have significantly understated their actual wealth creation.

Always use total return when comparing stocks, funds, or strategies, and always compare against a total return benchmark index rather than a price-only index.

Frequently Asked Questions

How do I account for currency effects on an overseas stock? If you buy shares in a foreign currency, your return depends on both the share price performance and the change in the exchange rate. Calculate your return in your home currency by converting the purchase and sale values to pounds at the exchange rate at each date. The difference between the local-currency return and the sterling return is the currency effect.

Should I include stamp duty and other costs in my return calculation? Yes. Including all transaction costs, including stamp duty (0.5% on UK share purchases), brokerage commissions, and bid-offer spreads, gives you the true net return on your capital. Ignoring costs inflates the apparent return and can make underperforming strategies appear profitable.

What is the difference between arithmetic and geometric mean return? The arithmetic mean return is the simple average of annual returns. The geometric mean (compound annual growth rate, or CAGR) accounts for compounding and gives the true annualised return. Over periods of more than one year, the geometric mean is always lower than or equal to the arithmetic mean. Use the geometric mean when assessing long-term investment performance.

How does the stock return calculator handle share splits or consolidations? Share splits and consolidations do not affect the total value of your holding, only the number of shares and the price per share. When calculating returns, adjust either your purchase price or the number of shares to account for any splits or consolidations that occurred during the holding period to ensure the calculation is consistent.


Also try these free tools related to Stock Return Calculator: - Investment Calculator