Is the economy growing or shrinking? Is one country richer than another? Answering needs a single number for the size of an economy: gross domestic product (GDP), most often computed by adding up who buys what the economy produces.
We will pin down what GDP counts, add up the four kinds of spending, see why imports are subtracted, and then classify purchases.
Step 1: What GDP counts
GDP is the market value of all final goods and services produced within a country in a period. Each word matters. Market value lets us add apples and haircuts. Final excludes intermediate goods, like the flour in bread, which would otherwise be counted twice. Produced excludes sales of used goods and financial assets, which create nothing new. Within a country counts a foreign-owned car factory in Ohio as US GDP.
Step 2: The four kinds of spending
Every final good is bought by someone, so GDP equals total spending on domestic output:
C is household consumption; I is investment in equipment, buildings, new housing and inventories; G is government purchases; X − M is net exports. In $ billions, C 1,000, I 300, G 400, X 150 and M 200 give GDP of 1,650.
Step 3: Why imports are subtracted
Imports are subtracted because they are already counted inside C, I and G but weren't produced at home. So households buying $20 billion more of imported TVs raise C and M equally, leaving GDP unchanged.
Step 4: Classifying purchases
Each purchase goes into exactly one category. A family buying a newly built house is investment, not consumption. A firm buying office computers is investment, and so are cars a manufacturer makes but doesn't sell this year: inventory investment. The army buying a fighter jet is G; the government paying unemployment benefits is a transfer, not part of GDP. A foreign tourist paying for a hotel here is an export. Buying shares isn't part of GDP at all.