What CPI Measures and Why You Calculate It
The Consumer Price Index, or CPI, is a number that tracks how much prices have changed for everyday goods and services over time. It tells you whether things like groceries, gas, and rent are getting more or less expensive. To calculate CPI yourself, you need a basket of items, their prices at two different points in time, and a straightforward formula that compares the two.
Most people see CPI reported by the U.S. Bureau of Labor Statistics each month. But understanding how it works — and being able to do the math yourself — helps you see whether official numbers match what you actually spend, or whether your own costs are rising faster or slower than the national average.
Key Takeaways
- CPI compares the total cost of a fixed basket of goods and services between two time periods using a straightforward division formula.
- You choose what goes in your basket: groceries, utilities, transportation, housing, or any mix that reflects your actual spending.
- The formula is (Current Period Cost ÷ Base Period Cost) × 100, and the result shows the index number for that time period.
- A CPI of 110 means prices have risen 10 percent since the base period; a CPI of 95 means they have fallen 5 percent.
- The Bureau of Labor Statistics uses about 80,000 price observations monthly across hundreds of item categories to produce the official national CPI.
Setting Up Your Basket of Goods
Start by deciding what items you want to track. This is called your market basket. You can track anything: a week's worth of groceries, a tank of gas, your monthly utility bill, or a combination of all three. The key is that you track the same items in the same quantities across both time periods.
For example, your basket might contain one dozen eggs, one gallon of milk, one loaf of bread, one gallon of gas, and one month of electricity. Write down exactly what you are measuring so you can find the same items at the same stores later. If you switch from name-brand eggs to store-brand eggs, your basket has changed and your comparison becomes less reliable.
The Bureau of Labor Statistics uses a much larger basket: it includes food, energy, transportation, medical care, recreation, education, and communication. Their basket is weighted by how much the average household actually spends on each category. Your personal basket does not need to be weighted — you are just tracking price movement for the items that matter to you.
Recording Prices at Two Points in Time
Collect the prices for every item in your basket at your starting point. This is your base period. Write down the date, the store, and the exact price for each item. Take a photo of the receipt if you can, or write the prices in a spreadsheet or notebook.
Then, at a later date — one month later, one year later, or whenever you want to measure change — collect the prices for the exact same items again. This is your current period. Shop at the same stores if possible, or at least stores in the same area, so that location does not skew your results.
Add up all the prices from the base period and write that total down. Then add up all the prices from the current period. These two numbers are what you will use in the CPI formula.
The CPI Formula and How to Use It
The formula for CPI is:
(Current Period Cost ÷ Base Period Cost) × 100 = CPI
Here is a concrete example. Suppose your basket in January 2024 cost $50 total. In January 2025, the same basket costs $53. The math is:
($53 ÷ $50) × 100 = 1.06 × 100 = 106
A CPI of 106 means prices have risen 6 percent. To find the percentage change, subtract 100 from your CPI result: 106 − 100 = 6 percent.
If your current basket cost $48 instead, the math would be ($48 ÷ $50) × 100 = 96. A CPI of 96 means prices have fallen 4 percent (100 − 96 = 4).
Choosing a Base Period and Index Point
The base period is your starting reference point, and it always gets an index value of 100. The Bureau of Labor Statistics uses December 1983 as the base period for most of its CPI reports, which means all their numbers are calculated so that December 1983 = 100. This is arbitrary — they could have chosen any year — but it makes comparisons consistent over decades.
For your own calculation, you can set any base period you want. Many people use the current month or year as their base, which makes the math straightforward: if January is your base, January always equals 100, and you measure everything else against it. You could also use a year ago, five years ago, or the first time you started tracking.
Once you set your base period, all future measurements are compared to it. If you change your base period, your index numbers will change, but the actual price movement will not.
Interpreting Your CPI Results
An index above 100 means prices have risen since the base period. An index below 100 means prices have fallen. The further the number is from 100, the larger the change.
If your CPI is 115, prices have risen 15 percent. If it is 85, prices have fallen 15 percent. If it stays at 100, there has been no change.
You can also use CPI to compare price movement across different time periods. If your CPI was 103 in March and 108 in June, you know prices rose an additional 5 percent between March and June. To find the change between two non-base periods, divide the later CPI by the earlier one, subtract 1, and multiply by 100: ((108 ÷ 103) − 1) × 100 = 4.85 percent.
Limitations of Personal CPI Calculations
Your personal CPI tells you about price movement for the items you chose, not about the economy as a whole. If your basket is only groceries, your CPI will not reflect changes in gas prices or rent. If you shop at discount stores while the official CPI is based on a mix of stores, your results will differ.
Quality changes also matter. If a product improves — a phone gets a better camera, a car gets better safety features — the price may rise, but you are getting more value. The Bureau of Labor Statistics tries to adjust for quality changes; your personal calculation probably will not.
Substitution is another issue. If eggs get expensive, you might buy fewer eggs and more oatmeal instead. Your basket stays fixed, so it does not account for this shift. The official CPI does adjust for substitution, which is one reason personal calculations and official CPI numbers often diverge.
Frequently Asked Questions
Can I use CPI to predict future prices?
No. CPI measures what has already happened, not what will happen next. If your CPI rose 5 percent last year, that does not mean it will rise 5 percent this year. Inflation rates change based on supply, demand, wages, and many other factors that CPI does not predict.
What if I cannot find the exact same product at the next measurement date?
Try to find the closest substitute — same brand, same size, same store if possible. Write down what changed so you remember it. If the substitute is significantly different in quality or price, consider replacing it with a different item in your basket instead, and note that change in your records.
Should I weight my basket by how much I actually spend on each category?
You can, but you do not have to. Weighting makes your CPI more representative of your actual budget — if you spend 40 percent of your money on rent and 10 percent on food, you might weight those categories accordingly. For a straightforward calculation, just add up all prices equally. Weighting is more useful if your basket includes very different types of items.
How often should I recalculate my CPI?
That depends on what you want to measure. Monthly calculations show short-term price swings. Annual calculations smooth out seasonal changes and show longer trends. Many people recalculate monthly or quarterly to stay current, but there is no rule — choose whatever interval makes sense for your purpose.
Why does my personal CPI differ from the official Bureau of Labor Statistics CPI?
Your basket is different from theirs. You might shop at different stores, buy different brands, or focus on different categories. The official CPI also adjusts for quality changes and substitution patterns that your calculation does not. Both numbers are correct — they are just measuring different things.