Skip to content
FiftyCalc Free calculators for all 50 states

GDP Calculator

Test cases replayed : 2 of 2 match · Methodology · No outside source listed

Add up consumption, investment, government spending and net exports to get gross domestic product (GDP) by the expenditure approach.

Result

Sample figures

GDP ($ billions)—

Net exports, X − M ($ billions) —

  • Consumption share of GDP—
  • Investment share of GDP—
  • Government share of GDP—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

GDP Calculator

Personal consumption expenditures, C, in dollars billion: enter 0 or more. Prefilled example: 15,000.

Gross private domestic investment, I, in dollars billion: enter a number. Prefilled example: 4,000.

Government consumption and investment, G, in dollars billion: enter 0 or more. Prefilled example: 3,500.

Exports, X, in dollars billion: enter 0 or more. Prefilled example: 3,000.

Imports, M, in dollars billion: enter 0 or more. Prefilled example: 3,800.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Personal consumption expenditures, C, in dollars billion: enter 0 or more.
  2. Gross private domestic investment, I, in dollars billion: enter a number.
  3. Government consumption and investment, G, in dollars billion: enter 0 or more.
  4. Exports, X, in dollars billion: enter 0 or more.
  5. Imports, M, in dollars billion: enter 0 or more.
  6. Read the result: GDP ($ billions); the panel also shows Net exports, X − M ($ billions), Consumption share of GDP, Investment share of GDP and Government share of GDP.

How this calculator works

GDP = C + I + G + (X − M): personal consumption, gross private domestic investment, government consumption expenditures and gross investment, and exports minus imports. This is the expenditure approach used in the U.S. national accounts published by the Bureau of Economic Analysis (BEA).

The default figures are round example numbers, not official data. For actual U.S. values, use the latest BEA GDP release (table 1.1.5) and enter its figures.

The formula

  1. Gdp=c+i+g+x−m
Symbols used in the formula
SymbolMeaningUnit
cPersonal consumption expenditures, C$ billion
iGross private domestic investment, I$ billion
gGovernment consumption and investment, G$ billion
xExports, X$ billion
mImports, M$ billion
GdpGDP$ billions

Worked example

Personal consumption expenditures, C$15,000 billion
Gross private domestic investment, I$4,000 billion
Government consumption and investment, G$3,500 billion
Exports, X$3,000 billion
Imports, M$3,800 billion
Net exports, X − M ($ billions)-800
Consumption share of GDP69.12%
Investment share of GDP18.43%
Government share of GDP16.13%
  1. Gdp=15,000+4,000+3,500+3,000−3,800=21,700

GDP ($ billions) 21,700

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

Why are imports subtracted in GDP?

Imports are already counted inside consumption, investment and government spending, but they were produced abroad. Subtracting them leaves only domestic production.

What is the difference between nominal and real GDP?

Nominal GDP uses current prices; real GDP removes price changes (inflation) so that growth reflects more output, not higher prices.

Related calculators