The formula
Each dividend payment (f times a year):
price = price × (1 + price growth)^(1/f); dividend per share = DPS × (1 + dividend growth)^(1/f)
dividend received = shares × DPS ÷ f × (1 − tax)
new shares = (dividend received + contribution) ÷ price
Yield on cost = annual dividends ÷ total amount invested × 100
Without DRIP: dividends are kept as cash and only contributions buy shares
Worked example
- Invest $10,000 in shares at $50 (200 shares) with a 3.5% yield paid quarterly, and add $100 a month.
- Dividends grow 5% a year and the share price grows 5% a year. Every dividend buys more shares at the current price.
- After 20 years you own 864.59 shares worth $114,701, having invested $34,000.
- $33,829 of dividends were reinvested, and the portfolio now pays $4,015 a year, an 11.81% yield on your $34,000.
- Taking dividends as cash instead leaves $90,729 (shares plus cash), so reinvesting adds $23,972.
What a DRIP does
A dividend reinvestment plan (DRIP) uses each dividend payment to buy more shares instead of paying it out as cash. Those extra shares earn their own dividends next time, so both your share count and your income compound. Most US brokers offer automatic reinvestment, often with fractional shares and no commission, and some companies run DRIPs directly. With funds, choosing accumulation units (common in the UK and Europe) or the growth option of an Indian mutual fund achieves the same effect.
Three engines of growth
A dividend portfolio grows in three ways at once: the share price rising, dividends growing as companies raise payouts, and reinvestment adding shares. In the example the share count rises from 200 to about 865, partly from the monthly contributions and partly from reinvested dividends. Because dividends grow 5% a year and you hold more shares each year, annual income rises far faster than the original 3.5% yield suggests. That's what yield on cost measures: today's income as a percentage of what you put in.
Choosing realistic inputs
- Dividend yield: broad US indices often yield 1–2%; dividend-focused funds and utilities 3–5%. Very high yields can signal a dividend cut ahead.
- Dividend growth: mature dividend payers have historically raised payouts by around 4–7% a year. High yielders often grow more slowly.
- Price growth: for a diversified portfolio, a few percent a year above inflation is a reasonable long-run assumption, not a guarantee.
Total return is roughly yield plus growth. In the example that's 3.5% + 5% = 8.5% a year.
Taxes on reinvested dividends
Reinvesting doesn't avoid tax. In a taxable US account, dividends are taxed in the year they're paid even if they buy shares, at 0–20% for qualified dividends or ordinary rates otherwise, and each reinvestment adds to your cost basis. Holding dividend stocks in an IRA, 401(k), ISA, TFSA, RRSP or similar shelter avoids that annual drag. Enter your tax rate to see its effect. Even 15% tax noticeably slows compounding over 20 years.
DRIP vs taking the cash
Reinvesting is usually best while you're building wealth, because it keeps all your money working and buys more shares when prices are low. Taking dividends as cash makes sense when you need the income, or when you want to direct it to other investments to rebalance your portfolio. The comparison line in the chart assumes cash dividends are kept but not invested, the typical cost of letting payouts sit idle in an account.
Example: reinvesting for longer
Time matters most. Extend the default example from 20 to 30 years and the portfolio grows from about $115,000 to $283,000, while annual dividend income rises from about $4,000 to $9,900, even though you've only added $12,000 more. Both the share count and the dividend per share keep rising. Dividends reinvested in the early years do the most work, so starting early beats starting bigger later.
Try a 0% dividend growth rate as well: the difference shows how much of a dividend portfolio's long-run income comes from companies raising their payouts, not just from the starting yield.
Related tools
For growth stocks or funds that don't pay dividends, our compound interest calculator models total return directly. To test regular investments at changing prices, use the dollar-cost averaging calculator, and plan your retirement income with the FIRE calculator.