Measuring GDP: The Expenditure Approach

\(Y = C + I + G + NX\): everything produced ends up bought by someone

core model

In 2025, households, firms and governments in the United States bought about $4.3 trillion of goods and services made in other countries. The formula for GDP subtracts every dollar of it. Does that mean imports made the US $4.3 trillion poorer? It doesn’t, and working out why is the quickest way to understand what GDP measures.

The big idea. GDP is the value of everything a country produces in a year. One way to measure it is to add up who bought that output: households, firms, the government and foreigners, which gives \(Y = C + I + G + NX\). Imports are subtracted because \(C\), \(I\) and \(G\) already include spending on foreign-made goods, and that spending is not domestic production.

You’ll be able to

  • Compute GDP and each component’s share from data on \(C\), \(I\), \(G\), exports and imports.
  • Decide whether a given transaction counts in this year’s GDP, and in which component.
  • Explain why imports are subtracted, and why buying an import leaves GDP unchanged.
  • Read a GDP release: know the typical US shares and which component swings most in a recession.

Explore the model

Predict first

Before you touch a slider: at the defaults the four bars add up to \(Y\) = $3,300, and Net exports \(NX\) is −$200 (a trade deficit). Keep \(C\), \(I\) and \(G\) where they are and move Net exports \(NX\) from −$200 to +$200. What happens to total GDP?

a) Nothing: trade isn’t spending by people in the country, so \(Y\) stays at $3,300 No. Net exports is one of the four parts of \(Y = C + I + G + NX\), so a change in \(NX\) changes the total one for one. Move Net exports \(NX\) to +$200 below and watch the dashed total rule.
b) \(Y\) rises by $200, to $3,500 No. That counts the new +$200 but forgets that the old −$200 was being subtracted from the total. Going from −200 to +200 is a change of 400. Move Net exports \(NX\) to +$200 below and compare the dashed total rule with the gray comparison run.
c) \(Y\) rises by $400, to $3,700 Correct. Before, \(NX\) took $200 away from the total. Now it adds $200. That is a swing of $400: 2,000 + 500 + 1,000 + 200 = $3,700. Move Net exports \(NX\) to +$200 below and compare the dashed total rule with the gray comparison run.

Drag a slider. Each bar is one kind of spending, and the dashed rule is total GDP, the sum of the four.

Net exports can be negative. When they are, the red bar extends left of zero and subtracts from the total. The dashed blue rule always lands where the four bars sum. The gray dashed outlines and the gray dashed rule are a comparison run. They start at the default settings, and Pin this run replaces them with whatever is on screen, so you can see which bars moved and how far the total shifted.

Core intuition

What GDP is

Gross domestic product (GDP) is the market value of all final goods and services produced inside a country in a given period, usually a quarter or a year. Each part of that sentence rules something in or out.

  • Market value. Everything is added up in dollars, at the price it sold for. That is how haircuts and trucks end up in one number.
  • Final. Only goods bought by their end user count. Steel sold to a car factory is an intermediate good: its value is already inside the price of the car, so counting it too would count it twice.
  • Produced. Only new production counts. A used car changing hands adds nothing, because it was counted the year it was built. A Social Security check or a share of stock involves no production at all.
  • Inside the country, in the period. A Toyota built in Kentucky is US GDP, even though Toyota is a Japanese company. A Volkswagen built in Germany is German GDP, even if an American buys it. Production is counted in the year it happens.

Why adding up spending measures production

Imagine a coffee shop that makes $500,000 of drinks in a year. Every one of those drinks was bought by someone, so the shop’s sales equal its output. The same logic works for a whole economy: every final good that gets produced is bought by somebody. Add up the buyers and you have added up production. This is the expenditure approach.

There are four kinds of buyer, and that is where the four letters come from.

  • \(C\), consumption. Household spending on goods and services: food, rent, cars, haircuts. New houses are the one exception. They go in investment.
  • \(I\), investment. Spending on new capital: equipment, software and buildings bought by firms, new housing, and the change in firms’ inventories.
  • \(G\), government purchases. What governments buy: roads, fighter jets, the salaries of teachers and soldiers.
  • \(NX\), net exports. Exports minus imports, written \(NX = X - M\).

What about goods nobody buys? A truck that is built this year and sits unsold on the lot still counts. The accounts treat it as the firm buying the truck from itself. That is inventory investment, and it is part of \(I\). This is the bookkeeping that makes the identity hold in every period, good year or bad.

Why imports are subtracted

This is the step most students misread, so take it slowly with one purchase.

You buy a $1,000 television made in South Korea. (To keep it simple, pretend the whole $1,000 goes to the Korean maker and ignore the store’s cut.) That purchase is consumption, so \(C\) rises by $1,000. But nothing was produced in the US, so GDP should not change. The fix is that imports, \(M\), also rise by $1,000, and \(M\) enters with a minus sign. The +$1,000 in \(C\) and the −$1,000 in imports cancel, and GDP stays the same.

The same thing happens with imported machines inside \(I\) and imported equipment inside \(G\). Statisticians do not try to strip the foreign content out of each category one purchase at a time. They subtract all imports once, at the end. So the minus sign on \(M\) is a correction for spending that \(C\), \(I\) and \(G\) counted and that was not domestic production. It says nothing about whether imports are good or bad for the economy.

Three ways to count, one answer

You can reach the same GDP number by three routes. Add up spending on final goods (the expenditure approach). Add up the incomes earned from production (wages, profits, rent and interest). Or add up the value added at each stage of production, which is each firm’s sales minus what it paid other firms for inputs.

A quick example. A farmer grows wheat and sells it to a baker for $1. The baker turns it into bread and sells it to you for $3.

Final spending is $3. Value added is $1 at the farm plus $2 at the bakery, which is $3. Income is $1 to the farmer plus $2 to the baker, which is $3. One person’s spending is another person’s income, so the three totals have to match.

What GDP leaves out

GDP measures market production, and it is good at that. It is not a measure of well-being.

It leaves out work done at home without pay, such as cooking and childcare. It misses unreported cash and illegal activity. It puts no value on leisure, does not subtract pollution, and says nothing about how income is shared. Keep that in mind when you see GDP used as a scorecard.

All of the above, measured at this year’s prices, is nominal GDP. To compare across years you need to remove the effect of rising prices. That gives real GDP, the subject of the next chapter.

Show the math (the accounting identity)

Step 1: the identity. Total production \(Y\) equals total spending on it: \[Y = C + I + G + NX, \qquad NX = X - M.\] Here \(C\) is consumption, \(I\) is investment, \(G\) is government purchases, \(X\) is exports and \(M\) is imports.

Step 2: why it is an identity and not a theory. A theory can turn out to be wrong. This can’t, because of how the terms are defined.

Any good that is produced is sold to a household (\(C\)), a firm (\(I\)), the government (\(G\)) or a foreigner (\(X\)). If it is sold to no one, it goes into the firm’s inventories, which the accounts define as part of \(I\). So the two sides are equal in every period.

The identity does not tell you why \(C\) or \(I\) take the values they do. The behavioral models later in the course do that.

Step 3: why imports enter with a minus sign. Split each kind of domestic spending into the part spent on home-produced goods (superscript \(d\)) and the part spent on imports (superscript \(m\)): \[C = C^d + C^m, \qquad I = I^d + I^m, \qquad G = G^d + G^m.\] Total imports are \(M = C^m + I^m + G^m\). Domestic production is what residents buy from home producers plus what foreigners buy: \[Y = C^d + I^d + G^d + X = (C - C^m) + (I - I^m) + (G - G^m) + X = C + I + G + X - M.\] Why: the statistics record total \(C\), \(I\) and \(G\), imports included. Subtracting \(M\) removes exactly the import part, no more.

Step 4: shares. Divide both sides by \(Y\): \[\frac{C}{Y} + \frac{I}{Y} + \frac{G}{Y} + \frac{NX}{Y} = 1.\] For the United States in recent years, the rough sizes to remember are \[\frac{C}{Y} \approx 68\%, \qquad \frac{I}{Y} \approx 18\%, \qquad \frac{G}{Y} \approx 17\%, \qquad \frac{NX}{Y} \approx -3\%.\] The shares must sum to 100%, so the negative share for net exports is offset by the other three adding to about 103%.

Step 5: value added gives the same total. With a farmer selling $1 of wheat to a baker who sells $3 of bread: \[\underbrace{1}_{\text{farm}} + \underbrace{(3 - 1)}_{\text{bakery}} = 3 = \text{final sales}.\] Why: each intermediate sale appears once as a seller’s revenue and once as a buyer’s cost, so it cancels. Only the final sale is left.

What the simulator showed

  • At the defaults (\(C\) = $2,000, \(I\) = $500, \(G\) = $1,000, \(NX\) = −$200) the dashed rule read \(Y\) = $3,300, with shares of 60.6% for \(C\), 15.2% for \(I\), 30.3% for \(G\) and −6.1% for \(NX\). The red bar pointed left of zero and pulled the total down by $200.
  • Moving \(NX\) from −$200 to +$200 raised \(Y\) by $400, to $3,700. Each dollar of \(NX\) moves the total by one dollar, and the old −$200 had been subtracting.
  • Moving any single slider moved the total by the same amount. That is all an identity does. In a real economy the components would not sit still while one of them changed: closing a trade deficit usually comes with changes in \(C\) or \(I\). The simulator shows the bookkeeping, and the later chapters supply the behavior.
  • Dragging \(I\) below zero is something the slider allows and the US data has never shown. One piece of investment, the change in inventories, does go negative when firms sell more than they produce. Total (gross) investment has stayed positive in every year since the accounts begin in 1929. Its lowest point was about $1.8 billion, in 1932.

Work through it

Worked example: GDP and its shares

The question. An economy has consumption of $6,800, investment of $1,800, government purchases of $1,700, exports of $1,100 and imports of $1,400 (all in billions). Find net exports, GDP and each component’s share of GDP.

Step 1: net exports. \(NX = X - M = 1{,}100 - 1{,}400 = -300\). The country imports more than it exports, so it has a trade deficit.

Step 2: add the four components. \(Y = 6{,}800 + 1{,}800 + 1{,}700 + (-300) = 10{,}000\).

Step 3: divide each by \(Y\). \(C\): 6,800/10,000 = 68%. \(I\): 1,800/10,000 = 18%. \(G\): 1,700/10,000 = 17%. \(NX\): −300/10,000 = −3%.

Answer. \(NX\) = −$300 billion, GDP = $10,000 billion, and the shares are 68%, 18%, 17% and −3%.

Sanity check. The shares should sum to 100%: 68 + 18 + 17 − 3 = 100. ✓ Set the sliders to \(C = 6{,}800\), \(I = 1{,}800\), \(G = 1{,}700\) and \(NX = -300\) and the simulator shows the same total and the same shares. These numbers were picked to look like the US economy, as the next section shows.

A common wrong answer. Adding exports and forgetting imports gives 6,800 + 1,800 + 1,700 + 1,100 = 11,400. That counts the $1,400 of foreign goods hidden inside \(C\), \(I\) and \(G\) as if they were made at home.

Worked example: does it count?

The question. For each transaction, say how \(C\), \(I\), \(G\), \(X\) and \(M\) change and what happens to this year’s US GDP.

(a) A household buys a new $30,000 car built in Michigan. \(C\) rises by $30,000. GDP rises by $30,000.

(b) A household buys a $1,000 TV made in South Korea. \(C\) rises by $1,000 and \(M\) rises by $1,000. They cancel, and GDP does not change. Nothing was produced in the US.

(c) A truck maker builds $50,000 of trucks that are still unsold at year end. This is inventory investment. \(I\) rises by $50,000, and so does GDP. Production counts when it happens.

(d) The government sends a retiree a $2,000 Social Security check. Nothing changes. This is a transfer of money, with no good or service produced in exchange. If the retiree spends it on groceries, that purchase shows up in \(C\).

(e) A city pays a public-school teacher $60,000. \(G\) rises by $60,000. The government is buying a service, teaching.

(f) A US software firm sells a $5,000 license to a company in Germany. \(X\) rises by $5,000, and so does GDP.

(g) You buy a used textbook from a friend for $50. Nothing changes. The book was counted when it was printed.

(h) A dealer imports a car for $20,000 and sells it to a household for $25,000. \(C\) rises by $25,000 and \(M\) rises by $20,000. GDP rises by $5,000, which is the value of the dealer’s service: shipping, showroom, sales staff. That part was produced in the US. (Part (b) left out the store’s markup to keep the idea clean. This part puts it back in.)

Answer. Totals: \(C = +56{,}000\), \(I = +50{,}000\), \(G = +60{,}000\), \(X = +5{,}000\), \(M = +21{,}000\). GDP rises by 56,000 + 50,000 + 60,000 + 5,000 − 21,000 = $150,000.

Sanity check. Add up only what was produced at home: the Michigan car (30,000), the trucks (50,000), the teaching (60,000), the software (5,000) and the dealer’s service (5,000). That is 150,000 as well. ✓

In the real world

In the real world: US GDP in 2025

In 2025, US GDP was about $30.9 trillion. Here is how it split up.

Component Billions of dollars Share of GDP
Consumption (\(C\)) 20,870 67.6%
Investment (\(I\)) 5,557 18.0%
Government purchases (\(G\)) 5,355 17.4%
Net exports (\(NX\)) −921 −3.0%
GDP (\(Y\)) 30,861 100%

Net exports were negative because the US exported about $3.3 trillion and imported about $4.3 trillion. Consumption is by far the biggest piece: about two of every three dollars. \(G\) here is purchases only. Total government budgets are much larger once transfers such as Social Security are added back.

Source: US Bureau of Economic Analysis, national income and product accounts, annual data for 2025, via FRED series GDPA, PCECA, GPDIA, GCEA, EXPGSA and IMPGSA.

In the real world: investment is the piece that swings

Between 2008 and 2009, in the worst of the financial crisis, US consumption fell about 1.6% in dollar terms (from $10.05 trillion to $9.89 trillion). Investment fell about 22% (from $2.48 trillion to $1.93 trillion). Investment is under a fifth of GDP, but it accounts for much of the movement in recessions, because firms can postpone a new factory far more easily than households can postpone groceries and rent.

The Great Depression was even more extreme. Investment was about $17 billion in 1929 and under $2 billion in 1932, a fall of roughly 90%. Even then it stayed above zero.

Source: BEA national accounts via FRED, annual series PCECA and GPDIA (current dollars), 1929–2025.

Common confusions

“Imports are subtracted, so buying imports lowers GDP.” This is the most common misreading of the formula. When you buy a $1,000 imported TV, \(C\) rises by $1,000 and \(M\) rises by $1,000. The two cancel and GDP is unchanged, which is the right answer because nothing was produced at home. The \(-M\) term exists to cancel the imports already counted inside \(C\), \(I\) and \(G\).

“Government spending \(G\) includes Social Security and unemployment benefits.” It is easy to assume \(G\) means the whole government budget. In the GDP identity it means government purchases of goods and services: roads, teachers’ salaries, fighter jets. Transfer payments move money from one person to another without buying any current production, so they are left out. When a retiree spends a Social Security check on groceries, that spending counts in \(C\).

“Investment means buying stocks and bonds.” In everyday speech it does. In the national accounts, investment means spending on new capital: a new machine, a new office building, a new house, or added inventories. Buying 100 shares of a company moves an existing asset from one owner to another and produces nothing, so it is not in GDP. Buying an existing house is the same.

“GDP adds up every sale in the economy.” If it did, the same wheat would be counted when the farmer sells it, again inside the flour, and again inside the bread. GDP counts each thing once, at its final sale. Equivalently, it adds up the value each firm adds along the way.

On the exam

On the exam

  • How it’s asked. “Given \(C\), \(I\), \(G\), exports and imports, compute GDP and net exports.” “For each transaction, say whether it is counted in GDP and in which component.” “A firm buys \(X\) of inputs and sells \(Y\) of output: what is its value added?” “Explain in two sentences why imports are subtracted.”
  • Trap: using exports where the formula wants net exports. If the question gives exports and imports separately, compute \(NX = X - M\) first.
  • Trap: transfers and used goods. Social Security, unemployment benefits, stock purchases and resales of existing houses or cars are not in GDP. Fees for the service of selling them (a realtor’s commission, a broker’s fee) are.
  • Trap: new housing. A new house is investment, not consumption, even though a household buys it.
  • Trap: unsold goods. They count this year, as inventory investment.
  • If you only remember three things: (1) \(Y = C + I + G + NX\), with \(NX = X - M\). (2) GDP counts new, final, domestic production once. (3) Imports are subtracted to cancel foreign goods already inside \(C\), \(I\) and \(G\), so buying an import leaves GDP unchanged.

Self-check

Q1 · concept

Which of the following adds to this year’s US GDP?

a) A family buys a three-year-old house from its previous owner No. The house was counted in GDP the year it was built. Reselling an existing asset is a transfer of ownership, with no new production. Only the realtor’s fee, a current service, counts.
b) A firm produces goods this year that sit unsold in its warehouse on December 31 Correct. Unsold current production counts as inventory investment inside \(I\). Production is counted when it happens, whether or not the goods have sold yet.
c) The government mails out this year’s Social Security checks No. Transfer payments buy no current goods or services, so they are left out of \(G\). The money shows up in GDP only when recipients spend it, as part of \(C\).
Q2 · simulator challenge

An economy has \(C\) = $800, \(I\) = $200, \(G\) = $300, exports of $150 and imports of $200 (all in billions). Compute \(NX\), set the four sliders to match, and read off GDP. What is \(Y\), and what share of it is consumption?

Reveal answer \(NX\) = 150 − 200 = −$50 billion, so set the sliders to \(C = 800\), \(I = 200\), \(G = 300\), \(NX = -50\). The dashed rule reads \(Y\) = $1,250, and the summary line shows consumption at 800/1,250 = 64.0% of GDP (\(I = 16.0\%\), \(G = 24.0\%\), \(NX = -4.0\%\)).
Q3 · numeric

A US car dealer imports a car from Japan for $20,000 and sells it to a US household for $25,000. By how much does US GDP change?

a) It rises by $25,000 No. Consumption does rise by $25,000, but $20,000 of that car’s value was produced in Japan. Imports rise by $20,000 and cancel that part.
b) It rises by $5,000 Correct. \(C\) rises by $25,000 and \(M\) rises by $20,000, so GDP rises by 25,000 − 20,000 = $5,000. That is the dealer’s value added: the selling service was produced in the US.
c) It falls by $20,000 No. The import is subtracted, but the household’s purchase is added, and the purchase is larger. Imports on their own never lower GDP: they cancel spending that was already counted.
Q4 · concept

Which of these counts as investment (\(I\)) in the GDP accounts?

a) A household buys 100 shares of a tech company No. Buying shares transfers ownership of an existing asset. Nothing new is produced, so it is not in GDP at all. Only the broker’s fee would count, as a service.
b) A restaurant chain builds a new kitchen Correct. Investment in the accounts is spending on new capital: structures, equipment, software, new housing and added inventories. A new kitchen is a new structure with new equipment.
c) A household buys a new refrigerator No. Durable goods bought by households count as consumption. The one household purchase that counts as investment is a newly built home.
Q5 · numeric

A farmer sells wheat to a miller for $1.00. The miller sells flour to a baker for $1.80. The baker sells bread to customers for $4.00. Assume the farmer buys no inputs. How much does this chain add to GDP, and what is each firm’s value added?

Reveal answer GDP rises by $4.00, the value of the final good. Value added is $1.00 for the farmer, 1.80 − 1.00 = $0.80 for the miller, and 4.00 − 1.80 = $2.20 for the baker. These sum to 1.00 + 0.80 + 2.20 = $4.00, the same number. Adding up all three sales would give $6.80, which counts the wheat three times and the flour twice.