Home · Finance · Economics & Macro · GDP Calculator (Gross Domestic Product)
GDP Calculator (Gross Domestic Product)
Adds up consumption, investment, government spending and net exports to give gross domestic product on the expenditure approach.
What this calculator does
Adds up consumption, investment, government spending and net exports to give gross domestic product on the expenditure approach. Every figure on this page is your own input — no lender's rate, no country's tax table and no market forecast is built in — and every result is computed from the formula stated below, with no hidden rounding steps. Results are estimates for planning, not financial advice.
The formula and method
All five inputs are in billions of the same currency and for the same period. Exports minus imports is net exports; a negative value (a trade deficit) reduces GDP.
This is the expenditure approach. It measures final spending only — intermediate goods are excluded to avoid double counting.
Worked example
With the example inputs this page opens with (consumption (billions) 14000, investment (billions) 3500, government spending (billions) 3200, exports (billions) 2200), the result is 20,100.00 — gdp (billions). Computed from the inputs on this page with the formula below — change any figure and every result updates.
Quick reference
| Consumption (billions) | GDP (billions) |
|---|---|
| 7000 | 13,100.00 |
| 11200 | 17,300.00 |
| 14000 | 20,100.00 |
| 17500 | 23,600.00 |
| 21000 | 27,100.00 |
| 28000 | 34,100.00 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How does the GDP Calculator (Gross Domestic Product) work?
Adds up consumption, investment, government spending and net exports to give gross domestic product on the expenditure approach. Consumption · Investment · Government spending · Exports · Imports (billions) → GDP. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the GDP Calculator (Gross Domestic Product) need?
Consumption · Investment · Government spending · Exports · Imports (billions) → GDP. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the GDP Calculator (Gross Domestic Product) free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.