What Is the CPI?

The Consumer Price Index (CPI) is a statistical measure that tracks changes in the average prices paid by consumers for a defined set of goods and services over time. It is the most widely used indicator of consumer price inflation in the world, and it forms the basis for the inflation rates shown on this site and by the World Bank.

The CPI is published by a government statistics agency in each country โ€” for example, the Bureau of Labor Statistics (BLS) in the United States, the Office for National Statistics (ONS) in the UK, and the Ministry of Statistics & PI (MOSPI) in India. Most agencies publish monthly figures, typically 2โ€“4 weeks after the end of the reference month.

The CPI serves several important practical functions:

  • It is used by central banks to set and monitor inflation targets
  • It is used to adjust wages, pensions, social benefits, and tax brackets for inflation (a process called indexation)
  • It affects the value of inflation-linked bonds (such as US TIPS or UK Index-Linked Gilts)
  • It is used by businesses and individuals to negotiate inflation-adjusted contracts and salaries

How the CPI Basket Is Constructed

The CPI measures the cost of a representative basket of goods and services โ€” a carefully defined list of items that a typical household is assumed to buy on a regular basis. The basket is constructed by surveying households about their actual spending patterns and assigning weights to each category proportional to its share of total spending.

Major Categories

While exact categories vary by country, the CPI basket typically includes:

  • Housing: Rent, mortgage-equivalent costs, utilities, maintenance (often the largest single category)
  • Food and beverages: Groceries and food consumed at home; restaurant and take-out meals separately
  • Transport: Petrol/gasoline, public transport fares, vehicle purchase costs, insurance
  • Healthcare: Prescription drugs, doctor visits, health insurance premiums, hospital services
  • Education: Tuition fees, books, school supplies
  • Recreation and culture: Holidays, cinema, streaming services, sporting goods
  • Clothing and footwear: Garments, shoes, accessories
  • Communication: Mobile phone plans, internet, postal services
  • Miscellaneous goods and services: Personal care, insurance, financial services

How Weights Are Assigned

Each item in the basket receives a weight that reflects how much of the average household's budget it consumes. A category that accounts for 30% of average spending receives a weight of 0.30. Price changes in heavily weighted categories have a much greater effect on the overall CPI than price changes in low-weighted categories.

For example, if housing has a weight of 30% and rents rise by 5%, that single change adds 1.5 percentage points (0.30 ร— 5%) to the overall CPI. If clothing has a weight of 3% and clothing prices fall by 2%, that subtracts only 0.06 percentage points (0.03 ร— 2%) from the total.

How Often the Basket Is Updated

The basket and weights are typically reviewed and updated every 1โ€“5 years to reflect changing consumer spending patterns. As smartphones became common, for instance, they were added to the basket; as landline phone usage declined, its weight was reduced. The COVID-19 pandemic prompted some agencies to update weights faster than usual as spending patterns shifted dramatically.

How the CPI Is Calculated

The most common CPI methodology is the Laspeyres index, which compares the cost of the current basket at today's prices to the cost of the same basket at base-period prices.

A simplified version: imagine a basket containing only two items โ€” bread and milk.

ItemBase Year PriceBase Year QtyCurrent PriceCurrent Cost
Bread (loaf)$2.0010$2.30$23.00
Milk (litre)$1.005$1.10$5.50
Totalโ€”โ€”Base: $25.00Current: $28.50
CPI = (Current Cost of Fixed Basket รท Base Period Cost) ร— 100 = (28.50 รท 25.00) ร— 100 = 114

A CPI of 114 means prices are 14% higher than the base year. The inflation rate between two periods is the percentage change in CPI:

Inflation Rate = (CPI_current โˆ’ CPI_previous) รท CPI_previous ร— 100%

In practice, statistics agencies price thousands of specific items at hundreds or thousands of retail locations each month, making the calculation far more complex โ€” but the underlying logic is the same.

CPI vs. Other Price Indices

Producer Price Index (PPI)

The PPI measures price changes at the wholesale or producer level โ€” the prices businesses receive for their output, before goods reach consumers. A rising PPI often signals that consumer prices will rise in the future, since businesses eventually pass higher costs on. The PPI is sometimes called a "leading indicator" of CPI.

Personal Consumption Expenditures (PCE)

The PCE price index is produced by the US Bureau of Economic Analysis and is the Federal Reserve's preferred inflation gauge. Unlike CPI, it uses weights that are updated more frequently and covers a broader set of goods and services (including healthcare paid by employers or government). PCE tends to run slightly lower than CPI because of its more flexible methodology and different basket composition. The Fed's 2% inflation target is expressed in terms of PCE, not CPI.

Harmonised Index of Consumer Prices (HICP)

The HICP is used across the European Union to enable cross-country inflation comparisons. It uses a standardised methodology so that inflation in France can be meaningfully compared to inflation in Germany or Spain. The European Central Bank's 2% inflation target is expressed in terms of HICP (or more precisely, the HICP for the Euro Area as a whole). Individual EU countries also produce their own national CPI measures alongside HICP.

Wholesale Price Index (WPI)

India uses both CPI and the WPI (Wholesale Price Index) as inflation benchmarks. The WPI tracks prices at the wholesale/primary market level โ€” closer to the producer end of the supply chain. It covers goods only (no services), and was historically the primary inflation measure in India before the RBI shifted to CPI targeting in 2014. The WPI can diverge significantly from CPI, especially when commodity prices spike without fully passing through to consumers.

Core CPI vs. Headline CPI

Headline CPI includes all items in the basket โ€” food, energy, and everything else. It represents the full cost-of-living experience for households.

Core CPI excludes food and energy from the calculation. These two categories are excluded because they are particularly volatile โ€” food prices fluctuate with harvests and weather, energy prices with global supply and geopolitical events. Core CPI changes more slowly and is seen as a better signal of underlying, persistent inflation trends.

Central banks and monetary economists typically focus on core inflation when making policy decisions, because they cannot control supply shocks with interest rate changes. Raising rates will not make a drought end or an oil embargo lift. Core inflation reflects the part of inflation that monetary policy can actually address.

Limitation: From a household perspective, excluding food and energy can feel misleading. These are non-optional expenses, and a 10% rise in grocery or petrol prices is very real regardless of what core CPI shows. Both measures have legitimate uses; neither tells the complete story alone.

Why Different Countries Have Different CPI Rates

Inflation rates vary enormously between countries at any given time, and the difference is not simply a matter of measurement โ€” it reflects genuinely different economic conditions.

  • Different basket compositions: Countries where food represents 40โ€“50% of household spending (common in lower-income economies) experience much higher inflation when food prices rise globally than countries where food is 10โ€“15% of spending.
  • Different energy dependence: Countries that import most of their energy are more exposed to global oil and gas price swings than those with domestic energy production or renewable capacity.
  • Different housing market dynamics: Countries with housing supply constraints and rising rents (such as the UK and Australia) may see higher shelter-driven inflation than countries with more flexible housing markets.
  • Different monetary policies: Countries that maintain loose monetary policy (low interest rates, high money supply growth) for extended periods tend to experience higher inflation. Independent central banks with credible inflation targets generally achieve lower, more stable inflation.
  • Exchange rates: Countries with depreciating currencies import inflation through higher prices for imported goods.

CPI Limitations

The CPI is the best available broad measure of consumer price inflation, but it has well-documented limitations that are important to understand.

Substitution Bias

When prices rise for a particular good, consumers often switch to cheaper alternatives โ€” beef becomes more expensive so people buy more chicken, for example. The Laspeyres index uses fixed quantities (the base-period basket) and therefore does not capture this switching. As a result, it may slightly overstate the true cost increase that consumers experience. The PCE and some modern CPI variants use chained weights to partially address this.

Quality Changes

If a laptop costs the same this year as last year but is twice as fast, is that deflation? Statisticians use a process called hedonic adjustment to account for quality improvements โ€” effectively estimating that a better product at the same price is equivalent to a price reduction. This is complex and controversial; critics argue that quality improvements in technology are often overstated in CPI calculations.

Housing Costs Are Difficult to Measure

Measuring the cost of owner-occupied housing is particularly challenging because homeowners do not pay rent to themselves. Most countries use either an owners' equivalent rent approach (asking homeowners what their home would rent for) or a user cost approach. Neither fully captures the actual experience of homeowners in a rapidly rising housing market.

Individual Variation

CPI represents the average across the whole population. Your personal inflation experience depends on where you live, how you travel, what you eat, your healthcare needs, and dozens of other factors. A retiree with a fixed pension who rents in an expensive city will experience very different effective inflation from a young professional who owns a home and cycles to work.

New Goods

New products (streaming services, smartphones, ride-sharing apps) can take time to be added to the CPI basket. Until they are included, price changes in these categories are not captured.

How This Calculator Uses CPI Data

The inflation rates shown on InflationMultiplier.com come from the World Bank's FP.CPI.TOTL.ZG indicator, which is sourced from national statistics agencies. Key facts:

  • Data type: Annual CPI inflation rate, in percent
  • Represents: Year-over-year percentage change in consumer prices for the most recently available year
  • Lag: Typically 1โ€“2 years behind the current calendar year
  • Coverage: 189+ countries
  • Used in calculations: Applied as a constant annual rate throughout the projection period

The calculator displays the year of the data point alongside the rate so users know exactly which period the data covers. For the most current monthly figures, always consult the national statistics office for your country.

For full details on data sources and API endpoints, see the Data Sources page. For the calculation formulas, see the Methodology page.

Frequently Asked Questions

Why does my personal inflation feel higher than the official CPI figure?

Several reasons can explain this. First, the CPI is an average โ€” if prices for things you buy frequently (petrol, groceries, rent) are rising faster than average, your personal inflation will exceed the headline number. Second, CPI gives high weight to categories like healthcare that may not reflect your spending. Third, your memory of past prices is often selective โ€” sharp price increases are memorable while price decreases are not. All of these biases are real and documented. The CPI is not wrong; it's just a population average, not your individual experience.

How is the CPI basket updated?

Most statistics agencies review the basket and weights every few years using data from household expenditure surveys โ€” large-scale surveys that track what thousands of households actually buy. When spending patterns shift significantly (as happened during the pandemic), agencies may update weights more frequently. The specific items within each category are also periodically reviewed; a 1950s CPI basket would have included items like coal for home heating that are irrelevant today.

Is CPI the same as the "cost of living"?

Not exactly. CPI measures the price of a standardised basket of goods. The "cost of living" is a broader concept that includes housing costs (which CPI may measure imperfectly), lifestyle expectations, geographic differences, and individual needs. A true cost-of-living index would need to capture how much income a household needs to maintain a given standard of living โ€” a much harder thing to measure than average price changes. CPI is the best practical approximation, but it is not a perfect cost-of-living measure.

What is "shrinkflation" and does CPI capture it?

Shrinkflation occurs when a product's price stays the same but its quantity or quality decreases โ€” a chocolate bar that shrinks from 100g to 85g at the same price is effectively a 15% price increase. Statistics agencies try to detect and adjust for shrinkflation through their quality and quantity adjustment procedures, but they don't catch every instance. Shrinkflation can therefore result in CPI slightly understating actual consumer price increases, particularly in food and consumer goods.