How Inflation Is Calculated: CPI Explained Simply
Reviewed by Jerry Croteau, Founder & Editor
Table of Contents
I was staring at a newspaper from 1979 and the numbers felt fake
I was sitting at my kitchen table with this old, yellowed newspaper clipping from 1979 and it was bragging about “record” gas prices and “jaw-dropping” grocery bills, and I’m doing the math on a napkin and thinking… wait, that’s it? That’s what everyone was panicking about?
Then I did the thing you’ve probably done too: I tried to compare a past price to a current price, like it’s a straight line, and it just wouldn’t behave. I nodded like I understood inflation. I didn’t.
So I went back and re-learned how inflation is actually calculated, and the rabbit hole is kind of fun because it’s not just math — it’s a story about what people buy, what they stop buying, and how we try (imperfectly!) to pin a moving target to a number.
And yes, the number you hear most is CPI.
CPI is basically a “basket of stuff” with a scoreboard
So here’s the simplest way I can say it without getting weird about it: CPI (Consumer Price Index) is a measure of how the prices of a typical set of goods and services change over time. The “typical set” is the famous basket — food, housing, transportation, medical care, and so on — and each category gets a weight because people don’t spend evenly on everything. (Nobody spends the same on rent and on chewing gum, right?)
But the thing is, the basket isn’t a literal shopping cart. It’s a model. And models are always a little argumentative, because you have to decide what goes in, how much it “matters,” and what happens when the world changes and people swap steak for chicken or ditch cable for streaming or whatever.
Still, as a history nerd, I love CPI because it’s one of the few tools that lets you compare across decades without just hand-waving. It’s how you can say, “That 20 in 1955 is not the same 20 now,” and actually put a number on the difference.
So why does everyone get this wrong?
Because people hear “inflation” and think it’s one single price going up. CPI is more like an average of a whole bunch of prices, weighted by what households spend, and it changes month to month and year to year.
And once you’ve got CPI for two different times, you can get an inflation rate (the percent change) from one to the other.
That’s the skeleton. The interesting part is what we mean by “basket,” how the weights work, and why your personal inflation can feel totally different from the headline number.
A tiny worked example (with made-up prices) so it clicks
And I’m going to keep this intentionally small, because giant tables make your eyes glaze over. Imagine our “basket” is only four things: bread, rent, gasoline, and a doctor visit. We pick a base year, call it Year A, and set that basket cost as the reference.
| Item | Price in Year A | Price in Year B | Notes |
|---|---|---|---|
| Bread (1 loaf) | 2 | 3 | Small, frequent purchase |
| Rent (1 month) | 900 | 1,200 | This dominates most budgets |
| Gasoline (1 gallon) | 3 | 4 | Volatile, people notice it |
| Doctor visit (1 visit) | 120 | 150 | Not constant for everyone |
So the basket cost in Year A is 2 + 900 + 3 + 120 = 1,025.
The same basket in Year B is 3 + 1,200 + 4 + 150 = 1,357.
Now compute CPI for Year B if Year A is the base (Year A CPI = 100):
CPIB = (1,357 ÷ 1,025) × 100 ≈ 132.4
So prices for this toy basket rose about 32.4 percent between Year A and Year B.
That’s it — one index number that compresses a bunch of price changes into something you can compare over time.
But notice what I snuck in there: rent is huge. If rent jumps, CPI jumps. If rent barely moves but gasoline spikes, you might feel it more day-to-day, but the index might not explode the way your group chat does.
The part people miss: weights, substitutions, and why CPI isn’t “your” inflation
So here’s where the history brain kicks in. CPI isn’t just a math trick; it’s a snapshot of a society’s spending habits at a moment in time, and those habits change. A lot. Think about the 1920s versus the 1970s versus now — different household tech, different commuting patterns, different medical realities, different expectations. If you tried to price the exact same basket forever, it would turn into a museum exhibit.
Weights are the quiet power behind CPI. Housing tends to carry a big weight because people spend a big share of their budget on it. Food is big too, transportation is big, and then there are categories that matter a ton to some households and barely show up for others. If you’re retired, your “basket” might lean medical. If you’ve got a long commute, transportation hits harder. If you’re a student living with roommates, rent is still real, but the shape of your spending is different.
And then there’s substitution, which sounds like a boring economics term until you realize it’s basically just human behavior. If the price of one thing jumps, people often switch to something else. Beef gets expensive, you buy more chicken. Brand-name cereal goes up, you grab the store brand. That means a fixed basket can overstate how much pain people feel if they’re able to substitute easily. But sometimes they can’t. If rent rises in your city, you can’t just swap it out for “slightly cheaper rent” like you’re choosing between apples and bananas.
Quality changes mess with your head too. A laptop today is not a laptop from 1998, even if the sticker price looks similar. Is that inflation? Is it a better product? It’s both, kind of, and statisticians try to adjust for that (which is where people start arguing at family dinners).
So yeah, CPI is useful, but it’s not a mind-reader.
And this is where I can’t help connecting it to history: whenever you read about “wages rising” or “living standards improving,” you’ve got to ask, “Compared to what basket, measured how?” Because raw numbers lie by omission. A factory wage of 1.50 an hour in some old photo caption doesn’t tell you much until you anchor it to prices.
If you want to play with these kinds of comparisons, I built tools for exactly this sort of timeline math. Try an inflation adjustment using
And if you’re doing “how fast did prices rise per year on average?” stuff (which comes up a lot when you’re comparing, say, the 1970s to the 2010s),
One more thing that trips people: CPI is usually reported as a change over the last 12 months, not “since last month,” because month-to-month can be noisy. That’s why headlines can feel jumpy — one month is a blip, a year is a trend (most of the time).
If you’re deep in timeline comparisons, you might also like
FAQ (the stuff people ask me when they’re halfway convinced)
Is CPI the same thing as inflation?
People use them like they’re interchangeable, but CPI is an index. “Inflation” is the rate of change in prices over time. CPI is one common way to measure that change.
Why doesn’t CPI match what I feel at the grocery store?
- Your spending isn’t the average basket.
- Food prices can jump while other categories don’t.
- You notice frequent purchases more than annual ones (that’s just being human).
How do I convert an old price into “today’s money” using CPI?
You take the old price and multiply by the ratio of CPI values:
Adjusted price = Old price × (CPItoday ÷ CPIthen)
If you don’t have the CPI numbers handy, use the
History is full of numbers that sound dramatic until you translate them, and also full of “cheap” things that weren’t cheap at all. CPI is just one tool, but it’s a pretty good bridge between then and now.
And once you start thinking in indexes and percent changes, you’ll catch yourself doing it everywhere — wages, rents, war bonds, baseball salaries, you name it.
Honestly, it makes the past feel a lot more real.
Related Calculators
Get smarter with numbers
Weekly calculator breakdowns, data stories, and financial insights. No spam.
Discussion
Be the first to comment!