CPI Formula Guide
What CPI Measures
A CPI calculator helps explain how a basket of goods changes over time. The basket represents items that people buy often. Each item has a base period price, a current period price, and a quantity. The quantity acts like a weight. It shows how much that item matters in the basket.
Main Calculation
The main idea is simple. First, find the cost of the basket in the base period. Then find the cost of the same basket in the current period. Divide the current basket cost by the base basket cost. Multiply the answer by one hundred. The result is the consumer price index for the current period.
Why Weights Matter
This tool also supports weighted items. That makes the result more realistic. A product bought many times affects the index more than a product bought once. For example, bread may have a lower price than rent. Yet frequent bread purchases still add weight. Rent may have a large price and a quantity of one. Both values matter in the final basket total.
Inflation Comparison
The calculator can also compare a current CPI with a previous CPI. That comparison gives an inflation rate. A positive rate shows rising prices. A negative rate shows falling prices. A zero rate means the index did not change. This helps with reports, planning, teaching, and general cost studies.
Data Quality
Use clean data for best results. Keep all item prices in the same currency. Use the same basket for both periods. Do not change quantities between the base and current period unless your study requires a new basket. Consistent inputs make the CPI easier to understand and compare.
Practical Limits
The result should not be treated as an official national CPI. Government agencies use large surveys, many product groups, and special methods. This calculator is built for learning, estimates, small studies, and business examples. It shows the formula clearly. It also exports records for review. You can download a summary, keep item details, and explain each step in a simple report. It is useful when you need a transparent price index instead of a hidden calculation. For classroom use, it shows each cost line. For business use, it checks sample baskets quickly. For personal use, it gives a clear view of changing expenses over time.