GDP calculator (expenditure approach)

Add up the main spending of a country to get its GDP. Add the population, the previous year or a price index for GDP per person, growth and real GDP.

GDP calculator (expenditure approach)

Can be negative if stocks go down.
GDP deflator: 110 = prices 10% higher than the base year.

Result

1,650Nominal GDP

Trade balance (X − M)
-50
Real GDP (base-year prices)
1,500
Nominal GDP per person
33
Nominal growth
10%

GDP calculator (expenditure approach)

Inputs

Household consumption (C)
1000
Investment (I)
300
Government spending (G)
400
Exports (X)
200
Imports (M)
250
Population (optional)
50
GDP of the previous period (optional)
1500
Price index, base 100 (optional)
110

How it is calculated

GDP = C + I + G + (X − M).

Result

Nominal GDP

1,650
Trade balance (X − M)
-50
Real GDP (base-year prices)
1,500
Nominal GDP per person
33

How it is calculated

  1. GDP = C + I + G + (X − M).
  2. GDP per person = GDP ÷ population.
  3. Growth = (GDP − previous GDP) ÷ previous GDP × 100.
  4. Real GDP = nominal GDP ÷ price index × 100: it removes the effect of rising prices.

Example

C 1,000, I 300, G 400, X 200, M 250: GDP = 1,650. With 50 people, 33 per person; with an index of 110, real GDP ≈ 1,500.

Good to know

  • Use the same unit everywhere (for example billions of dollars).
  • Nominal GDP includes price rises; only real GDP truly compares two years.
  • Official figures come from national accounts (BEA, Eurostat, etc.) and are often revised.

Sources

  • System of National Accounts (2008 SNA, United Nations)
  • IMF — GDP basics

When to use it

  • Check a GDP exercise in an economics class.
  • Understand how trade or public spending weighs on GDP.
  • To work out a growth rate between two figures, use the Percentage calculator.

Frequently asked questions

Why are imports subtracted?

Imports are already counted in consumption, investment or government spending. Subtracting them keeps only what was produced in the country.

Is GDP a measure of well-being?

Not directly. It leaves out unpaid work, leisure, inequality and the environment, so other indicators are used next to it.

What is the difference between GDP and GNI?

GDP counts what is produced in the country. GNI adds income residents earn abroad and removes income sent abroad.

Updated October 10, 2026

Indicative result. For an important decision, check with a professional.