Courses › Principles of Macroeconomics
The cost of living: price indexes and inflation
Building the CPI, its biases, real wages and real interest rates, and why central banks target 2%.
Your grandparents may remember a movie ticket for a couple of dollars. Was life cheaper then? Not necessarily: wages were lower too. To compare money across time, or to know whether your raise kept up with prices, you need a way to measure the overall price level. That’s what price indexes do.
This module shows how the consumer price index is built, how to turn it into an inflation rate, why it isn’t perfect, how to adjust wages and interest rates for inflation, and why central banks aim for about 2% inflation rather than zero.
By the end of this module you will be able to
- Build a consumer price index from a fixed basket and calculate the inflation rate.
- Explain the main biases in the CPI and compare the CPI with the GDP deflator and core inflation measures.
- Convert dollar amounts between years and calculate real wages.
- Calculate real interest rates and explain who wins and who loses from unexpected inflation.
- Describe the costs of inflation and deflation and explain why central banks target about 2%.
What this module covers
- Measuring the price level: the CPI
- From price index to inflation rate
- Is the CPI accurate?
- Correcting for inflation
- The costs of inflation
- Problem set with step-by-step solutions
- Module quiz
Lesson 3.1 Free lesson
Measuring the price level: the CPI
The consumer price index (CPI) measures the cost of a fixed basket of goods and services bought by a typical household, compared with the cost of the same basket in a base period. In Canada it is published monthly by Statistics Canada; in the United States, by the Bureau of Labor Statistics.
Five steps to a price index
- Fix the basket. Surveys of household spending determine what goes in and in what amounts: so much rent, so many groceries, so many litres of gasoline.
- Collect prices. Statisticians record prices for each item, across many stores and cities, every month.
- Cost the basket. Multiply each price by its quantity and add up.
- Choose a base period and compare: CPI = cost of basket today ÷ cost of basket in the base period × 100.
- Calculate inflation from the change in the index (Lesson 2).
Worked example: A three-item basket
Basket: 10 lattes, 2 movie tickets, 1 month of a phone plan.
Base year prices: latte $4, ticket $15, phone plan $50. Cost = 40 + 30 + 50 = $120.
This year: latte $4.40, ticket $15, phone plan $54. Cost = 44 + 30 + 54 = $128.
CPI this year = 128 ÷ 120 × 100 ≈ 106.7. Prices are about 6.7% higher than in the base year.
Because the basket is fixed, items people spend more on get more weight automatically. Shelter (rent, mortgage interest, property taxes, and other housing costs) is the biggest category, roughly a third of the US CPI and somewhat less than that in Canada. A 10% jump in rent moves the index far more than a 10% jump in the price of coffee.
The full module has an interactive graph here that you can move yourself.
Common mistake
The CPI’s base year value of 100 doesn’t mean prices were “normal” then, and a CPI of 160 doesn’t mean things cost $160. The level of an index means nothing by itself; only comparisons between periods do.
Key ideas
- The CPI is the cost of a fixed basket today relative to a base period, times 100.
- Items get weight according to how much households spend on them.
- Shelter is the largest single category.
Practice questions: The cost of living: price indexes and inflation
Try these, then open each answer to check your work.
- 1.The CPI measures:
- The cost of a fixed basket of consumer goods relative to a base year
- The prices of everything produced in the country in a year
- The total amount households spend on goods and services
- The average hourly wage paid to workers across the economy
Show answer
Answer: A. The CPI prices a fixed consumer basket and compares its cost with a base period.
- 2.The CPI rises from 200 to 206. Inflation is:
- 2%
- 3%
- 4%
- 6%
Show answer
Answer: B. (206 − 200) ÷ 200 = 3%.
- 3.Inflation falls from 5% to 2%. This is called:
- Deflation
- Hyperinflation
- Stagflation
- Disinflation
Show answer
Answer: D. Prices still rise, but more slowly: disinflation.
Problems with step-by-step solutions
- 4.A basket contains 20 loaves of bread and 5 bus passes. In the base year bread is $3 and a pass is $40. This year bread is $3.30 and a pass is $42. Calculate the CPI for this year.
Show step-by-step solution
- Base-year cost = 20 × 3 + 5 × 40 = 60 + 200 = $260.
- This year’s cost = 20 × 3.30 + 5 × 42 = 66 + 210 = $276.
- CPI = 276 ÷ 260 × 100 ≈ 106.2.
- 5.The CPI was 152.0 last year and 157.3 this year. What is the inflation rate?
Show step-by-step solution
- Inflation = (157.3 − 152.0) ÷ 152.0 × 100.
- 5.3 ÷ 152.0 ≈ 0.0349.
- Inflation ≈ 3.5%.
Get the full module
The complete module adds every lesson, interactive graphs, a full problem set with step-by-step solutions, and a quiz. The academy opens in January 2027: join the waitlist for the founding price (lifetime access for $179).
Join the waitlist Try a full module free
More practice: free practice questions for this course.