Skip to content

GDP Calculator

GDP from consumption, investment, government spending and net exports.

  • 100% Free
  • Instant Results
  • No Sign Up

GDP Calculator

GDP by the expenditure approach: C + I + G + (X - M)

$billion

Household spending on goods and services.

$billion

Business investment, housing and inventories.

$billion
$billion
$billion

GDP

$29.2 trillion

$29,200 billion

Consumption67.8% of GDP
$19,800 billion
Investment18.2% of GDP
$5,300 billion
Government spending17.1% of GDP
$5,000 billion
Net exports (X - M)Trade deficit
-$900 billion

Default figures are rounded US 2024 annual values in billions of dollars (BEA national accounts), for illustration.

Components ($ billion)
$ billion: from $19,800 to $29,200$-900$6.6K$14.2K$21.7K$29.2KCIGX - MGDP
  • $ billion

How it was calculated

  1. GDP = C + I + G + (X - M)
  2. = 19,800 + 5,300 + 5,000 + (3,200 - 4,100) = 29,200

More Other Calculators

View all calculators

Every calculator you need.

Free, fast, and easy to use.

Browse all 204 calculators
Calculators
204+
Free to use
100%
Results as you type
Instant

How the gdp calculator works

The expenditure approach adds up everything spent on final goods and services in a year: GDP = C + I + G + (X - M). Imports are subtracted because they were produced abroad, even though they show up in C, I and G.

Real GDP removes inflation by dividing nominal GDP by the GDP deflator (a price index where the base year is 100), so growth can be compared across years.

Using and checking your result

Published by JustYourCalculator. Check the units and assumptions above, and compare a known example before relying on the output. Calculations use browser arithmetic and may round displayed values.

Share links may contain your input values. Anyone with the URL can read them; avoid sharing sensitive personal or financial information.

Frequently asked questions