GDP Calculator
Calculate Gross Domestic Product using the expenditure approach: GDP = C + I + G + (X − M). Shows each component as a percentage of GDP.
GDP Total
—
Net Exports (X−M)
—
Trade Balance
—
Component Breakdown
What is GDP Calculator?
GDP (Gross Domestic Product) measures the total monetary value of all goods and services produced in a country during a specific period. The expenditure approach calculates GDP by summing private consumption, gross investment, government spending, and net exports.
How to use
- 1 Enter private consumption (C) — all household spending on goods and services.
- 2 Enter gross investment (I) — business spending on capital, plus residential construction.
- 3 Enter government spending (G) — government expenditure on goods and services (not transfer payments).
- 4 Enter exports (X) — total value of goods and services sold to other countries.
- 5 Enter imports (M) — total value of goods and services bought from other countries.
- 6 Click Calculate to see total GDP and each component's share.
Formula
Example calculation
If C = $12T, I = $3T, G = $3.5T, X = $2T, M = $2.5T: GDP = 12 + 3 + 3.5 + (2 − 2.5) = $18T. Net exports = −$0.5T (trade deficit).
Frequently asked questions
What is not included in GDP?
GDP excludes transfer payments (Social Security, unemployment benefits), purely financial transactions, and the underground economy. It also excludes goods produced in previous periods.
What is the difference between GDP and GNP?
GDP measures output within a country's borders regardless of who produces it. GNP (Gross National Product) measures output by a country's residents regardless of where they are located.
What is a trade deficit?
A trade deficit occurs when imports exceed exports (X − M < 0), which reduces GDP. A trade surplus (X − M > 0) increases GDP.
What does gross investment include?
Gross investment includes business spending on equipment and software, construction of new buildings, and changes in business inventories. It does not include financial investments like stocks.
Is government transfer spending included in G?
No. Transfer payments like Social Security or unemployment benefits are not included in G because they don't represent direct purchase of goods or services.