CPI is an index estimating the relative price of common goods consumed in a given year compared to the previous year, which makes it a measure of inflation rate.

To calculate CPI for a given year, divide the value of the market basket in that year by the same basket’s value in the base year, then multiply the ratio by 100.