Using the GDP Calculator
All inputs must use the same currency, scale, period and price basis. For example, do not combine quarterly consumption with annual investment, or amounts in millions with amounts in billions. Imports are subtracted after exports are added.
Worked example
Use the example inputs below to reproduce this result. These are the form's starting values, not recommended targets. Changing your inputs updates your result above; this worked example stays fixed for comparison. Results are rounded for display.
Example inputs
- Consumer spending
- 1500
- Investment
- 500
- Government spending
- 600
- Exports
- 300
- Imports
- 400
Example result
- GDP
- 2,500
Method and assumptions
GDP = consumption + investment + government spending + exports − imports. All inputs must use the same period, currency and price basis.
Keep the dataset internally consistent
An economic identity combines quantities defined on a common basis. Confirm the period, geographic boundary, currency scale and price treatment for every component. A result assembled from incompatible series may look plausible while having no clear interpretation. Record the source and definitions with your inputs so another reader can reproduce the calculation.
Common question
Why are imports subtracted?
The expenditure identity subtracts imports so spending on production outside the economy is not counted as domestic production. The subtraction is an accounting step; it does not by itself describe whether imports are beneficial or harmful.
Guide updated .