This GDP calculator uses the expenditure approach: GDP = C + I + G + (X – M). The default values C 1000000, I 400000, G 350000, X 200000, and M 180000 return GDP 1770000.
It is a classroom identity checker for national accounts style sums. For simple percent shares of a GDP total, use the percentage calculator. For debt style payment math unrelated to GDP accounting, see the loan calculator.
How the formula works
Add consumption, investment, and government spending. Compute net exports as exports minus imports. Add net exports to the first sum. That total is expenditure GDP for the entered levels.
Worked example
C + I + G = 1000000 + 400000 + 350000 = 1750000. Net exports = 200000 – 180000 = 20000. GDP = 1750000 + 20000 = 1770000.
| Input | Value |
|---|---|
| Consumption (C) | 1000000 |
| Investment (I) | 400000 |
| Government (G) | 350000 |
| Exports (X) | 200000 |
| Imports (M) | 180000 |
| Net exports (X – M) | 20000 |
| GDP | 1770000 |
How to use the fields
- Consumption (C) is household final spending in your example.
- Investment (I) is the investment aggregate you are modeling.
- Government (G) is government spending on goods and services in the example.
- Exports (X) and Imports (M) form net exports.
Net exports deserve a separate line
Students sometimes add X and then forget to subtract M. Writing net exports as its own line prevents that error. In the default case net exports equal 20000, a small slice beside the domestic components.
If M rises while X is fixed, GDP falls in this identity even though trade volume may look busier. That accounting point is easy to miss in verbal discussion.
Common mistakes
- Adding imports instead of subtracting them
- Dropping government spending from the sum
- Mixing quarterly and annual figures in one run
- Calling the result a forecast rather than an accounting total
Component share thinking
After you have GDP 1770000, you can ask what percent each component represents. Keep the percent work separate from the identity itself so addition errors do not hide inside percent tables.
Consumption is the largest default piece here. Investment and government follow. Net exports are comparatively small in the sample.
Classroom scenarios
Raise G by 50000 and predict the new GDP before clicking Calculate. Then raise M by 50000 instead and show the opposite movement. Separating fiscal and import shocks clarifies the signs in (X – M).
Require every submitted solution to show C+I+G and (X-M) as two subtotals.
What this is not
The calculator does not estimate welfare, inequality, underground activity, or environmental costs. It only adds the five expenditure style inputs you provide.
Income and production approaches to GDP are different organizing stories. This page stays on the expenditure path.
Units and scale
Keep all inputs in the same money units and time span. Mixing millions with raw units will invent a nonsense total. Label whether your example is in dollars, millions, or another scale.
Audit checklist
Confirm five inputs, one net export subtotal, and the final sum. Recheck subtraction on X – M first when an answer looks wrong, because sign errors cluster there.
Compare your hand sum to 1770000 for the default set as a smoke test before altering inputs.
Inventories inside investment
Textbook I often includes inventory change. If your problem splits fixed investment and inventories, add them into the single I field before running the tool so the identity still holds.
Do not double count a spending item in both C and I. Pick the category your course assigns and keep it consistent across comparison runs.
Trade balance stories
A trade deficit means M exceeds X, so net exports are negative. You can still have a large GDP if C, I, and G are large enough. The default sample is a small surplus of 20000, which is easy to flip by raising imports in a what if drill.
Limitations
No price index, no seasonal adjustment, and no statistical discrepancy term appear here. Use the tool as an expenditure identity calculator for learning and quick checks.