Economics
GDP: 3 Formulas for Gross Domestic Product + 9 Exercises
GDP is calculated three ways: expenditure C+I+G+X−M, value added, income. Formulas, nominal vs real GDP, the deflator and 9 step-by-step solved exercises.
Recommended for: Grade 10 · Grade 11 · Grade 12
GDP (Gross Domestic Product) is the value of all final goods and services produced in a country in a year. It can be calculated in three ways that must give the same number, and the most used is the expenditure approach:
GDP = C + I + G + (X − M)
that is household consumption, business investment, government spending, plus exports minus imports.
The definition, word by word
Every word of the definition exists to exclude something, and that is exactly where exercises catch people out.
- Value: you add up money, not units. You cannot add cars to haircuts.
- Final: only goods reaching the end user are counted. Wheat and flour are not counted separately, or they would be counted twice inside the price of bread.
- Produced: there must be new production. A resold used car does not enter, because it was counted years ago.
- In a country: what matters is the territory, not the owner’s nationality. A Japanese factory in the United States produces US GDP.
- In a year: GDP is a flow, not a stock. It is what you produce in twelve months, not what you own.
The three GDP formulas
| approach | formula | idea |
|---|---|---|
| expenditure | GDP = C + I + G + (X − M) | who buys the output |
| value added | GDP = Σ (sales − intermediate goods) | how much each firm adds |
| income | GDP = wages + profits + rent + interest + indirect taxes | who receives the money |
The three approaches are three ways of looking at the same pie: who buys it, who makes it, who pockets the value. If they give different answers in an exercise, there is an arithmetic error somewhere.
What counts and what does not
| counts in GDP | does NOT count in GDP |
|---|---|
| new final goods and services | intermediate goods (double counting) |
| public services (valued at cost) | resold second-hand goods |
| newly built houses (as investment I) | pensions and benefits (transfers) |
| estimated owner-occupied housing services | purchases of shares and bonds |
| estimated shadow economy | housework and volunteering |
The distinction between a transaction and production solves almost every classification exercise: if money moves without a new good or service coming into existence, it does not enter GDP.
Nominal GDP, real GDP and the deflator
Nominal GDP is measured at current prices; real GDP at the prices of a fixed base year. The ratio between them is the deflator:
deflator = (nominal GDP / real GDP) · 100
and rearranging: real GDP = (nominal GDP / deflator) · 100.
The deflator equals 100 in the base year. If it is 120, prices are 20% higher than in that year: this is where being comfortable with percentage change pays off, because reading “the deflator is 120” as “inflation is 120%” is by far the most common mistake.
For real growth over one year the quick approximation is: real growth ≈ nominal growth − inflation. The exact calculation is (1 + nominal growth) / (1 + inflation) − 1.
GDP per capita
GDP per capita = GDP / population. It lets you compare countries of different sizes: India has a huge GDP and a GDP per capita far below Switzerland’s. It is an average, so it says nothing about how that income is shared out.
The most common mistakes
- Adding intermediate goods. In the bread chain the answer is 300, not 580.
- Counting second-hand sales. A used car is not this year’s production; only the dealer’s commission is.
- Counting transfers. Pensions, grants and benefits move income, they do not create it.
- Getting the sign of net exports wrong. If X − M is negative and you have to find another component, subtracting a negative means adding it: that is exercise 8.
- Reading the deflator as an inflation rate. 120 means +20% since the base year, not +120%.
- Confusing GDP with GDP per capita when comparing countries.
- Confusing territory with residence, that is GDP with GNI.
Why GDP is not a measure of wellbeing
GDP rises even when something bad happens: an earthquake pushes up GDP in the following years because of the rebuilding, and pollution is never subtracted. It ignores housework, says nothing about inequality and nothing about quality of life. That is why GDP is used alongside indicators such as the Human Development Index. It remains, however, the number that decides whether an economy is in recession, and it underpins nearly all reasoning about prices and markets, starting with how an equilibrium price emerges from supply and demand.
The nine exercises below follow the order in which the topic is actually learned: first the two calculation approaches, then recognising what counts and what does not, then nominal, real, deflator and growth, and finally the two cases that show up in the hardest tests, namely recovering a missing component by solving a linear equation and moving from GDP to GNI.
Solved exercises
1. In one year a country records household consumption of $700 billion, investment of $200 billion, government spending of $300 billion, exports of $250 billion and imports of $200 billion. Calculate GDP using the expenditure approach. base
Show solution
- Write the expenditure formula: GDP = C + I + G + (X − M).
- Substitute the values: GDP = 700 + 200 + 300 + (250 − 200).
- Work out net exports first: X − M = 250 − 200 = 50.
- Add up: 700 + 200 = 900 ; 900 + 300 = 1200 ; 1200 + 50 = 1250.
- Imports are subtracted because they are already inside C, I and G: when a household buys a foreign-made phone that purchase went into C, but it is not domestic production, so it must be removed.
Answer: GDP = $1,250 billion
2. A farmer sells wheat to a miller for $100 (he buys no inputs). The miller sells flour to a baker for $180. The baker sells bread to customers for $300. Calculate the chain's contribution to GDP using the value-added approach. base
Show solution
- Each firm's value added is what it sells minus the intermediate goods it bought.
- Farmer: 100 − 0 = 100.
- Miller: 180 − 100 = 80.
- Baker: 300 − 180 = 120.
- Add the value added: 100 + 80 + 120 = 300.
- Check: 300 is exactly the value of the bread, the only final good. The two approaches must always give the same number.
- The classic mistake is adding 100 + 180 + 300 = 580: the wheat gets counted three times and the flour twice. That is double counting, which is why only final goods enter GDP.
Answer: Total value added = $300, equal to the value of the final good (the bread)
3. For each transaction, say whether it enters this year's GDP and why: (a) someone sells a used car to another private buyer for $6,000; (b) the state pays a public school teacher's salary; (c) you buy $5,000 of shares; (d) a retiree receives a Social Security payment; (e) a family buys a newly built house; (f) a plumber fixes your sink and is paid in cash, off the books. base
Show solution
- Always ask the same question: was a new final good or service PRODUCED in this territory in this year?
- (a) No. The car was produced and counted in an earlier year: this is only a change of ownership. Only the dealer's commission enters, because that is a new service.
- (b) Yes. Public services have no market price, so they are counted at their cost of production, which is essentially wages.
- (c) No. It is a financial transaction: it moves savings, it does not create goods. Only the broker's fee enters.
- (d) No. It is a transfer: money moves without a good or a service being supplied in exchange.
- (e) Yes, and it counts as investment (I), not consumption: in the national accounts new housing is investment in structures.
- (f) It is real production, but it escapes measurement: it is the shadow economy. Statistical agencies estimate it and add it in, but it appears in no tax return.
Answer: Enter GDP: (b) public salary, (e) new house, (f) as an estimate of the shadow economy. Do not enter: (a) used car, (c) shares, (d) transfer payment
4. In 2026 a country's nominal GDP is $2,100 billion and the GDP deflator, with 2020 as the base year, is 120. Calculate real GDP at 2020 prices. intermedio
Show solution
- Use the deflator formula: deflator = (nominal GDP / real GDP) · 100.
- Rearrange for real GDP: real GDP = (nominal GDP / deflator) · 100.
- Substitute: real GDP = (2100 / 120) · 100.
- 2100 / 120 = 17.5 ; then 17.5 · 100 = 1750.
- Interpretation: of the $2,100 billion measured at today's prices, only $1,750 billion corresponds to actual quantities of goods and services. The rest is higher prices since 2020.
Answer: Real GDP = $1,750 billion at 2020 prices
5. A country has nominal GDP of $1,800 billion and real GDP of $1,500 billion. Calculate the GDP deflator and state how much prices have risen since the base year. intermedio
Show solution
- Apply the definition: deflator = (nominal GDP / real GDP) · 100.
- deflator = (1800 / 1500) · 100 = 1.2 · 100 = 120.
- By definition the deflator equals 100 in the base year.
- Price change = (120 − 100) / 100 = 0.20, that is +20%.
- Careful: this is the cumulative rise since the base year, not this year's inflation rate.
Answer: Deflator = 120 ; prices are 20% higher than in the base year
6. Nominal GDP rises from $2,000 billion to $2,100 billion. Over the same year prices rise by 3%. Calculate real growth, first approximately and then exactly. intermedio
Show solution
- Nominal growth = (2100 − 2000) / 2000 = 100 / 2000 = 0.05, that is +5%.
- Quick method: real growth ≈ nominal growth − inflation = 5% − 3% = 2%.
- Exact method: 1 + g real = (1 + 0.05) / (1 + 0.03) = 1.05 / 1.03.
- 1.05 / 1.03 ≈ 1.01942, so g real ≈ 0.01942, that is +1.94%.
- Subtraction is a good approximation for small numbers, but it always overstates slightly: here it gives 2% instead of 1.94%. With high inflation the error becomes large.
Answer: Nominal growth +5% ; real growth ≈ +2% by the quick method, +1.94% exactly
7. Country A has GDP of $1,200 billion and 40 million people. Country B has GDP of $900 billion and 25 million people. Calculate GDP per capita for each and decide which country is richer. intermedio
Show solution
- GDP per capita = GDP / population.
- Country A: 1,200,000,000,000 / 40,000,000 = $30,000 per person.
- Country B: 900,000,000,000 / 25,000,000 = $36,000 per person.
- Country A has the larger total GDP, but country B has the higher GDP per capita.
- Conclusion: total GDP measures the size of the economy, GDP per capita approximates average living standards. Cross-country comparisons almost always use the second.
Answer: A = $30,000 per capita ; B = $36,000 per capita: B is richer per person despite the smaller total GDP
8. For a country you know that GDP is $1,500 billion, consumption is $900 billion, government spending is $250 billion, exports are $300 billion and imports are $350 billion. Calculate investment. avanzato
Show solution
- Start from the identity GDP = C + I + G + (X − M) and solve for I like an ordinary linear equation.
- I = GDP − C − G − (X − M).
- Work out net exports first: X − M = 300 − 350 = −50. They are negative: the country imports more than it exports.
- I = 1500 − 900 − 250 − (−50) = 1500 − 900 − 250 + 50.
- 1500 − 900 = 600 ; 600 − 250 = 350 ; 350 + 50 = 400.
- Check by substituting: 900 + 400 + 250 + (−50) = 1500. It works.
- The tricky part is the double minus: subtracting a negative trade balance means adding it. Getting this wrong gives 300 instead of 400.
Answer: I = $400 billion
9. A country's GDP is $2,000 billion. Its residents earn $60 billion of income abroad; foreigners earn $85 billion of income inside the country. Calculate Gross National Income (GNI, formerly GNP) and explain why it differs from GDP. avanzato
Show solution
- GDP is a TERRITORIAL measure: it counts what is produced inside the borders, whoever owns the firm.
- GNI is a RESIDENCE measure: it counts income accruing to residents, wherever it was earned.
- Formula: GNI = GDP + income received from abroad − income paid to non-residents.
- GNI = 2000 + 60 − 85.
- 2000 + 60 = 2060 ; 2060 − 85 = 1975.
- GNI is $25 billion below GDP: part of what is produced in the country ends up in foreign owners' pockets. This is typical of countries hosting many foreign multinationals, such as Ireland.
Answer: GNI = $1,975 billion, that is $25 billion less than GDP
FAQ
What is the difference between nominal and real GDP?
Nominal GDP values output at current prices, so it grows both when more is produced and when prices rise. Real GDP values the same output at the prices of a fixed base year, so it grows only when quantities increase. That is why the growth figure you hear on the news is always the real one: using nominal GDP, a country with 20% inflation and no extra output would look like it was booming.
Why are imports subtracted in the GDP formula?
Not because imports are bad for the economy, but for an accounting reason. When you buy a phone made in Korea, that spending is recorded inside consumption C, because C measures all household spending, not just spending on domestic products. But the phone is not domestic production, so it has to come out: subtracting M removes exactly the foreign portion already counted in C, I and G. If imports were not recorded anywhere else, there would be nothing to subtract.
Does housework count in GDP?
No. If you cook for your family or look after your own children GDP does not move; if you pay a cleaner or a daycare centre to do the same things GDP rises. This is one of the most criticised limits of the measure, along with the exclusion of volunteering: GDP measures production that goes through the market, not wellbeing. A country can raise GDP simply because unpaid work becomes paid.
How do you calculate GDP per capita?
Divide total GDP by the population: GDP per capita = GDP / population. It is an average, so it says nothing about how income is distributed: two countries with the same GDP per capita can have very different inequality. To compare countries with different living costs, economists then use GDP per capita at purchasing power parity (PPP).
What is the difference between GDP and GNP?
GDP is territorial: it measures everything produced inside the borders, including by foreign firms. GNP (now normally called Gross National Income, GNI) is about people: it measures the income accruing to residents, even if earned abroad. You move from one to the other with GNI = GDP + income from abroad − income paid abroad. In countries hosting many foreign multinationals, GNI is markedly lower than GDP.