HomeFinancial › GDP

GDP Calculator

$
$
$
$
$
GDP
$0
Net Exports
$0
Largest Component
Component Shares
Show the math
Enter values to see the worked formula.

What Your Result Means

How This Calculator Works

You enter values for the four GDP expenditure components: household consumption, business investment, government spending, and exports and imports. The tool sums them using GDP = C + I + G + (X − M) and computes each component's share of the total. It's the standard expenditure approach taught in introductory macroeconomics.

Quick Questions

What is the expenditure approach?

It measures GDP by adding up all spending on final goods and services: consumer spending, business investment, government purchases, and net exports. It's the most commonly used method in economics textbooks.

Is this real GDP or nominal GDP?

The calculator simply sums the values you enter — if you input current-year prices, it's nominal GDP. For real GDP, you would need to adjust the values for inflation using a base year's price level.

Why are imports subtracted?

Imports are subtracted because they represent spending on goods produced in other countries. GDP measures only domestic production, so foreign-produced items must be removed from the total.

Where can I find real GDP data?

The Bureau of Economic Analysis (BEA) publishes official US GDP data quarterly. For other countries, check their national statistical agencies or the World Bank's open data portal.

What does a negative net exports value mean?

It means the country imports more than it exports — a trade deficit. This is common for the United States and doesn't necessarily indicate economic weakness, as it can reflect strong consumer demand.

Sources

Method & review

MethodologyHow we calculate this Reviewed & Updated2026-04 Next review2027-04

Estimate only. Results reflect your inputs and standard formulas. Double-check important decisions independently.