Dividend reinvestment calculator: reinvest or take the cash?
Two paths, one set of numbers. On one, every dividend buys more shares. On the other, the dividends pile up as cash. Type your own yield, raise and price change, and watch the share counts and values split apart year by year.
Run the same deposits twice. On the reinvest path each dividend buys shares at that month's price. On the cash path each dividend is kept as cash. Compare shares and total value at the end of every year.
| Year | Reinvest: shares | Reinvest: value | Cash: shares | Cash: value + cash kept | Dividends that year (reinvest / cash) |
|---|
How it works, month by month: the share price is a made-up index that starts at $100 and moves by the yearly change you type. Each month your deposit buys shares at that month's price. On a payout month, every share pays the yearly dividend divided by the number of payouts. The yearly dividend per share is the yield times $100, and it goes up once a year by the raise you type.
Two paths, same inputs: on the reinvest path each dividend buys more shares at that month's price. On the cash path the dividends are kept as cash that earns nothing. Both paths buy the same deposits.
What to try
Set the share price change to 0 and reinvesting still comes out ahead, because the new shares pay dividends of their own. The gap is small in year 1 and grows each year. Set the price change above 0 and reinvesting buys shares that later cost more. Set it far below 0, like −10%, and reinvesting keeps buying a falling price, so the cash path can finish ahead. For a real company's last declared dividends, see how to calculate dividend reinvestment.
The formula
- Price in month n = $100 x (1 + yearly price change)^(n / 12)
- Each month: shares = shares + deposit / price
- Yearly dividend per share = yield x $100 x (1 + raise)^(year − 1)
- On a payout month: dividend = shares x yearly dividend per share / payouts per year
- Reinvest path: shares = shares + dividend / price. Cash path: cash = cash + dividend
- Value = shares x price + cash
- Price
- a made-up index that starts at $100, so no real stock is needed
- Yield
- the yearly dividend as a percent of that starting $100
- Raise
- how much the dividend per share goes up each year
- Payouts per year
- 12, 4, 2 or 1, from the box you pick
Worked example
- Start with $10,000, no deposits, a 4% yield, no raise and a flat $100 price. Dividends are paid quarterly, for 1 year.
- You own 100 shares. Each share pays $4 a year, so $1 a quarter.
- Quarter 1: $100 buys 1 share, so 101 shares. Quarter 2: $101 buys 1.01 shares, so 102.01. Quarter 3: 103.0301. Quarter 4: 104.060401.
- 104.060401 shares x $100 = $10,406.04. On the cash path you hold 100 shares and $400 cash, so $10,400.
$10,406.04 reinvesting and $10,400.00 with cash. The $6.04 gap is the dividends that earned dividends. The inputs are made up.
What this assumes
- The yield, the raise and the price change are the same every year. Real companies can cut or skip a dividend, and real prices move up and down.
- The share price is a made-up index that starts at $100. The yield is measured on that start, so the dividend does not change with the price unless you type a raise.
- Deposits buy shares at that month's price, and shares bought in a payout month are paid that month's dividend.
- Dividends kept as cash earn 0%. Whole-share limits, fees, taxes and discounts are left out.
- The numbers are the math on the inputs you type.
Questions
How do I calculate dividend reinvestment with monthly contributions?
Each month, add the deposit divided by the price to your share count. On a payout month, multiply your shares by the dividend per share, divide that cash by the price, and add the new shares. The calculator does it for every month.
Why does reinvesting still win when the price is flat?
With a flat price, a reinvested dividend buys exactly the shares its cash would be worth. The new shares then pay dividends of their own. The gap is small in year 1 and grows every year.
When does taking cash come out ahead?
When the price falls far enough. Reinvesting keeps buying shares at lower prices, and the cash path keeps its cash. Try a price change of −10% over 3 years.
What does the raise box do?
It lifts the dividend per share once a year. A 5% raise on a $3 dividend makes it $3.15 in year 2. It is separate from the share price change.
Are the share counts whole shares?
No. The calculator allows fractions, as many brokers do. Some brokers buy whole shares only and pay out the leftover cash.
Follow along