A rate-based calculator, not a CPI lookup
Official inflation is measured with a consumer price index: a statistics agency prices a fixed basket of goods and services at regular intervals and publishes the change. No index data is built into this page. It works from a single yearly rate that you supply and assumes that rate applies evenly to every year. For the future that is all anyone can do, since future inflation is unknown. For the past, look up the published average rate for your country and period, or use the “Find the rate” option with two actual prices.
The inflation formulas
Inflation compounds. Each year’s rise is applied to prices that have already risen, so the arithmetic is the same as compound interest.
Future cost = cost today × (1 + r)n
Value today of a past amount = past amount × (1 + r)n
Buying power of an amount after n years = amount ÷ (1 + r)n
Average yearly rate between two prices: r = (later price ÷ earlier price)1 ÷ n − 1
r is the yearly inflation rate as a decimal (3% is 0.03) and n is the number of years. The first two formulas are the same calculation pointed in different directions: both carry an amount forward through n years of rising prices. The third runs it backwards, and the fourth solves the first for r.
Worked examples
- Future cost. Something costs $100 today. At 3% inflation for 20 years, 1.0320 = 1.806111, and $100 × 1.806111 = $180.61.
- Buying power. A $100 note kept in a drawer for those 20 years will buy what $100 ÷ 1.806111 = $55.37 buys today. It has lost about 45% of its buying power even though the price level rose by about 81%. The two percentages are never equal, because one divides and the other multiplies.
- Past amount. A salary of $50,000 twenty years ago, with inflation averaging 2.5% since: 1.02520 = 1.6386164, and $50,000 × 1.6386164 = $81,930.82 in today’s money.
- Finding the rate. A coffee went from $4.00 to $6.50 in 15 years. $6.50 ÷ $4.00 = 1.625. The 15th root of 1.625 is 1.032897, so the average rate is 3.29% a year.
Common mistakes
Dividing the total rise by the number of years
The coffee rose 62.5% in total, and 62.5 ÷ 15 = 4.17%. That is not the yearly rate. Because each rise builds on the last, a smaller rate of 3.29% is enough to compound to 62.5% over 15 years. Always take the root.
Treating one percentage point as small
Over 30 years, 2% inflation turns $100 into $181.14 and 3% turns it into $242.73. A one-point difference in the assumed rate changes a long-range answer by a third, so test more than one rate before relying on a figure.
Subtracting inflation from an interest rate
If savings earn 7% while prices rise 3%, the real gain is not exactly 4%. It is 1.07 ÷ 1.03 − 1 = 3.88%, because the interest is paid in dollars that are themselves worth less. Subtraction is a fair approximation at low rates and a poor one at high rates.
How to read the result
An average rate hides the path. Prices that rise 3.29% a year on average may have been flat for a decade and then jumped, and the result says nothing about which. The table under the result shows a smooth path only because that is what a single rate implies.
Headline inflation is also an average across a whole basket. Your own costs can rise faster or slower than the headline figure depending on what you spend on, so for a specific item such as rent, fees or insurance, it is better to find that item’s own rate from two known prices and project with that.
A useful benchmark: at 3% a year prices double in about 23.45 years. To keep its buying power, an $80,000 salary would need to reach $92,741.93 after five years of 3% inflation. A negative rate is allowed and represents deflation, where prices fall and each dollar buys more.