GDP Calculator Online

Calculate GDP by the expenditure approach and see real vs nominal GDP, computed locally in your browser as an estimate.

The GDP Calculator runs entirely in your browser. The consumption, investment, spending, trade and deflator figures you enter never leave your device and nothing is uploaded to ArrayKit. Results are estimates only, not financial advice.

Open the Inflation Calculator

About GDP Calculator

The GDP Calculator adds up spending in an economy using the expenditure approach — consumption, investment, government spending, and net exports — to find nominal GDP in seconds. Enter consumption (C), investment (I), government spending (G), exports (X), and imports (M) and the tool sums them as GDP = C + I + G + (X − M), showing net exports alongside the total. Add an optional GDP deflator (an index number with base year = 100) and it also computes real GDP, which strips out price-level changes so you can compare economic output across periods on a like-for-like basis. It uses a single fixed deflator you supply rather than official statistical-agency data, so treat the output as an estimate only, not financial advice. Useful for economics coursework, back-of-envelope national-accounts checks, and understanding how the four expenditure components fit together. Everything runs locally in your browser — no figures are uploaded.

Features

How to use the GDP Calculator

  1. Enter consumption (C), investment (I) and government spending (G)
  2. Enter exports (X) and imports (M)
  3. Optionally enter a GDP deflator (base year = 100) to also see real GDP
  4. Read nominal GDP, net exports and real GDP in the results panel

Example

Input

C70 I20 G20 X10 M15

Output

Nominal GDP: 105

70 + 20 + 20 + (10 − 15) = 105; with a deflator of 105 the real GDP works out to 100.

Common errors & troubleshooting

Frequently asked questions

What formula does the GDP Calculator use?
It uses the expenditure approach: GDP = C + I + G + (X − M), where C is consumption, I is investment, G is government spending, X is exports and M is imports.
What is the difference between real and nominal GDP in this calculator?
Nominal GDP is the raw sum of the expenditure components at current prices. Real GDP divides nominal GDP by the GDP deflator (divided by 100) to strip out price-level changes, so it reflects actual output rather than price growth.
What is a GDP deflator and where do I get one?
A GDP deflator is a price index for an economy with the base year set to 100. The GDP Calculator lets you type in any deflator value you already have (for example from a textbook problem or a national statistics release) to convert nominal GDP into real GDP.
Can I leave the GDP deflator blank in the GDP Calculator?
Yes. The deflator field is optional — leave it blank to see only nominal GDP and net exports, or enter a value to also see real GDP.
Does the GDP Calculator account for negative net exports?
Yes. When imports exceed exports, net exports (X − M) is negative and reduces nominal GDP accordingly, matching the standard expenditure-approach formula.
Does the GDP Calculator upload my figures anywhere?
No. The GDP Calculator runs entirely in your browser. The consumption, investment, spending, trade and deflator figures you enter never leave your device and are not uploaded to ArrayKit.

Related tools

All ArrayKit tools