The Basic Formula for Inflation Rate from CPI
To compute inflation rate from CPI, subtract the earlier CPI number from the later one, divide by the earlier number, then multiply by 100. The result is a percentage that tells you how much prices rose between those two periods.
The formula is: ((CPI later − CPI earlier) ÷ CPI earlier) × 100 = inflation rate %
For example, if the CPI was 250 in January and 255 in February, the calculation would be ((255 − 250) ÷ 250) × 100 = 2%. That means prices rose 2% over that month. The time span can be a month, a year, or any period where you have two CPI readings.
Key Takeaways
- The inflation formula uses two CPI numbers: divide the difference by the earlier number, then multiply by 100 to get a percentage.
- CPI data is published monthly by the Bureau of Labor Statistics and covers different categories like food, energy, and housing.
- Year-over-year inflation (comparing the same month in two different years) is the most common way to measure price change.
- The same formula works for any time period as long as you have CPI readings for both the start and end dates.
Where to Find CPI Data
The Bureau of Labor Statistics (BLS) publishes CPI data on its website at bls.gov. The data is released monthly, usually in the middle of the month, and covers the previous month's price changes.
You can find CPI tables organized by region (U.S. city average, specific metropolitan areas, or regions) and by category (all items, food, energy, medical care, transportation). The most commonly used figure is the Consumer Price Index for All Urban Consumers, often called CPI-U, which tracks prices for about 80% of the U.S. population.
The BLS website lets you read historical CPI data going back decades, so you can compare any two months or years you need. You do not need to sign up or pay for this data — it is public information.
Year-Over-Year Inflation vs. Month-to-Month
Year-over-year inflation compares the CPI from one month to the same month in the previous year. This is the figure you hear most often in news reports. It smooths out seasonal swings (like heating costs in winter) and gives a clearer picture of the overall trend.
Month-to-month inflation compares consecutive months and can be more volatile. A single month might show a big jump because of a seasonal factor, but the year-over-year number tells you whether prices are actually rising faster than they were a year ago.
For example, if the CPI was 280 in March 2023 and 290 in March 2024, the year-over-year inflation is ((290 − 280) ÷ 280) × 100 = 3.57%. If you compared March 2024 to February 2024 instead, you might get a different result because February could have had its own seasonal pressures.
Understanding CPI Categories and Weighted Averages
The overall CPI is a weighted average, meaning some categories count more than others based on how much the average household spends on them. Housing makes up about 42% of the index, food about 13%, and transportation about 17%. Energy, medical care, and other items make up the rest.
When you use the overall CPI number in your inflation calculation, you are already using this weighted average. The BLS has already done the work of combining all categories according to their importance in a typical budget.
If you want to know how much inflation happened in just one category — say, food prices or gasoline — the BLS publishes separate CPI numbers for each. You use the same formula with those category-specific numbers. For instance, if the food CPI rose from 300 to 312, food inflation would be ((312 − 300) ÷ 300) × 100 = 4%.
Adjusting for Base Year Differences
CPI numbers are always measured against a base year, which the BLS sets to 100. Currently, the base year is 1982–1984, so a CPI of 280 means prices are 180% higher than they were in that base period on average.
This base year does not affect your inflation calculation. Whether the CPI is 250 or 350, the formula stays the same: you subtract the earlier number from the later one, divide by the earlier one, and multiply by 100. The base year is already built into both numbers, so it cancels out in the math.
The BLS occasionally updates the base year for technical reasons, but historical data is always adjusted so you can compare across different base periods. You do not need to convert or adjust anything yourself — just use the numbers as published.
Real-World Calculation Examples
Suppose you want to know the inflation rate from January 2023 to January 2024. You find that the CPI-U was 306.746 in January 2023 and 308.417 in January 2024. Using the formula: ((308.417 − 306.746) ÷ 306.746) × 100 = 0.545%, or about 0.55% inflation over that year.
For a longer period, say January 2020 to January 2024, suppose the CPI was 257.971 in January 2020 and 308.417 in January 2024. The calculation is ((308.417 − 257.971) ÷ 257.971) × 100 = 19.5%. That means prices rose nearly 20% over those four years combined.
You can also work backward. If you know the inflation rate and one CPI number, you can find the other. If inflation was 3% and the earlier CPI was 300, the later CPI would be 300 × 1.03 = 309. This is useful when you see an inflation percentage in a news article and want to verify it against published CPI data.
Common Mistakes to Avoid
The most frequent error is reversing the order of the numbers. You must subtract the earlier CPI from the later CPI, not the other way around. If you reverse them, you get a negative number, which would suggest prices fell when they actually rose.
Another mistake is forgetting to multiply by 100 at the end. The formula gives you a decimal (like 0.0357), and multiplying by 100 converts it to a percentage (3.57%). Without that step, your answer will be off by two decimal places.
A third pitfall is mixing different CPI series. The BLS publishes CPI-U (all urban consumers), CPI-W (urban wage earners), and regional variations. Stick with one series for your entire calculation. If you start with CPI-U for one month and switch to CPI-W for another month, your result will be meaningless.
Frequently Asked Questions
Can I use CPI to calculate inflation for just one product, like milk or gasoline?
The CPI itself is an average across many products, so you cannot use it to track a single item. However, the BLS publishes price data for specific goods through other programs. For inflation calculations on individual products, you would need to track the actual prices yourself or find specialized price indexes for that category.
Why is the inflation rate different depending on which month I compare?
CPI changes every month as prices shift. Comparing January to February gives a different result than comparing January to December because prices move throughout the year. Year-over-year comparisons (same month, different years) are more stable and less affected by seasonal changes like winter heating costs.
What if the CPI goes down — does that mean deflation?
Yes. If the later CPI is lower than the earlier CPI, your calculation will produce a negative percentage, which means prices fell during that period. This is called deflation and is rare in modern economies. It happened briefly during the 2008 financial crisis and the early months of the COVID-19 pandemic.
Do I need to adjust the CPI number for population growth or other factors?
No. The CPI already accounts for changes in what people buy and how much they spend on different categories. The BLS updates the weights and basket of goods regularly, so the published CPI number is ready to use in your inflation calculation without further adjustment.
How often should I recalculate inflation to stay current?
The BLS releases new CPI data monthly, usually around the middle of the month. If you want to track the most recent inflation rate, you can recalculate using the latest published numbers. Many people check year-over-year inflation monthly to see whether the trend is accelerating or slowing.