Home › Guides › Markets & the economy
Inflation rate formula, with worked examples
The inflation rate is one small piece of math. Learn it once and you can check any headline number yourself.
The formula
Inflation rate = (later index − earlier index) ÷ earlier index × 100
That is the Bureau of Labor Statistics (BLS) method. The BLS steps, in its own terms: subtract the earlier index value from the later one, then divide that difference by the earlier index value, and finally multiply the result by 100.
The "index" is the CPI, the Consumer Price Index. It tracks the price of a big basket of things people buy. It has no unit. It was set to 100 for 1982 to 1984. A higher number just means higher prices.
Want the answer without the math? Use the CPI inflation calculator. Pick two years and it does every step below. To practise, try the ten inflation example problems with answers.
Step by step
- Find the CPI for the earlier date.
- Find the CPI for the later date.
- Subtract: later minus earlier.
- Divide by the earlier number.
- Multiply by 100. That is the percent.
One rule from the BLS: to find the change over a year, compare the same month to the same month. December to December works. January to December does not.
Example 1: one decade
The index averaged 218.056 in 2010 and 258.811 in 2020.
258.811 − 218.056 = 40.755. Then 40.755 ÷ 218.056 = 0.1869. Times 100 is 18.7%.
Prices rose 18.7% over the ten years.
Example 2: a bigger gap
The index averaged 130.658 in 1990 and 172.2 in 2000.
172.2 − 130.658 = 41.542. Then 41.542 ÷ 130.658 = 0.3179. That is 31.8%.
Example 3: from dollars, not percent
A hypothetical $50 basket in 1990. What is the same basket in 2024?
Multiply by the later index, then divide by the earlier one: 50 × 313.689 ÷ 130.658 = $120.04.
The 1990 and 2024 index values are 130.658 and 313.689.
Example 4: going backward
What did a 2024 $100 look like in 2000? Flip the ratio: 100 × 172.2 ÷ 313.689 = $54.90.
So a dollar in 2024 buys what about 55 cents bought in 2000.
Example 5: a single year
The BLS prints its own example for one year. December 2022 CPI was 296.797. December 2021 was 278.802.
296.797 − 278.802 = 17.995. 17.995 ÷ 278.802 = 0.065. That is 6.5%. It matches the December-to-December number for 2022 in our US inflation table: 6.5%. Those two index values are printed on the BLS page itself (bls.gov).
Example 6: a yearly rate from many years (hypothetical)
Say a hypothetical basket cost $100 in 2015. The index averaged 237.017 in 2015 and 313.689 in 2024. That is a ratio of 1.3235, so the basket costs $132.35 in 2024. Total change: 32.3%.
What was the steady yearly rate? There are 9 steps from 2015 to 2024. Take the 9th root of 1.3235. That is 1.0316, or about 3.2% a year.
Do not divide 32.3 by 9. That gives 3.6 and overstates it, because each year builds on the one before.
Percent vs percentage points
Inflation was 8.0% in 2022 and 2.9% in 2024. The rate fell 5.1 percentage points. It fell 63.8% as a share of 8.0. Both are true. Neither means prices fell. Prices kept rising in 2024, just slower. That is why the index at 313.689 in 2024 sits above the 292.655 of 2022.
Two kinds of yearly rate
The same year can have two rates. The annual average compares 12-month averages. December to December compares two single months. For 2021 they give 4.7% and 7.0%. The formula is the same. Only the inputs change. The by-year page shows both for every year since 1914.
Quick checks
- Index went up 10%? Then new ÷ old = 1.10.
- Prices fell? The answer is negative. That is Deflation. The annual average dropped in 2009 to -0.4%.
- Yearly rate from many years? Average the ratio, not the percents. Try the CAGR calculator.
- Want your own rate? Swap in any two prices. A $2.00 item that costs $2.50 is up 25%: (2.50 − 2.00) ÷ 2.00.
See the dates for every CPI release on the 2027 economic calendar. See how to read the CPI report for the monthly release, and what a good inflation rate is.
Questions
What is the formula for the inflation rate?
(later CPI − earlier CPI) ÷ earlier CPI × 100. It gives the percent change in prices between two dates.
Is inflation the same as the CPI?
No. The CPI is the index, a number. Inflation is how fast that number changes.
How do I find what $100 from the past is worth now?
Multiply $100 by the later CPI and divide by the earlier CPI. Or use the CPI inflation calculator.
Why do two sites show different inflation for the same year?
One may use the annual average and the other December to December. 2021 is 4.7 on one and 7.0 on the other.
Where do the index numbers come from?
The BLS, at bls.gov/cpi. We use the all items index for urban consumers, not seasonally adjusted.
Follow along