Consumer price index marks the average of prices of a basket of consumer goods and services provided to customers (e.g., delivery, shipping). To calculate the consumer price index, you have to consider price changes for each product in a basket and average them.