The consumer price index (CPI) is an indicator of inflation. The index contains a basket of goods consumed by ordinary consumers (such as food, clothing and energy). The percentage increase of this index compared to a year ago is called inflation.