How to use the total return calculator
- Enter the number of shares and the years held. Fractions of a year are fine: 2.5 means two and a half years.
- Enter the buy price and the current or sale price per share. Use your actual purchase price from your broker, not an adjusted historical price, because adjusted prices already fold dividends in and would count them twice.
- Enter the dividends in one of two ways. Annual dividend per share is quickest when the payout has been steady: a $0.40 quarterly dividend is $1.60 a year. Total received per share is more precise when the dividend changed: add up every payment per share from your account history.
- Choose what happened to the dividends. Taken as cash keeps them aside. Reinvested uses each one to buy more shares, as a dividend reinvestment plan (DRIP) does.
The results split the total return into the part from the share price and the part from dividends. The chart compares three paths for the same investment: price only, dividends taken as cash, and dividends reinvested.
The total return formula
With the dividends taken as cash, total return is simple arithmetic:
Dividend return = D ÷ P0
Total return = (P1 − P0 + D) ÷ P0
Annualized total return = (1 + Total return)1 ÷ years − 1P0 is the buy price, P1 the current or sale price and D the dividends received per share over the whole holding period (annual dividend × years if you entered it that way).
With reinvestment, each dividend buys more shares, and those shares earn dividends of their own:
Total return = (Final shares × P1) ÷ (Initial shares × P0) − 1d is one quarterly dividend per share and Pt the share price on the payment date. The dividend return is then the total return minus the price return.
The simplification. The calculator does not know the real price on each payment date, so it assumes an even pace: the dividends are paid in equal quarterly amounts, and the share price moves along a smooth path from the buy price to the sale price. Real prices zigzag, so reinvesting through a dip ends a little higher than this estimate and reinvesting near a peak a little lower. For an exact figure, use the share count your broker reports.
A worked example
You bought 100 shares at $50, a cost of $5,000. Over 5 years the price rose to $64, and the company paid $1.60 per share each year, $8.00 per share in all.
The price gain alone is +28.00%. The dividends add $800.00, a dividend return of +16.00%. Together, the total return is +44.00%, or +7.57% a year, against +5.06% a year from the price alone. The position plus the cash dividends is worth $7,200.00.
Had you reinvested every dividend, you would own 15.07 extra shares, and the total return rises to +47.30% (+8.05% a year), with the holding worth $7,364.78.
The dividends yield an average of 3.20% a year on the original cost, a modest payout, yet they account for 36% of the total gain.
Why dividends matter more over longer periods
Price return compounds whether you reinvest or not. Dividends compound only if you reinvest them. The longer the holding, the wider the gap. The table keeps the same yearly price growth (+5.06%) and the same $1.60 dividend per share, and changes only the holding period:
| Holding period | Price return | Total return, cash | Total return, reinvested | Annualized, reinvested |
|---|---|---|---|---|
| 5 years | +28.00% | +44.00% | +47.30% | +8.05% |
| 10 years | +63.84% | +95.84% | +110.42% | +7.72% |
| 20 years | +168.44% | +232.44% | +301.70% | +7.20% |
After 20 years, the $5,000 grows to $16,622.00 with dividends taken as cash and to $20,085.10 with them reinvested. A price chart alone leaves out a large part of what shareholders earned.
The table also shows a quieter effect. Because the dividend per share stays at $1.60 while the price rises, the yield on the rising price shrinks, and the annualized total return with cash dividends drifts down toward the price return: +7.57% over 5 years, +6.95% over 10 and +6.19% over 20. Companies that raise their dividend every year avoid that drift, which is the case for dividend growth investing. Our dividend growth calculator models a rising payout.
When dividends cushion a falling price
Dividends are paid whatever the share price does, so they soften a poor result:
| Sale price | Price return | Total return, cash | Total return, reinvested |
|---|---|---|---|
| $64 (example) | +28.00% | +44.00% | +47.30% |
| $50 (flat) | 0.00% | +16.00% | — |
| $40 (down 20%) | -20.00% | -4.00% | -4.28% |
A stock that ends where it started still returned +16.00% through dividends. And a -20.00% price fall becomes a loss of only -4.00% once the dividends are counted. Notice, though, that reinvesting did slightly worse than cash in the falling case: shares bought with dividends along the way lost value as well. Reinvestment pays off only if the price is higher later.
Common mistakes
- Using an adjusted price as the buy price. Charts and data sites often show prices adjusted for dividends. Combining an adjusted price with the dividends you received double-counts them.
- Forgetting special dividends. One-off payouts belong in the total. Use the total received option so they are included.
- Ignoring splits. If the stock split while you held it, use split-adjusted prices and dividends per share consistently.
- Comparing total return with a price index. Compare a stock’s total return with an index’s total return, not with the index level, which excludes dividends.
What this calculator does not include
- Taxes. In the US, dividends are taxed in the year they are paid even when reinvested, so a taxable DRIP account keeps less than the figure shown. Tax on the price gain is due when you sell.
- Foreign withholding tax on dividends from non-US companies, and any fees or commissions.
- The exact reinvestment prices. As explained above, reinvestment is modeled at an even pace rather than at the actual prices on each payment date.
- Inflation. The result is a nominal return. Our real return calculator converts it into purchasing power.