GDP Calculator
Compute Gross Domestic Product from its expenditure components — consumption, investment, government spending and net exports. Add a GDP deflator for real GDP and a population for per-capita output.
Nominal GDP
£27,672.00
- Net exports (X − M)
- -£767.00
- Consumption share
- 68.05%
- Investment share
- 17.57%
- Government share
- 17.16%
- Net exports share
- -2.77%
- GDP per capita
- £82.85
Nominal GDP is the sum of consumption, investment, government spending and net exports — the expenditure-approach identity GDP = C + I + G + (X − M). Real GDP rescales nominal output by the GDP deflator so you can compare across years without inflation distortion. GDP per capita divides total output by the population to give an average living-standard proxy.
How to use this calculator
Enter the five spending components in the same currency and units (the defaults use 2023 United States NIPA data in USD billions: C = 18,830, I = 4,861, G = 4,748, X = 3,053, M = 3,820). Optionally add a population to get GDP per capita and a GDP deflator to convert nominal output into real, inflation-adjusted output. The headline result is nominal GDP; the breakdown shows net exports, each component’s share of GDP, plus per-capita and real GDP when those optional inputs are supplied.
How the calculation works
The expenditure approach to GDP — the formulation used by national statistical agencies in their headline release — sums every dollar of final spending in the economy: GDP = C + I + G + (X − M). Consumption captures household purchases of goods and services. Investment is gross private investment: business fixed capital, residential structures and the change in inventories. Government adds federal, state and local consumption plus gross investment but excludes transfer payments. Net exports subtract imports from exports so that only domestically produced output is counted. Real GDP rescales nominal output by the GDP deflator (a Paasche price index referenced to a base year set at 100) so that growth comparisons over time strip out price inflation. Per-capita GDP divides by population to give an average living-standard proxy.
Worked example
Using 2023 United States National Income and Product Accounts figures (in USD billions): C = 18,830; I = 4,861; G = 4,748; X = 3,053; M = 3,820. Net exports = 3,053 − 3,820 = −767. Nominal GDP = 18,830 + 4,861 + 4,748 − 767 = 27,672 billion — about $27.7 trillion, in line with the BEA’s reported $27.36 trillion (small differences come from statistical-discrepancy adjustments and revisions). With a population of 334 million, GDP per capita ≈ 27,672 / 334 ≈ $82.8 thousand per person.
Frequently asked questions
Why does GDP equal C + I + G + (X − M)?
Because every dollar of output ends up as somebody’s spending. Households buy goods (C), firms invest in capital (I), governments procure services (G), and the rest of the world buys exports (X). Imports (M) are subtracted because C, I and G all include some spending on foreign-made goods that does not represent domestic production. The identity holds by construction in the National Accounts.
What is the difference between nominal and real GDP?
Nominal GDP values output at current-year prices, so it rises whenever either real production grows or prices rise. Real GDP values the same physical output at base-year prices, isolating the volume change. The link is the GDP deflator: Real GDP = Nominal GDP ÷ (Deflator / 100). If the deflator is 120 with a base year of 2017 = 100, prices have risen 20 % since 2017 and dividing pulls nominal GDP back into 2017 dollars.
Are imports really subtracted?
Yes, but the subtraction is a bookkeeping fix, not a value judgment. Consumption, investment and government spending all include purchases of foreign-made goods, which inflate those components above true domestic output. Subtracting imports cancels the double-count so GDP measures only goods and services produced inside the country.
What does GDP leave out?
Unpaid household and care work, the informal economy, volunteer activity, environmental damage, depletion of natural capital, and changes in income distribution. GDP is a flow of marketed final output, not a welfare metric. The OECD, UN SEEA, and the U.S. BEA all publish supplementary accounts that try to fill these gaps, but they sit alongside GDP rather than replacing it.
Which approach gives the "right" GDP — expenditure, income or production?
All three give the same number in principle: total spending = total income = total value added. National statistical agencies estimate each independently and report a statistical discrepancy between them, typically under 1 % of GDP. This calculator uses the expenditure approach because its components — consumer spending, investment, government, trade — are the most widely reported and the easiest to assemble for a sanity-check.
Why is per-capita GDP more useful than headline GDP for comparing countries?
Because a country with a large population can have a huge headline GDP while individual living standards are modest. Dividing by population gives a per-person measure that is more comparable across economies of different sizes. For deeper comparisons, use GDP per capita at purchasing-power parity (PPP), which also strips out price-level differences between countries.