GDP Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Add up consumption, investment, government spending and net exports to get gross domestic product (GDP) by the expenditure approach.
Result
GDP ($ billions)
Net exports, X − M ($ billions)
- Consumption share of GDP
- Investment share of GDP
- Government share of GDP
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Personal consumption expenditures, C, in dollars billion: enter 0 or more.
- Gross private domestic investment, I, in dollars billion: enter a number.
- Government consumption and investment, G, in dollars billion: enter 0 or more.
- Exports, X, in dollars billion: enter 0 or more.
- Imports, M, in dollars billion: enter 0 or more.
- Read the result: GDP ($ billions); the panel also shows Net exports, X − M ($ billions), Consumption share of GDP, Investment share of GDP and Government share of GDP.
How this calculator works
GDP = C + I + G + (X − M): personal consumption, gross private domestic investment, government consumption expenditures and gross investment, and exports minus imports. This is the expenditure approach used in the U.S. national accounts published by the Bureau of Economic Analysis (BEA).
The default figures are round example numbers, not official data. For actual U.S. values, use the latest BEA GDP release (table 1.1.5) and enter its figures.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Personal consumption expenditures, C | $ billion | |
| Gross private domestic investment, I | $ billion | |
| Government consumption and investment, G | $ billion | |
| Exports, X | $ billion | |
| Imports, M | $ billion | |
| GDP | $ billions |
Worked example
| Personal consumption expenditures, C | $15,000 billion |
|---|---|
| Gross private domestic investment, I | $4,000 billion |
| Government consumption and investment, G | $3,500 billion |
| Exports, X | $3,000 billion |
| Imports, M | $3,800 billion |
| Net exports, X − M ($ billions) | -800 |
|---|---|
| Consumption share of GDP | 69.12% |
| Investment share of GDP | 18.43% |
| Government share of GDP | 16.13% |
GDP ($ billions) 21,700
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
Why are imports subtracted in GDP?
Imports are already counted inside consumption, investment and government spending, but they were produced abroad. Subtracting them leaves only domestic production.
What is the difference between nominal and real GDP?
Nominal GDP uses current prices; real GDP removes price changes (inflation) so that growth reflects more output, not higher prices.