Calculating a stock return and choosing a position size are separate decisions, but both depend on a small set of repeatable inputs. This guide explains the formulas for price return, dividends, fees, currency effects, portfolio performance, and risk-based position sizing, with worked examples you can reuse after a trade, rebalance, or portfolio review.
Overview
A share price return tells you how much an investment moved before some costs and income are included. The basic formula is:
Price return (%) = (Ending share price − Starting share price) ÷ Starting share price × 100
If a share rises from $40 to $46, the price return is ($46 − $40) ÷ $40, or 15%. That figure is useful, but it is not always the investor’s actual result. Dividends, commissions, platform charges, taxes, currency movements, and the timing of deposits or withdrawals can change the outcome.
For a simple holding period, use:
Total return (%) = (Ending value − Starting value + Income − Costs) ÷ Starting value × 100
Here, income may include cash dividends received during the period, while costs can include dealing fees and other directly attributable charges. If dividends were reinvested, use the value of the additional shares at the measurement date rather than counting the same dividend twice. For a deeper treatment of reinvestment, see How to Calculate Total Stock Return With Dividends and Reinvestments.
Position sizing answers a different question: how many shares should you buy if the trade reaches your planned stop-loss? A commonly used risk-based formula is:
Number of shares = Planned cash risk ÷ (Entry price − Stop price + estimated cost per share)
Planned cash risk is often calculated as account value multiplied by the percentage of capital you are willing to lose on the trade. This method does not guarantee a maximum loss. Gaps, fast markets, partial fills, and slippage can produce a different result.
How to estimate
1. Calculate the price return
Record the actual purchase price and the price used for the review. If you bought multiple times, use a weighted average cost or calculate each lot separately. For a long position, subtract the entry price from the exit or current price, then divide by the entry price.
Example: 60 shares bought at $25 and valued at $28 have a price gain of $3 per share. The percentage return is $3 ÷ $25 = 12%. The gross dollar gain is 60 × $3 = $180.
2. Add dividends and subtract costs
Cash dividends are calculated as shares held on the relevant payment basis multiplied by the dividend per share. Add the total received to the gross result, then subtract commissions, exchange charges, custody fees, and other costs that belong to the transaction or measurement period. Keep taxes separate unless you are deliberately calculating an after-tax return, because tax treatment depends on the investor’s circumstances and location.
3. Adjust for currency where relevant
For an overseas investment, calculate performance in the currency that matters to you. Convert both the initial and final investment values using the applicable exchange rates, then apply the ordinary return formula:
Home-currency return (%) = (Ending value in home currency − Starting value in home currency) ÷ Starting value in home currency × 100
This avoids treating the local share return as the complete result. A rising share price can produce a smaller home-currency gain if the foreign currency weakens, while a currency move can increase the home-currency result even when the share itself changes little.
4. Size a position from risk
Start with account value, then choose a planned risk percentage that fits your own rules. Convert that percentage into cash. Next, measure the distance between entry and stop. Divide the cash risk by the per-share risk and round down to a whole number of shares unless fractional shares are specifically supported and appropriate.
Before placing an order, check that the resulting position also fits your maximum allocation, liquidity, diversification, and portfolio concentration limits. Risk-based sizing alone can produce a position that is too large for an illiquid or highly volatile stock.
Inputs and assumptions
Use a consistent worksheet or spreadsheet. At minimum, record:
- Number of shares, entry price, exit price or review price, and trade dates.
- Cash dividends, distribution dates, and whether income was reinvested.
- Brokerage fees, exchange costs, spread estimates, and any other transaction charges.
- Account value used for sizing and the chosen risk percentage.
- Entry price, planned stop price, estimated slippage, and the currency of each input.
- Deposits, withdrawals, transfers, and dividends from other holdings when measuring portfolio performance.
For a single, uninterrupted holding, the simple return formula is usually sufficient. For a portfolio with deposits or withdrawals, a basic beginning-to-ending calculation can be misleading because new cash may look like investment performance. Consider separating external cash flows from investment gains and, when appropriate, using a time-weighted or money-weighted method. Your broker’s statement may provide a return figure, but check which fees, income, and cash flows it includes.
Do not confuse a percentage return with an annualised return. A 12% result over several months is not automatically a 12% yearly result. If you need an annualised figure, use the holding period in years and apply: Annualised return = (Ending value ÷ Starting value) raised to the power of (1 ÷ years held), minus 1. This comparison can be distorted when the holding period is very short.
Worked examples
Example 1: Price return, dividend income, and fees
Assume an investor buys 100 shares at $40, later sells at $46, receives a $0.50 dividend per share, pays an $8 purchase fee, and pays an $8 sale fee.
| Item | Calculation | Amount |
|---|---|---|
| Starting investment | 100 × $40 | $4,000 |
| Sale value | 100 × $46 | $4,600 |
| Gross price gain | $4,600 − $4,000 | $600 |
| Dividend income | 100 × $0.50 | $50 |
| Total fees | $8 + $8 | $16 |
| Net gain | $600 + $50 − $16 | $634 |
The net return is $634 ÷ $4,000 = 15.85%. The share price return alone was 15%, so the dividend and fees changed the reported result.
Example 2: Position sizing from a stop
Suppose an account is worth $20,000, the planned risk is 0.75%, the proposed entry is $50, and the stop is $46. Planned cash risk is $20,000 × 0.0075 = $150. Risk per share is $50 − $46 = $4. Dividing $150 by $4 gives 37.5 shares, so the investor would round down to 37 whole shares. The planned price risk is $148 before commissions, spread, slippage, and any overnight gap. The position’s entry value is $1,850, which should still be checked against the investor’s allocation limit.
Example 3: Currency effect
An investor converts $1,100 of home currency into a foreign investment at an exchange rate of 1.10 home-currency units per foreign unit, receiving 1,000 foreign units of exposure. The investment later rises to 1,120 foreign units, but the exchange rate moves to 1.05. Its final home-currency value is 1,120 × 1.05 = $1,176. The local-currency return is 12%, while the home-currency return is ($1,176 − $1,100) ÷ $1,100 = 6.91%. The exact calculation depends on the rate convention and the fees paid.
When to recalculate
Recalculate a stock return whenever you sell, receive a dividend, add or remove shares, pay a material fee, or change the currency in which you evaluate the investment. Update a position-size calculation when the entry price, stop, account value, risk limit, or estimated trading cost changes. A stock catalyst such as earnings, a corporate action, dilution, or a major price move may also invalidate the original stop and risk assumption. Our guides to stock dilution and stock catalysts provide useful context for those reviews.
For a practical review, save the original inputs before the trade, then compare them with the final execution. Check four points: the net return after costs, the actual position risk, the effect of dividends or currency, and whether the trade remained within your portfolio limits. If you use a trading bot, apply the same discipline to its results: include fees and slippage, distinguish realised from unrealised performance, and compare risk as well as return. The trading bot performance metrics guide and backtesting workflow can help structure that review.
These calculations are decision tools, not forecasts. Revisit the inputs whenever market prices, benchmarks, exchange rates, or your own risk limits change, and retain a dated record so each new result can be compared on a like-for-like basis.