CPI Calculator
Formula: CPI = (Cost of Market Basket in Current Year ÷ Cost of Market Basket in Base Year) × 100
What Is CPI?
CPI stands for Consumer Price Index. It is one of the most widely used measures of inflation, and it tracks how the average price of a fixed basket of goods and services changes over time. That basket can include essentials like food, housing, transportation, healthcare, and education.
Economists, policy makers, business leaders, and everyday households use CPI to understand whether the cost of living is rising or falling. If CPI increases over time, that usually signals inflation. If CPI falls, that can indicate deflation.
The Formula to Calculate CPI
The standard formula is:
CPI = (Cost of Basket in Current Year / Cost of Basket in Base Year) × 100
- Current year basket cost: total cost of the same set of goods/services today.
- Base year basket cost: total cost of that basket in a chosen reference year.
- × 100: scales the number into an index where base year CPI is typically 100.
Quick Example
Suppose the market basket cost was $200 in the base year and $230 in the current year:
CPI = (230 / 200) × 100 = 115
A CPI of 115 means prices are 15% higher than in the base year.
How to Calculate CPI Step by Step
- Choose a base year (the benchmark period).
- Define a fixed basket of goods and services.
- Find the total cost of that basket in the base year.
- Find the total cost of the same basket in the current year.
- Apply the CPI formula.
Worked Calculation
Imagine a basket with groceries, transportation, and utilities:
- Base year basket cost = $480
- Current year basket cost = $528
CPI = (528 / 480) × 100 = 110
Interpretation: the basket is now 10% more expensive than it was in the base year.
Formula for Inflation Rate Using CPI
CPI itself is an index value. To get the inflation rate between two periods, use:
Inflation Rate (%) = ((CPIcurrent - CPIprevious) / CPIprevious) × 100
Example: if CPI rises from 120 to 126:
Inflation = ((126 - 120) / 120) × 100 = 5%
Why CPI Matters
- Salary negotiations: Workers use CPI trends to argue for cost-of-living adjustments.
- Retirement planning: Inflation affects the long-term purchasing power of savings.
- Government policy: Central banks monitor CPI to guide interest-rate decisions.
- Business pricing: Companies track inflation pressure on costs and margins.
Common Mistakes When Calculating CPI
1) Mixing Different Baskets
The basket must remain consistent. If the items change, comparisons become distorted.
2) Wrong Base Year Interpretation
The base year is often set to 100. A CPI of 140 means prices are 40% higher than the base year, not that inflation this year is 40%.
3) Confusing CPI Level and Inflation Rate
CPI is an index value; inflation is the percentage change in CPI from one period to another.
CPI vs. Personal Experience
CPI is an average measure. Your personal inflation can differ depending on where you live and what you buy most often. For example, if rent and healthcare take up most of your budget, your real-world cost increases may feel higher than headline CPI.
Final Takeaway
If you remember only one formula, remember this:
CPI = (Current Basket Cost / Base Basket Cost) × 100
Use the calculator above to quickly compute CPI and, if you provide the previous CPI, estimate inflation rate too.