Skip to content
Tutorials Center
My learning

Topics

Lesson 7 of 37 ยท National Income and GDP

The Expenditure Approach to GDP

Break GDP into consumption, investment, government spending and net exports, learn what each part includes, and compute GDP and shares in code.

The expenditure approach is the most common way to think about GDP in macroeconomics, because it connects directly to aggregate demand, the total spending on a country's output. It adds up who buys the final goods and services produced in the economy.

The identity

GDP = C + I + G + (X โˆ’ M)

  • C: consumption. Household spending on goods and services (food, clothes, rent, haircuts, streaming subscriptions).
  • I: investment. Spending on new capital goods: machinery, buildings, software, and changes in firms' stocks of inventories. It also includes new housing in most countries' accounts.
  • G: government spending. Government purchases of goods and services, including public-sector wages and infrastructure.
  • X โˆ’ M: net exports. Exports (foreign purchases of our goods) minus imports (our purchases of foreign goods).

Imports are subtracted because C, I and G include spending on foreign goods. That spending does not create domestic output, so it has to be removed.

GDP = C + I + G + (X - M)

C Household spending
I Business investment
G Government purchases
X - M Net exports
1 / 2

What belongs where

Investment is not buying shares. In macroeconomics, investment means firms buying new capital goods. Buying shares or bonds is a financial transaction; it moves ownership but does not create new output.

Government spending excludes transfers. Pensions, unemployment benefits and student grants are transfer payments: they move income from one group to another without the government buying anything in return. They are not in G. When recipients spend the money, it appears in C.

Inventories count as investment. If a firm produces goods but does not sell them this year, the unsold goods are added to its stocks. They are counted as investment so that GDP matches what was produced.

Used goods are excluded. A second-hand car was counted when it was first produced.

Transaction Counted in GDP? Where
A family buys a new refrigerator Yes C
A firm buys a new delivery van Yes I
The government pays a teacher Yes G
The government pays a pension No (transfer) later in C if spent
Someone buys shares on an exchange No financial transaction
A foreign customer buys our machinery Yes X
A household buys imported cheese Yes in C, minus in M cancels out

Computing GDP and shares

The next example computes GDP and the share of each component for an invented economy. In many real economies consumption is the largest share, often more than half of GDP.

Python GDP and component shares

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

How each part changes

Because GDP is the sum, you can see how a change in one component changes GDP, holding the others fixed. This is a first look; the multiplier will show that the final effect can be bigger.

JS What if one component changes?

Press Run (or Ctrl + Enter) to see the console output here.

No output.

In this simple calculation, the change in GDP equals the change in the component. Later lessons add feedback: if investment falls, incomes fall too and consumption follows.

An import is a leakage from the spending flow on domestic goods, but a rise in imports is not automatically "bad for GDP". It becomes a drag on GDP only if the extra imports replace domestic spending rather than coming from extra total spending.

Why the breakdown is useful

Analysts watch each component for different reasons. Investment is volatile and often falls first in a downturn. Consumption is large and steady. Government spending reflects policy. Net exports depend on the world economy and the exchange rate. Looking at which component changed helps to explain why GDP moved. This will help in the next chapters on aggregate demand.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Why are imports subtracted in the expenditure formula?

    Spending on foreign production is included in C, I or G, so it must be removed to measure domestic output.
  2. 2. Which item is part of G?

    Pensions and benefits are transfer payments. A teacher's salary is payment for a service the government buys.
  3. 3. In macroeconomics, investment includes...

    Investment means spending on new capital goods; financial purchases and used goods are not counted.
  4. 4. C = 500, I = 100, G = 150, X = 120, M = 140. What is GDP?

    GDP = 500 + 100 + 150 + (120 - 140) = 730 - 20 = 710.

Summary

  • GDP = C + I + G + (X โˆ’ M).
  • Investment means new capital goods and changes in inventories, not financial assets.
  • Transfers and used goods are not counted in G or GDP.
  • Imports are subtracted because some of C, I and G is spent on foreign output.
  • The breakdown shows which part of spending drives changes in GDP.

Next: Nominal and Real GDP