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
Expenditure Components
All amounts in trillions (any consistent unit works)
Household spending on goods and services
Business capital, equipment, and residential construction
Government purchases of goods and services
Goods and services sold abroad
Goods and services bought from abroad (subtracted)
Per-Capita & Real GDP
Optional extra calculations
Per-capita GDP = GDP ÷ population
Real GDP = Nominal GDP ÷ deflator × 100
Component Shares of GDP
| Component | Amount | Share |
|---|---|---|
| Consumption (C) | $15T | 68.2% |
| Investment (I) | $4T | 18.2% |
| Government (G) | $3.5T | 15.9% |
| Net Exports (NX) | $-0.5T | -2.3% |
Net exports are negative (a trade deficit), which subtracts 0.5T from GDP.
Formulas
Worked Example
With C = 15T, I = 4T, G = 3.5T, X = 2.5T, and M = 3T (all trillions of dollars):
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.