The basic formula for inflation rate using CPI

The inflation rate is the percentage change in prices from one period to another, and you calculate it by comparing two Consumer Price Index (CPI) numbers. The formula is: ((CPI in current period − CPI in prior period) ÷ CPI in prior period) × 100. That gives you the inflation rate as a percentage.

For example, if the CPI was 250 in January and 255 in February, you would subtract 250 from 255 to get 5, divide 5 by 250 to get 0.02, then multiply by 100 to get 2 percent inflation for that month. The CPI numbers themselves come from the Bureau of Labor Statistics (BLS), which publishes them monthly for the United States.

The time periods you compare can be any length—month to month, year to year, or even a specific month in one year compared to the same month in a previous year. Year-over-year comparisons are most common because they smooth out seasonal price swings that happen within a single year.

Key Takeaways

  • Inflation rate = ((new CPI − old CPI) ÷ old CPI) × 100, where both CPI numbers come from the Bureau of Labor Statistics.
  • The CPI measures the average change in prices paid by consumers for goods and services, and BLS releases a new number each month.
  • Year-over-year inflation (comparing the same month in consecutive years) is more useful than month-to-month because it removes seasonal price changes.
  • Different CPI series exist for different groups—all urban consumers, wage earners, or specific regions—so you must use the same series for both numbers in your calculation.

Where to find CPI data from the Bureau of Labor Statistics

The Bureau of Labor Statistics publishes CPI data on its website at bls.gov. The main page for CPI is under the "Inflation & Prices" section. You can access historical data going back decades, and the data is free to read.

The BLS publishes several different CPI series. The most commonly used is the Consumer Price Index for All Urban Consumers (CPI-U), which covers about 93 percent of the U.S. population. There is also the Consumer Price Index for Urban Wage Earners and Clerical Workers (CPI-W), which is a smaller subset. Regional CPI data is also available if you need inflation rates for a specific city or region.

When you look up CPI numbers, you will see them listed by month and year. Each number represents the average price level for that month. Make sure you are using the same CPI series (CPI-U, CPI-W, or regional) for both the current and prior period, or your calculation will not be meaningful.

Step-by-step calculation with a real example

Let's walk through a concrete example. Suppose you want to find the inflation rate for the United States from January 2023 to January 2024 using CPI-U data.

First, you find the CPI-U for January 2023, which was 306.746. Next, you find the CPI-U for January 2024, which was 314.540. Now you explore the formula:

  1. Subtract the old CPI from the new CPI: 314.540 − 306.746 = 7.794
  2. Divide the difference by the old CPI: 7.794 ÷ 306.746 = 0.02541
  3. Multiply by 100 to convert to a percentage: 0.02541 × 100 = 2.541 percent

The result is 2.541 percent inflation over that 12-month period. This means prices rose by about 2.5 percent on average from January 2023 to January 2024. You can round this to 2.5 percent for most purposes.

Why you must use the same CPI series for both numbers

The CPI comes in different versions because different groups of people spend money differently. The CPI-U includes all urban consumers and their spending patterns. The CPI-W focuses only on wage earners and clerical workers, who tend to spend less on some items and more on others. Regional CPIs measure price changes in specific metropolitan areas.

If you mix series—for example, using CPI-U for one period and CPI-W for another—your calculation will be meaningless because you are comparing apples to oranges. Both numbers must come from the same series, measured the same way, so the difference between them reflects only the actual price change, not a change in measurement method.

Before you start your calculation, decide which series makes sense for your purpose. For most general inflation questions, CPI-U is the right choice because it covers the broadest population.

Month-to-month versus year-over-year inflation rates

You can calculate inflation for any time period, but the choice matters. Month-to-month inflation compares one month directly to the previous month. Year-over-year inflation compares a month to the same month in the previous year.

Month-to-month rates are volatile because prices swing seasonally—heating oil costs more in winter, fresh produce costs more in summer. A single month's change often reflects these seasonal patterns rather than true inflation. Year-over-year rates smooth out these swings and show the real trend in prices.

For example, if gasoline prices spike in one month but fall back the next, the month-to-month inflation rate will jump and then drop. But the year-over-year rate will show a steadier picture of whether gas is actually more expensive than it was a year ago. When you see inflation rates reported in the news, they are almost always year-over-year unless stated otherwise.

What the inflation rate tells you and what it does not

The inflation rate calculated from CPI tells you how much the average price level has changed. It is a single number that summarizes price movement across thousands of goods and services. A 3 percent inflation rate means the average basket of goods and services costs 3 percent more than it did in the comparison period.

What it does not tell you is how prices have changed for specific items you care about. The CPI is an average, so some prices may have risen much more than 3 percent while others rose less or even fell. If you want to know whether the price of milk or electricity has changed, you need to look at those specific items, not the overall inflation rate.

The inflation rate also does not account for changes in quality or the introduction of new products. If a product becomes better but costs more, the CPI tries to adjust for the quality improvement, but these adjustments are imperfect and sometimes controversial.

Common mistakes when calculating inflation rate

One frequent error is using CPI numbers from different series without realizing it. If you copy one number from a table labeled CPI-U and another from a table labeled CPI-W, your result will be wrong. Always check the label before you write down the number.

Another mistake is forgetting to multiply by 100 at the end. If you divide the difference by the old CPI and get 0.03, that is 3 percent, not 0.03 percent. The multiplication by 100 converts the decimal to a percentage.

A third error is using the wrong CPI number by accident—for instance, grabbing the number for February when you meant January. CPI data is published monthly, and each month has its own number. Double-check the month and year before you use it in your calculation.

Finally, some people try to add up monthly inflation rates to get an annual rate. This does not work because inflation compounds. If inflation is 1 percent each month, the annual rate is not 12 percent; it is slightly higher because each month's increase builds on the previous one.

Frequently Asked Questions

Can I calculate inflation for just a few days or weeks?

Technically yes, but it is not useful. The CPI is published monthly, so you only have one data point per month. You cannot calculate inflation for a week because there is no CPI number for that week. For short time periods, you would need to track individual prices yourself, which is impractical.

What if the inflation rate comes out negative?

A negative inflation rate means prices fell on average—this is called deflation. It happens rarely in modern economies but can occur during severe recessions. The calculation method is the same; a negative result straightforward means the new CPI is lower than the old CPI.

Should I use seasonally adjusted or unadjusted CPI numbers?

The BLS publishes both. Seasonally adjusted numbers have been smoothed to remove predictable seasonal swings. For year-over-year calculations, either works because you are already comparing the same season. For month-to-month calculations, use seasonally adjusted numbers to see the underlying trend without seasonal noise.

How often does the BLS release new CPI data?

The Bureau of Labor Statistics releases the CPI for the previous month around the 10th or 12th of each month. The exact date varies slightly. You can find the release schedule on the BLS website, and you can sign up for email alerts when new data is published.

Can I use CPI to predict future inflation?

No. The inflation rate you calculate from CPI is historical—it tells you what happened in the past. It does not predict what will happen next month or next year. Economists use many other indicators and models to forecast future inflation, but the CPI itself only measures what has already occurred.