Inflation affects GDP by causing nominal GDP to overstate the actual growth of an economy. Real GDP removes the effects of inflation to provide a more accurate measure of economic growth.