In the U.S. personal consumption makes up about 68% of GDP, investment about 18%, government about 17% and net exports a few percent negative. GDP can also be measured by the income and production approaches.
How to use the GDP Calculator
- Consumption (C)
- Investment (I)
- Government spending (G)
- Exports (X)
- Imports (M)
Results update as you type, and every field accepts the units shown in its menu.
How it works
Enter consumption, investment, government spending, exports and imports (in the same units, e.g. billions).
Tips
- Use real (inflation-adjusted) figures to compare across years.
- Check whether data are seasonally adjusted.
- Use the same currency and base year throughout.
- Economic models simplify reality – treat results as illustrations, not forecasts.
Common mistakes to avoid
- Mixing nominal and real values.
- Comparing percentage changes with percentage-point changes.
- Treating correlations as causes.
Inputs explained
| Field | What to enter |
|---|---|
| Consumption (C) | Amount in your currency |
| Investment (I) | Amount in your currency |
| Government spending (G) | Amount in your currency |
| Exports (X) | Amount in your currency |
| Imports (M) | Amount in your currency |
What each result means
- GDP = [Consumption (C)] + [Investment (I)] + [Government spending (G)] + [Exports (X)] – [Imports (M)]
- Net exports = [Exports (X)] – [Imports (M)]
- Consumption share = [Consumption (C)]÷[GDP]×100
- Investment share = [Investment (I)]÷[GDP]×100
- Government share = [Government spending (G)]÷[GDP]×100
- Net exports share = [Net exports]÷[GDP]×100
Example values
How the main result changes when Consumption changes and everything else stays at the example values above:
| Consumption (C) | GDP |
|---|---|
| 10,000 | 19,500 |
| 15,000 | 24,500 |
| 20,000 | 29,500 |
| 25,000 | 34,500 |
| 30,000 | 39,500 |
| 40,000 | 49,500 |
Formula
GDP = C + I + G + (X − M)Net exports = exports − importsWorked example
Inputs — Consumption (C): $20,000; Investment (I): $5,300; Government spending (G): $5,100; Exports (X): $3,200; Imports (M): $4,100.
Results — GDP = $29,500.00; Net exports = $-900.00; Consumption share = 67.8 %; Investment share = 17.97 %; Government share = 17.29 %; Net exports share = -3.05 %.
Frequently asked questions
How is GDP calculated?
GDP = C + I + G + (X − M) with the expenditure approach.
What is not included in GDP?
Unpaid household work, used goods, financial transactions and transfer payments.
What is the difference between nominal and real GDP?
Real GDP removes the effect of price changes.
What formula does the GDP Calculator use?
GDP = C + I + G + (X − M).