How it's calculated
Let P0 = today's share price, y = dividend yield, gd = dividend growth, gp = price growth and f = payments per year. Period j = 1 … f·years falls in year k.
Share price at payment j: price_j = P0 · (1 + g_p)^(j / f)
Annual dividend per share, yr k: DPS_k = P0 · y · (1 + g_d)^(k − 1)
Dividend paid at payment j: shares_before · DPS_k / f
After-tax dividend: dividend · (1 − tax rate)
Reinvested shares bought: after-tax dividend / price_j
Contribution shares bought: (yearly contribution / f) / price_j
- The yield you enter applies to today's price. The dividend per share then grows at the dividend growth rate (raised once a year), while the price grows smoothly at its own rate, so the yield on the current price drifts if the two rates differ.
- Each payment is calculated on the shares you held just before it, then reinvested at that day's price. Contributions are invested on the same dates, after the dividend, so they start earning from the next payment.
- Not reinvesting: dividends are held as cash that earns nothing, and "total value" = shares × price + cash.
- Fractional shares, no commissions, no dividend cuts, constant growth rates. Real dividends and prices are not this smooth.
- Check: if price and dividends grow at the same rate g with annual payments, shares multiply by exactly 1 + y/(1+g) each year; with no growth at all, by 1 + y. Our automated tests confirm both, and every scenario is also recomputed by a separate Python program using decimal arithmetic.
Worked examples
1. No growth: dividends alone
100 shares at $50 with a 4% yield paid once a year, price and dividend flat, all dividends reinvested. Each year the dividend buys 4% more shares, so after 10 years you own 100 × 1.0410 = 148.0244 shares worth $7,401.22. All $2,401.22 of the gain came from reinvested dividends. Load this example
2. Growing dividends, reinvest vs. cash
$10,000 at $50 a share (200 shares), 3% yield paid quarterly, dividends growing 5% a year, price growing 4% a year, plus $1,200 invested each year for 20 years. Reinvesting: $94,737.88 and 864.74 shares, paying about $3,441.63 over the next year. Taking dividends as cash instead: $78,552.98 in total (531.02 shares plus $20,376.43 cash). Load this example
3. Same as #2 in a taxable account
With a 15% tax on dividends (you enter your own rate) and the tax paid out of each dividend, the reinvested total is $87,888.60, with $3,981.11 of tax paid over 20 years. Load this example
Frequently asked questions
How does a dividend reinvestment calculator work?
It simulates every dividend payment: the dividend is your share count times the dividend per share, and if you reinvest, it buys more shares at that day's price. Those new shares then earn dividends of their own, which is where the compounding comes from.
What is the difference between dividend growth rate and share price growth?
Dividend growth is how fast the company raises its payout per share (many established dividend payers have raised theirs by a few percent a year, but raises are never guaranteed). Price growth is how fast the stock price rises. They often move together over long periods but don't have to; this calculator lets you set them separately.
What is yield on cost?
The dividends received in a year divided by the total money you put in. If dividends grow, yield on cost rises over time even if the current yield stays the same. It is shown in the table.
Are reinvested dividends taxed?
In a regular taxable US account, yes: dividends are generally taxable in the year paid even if reinvested. In tax-advantaged accounts such as IRAs and 401(k)s they generally are not taxed when paid. Enter your own rate in the optional tax field; this site doesn't give tax advice.
Should I reinvest dividends or take the cash?
That depends on your goals and isn't something a calculator can decide. Reinvesting buys more shares and usually leads to a larger balance; taking cash gives you income now. The calculator shows both outcomes so you can compare.