A stock investment can appear profitable because its share price rose, yet the result may change after dividends, stock splits, trading fees, taxes, currency movements, and inflation are considered. This guide provides a repeatable stock investment return calculation, including a worked example, so you can compare price return with total and real return before reviewing a portfolio or deciding whether to sell.
Overview
The simplest share price return calculation is:
Price return = (ending share price − starting share price) ÷ starting share price × 100
For example, a share bought at $50 and later sold at $62 has a price return of 24%. That figure is useful, but it is not always the investment’s complete result. It excludes any dividends received, dealing costs, taxes, currency conversion effects, and the changing purchasing power of money.
A more complete assessment separates four related measures:
- Price return: the change in the quoted share price only.
- Total return: price change plus dividends or other cash distributions. Reinvested dividends can produce a different result from dividends taken as cash.
- Net return: the result after applicable trading costs and taxes.
- Real return: the return after adjusting for inflation over the holding period.
Keeping these measures separate helps avoid misleading comparisons. A stock with a smaller price gain may have produced a stronger total return if it paid regular dividends. Conversely, a large quoted gain may be reduced by fees, tax, or a weakening home currency.
How to estimate
Start by recording the investment in the currency used for your personal financial records. List every purchase and sale separately if you bought shares at different prices. For one transaction, the basic template is:
- Record the number of shares and the purchase price.
- Add the purchase commission or transaction fee to the cash invested.
- Record the sale price and multiply it by the number of shares sold.
- Subtract selling fees and any other directly related trading costs.
- Add dividends received. If dividends were reinvested, record the additional shares and their purchase prices instead of treating them as simple cash.
- Subtract taxes only after identifying which part of the result is taxable under the rules relevant to your account and jurisdiction.
A compact formula for a cash-dividend investment is:
Net profit = sale proceeds − total purchase cost + cash dividends − selling costs − applicable taxes
Return is then:
Net return = net profit ÷ total cash invested × 100
For a holding period longer than one year, you may also want an annualised return to compare investments held for different lengths of time:
Annualised return = (ending value ÷ starting value)1 ÷ years − 1
This calculation assumes the money remained invested for the stated period. It should not be used to imply that future returns will repeat.
Inputs and assumptions
Dividends and reinvestment
Include all dividends paid during the period, not just the latest distribution. With cash dividends, add the payments to the investment outcome. With a dividend reinvestment plan, record the date, price, and number of shares purchased. Reinvestment changes both the share count and the eventual cost basis. Our dividend reinvestment calculator guide explains why these outcomes differ.
Stock splits and corporate actions
A stock split changes the number of shares and the quoted price per share, but it does not normally create an immediate gain or loss by itself. Adjust the share count and per-share cost consistently. For example, after a two-for-one split, 10 shares become 20 and a $60 purchase price becomes an adjusted $30 per share. Check records for reverse splits, spin-offs, mergers, or special distributions separately because these may require more than a simple split adjustment.
Fees, taxes, and currency
Include commissions, exchange fees, custody charges, and other costs that are directly connected to the transaction when they are known. Tax treatment varies by country, account type, holding period, income level, and the nature of the distribution. Use the calculation below as an illustration, not as tax advice, and verify the relevant rules before filing.
If the asset is priced in a foreign currency, calculate both the investment’s local-currency return and the return in your home currency. Convert the purchase cash flow, dividends, and sale proceeds using the applicable exchange rates. A stronger or weaker home currency can materially change the result even when the company’s local share price performs well.
Inflation adjustment
To estimate purchasing-power return, use:
Real return = (1 + nominal return) ÷ (1 + inflation rate) − 1
Use the cumulative inflation rate for the entire holding period, rather than simply subtracting an annual inflation figure from the investment return. Choose a clearly defined inflation measure and period, and update the calculation if the holding period changes.
Worked examples
Assume an investor buys 40 shares at $50, pays a $10 purchase fee, later sells at $62, and pays a $10 selling fee. The company pays a $1.20 dividend per share, received as cash. These figures are hypothetical and demonstrate the method.
| Item | Calculation | Amount |
|---|---|---|
| Share purchase | 40 × $50 | $2,000 |
| Total cash invested | $2,000 + $10 fee | $2,010 |
| Sale proceeds | 40 × $62 | $2,480 |
| Net sale proceeds | $2,480 − $10 fee | $2,470 |
| Cash dividend | 40 × $1.20 | $48 |
| Net result before tax | $2,470 + $48 − $2,010 | $508 profit |
The price-only return is 24%, calculated as ($62 − $50) ÷ $50. After the dividend and fees, the nominal total return is $508 ÷ $2,010, or approximately 25.3%. The difference shows why a share price alone does not describe the complete outcome.
For a purely illustrative tax sensitivity test, suppose the investor applies a hypothetical 15% rate to the $480 price gain and the $48 dividend. The assumed tax would be $79.20, producing after-tax proceeds of $2,438.80 and an after-tax return of approximately 21.3%. Actual tax calculations may use different rates, exemptions, cost-basis rules, or treatment of dividends, so this example should not be copied into a tax return.
If cumulative inflation over the holding period were 4%, the pre-tax real return would be approximately 20.4%: (1.2527 ÷ 1.04) − 1. If the holding period were three years, the corresponding annualised pre-tax return would be approximately 7.8%. These figures are different ways of describing the same hypothetical result; do not add them together.
When to recalculate
Revisit your stock return calculation whenever an input changes or a decision depends on an accurate comparison. Recalculate after each dividend, additional purchase, partial sale, stock split, merger, spin-off, fee change, or currency conversion. A portfolio review is also a useful time to reconcile the share count and cost basis with your broker statement.
Before selling, prepare at least two views: the expected result before tax and the estimated result after transaction costs and applicable tax assumptions. During tax-filing periods, confirm the figures against official account records rather than relying only on a market app’s displayed percentage.
Update the inflation adjustment when the start or end date changes, and refresh any benchmark used for comparison. If you use a spreadsheet or trading bot to track performance, keep deposits, withdrawals, dividends, and fees separate from investment gains. This prevents new cash from being mistaken for a positive return. For automated strategies, review the same measures—total return, fees, drawdown, and cash flows—rather than judging performance from the bot’s headline share price or account balance alone. See our guides to trading bot performance metrics and backtesting an algorithmic strategy for related performance checks.
Finally, save the assumptions beside each calculation: dates, prices, share quantities, dividends, fees, exchange rates, inflation period, and tax assumptions. A dated record makes the result easier to audit and gives you a reliable starting point for the next portfolio review.