GDP Calculator

Gross Domestic Product via the expenditure approach: C + I + G + (X − M).

Calculator Numbers & Math Updated Apr 20, 2026
How to Use
  1. Enter consumption, investment, government spending, exports, imports.
  2. Currency is arbitrary — output matches your input unit.
Expenditure components
Presets
Result

Show Work

Enter values to see the step-by-step calculation.

Formula

Expenditure
GDP = C + I + G + (X − M)
Net exports
NX = X − M · negative if trade deficit

About the GDP Calculator

The GDP Calculator gives you a fast, free answer for everyday maths and number work without sending anything off your device. Gross Domestic Product via the expenditure approach: C + I + G + (X − M).

How it works

Enter your figures and the result appears instantly, updating the moment you change anything. There is no submit button and nothing to wait for, so it is easy to try a few what-if numbers and compare the results. Just check each box holds the kind of value it expects.

Want the deeper story? The Knowledge Base explains the ideas behind the tools in more detail.

Frequently Asked Questions

How do I use the GDP Calculator?

Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.

Does it cost anything or need an account?

No. The tool is completely free, there is no account to create, and it keeps working offline after the page first loads.

Is anything I type uploaded?

No. The tool works entirely on your device, so the values you enter never leave your browser.

Common Use Cases

Learn while you do it

Seeing what you put in and what comes out helps you understand how they fit together.

Get an answer fast

Type what you have and get the answer in seconds — on a phone, tablet, or computer.

Try different numbers

Change one thing and watch the answer change. It is an easy way to compare your choices.

Stays on your device

Your inputs never leave the browser — nothing is uploaded, logged, or stored anywhere.

Last updated: