The Consumer Price Index (CPI) measures the cost of living. It tracks a weighted average of prices in a government-selected basket of consumer goods and services. Changes in the CPI are used to gauge inflation and such changes often affect mortgage rates, especially when CPI is trending.