esc
Calculators

GDP calculator:
expenditure approach, C + I + G + NX

Type the four spending parts of an economy for a year, in any currency and scale. You get GDP, how much each part contributes and, if you add them, GDP per person and real GDP from a deflator.

Household spending on goods and services.
Business equipment, buildings, new homes, change in inventories.
Goods, services and public investment. Not pensions or other transfers.
Optional, for GDP per person.
Optional (base year = 100), for real GDP.
GDP23,100 billionC + I + G + (X − M)
  • Consumption 64.9%
  • Investment 18.0%
  • Government 17.2%
Net exports (X − M)
-800 billion
Consumption share
67.1%
Investment share
18.6%
Government share
17.7%
Net exports share
-3.5%
  • Net exports are negative (a trade deficit), so they lower GDP; the bar shows only the positive parts.

How to use GDP calculator

  1. 01Type C, I and GConsumption, investment, government.
  2. 02Add exports and importsTheir difference is net exports.
  3. 03Read GDPWith shares, per person and real.
File character arranging marked pages

Everything spent on final goods.

The expenditure approach adds up spending on final goods and services made in the country: household consumption (C), business and housing investment (I), government purchases (G) and exports minus imports (X − M). Pensions and other transfers are left out of G because nothing is produced in return. Dividing by a price index of 100 in the base year turns nominal GDP into real GDP.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Your text stays in your browser. Nothing is uploaded.
Works in
Chrome, Edge, Firefox and Safari, on phones and computers

Questions

What is the GDP formula?

GDP = C + I + G + (X − M). With consumption 15,500, investment 4,300, government 4,100, exports 2,800 and imports 3,600 (billions), GDP is 15,500 + 4,300 + 4,100 − 800 = 23,100 billion.

Why are imports subtracted?

Spending on imported goods is already counted inside consumption, investment and government spending, but it was produced abroad. Subtracting imports removes it so only domestic production is left.

How do I get real GDP?

Divide nominal GDP by the GDP deflator and multiply by 100. Nominal GDP of 23,100 with a deflator of 110 is 21,000 in base-year prices.

Is what I type sent anywhere?

No. The calculation runs in your browser and nothing you type leaves your device.