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
Result

Formula

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

Last updated: