CPI Calculator
Is this tool helpful?
How to use the tool
- Choose a base year—the reference point for prices.
Sample 1: 1998 Sample 2: 2012 - Select the current year you want to compare.
Sample 1: 2023 Sample 2: 2025 - Add market-basket items:
- Item name, e.g., Smartphone or Rice
- Quantity, e.g., 1 unit or 50 kg
- Base-year price, e.g., $600 or $0.80 / kg
- Current-year price, e.g., $750 or $1.05 / kg
- Add more items until the basket mirrors your spending.
- Hit “Calculate”; the tool returns CPI, inflation rate, and a cost comparison chart.
Formulas used
Cost of basket in each year is the sum of quantity × price for every item.
Block equations:
$$ CPI = rac{\text{Current-Year Basket Cost}}{\text{Base-Year Basket Cost}} \times 100 $$ $$ \text{Inflation Rate} = rac{CPI – 100}{100} \times 100\% $$Worked example
- Base year: 2012 Current year: 2021
- Items
- Laptop: 1 × $800 (2012) → $950 (2021)
- Bread: 100 × $1.40 (2012) → $1.80 (2021)
Base-year cost: $800 + $140 = $940
Current-year cost: $950 + $180 = $1 130
$$ CPI = rac{1\,130}{940} \times 100 = 120.21 $$ $$ \text{Inflation Rate} = rac{120.21 – 100}{100} \times 100\% = 20.21\% $$Prices in your basket rose about 20 % between 2012 and 2021.
Quick-Facts
- U.S. CPI covers roughly 93 % of the population (BLS CPI Handbook, bls.gov).
- The index relies on about 80 000 price observations each month (BLS CPI Handbook, bls.gov).
- Weights are updated every two years using consumer-expenditure data (BLS FAQ, bls.gov/cpi).
- Headline CPI rose 4.9 % year-over-year in April 2023 (BLS News Release, 2023).
FAQ
What does a CPI value over 100 mean?
A CPI above 100 shows prices have risen since your base year; 120 means a 20 % increase (BLS Guide, bls.gov).
How is CPI different from PPI?
CPI tracks retail prices paid by consumers, while PPI measures wholesale prices received by producers (OECD Glossary, oecd.org).
Can I include services such as internet or rent?
Yes—CPI methodology treats services the same as goods: quantity × price for each year (BLS CPI Handbook, bls.gov).
Why use a personalized basket instead of official CPI?
Your spending pattern may differ from the national sample; a custom basket reveals your own cost-of-living change (IMF Toolkit, imf.org).
How many items should I enter for accuracy?
Include all categories exceeding 1 % of your monthly budget; small items have little impact (Federal Reserve EDU, federalreserve.gov).
What period gap is reasonable?
Most users compare 5-15 years to capture cyclical trends and policy shifts (World Bank Data Note, worldbank.org).
Is CPI adjusted for quality improvements?
Yes, the BLS applies hedonic adjustments to filter out quality changes in products like electronics (BLS Hedonic Paper, 2022).
Why does my result differ from official inflation?
Official CPI uses national weights; your basket’s weights and local prices create a unique index (BLS FAQ, bls.gov/cpi).
Important Disclaimer
The calculations, results, and content provided by our tools are not guaranteed to be accurate, complete, or reliable. Users are responsible for verifying and interpreting the results. Our content and tools may contain errors, biases, or inconsistencies. Do not enter personal data, sensitive information, or personally identifiable information in our web forms or tools. Such data entry violates our terms of service and may result in unauthorized disclosure to third parties. We reserve the right to save inputs and outputs from our tools for the purposes of error debugging, bias identification, and performance improvement. External companies providing AI models used in our tools may also save and process data in accordance with their own policies. By using our tools, you consent to this data collection and processing. We reserve the right to limit the usage of our tools based on current usability factors.
