Data & methodology

This page is the authoritative description of what the calculator does and where the numbers come from.

Sources in this version

World Bank Commodity Price Data (The Pink Sheet)

U.S. Bureau of Labor Statistics, Consumer Price Index for All Urban Consumers (CPI-U)

FHFA House Price Index® (Purchase-Only, U.S., not seasonally adjusted, monthly)

U.S. Department of the Treasury, Daily Treasury Par Yield Curve Rates (3-month)

Inflation adjustment

The CPI-U series (CUUR0000SA0, not seasonally adjusted) is used in two places: the inflation calculator, and the “Adjust for inflation” toggle on asset and compare pages. Toggle results are expressed in start-month dollars: each later nominal value is multiplied by CPI at the start month divided by CPI at that later month. Later monthly contributions are deflated the same way before they are added to “real invested.” Lump-sum real CAGR uses the deflated ending value and the original outlay.

What we compute

units = initial amount ÷ first monthly price on or after the start date each later month (optional): units += monthly contribution ÷ that month’s price end value = units × latest monthly price lump-sum CAGR = (end value ÷ initial) ^ (1 / years) − 1, with years = actual days ÷ 365.25 with contributions: money-weighted return via XIRR on the cash-flow dates real end value (start-month $) = nominal end value × (CPI start ÷ CPI end)

Missing months are skipped. The dividend-reinvestment toggle stays disabled because none of the current series is a dividend total-return index.

Sources we considered and did not use

Individual stocks and equity ETFs (AAPL, MSFT, SPY, QQQ, and similar) and Bitcoin and Ether are therefore not included. They can be added later if a clearly licensed (or paid) source is obtained, without redistributing a prohibited feed.

Unit tests for the math live in tests/calc.test.js and are run with Node’s built-in test runner. Data files are refreshed with python3 tools/refresh-data.py.

Data: World Bank Commodity Price Data (CC BY 4.0), FHFA HPI®, U.S. Treasury yields, BLS CPI-U. Historical illustration, not financial advice; ignores fees, storage and taxes. Details