GDP Calculator

Enter consumption, investment, government spending, exports and imports to find Gross Domestic Product. Add population and last year's GDP for per-capita figures and growth.

How it works

The expenditure approach adds up everything spent on final goods and services in an economy: household consumption, business investment, government spending and net exports (exports minus imports).

GDP = C + I + G + (X − M)
GDP per capita = GDP ÷ population
Growth = (GDP − previous GDP) ÷ previous GDP × 100

Worked example

Using the default values: Consumption (C) (billions) = 14000; Investment (I) (billions) = 3500; Government spending (G) (billions) = 3800; Exports (X) (billions) = 2500; Imports (M) (billions) = 3200; Population (optional) (millions) = 330; Previous GDP (optional) (billions) = 20000.

The calculator returns: GDP: 20,600 billion; Net exports (X − M): -700; Consumption share of GDP: 68%; GDP per capita: 62,424; Growth from previous GDP: 3%.

Limits and assumptions

  • Use the same currency and the same unit (for example billions) for all spending figures.
  • Official GDP is compiled by national statistics offices using many data sources. This is a classroom-style calculation.
  • GDP does not measure well-being, inequality or unpaid work.

Last reviewed: 2026-12-01. Found a mistake? Please use the Contact page and tell us the inputs you used.

Important: this calculator provides general financial information and estimates only. It is not professional advice. Please read our Disclaimer and Editorial Policy, and confirm important decisions with a qualified professional.

Last reviewed: November 2026 · Maintained by Ahsan Mughal, Blowing Ideas. Report a mistake via the Contact page.

Frequently asked questions about the GDP Calculator

What counts as investment (I)?

Business spending on equipment and buildings, new housing and changes in inventories. Buying shares is not counted.

Can net exports be negative?

Yes. If imports exceed exports, net exports are negative and reduce GDP.

What is the difference between nominal and real GDP?

Nominal GDP uses current prices; real GDP adjusts for inflation. Use real figures to compare growth.

Advertisement