GDP CalculatorFree online other calculator — instant results, no sign-up

GDP by the expenditure approach.

Inputs

GDP
22,800
Net exports-700

Sign in to save results and favorites.

About the GDP Calculator

This calculator determines gross domestic product (GDP) using the standard expenditure approach. It is designed for students, educators, and analysts assessing national macroeconomic output by summing household consumption, business investment, government spending, and net foreign trade.

Consumption
Total expenditure by households on durable goods, non-durable goods, and services, entered in any common currency unit (sensible range: 0 to billions/trillions).
Investment
Gross private domestic investment, including business spending on capital equipment, nonresidential structures, and inventory changes (sensible range: 0 or greater).
Government spending
Government consumption expenditures and gross investment across public services and infrastructure, excluding transfer payments (sensible range: 0 or greater).
Exports
The total monetary value of domestically produced goods and services sold to foreign buyers (sensible range: 0 or greater).
Imports
The total monetary value of foreign-produced goods and services purchased domestically (sensible range: 0 or greater).

Formula and method

GDP = C + I + G + (X - M)
Net Exports = X - M
  • GDPGross Domestic Product
  • CConsumption expenditure
  • IGross private domestic investment
  • GGovernment consumption expenditures and gross investment
  • XTotal exports
  • MTotal imports

The tool calculates Net Exports by subtracting imports (M) from exports (X). It then sums consumption (C), investment (I), government spending (G), and net exports, rounding the total GDP to two decimal places.

Worked example

These are the calculator's starting values and the results it actually produces for them.

Inputs

  • Consumption15000
  • Investment4000
  • Government spending4500
  • Exports2500
  • Imports3200

Results

  • GDP22,800
  • Net exports-700

How to use the GDP Calculator

  1. 1Enter total personal consumption expenditures (C).
  2. 2Enter gross domestic private investment (I) and government spending (G).
  3. 3Enter gross export earnings (X) and import deductions (M) in the same monetary unit.
  4. 4Read the resulting Net Exports and total aggregate Gross Domestic Product (GDP).

Reading your result

A positive Net Exports figure represents a trade surplus that adds to overall GDP, while a negative figure represents a trade deficit that reduces aggregate expenditure. The calculated GDP represents the total market value of final goods and services produced within the designated period.

Limitations

This calculation does not account for inflation (it computes nominal figures based on user inputs) or purchasing power parity (PPP). It also excludes the underground economy, non-market household labor, depreciation (Net Domestic Product), and transfer payments like welfare or pensions.

Common questions

Why are imports subtracted in the GDP formula?+

Imports are already included inside domestic consumption (C), investment (I), and government spending (G). Subtracted imports ensure GDP only reflects production that occurred inside domestic borders.

Are government transfer payments such as Social Security included in Government spending?+

No. Transfer payments do not represent payment for a newly produced good or service; they are excluded from G and only count when the recipient spends the money under consumption (C).

What is the difference between nominal GDP and real GDP?+

This formula yields nominal GDP if current prices are entered. Real GDP adjusts for price changes over time by evaluating output at base-year constant prices.

Does the calculator save my information?+

Calculations run in your browser. While signed in, inputs and results are automatically recorded in account history; saving a result creates a separate saved record.

Further reading

You might also like

Results are estimates for informational purposes and are not financial, medical or legal advice.