The consumer price index (CPI) is the average price of all goods and services (often referred to as the basket of goods) purchased by a household. The change in the total price of the basket of goods is a measure that indicates whether the economy is undergoing an inflationary period.