GDP Calculator
$
$
$
$
$
GDP$1,900.00
Net Exports$100.00
Consumption (C)52.6%
Investment (I)26.3%
Government (G)15.8%
Net Exports (NX)5.3%
GDP$1.9K
This GDP calculator measures the size of an economy with the expenditure approach, adding up consumption, investment, government spending, and net exports. Net exports are exports minus imports, so a country that imports more than it sells abroad sees that gap subtracted from output. The result, along with a breakdown showing each component as a share of total spending, gives a clear picture of where economic activity comes from.
Formula
GDP = C + I + G + (Exports − Imports)
- C
- Consumption: household spending on goods and services
- I
- Investment: business capital spending and residential construction
- G
- Government spending on goods and services
- Exports − Imports
- Net exports (NX); negative when imports exceed exports
How it works
- Enter consumption (C), private investment (I), and government spending (G) in your chosen currency units.
- Enter exports and imports; the calculator subtracts imports from exports to find net exports (NX).
- It sums C + I + G + NX to produce GDP and shows each component as a percentage of the combined absolute spending.
Worked example
An economy with consumption of 14, investment of 3, government spending of 3.5, exports of 2, and imports of 2.5 (all in trillions).
- Net exports: 2 − 2.5 = −0.5 trillion.
- GDP: 14 + 3 + 3.5 + (−0.5) = 20 trillion.
- Consumption share: 14 ÷ 20 = 66.67% of total spending.
GDP is 20 trillion, with net exports of −0.5 trillion dragging slightly on output.
Frequently asked questions
- Which GDP approach does this calculator use?
- It uses the expenditure approach, summing consumption, investment, government spending, and net exports. This is the most common way GDP is reported and the easiest to assemble from published national-accounts data.
- Why are imports subtracted?
- Consumption, investment, and government spending already include money spent on imported goods, but imports are not domestic production. Subtracting them through net exports removes that foreign-made portion so GDP reflects only what the country produced.
- Is this nominal or real GDP?
- The calculator simply adds the values you enter, so whether the result is nominal or real depends on your inputs. Enter current-price figures for nominal GDP, or inflation-adjusted figures for real GDP.
- Can net exports be negative?
- Yes. When a country imports more than it exports it runs a trade deficit, making net exports negative and reducing GDP. A trade surplus makes net exports positive and adds to output.