The GDP deflator is the ratio of nominal GDP to real GDP, multiplied by 100. If an economy's output is worth 2,500 billion at today's prices but only 2,000 billion at base year prices, the deflator is 125, telling you the general price level has risen 25 percent since the base year. Nobody surveys these prices shop by shop. The deflator falls out of the national accounts as a by-product: measure output at current prices, measure it again at constant prices, and the gap between the two is pure price change. That makes it the broadest inflation measure available, covering investment goods, government services and exports as well as the shopping basket. Because it is built from the same accounts as GDP itself, it also inherits their revisions, and the inflation story of a past year can be quietly rewritten when the output figures are.
The consumer price index tracks a fixed basket of things households buy. The deflator tracks everything the economy produces, and its basket changes automatically as production changes. Two consequences follow. First, the deflator includes prices no shopper ever sees, like the price of warships and office blocks, and excludes imports, which the CPI includes. An oil price spike therefore hits the CPI harder than the deflator in an oil-importing country. Second, because the deflator's basket moves with spending patterns, it handles substitution gracefully: when people switch from beef to chicken as beef gets dearer, the deflator notices. Central banks watch both measures, and experienced readers of economic news know which one a speaker has chosen, and why.
The change in the deflator from one year to the next is an inflation rate for the whole economy, and comparing it with CPI inflation is a quick diagnostic. If CPI inflation runs well above deflator inflation, import prices are usually the culprit. If the deflator runs hotter, home-grown costs in investment or government may be driving prices. The deflator also converts any nominal series into real terms: deflate wages by it and you see whether pay is truly rising. One caution: because it is derived from GDP itself, the deflator is revised whenever GDP is revised, sometimes years later. Treat the first release as a pencil sketch. The calculator on this site shows the simple fixed-base arithmetic that sits underneath all the refinements.