GDP Calculator

Calculate GDP using the expenditure approach: GDP = C + I + G + (X − M). Includes per-capita GDP and real GDP from a price deflator.

GDP Results

$22T
GDP = C + I + G + NX
Net Exports (X − M)-0.5T
Per-Capita GDP$65,672
Real GDP (deflator 115)$19.13T
15T + 4T + 3.5T + (2.5T − 3T) = $22T

Expenditure Components

All amounts in trillions (any consistent unit works)

$T

Household spending on goods and services

$T

Business capital, equipment, and residential construction

$T

Government purchases of goods and services

$T

Goods and services sold abroad

$T

Goods and services bought from abroad (subtracted)

Per-Capita & Real GDP

Optional extra calculations

M

Per-capita GDP = GDP ÷ population

Real GDP = Nominal GDP ÷ deflator × 100

A $22T economy with 335 million people produces about $65,672 of GDP per person.
At a deflator of 115, real GDP is $19.13T in base-year dollars — prices have risen since the base year.

Component Shares of GDP

ComponentAmountShare
Consumption (C)$15T68.2%
Investment (I)$4T18.2%
Government (G)$3.5T15.9%
Net Exports (NX)$-0.5T-2.3%

Net exports are negative (a trade deficit), which subtracts 0.5T from GDP.

Formulas

Expenditure approach:GDP = C + I + G + (X − M)
Per-capita GDP:GDP ÷ population
Real GDP:(Nominal GDP ÷ deflator) × 100
GDP deflator:(Nominal GDP ÷ Real GDP) × 100

Worked Example

With C = 15T, I = 4T, G = 3.5T, X = 2.5T, and M = 3T (all trillions of dollars):

GDP = 15 + 4 + 3.5 + (2.5 − 3) = 15 + 4 + 3.5 − 0.5 = $22T

Divided by 335 million people, that is about $65,672 per capita; with a deflator of 115, real GDP = 22 ÷ 115 × 100 ≈ $19.13T in base-year dollars.

Quick Answer

GDP by the expenditure approach is GDP = C + I + G + (X − M): consumption plus investment plus government spending plus net exports. For example, C = 15T, I = 4T, G = 3.5T, X = 2.5T, M = 3T gives 15 + 4 + 3.5 + (2.5 − 3) = 22T. Divide by population for per-capita GDP, and divide by (deflator ÷ 100) for real GDP.

Key Facts

  • Expenditure approach: GDP = C + I + G + NX, where NX = exports − imports
  • Imports are subtracted because C, I, and G already include imported goods
  • Per-capita GDP = GDP ÷ population
  • Real GDP = (Nominal GDP ÷ deflator) × 100, with the base year deflator equal to 100
  • A deflator above 100 indicates price inflation since the base year
  • The three approaches (expenditure, income, production) should yield the same GDP in theory

Frequently Asked Questions

Frequently Asked Questions

GDP = C + I + G + NX. C is personal consumption (household spending), I is gross private domestic investment (business capital + residential), G is government purchases, and NX is net exports (X − M). Worked example: C = 15T, I = 4T, G = 3.5T, X = 2.5T, M = 3T → GDP = 15 + 4 + 3.5 + (2.5 − 3) = 22T.

Divide total GDP by total population: 22T ÷ 335M ≈ $65,672 per person. Per-capita GDP is a rough proxy for average living standards, but it ignores income distribution and non-market activity. Keep units consistent — if GDP is in trillions, multiply by 1,000,000 (to get units) before dividing by population in millions.

Real GDP = (Nominal GDP ÷ GDP deflator) × 100. With nominal GDP of 22T and a deflator of 115, real GDP = 22 × 100 ÷ 115 ≈ 19.13T in base-year dollars. Rearranged, the deflator = (Nominal ÷ Real) × 100, so you can back out any missing value from the other two.

Because consumption, investment, and government spending already include purchases of imported goods. An imported phone counted in C was not produced domestically, so counting it would overstate production. Subtracting all imports (via net exports) removes every foreign-produced item that leaked into C, I, or G.

Any consistent currency unit works — trillions, billions, or millions. The example uses trillions of dollars (C = 15T, etc.). For per-capita GDP, enter population in millions (335 = 335 million); the calculator handles the unit conversion internally so the per-person result comes out in plain dollars.