The sentence "$100 in 2000 is worth $X today" hides a choice that changes the answer: which two CPI observations you divide. Pick December 2000 and December 2024, or the 2000 and 2024 annual averages, and you get two defensible but different numbers.
The formula
amount_today = amount_then * (CPI_today / CPI_then) CPI here is an index, not a currency amount, so the ratio is dimensionless. The U.S. Bureau of Labor Statistics publishes both monthly values and annual averages for CPI-U; the series and the averaging convention must be the same on both sides.
Worked example with annual averages
BLS annual-average CPI-U: 2000 = 172.2, 2024 = 313.689.
factor = 313.689 / 172.2 ≈ 1.82177 $100 in 2000 -> 100 * 1.82177 ≈ $182.18 in 2024 dollars The reverse direction is a different division, not the same operation with the sign flipped:
$100 in 2024 -> 100 * 172.2 / 313.689 ≈ $54.89 in 2000 dollars function adjust(amount, cpiThen, cpiNow) { if (!(cpiThen > 0) || !(cpiNow > 0)) throw new RangeError('CPI must be positive'); return amount * cpiNow / cpiThen; } Three edge cases that matter
- Mismatched series. CPI-U and CPI-W are different populations; core CPI excludes food and energy. Mixing them produces a number that looks precise and means nothing.
- Mismatched frequency. A monthly index divided by an annual average introduces seasonality. Either use both annual averages or both same-month observations.
- A personal basket is not CPI-U. Your own expenses have different weights. An index ratio answers "same basket of average urban consumers", not "what I actually spent".
Rounding is worth handling too: keep full precision through the division and round only the displayed currency value. Rounding the CPI ratio to two decimals before multiplying shifts a $100 comparison by cents to dollars depending on the span.
You can check other year pairs and see the factor explicitly in the inflation calculator.
Related reading
- Inflation: how a percentage becomes a price — the same ratio explained from the purchasing-power side.
- Why inflation creates uncertainty in an economy — a worked Spanish-language example with a $100 comparison.
YMYL note: CPI-based conversions are informational estimates for a national average basket, not financial or tax advice. Use official tables for filings or contractual indexation.