Sub topic 9
Reinvesting dividends and compounding
This chapter assumes you can calculate dividend yield and dividend growth rate, and that you know the difference between price return and total return. It covers what reinvestment does mathematically, how to model it, and where a simple model misleads you.
What reinvestment does
When a company pays a dividend, you can take the cash or use it to buy more shares. If you buy more shares, the next dividend is paid on a larger share count. Those payments buy still more shares. This loop is compounding.
Two forces feed the loop:
- Share count growth. Each payment adds shares, at a rate roughly equal to the current yield.
- Dividend per share growth. If the company raises its dividend, each share, old and new, pays more.
The second force is why reinvestment pairs well with dividend growth stocks. A growing dividend and a growing share count multiply each other.
The arithmetic
In a single period, reinvesting at the current price changes your share count by this factor:
new shares = old shares x (1 + dps / price)Here dps is dividend per share, and dps / price is the current yield. Over many periods you multiply these factors together. If the yield stays near 4% and nothing else changes, your share count grows about 4% a year. Your income grows by that rate plus any dividend increases.
A useful approximation for a position with reinvestment is that its value grows at about yield + price growth. This is total return. For a company whose valuation stays constant, price growth roughly follows earnings growth, and dividend growth follows earnings growth if the payout ratio is stable. So total return is roughly yield + dividend growth. This approximation breaks when valuation changes, which section "Where the simple model breaks" covers.
Modeling it in Python
The topic's reinvestment function spends each year's dividends on new shares at that year's price. It then raises the price and dividend for the next year.
def reinvest(shares, price, dps, years, price_growth, dividend_growth):
for _ in range(years):
shares += shares * dps / price
price *= 1 + price_growth
dps *= 1 + dividend_growth
return shares
print(round(reinvest(100, 50.0, 2.0, 10, 0.05, 0.06), 1))The setup is 100 shares at $50, a $2.00 dividend (4% yield), 5% yearly price growth and 6% yearly dividend growth. After 10 years of reinvestment you hold roughly 150 shares. Your share count rose about 50% without you contributing any new money.
Compare that with taking the cash:
| Measure after 10 years | Take cash | Reinvest |
|---|---|---|
| Shares held | 100 | about 150 |
| Share price | about $81.44 | about $81.44 |
| Position value | about $8,140 | about $12,260 |
| Cash dividends collected | about $2,640 | $0 |
| Total (position + cash, no interest on cash) | about $10,780 | about $12,260 |
| Annual dividend income in year 11 | about $358 | about $539 |
The last row matters for income investors. Reinvesting raised the income stream by about half, because both the share count and the dividend per share grew.
Tracking the two paths side by side
A function that returns only the final share count hides the difference between the two strategies. This version returns both outcomes for comparison. It uses the same timing as above: dividends are paid at the start of each year at that year's price.
def compare(shares, price, dps, years, price_growth, dividend_growth):
held = shares # shares if you take cash
drip = shares # shares if you reinvest
cash = 0.0
for _ in range(years):
cash += held * dps
drip += drip * dps / price
price *= 1 + price_growth
dps *= 1 + dividend_growth
return {
"cash_value": held * price + cash,
"drip_value": drip * price,
"drip_shares": drip,
"next_year_income_cash": held * dps,
"next_year_income_drip": drip * dps,
}
result = compare(100, 50.0, 2.0, 10, 0.05, 0.06)
for key, value in result.items():
print(f"{key}: {value:,.1f}")Try changing price_growth to 0.0 or to 0.10. With flat prices, reinvestment buys at a constant price, so share growth is steady. With fast price growth, each later purchase buys fewer shares, so the share-count advantage shrinks, though the dollar value still grows.
Why timing and price matter
Reinvestment buys at whatever the price is on the day. That has consequences.
- Falling prices help the share count. If the price drops and the dividend holds, you buy more shares per dollar. Your later income rises faster. This works only if the dividend survives.
- Rising prices reduce the share-count effect. You still compound, but each dividend buys fewer shares.
- Automatic reinvestment ignores valuation. A dividend reinvestment plan (DRIP) buys at the market price even when the stock looks expensive. Some investors turn it off for an overvalued holding and send the cash elsewhere.
Where the simple model breaks
The model above ignores several real effects. Each can change your result.
- Taxes. In many countries reinvested dividends are still taxable income in the year they are paid, even though you never received cash. The tax bill must come from somewhere else, or from selling shares. Rules vary by country and account type, and a tax-sheltered account may remove this issue entirely. The taxes chapter covers this.
- Cost basis. Each reinvestment is a separate purchase with its own cost. When you eventually sell, you need those records to compute gains correctly. Most brokers track this, but check that yours does. Missing basis can cause you to pay tax twice on the same money.
- Fractional shares. Many brokers reinvest to fractions of a share. If yours does not, small dividends leave leftover cash. This is a minor drag on a small account.
- Fees and spreads. A broker-run DRIP is often free. Manual purchases may carry commissions, which can be large relative to a small dividend.
- The ex-dividend price drop. On the ex-dividend date, a stock's price typically falls by about the dividend amount. Reinvestment does not create value from nothing. It converts a payout into more ownership at a reduced price.
- Changing yield. The model holds growth rates fixed. In reality a rising price lowers yield, and a dividend cut breaks the whole sequence.
- Concentration. Automatic reinvestment adds to your biggest winners. Over a decade a position can grow far beyond its intended weight.
DRIP versus manual reinvestment
| Approach | Strength | Weakness |
|---|---|---|
| Broker DRIP (automatic) | No effort, no commission, fractional shares are common | Buys into the same stock regardless of valuation or portfolio weight |
| Manual reinvestment | You choose where the cash goes, which supports rebalancing | Requires discipline, may cost commissions, cash sits idle meanwhile |
| Take cash for spending | Immediate income | No compounding, and the share count stays fixed |
A common middle path is to let dividends accumulate as cash and direct them each quarter to the holding that is furthest below its target weight. That keeps the compounding benefit without growing your largest position forever.
Compounding needs time
Compounding looks modest in early years and steep later. A rule of thumb: at a growth rate of g percent, your amount doubles in about 72 / g years. At a combined 10% yield-plus-growth, that is about seven years. At 6%, it is about twelve.
Because of this, the starting yield matters less than the combination of yield, growth and time. A 2% yield growing at 10% a year can beat a 6% yield that never grows, given a long horizon. This is the logic behind dividend growth investing, and it only holds if the growth is sustained, which is why the safety chapters come first.
Common mistakes
- Treating reinvested dividends as free of tax.
- Comparing the DRIP and cash paths without counting the cash you collected in the second path.
- Assuming past price growth will continue. The model's inputs are guesses.
- Ignoring that a reinvested dividend in a falling stock can compound losses.
- Failing to rebalance, so one reinvested holding dominates the portfolio.
Exercise
An investor owns 200 shares priced at $40, paying a $1.60 annual dividend. She reinvests the whole dividend at the current price. (a) How many shares does she add in the first year? (b) The price then rises 5% and the dividend rises 8%. Using the same one-step formula, how many shares does she add in the second year, starting from her new total?
Show answer
(a) Yield is 1.60 / 40 = 4%, so she adds 200 x 0.04 = 8 shares, giving 208. (b) New price is 40 x 1.05 = $42.00 and new dividend is 1.60 x 1.08 = $1.728. The second-year yield is 1.728 / 42 = about 4.114%. She adds 208 x 0.04114 = about 8.56 shares, for roughly 216.6 shares in total. The yield rose slightly because the dividend grew faster than the price.
Exercise
Using the compare function, a holder expects a 3% starting yield, 4% price growth and 7% dividend growth over 15 years. Which input changes would you test to see how sensitive the reinvestment advantage is, and why might a high price_growth reduce the share-count advantage while still raising dollar value?
Show answer
Test pricegrowth (for example 0.0, 0.04, 0.10), dividendgrowth (for example 0.0, 0.07, 0.10) and the starting yield. A higher price_growth means each later dividend buys fewer shares, so the share count grows more slowly. The position value still rises because each share is worth more. The share count advantage of reinvesting comes mainly from buying cheaply relative to the dividend, which is strongest when the price is flat or falling and the dividend keeps growing.