GDP measures the market value of all final goods and services produced within a country in a given period. It includes consumption (C), investment (I), government spending (G), and net exports (NX). While GDP indicates total output, real GDP corrects for inflation to measure changes in the quantity of output produced. Per capita GDP further adjusts for population size to serve as a measure of a country's standard of living.