Calculator

Dividend reinvestment calculator

Enter the shares held, the price, the dividend per payment and how often it is paid, for a number of years. The calculator steps through every payment and adds the shares each dividend would buy. The arithmetic is exact.

Calculator

Digits and a decimal point only, no thousands separators. Dates are written YYYY-MM-DD. Fields marked optional can stay empty.

Shares held at the end
–
Shares added by reinvesting
–
Dividends reinvested over the period
–
Price per share at the end
–
Value of the shares at the end
–
Value of the shares at the start
–

Arithmetic only. Not tax, financial or investment advice. Nothing you enter leaves your browser.

In short. With reinvestment, each dividend buys more shares, and those shares earn the next dividend. The calculator pays the dividend on the shares held, divides it by the price and adds the new shares before the next payment. 100 shares over 10 years under the example settings end at 168.078077.

The formula

at each payment: dividend paid = shares × dividend per share
shares bought = dividend paid ÷ price
shares after = shares + shares bought

  • Each year after the first, the dividend per share and the price change by the percentages entered. Leave them empty for no change.
  • Every running figure is held to six decimal places and rounded half up after each step, so the same inputs always give the same result. A fraction of a share is allowed.
  • The price is held constant within a year, and the shares are bought at that price on each payment date.
  • The input limits are six decimal places for shares, price and dividend, four for the percentages, 1 to 12 payments a year and 1 to 50 years.

Worked example

One invented holding, with the figures the calculator gives for it. The "Load the example" button fills in the same values. Each figure was produced at build time by the function the calculator runs.

Inputs
FieldValue
Shares held at the start100
Price per share at the start40
Dividend per share, per payment0.50
Payments per year (1 to 12)4
Years (1 to 50)10
Yearly change in the dividend (%)3
Yearly change in the price (%)2
Results
FigureResult
Shares held at the end168.078077
Shares added by reinvesting68.078077
Dividends reinvested over the period3011.66
Price per share at the end47.8037
Value of the shares at the end8034.75
Value of the shares at the start4000.00

Rounding and exactness

  • Rounding rule: half up. Money is shown to 2 decimals, per-share amounts to 4, and percentages and ratios to 2. Each figure is rounded once, from the exact result.
  • No floating point. Each number you type is read as exact decimal text and held as a scaled whole number (BigInt). Sums, products and divisions are whole-number arithmetic.
  • Input limits. Digits and one decimal point, at most 40 characters per number, and digits only for counts. Anything else is flagged and never guessed.
  • Tested against a reference. The function is run against 22 test vectors for this calculator (plain cases, rounding ties, very large numbers, invalid input), computed independently with Python's decimal module.

What it does not do

  • Taxes, withholding, commissions and currency conversion are not included.
  • It assumes fractions of a share can be bought. Whether a given broker allows that is a separate matter.
  • The yearly changes are fixed percentages of zero or more. Real dividends and prices do not follow a smooth path, and the calculator does not forecast them.
  • The result describes the arithmetic of the settings entered. It does not say what will happen.

Common questions

Why does the share count grow faster over time?
Each batch of new shares earns dividends from the next payment on, so later payments are paid on a larger holding.
Can the price or the dividend fall?
The yearly changes accept zero or more. To see the effect of a lower price, enter a lower starting price: a lower price buys more shares for each dividend.
Does the final value include the dividends?
The final value is the final shares times the final price. The dividends were used to buy shares, so they are inside that figure, and the total reinvested is shown separately.
Where do the inputs come from?
The shares and prices appear on broker statements, and dividends received appear as income rows.

Where the numbers come from

Dividends received appear on broker statements as income rows. Statementizer reads supported statement PDFs into a spreadsheet, with dividends in their own rows.

See how Statementizer works

Sources

The calculation is arithmetic, so there is no regulator or vendor to cite for it. These are the references for how it is implemented and checked.

Verified on 2026-11-12 by the Statementizer Team.