GDP measures the value of goods and services produced in a country. Nominal GDP uses current prices, while real GDP expresses values in constant prices (such as a base year) to eliminate the effect of inflation. Calculating real GDP allows analysis of changes in economic activity by quantity rather than price changes. The GDP deflator measures inflation as the ratio of nominal to real GDP and the inflation rate shows price level changes between years.