Inspect the Arithmetic — Inflation-Adjusted Investment Calculator

Version 1.0
Last updated: March 2026

Transparent arithmetic is the operating system of this calculator.

This document publishes the formulae, computational structure, and assumptions used to generate the outputs displayed on the calculator page.

No opinions. No hidden assumptions. Just arithmetic.

Purpose

This calculator estimates the future value of an investment in both nominal (future dollars) and real (inflation-adjusted, today's dollars) terms. It uses a starting balance, ongoing contributions, a time horizon in years, an expected nominal annual return, and an assumed annual inflation rate. The primary output is the real (inflation-adjusted) ending balance; the nominal balance is shown for comparison.

It is an educational tool only. It does not replicate a full financial plan, tax system, or specific account rules. It does not apply taxes, fees, contribution limits, or asset allocation constraints.

Definitions

Let:

Core Equations

1. Real Return from Nominal Return and Inflation

The calculator first converts the user-supplied nominal annual return and inflation rate into a real annual return:

rreal,annual = (1 + rnom) / (1 + π) − 1

If π ≤ −100% (an edge case guard), the calculator skips this adjustment and uses rnom directly.

2. Period Return

Contributions can be monthly or yearly, but compounding is always modeled at the real annual rate translated into the matching period rate:

m = 12 (monthly contributions) or 1 (yearly contributions)
rreal,period = { (1 + rreal,annual)1/12 − 1, if m = 12;
  rreal,annual, if m = 1. }

3. Period-by-Period Simulation (Real Dollars)

The calculator runs a simple simulation in real (today's) dollars over T = m × Y periods. Contributions are entered in today's dollars and treated as fixed real amounts; inflation is accounted for through the real return.

Let B0 = S. For each period t from 0 to T − 1:

1. If contributions are at the beginning of the period:
  Bt ← Bt + C
2. Apply real growth for the period:
  Growtht = Bt × rreal,period
  Bt ← Bt + Growtht
3. If contributions are at the end of the period:
  Bt ← Bt + C

The calculator tracks cumulative contributions in real dollars as the sum of all C applied over the simulation, and real growth as RealFinal − S − (total real contributions).

4. Real and Nominal Final Balances

After T periods, the real ending balance is simply the simulated balance:

RealFinal = BT

The nominal ending balance is derived by re-applying the inflation assumption over the whole horizon:

InflationFactor = (1 + π)Y
NominalFinal = RealFinal × InflationFactor

Schedule and Breakdown

The calculator builds a real (inflation-adjusted) accumulation schedule from the same period-by-period simulation:

Inputs, Parsing, and Edge Cases

Implementation Notes

If any discrepancy is identified between this documentation and the live calculator behavior, the JavaScript engine (simulateInvestment() in script.js) is the source of truth. This page will be updated to match the engine.