GDP Calculator

Gross Domestic Product
$20,400B
C + I + G + (X − M)

📊 Breakdown

Net Exports (X − M)

What Is a GDP Calculator?

This calculator computes Gross Domestic Product using the expenditure approach — summing consumption, investment, government spending, and net exports — the standard method economists use to measure a country's total economic output.

How to Use the GDP Calculator

  1. Enter consumption, investment, and government spending.
  2. Enter exports and imports.
  3. View calculated GDP and net exports.

GDP Formula

GDP (Expenditure Approach)
GDP = C + I + G + (X − M)
C = personal consumption expenditures
I = gross private investment
G = government spending
X = exports
M = imports

Worked Example

Example: C=$14,000B, I=$3,500B, G=$3,800B, X=$2,000B, M=$2,900B

Net exports: $2,000B − $2,900B = −$900B

GDP = $14,000B + $3,500B + $3,800B − $900B = $20,400B

Understanding Your Results

GDP measures the total market value of all final goods and services produced within a country over a period. Negative net exports (a trade deficit, as in this example) reduce GDP, while positive net exports (a trade surplus) increase it.

Common Uses

  • Economics coursework on national accounting.
  • Understanding how each expenditure category contributes to overall economic output.

Frequently Asked Questions

Gross Domestic Product measures the total market value of all final goods and services produced within a country's borders over a specific time period.

Consumption (C), Investment (I), Government spending (G), and Net exports (X − M, exports minus imports).

When a country imports more than it exports (a trade deficit), net exports is negative, which reduces total GDP under the expenditure approach.

Yes — the income approach (summing all income earned) and the production approach (summing value added at each production stage) are alternative methods that should theoretically produce the same total GDP.

GDP doesn't capture unpaid work, environmental costs, income distribution, or overall wellbeing — it's a measure of economic output, not a complete measure of a society's welfare.