How our calculators work

This page documents the assumptions behind every InvestCalculator calculator so you can check our work. All amounts are in US dollars. All rates you enter are annual percentages. Results are hypothetical: they assume a constant rate of return every year, which real investments never deliver.

Monthly simulation

All calculators simulate your portfolio one month (or one contribution period) at a time rather than using a single formula. This lets us handle yearly contribution increases, different deposit timing, dividend payment schedules and taxes consistently. For simple cases the simulation produces exactly the same result as the standard closed-form formulas, and our automated tests verify this.

Converting annual rates

Contribution timing

Inflation

The inflation-adjusted balance divides the nominal balance by (1 + inflation)years. It answers: what would this amount buy in today's dollars?

Dollar cost averaging

The lump-sum comparison invests the same total amount you contributed through DCA on day one and grows it at the same constant return. Average cost per share is total dollars invested ÷ total shares bought, which equals the harmonic mean of the purchase prices when the dollar amount per purchase is fixed.

Dividends and DRIP

What we do not model

Review and updates

Calculator logic and explanations were last reviewed on 2026-11-09. Report a problem at yhhhhs233@gmail.com.