The CPI attempts to measure the inflation felt by consumers, but the gross domestic product (GDP) deflator measures a wider range of inflationary effects. By accounting for the impact on institutions, such as governments, the GDP deflator makes year-to-year GDP comparisons more accurate.