Gross Domestic Product Calculator

Calculate GDP using the Expenditure Approach.

Save

Inputs

$B
$B
$B

Your values stay on this device.

Results

GDP
Net Exports-$100.00

Report

Export and share

Document

Copy and share

Assumptions

  • This tool uses the expenditure approach only and reports nominal GDP at the input price level.
  • Inputs should be measured over the same period and in the same currency units.
  • The calculator is intended for educational or analytical use, not official national accounts reporting.

Sensitivity preview

Consumption (C) -10%: GDP $1,700.00

Consumption (C) Current: GDP $1,800.00

Consumption (C) +10%: GDP $1,900.00

Related Tools

View All

About this GDP Calculator

Gross Domestic Product (GDP) is the primary indicator of the health of a country's economy. The most common way to calculate it is the Expenditure Approach, which sums up all spending in the economy.

Who this calculator is for

  • Students and teachers working through macroeconomics problems.
  • Analysts who want a quick check of the expenditure approach formula.
  • Anyone translating national spending components into a single GDP figure.

When to use it

  • Practice the C + I + G + (X - M) formula with clean example inputs.
  • Check how changes in trade balance affect headline GDP.
  • Break out net exports separately when reviewing macroeconomic scenarios.

How to use this calculator

  1. Enter Consumption (C): Personal spending.
  2. Enter Investment (I): Business capital spending.
  3. Enter Government Spending (G).
  4. Enter Exports (X) and Imports (M).
  5. The calculator computes GDP and Net Exports.

Key assumptions

  • This tool uses the expenditure approach only and reports nominal GDP at the input price level.
  • Inputs should be measured over the same period and in the same currency units.
  • The calculator is intended for educational or analytical use, not official national accounts reporting.

Accuracy and testing

Review formula sources, default test cases, assumptions, unit handling, rounding rules, and changelog for this calculator.

View accuracy page

How this calculator works

GDP = C + I + G + (X - M) * C: Consumption (Household spending on goods/services) * I: Investment (Business capital, new housing) * G: Government Spending (Infrastructure, defense, salaries) * (X - M): Net Exports (Exports minus Imports)

Inputs explained

Consumption

The largest component. Includes durable goods (cars), non-durable goods (food), and services (healthcare, haircuts).

Investment

Gross private domestic investment. Includes machinery, software, factories, and residential construction.

Net Exports

Exports minus Imports. If a country imports more than it exports (trade deficit), this number is negative.

Understanding your results

A rising GDP usually indicates economic growth, while a falling GDP for two consecutive quarters defines a recession. Net Exports shows the trade balance.

Example scenarios

Simple Economy

Consumption $1,000. Investment $200. Gov $300. Exports $100. Imports $150. GDP = 1000 + 200 + 300 + (100 - 150) = $1,450.

Key Features

  • Expenditure Formula
  • Net Export Calculation
  • Macroeconomic Tool

Things to Keep in Mind

Calculates Nominal GDP (current prices), not Real GDP (constant prices). Does not include the underground economy or unpaid work.

Tips & Best Practices

  • GDP does not measure happiness or well-being, only economic output.
  • Real GDP adjusts this number for inflation to compare different years accurately; this calculator provides Nominal GDP.

Glossary of Terms

Recession
Typically defined as two consecutive quarters of negative GDP growth.
Trade Deficit
When Imports exceed Exports (M > X).
Expenditure Approach
Calculating GDP by summing consumption, investment, government spending, and net exports.

Frequently Asked Questions

What is the difference between GDP and GNP?
GDP measures production *within* a country's borders. GNP (Gross National Product) measures production by a country's *citizens*, regardless of where they are in the world.
Why are Imports subtracted?
Imports are subtracted because they represent spending on goods produced *outside* the country. Since 'Consumption' includes spending on imports, we must subtract them to isolate domestic production.