Skip to content

GDP Calculator

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

$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

Calculations run on this device and your inputs are not uploaded. A share link puts your inputs in the URL, so anyone with the link can read them.

More Other Calculators

All calculators

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

Consumption, investment, government spending and net exports (exports minus imports). In the US, consumption is about two thirds of GDP.

GDP measures what a country produces. Imported goods are counted in spending, so they're taken back out to leave only domestic production.

Yes. Every calculator is free with no sign-up. Clearly labeled ads keep it that way.

Calculations run in your browser. Share links put inputs in the URL, which can be read by anyone you send it to and is sent to the hosting server when opened. Avoid sharing sensitive numbers. Currency conversion requests public exchange rates.

Results follow the formulas and assumptions shown, with normal rounding and numerical limits. Taxes, rates and health guidance can change, so treat these as estimates and confirm important decisions with a qualified professional.