How to use GDP calculator
- 01Type C, I and GConsumption, investment, government.
- 02Add exports and importsTheir difference is net exports.
- 03Read GDPWith shares, per person and real.

Everything spent on final goods.
The expenditure approach adds up spending on final goods and services made in the country: household consumption (C), business and housing investment (I), government purchases (G) and exports minus imports (X − M). Pensions and other transfers are left out of G because nothing is produced in return. Dividing by a price index of 100 in the base year turns nominal GDP into real GDP.
At a glance
- Price
- Free. No sign-up, no watermark.
- Privacy
- Your text stays in your browser. Nothing is uploaded.
- Works in
- Chrome, Edge, Firefox and Safari, on phones and computers
Questions
What is the GDP formula?
GDP = C + I + G + (X − M). With consumption 15,500, investment 4,300, government 4,100, exports 2,800 and imports 3,600 (billions), GDP is 15,500 + 4,300 + 4,100 − 800 = 23,100 billion.
Why are imports subtracted?
Spending on imported goods is already counted inside consumption, investment and government spending, but it was produced abroad. Subtracting imports removes it so only domestic production is left.
How do I get real GDP?
Divide nominal GDP by the GDP deflator and multiply by 100. Nominal GDP of 23,100 with a deflator of 110 is 21,000 in base-year prices.
Is what I type sent anywhere?
No. The calculation runs in your browser and nothing you type leaves your device.