Both can be used in measuring the price level of an economy between base year and another year. However, GDP deflator reflects the prices of all goods produced domestically while CPI reflects the prices of a basket of goods and services purchased by households.