GDP Calculator

Calculated on this device
Household spending on goods and services
$
Business capital, equipment, and inventory investment
$
Federal, state, and local government purchases
$
Goods and services sold abroad
$
Goods and services purchased from abroad
$
GROSS DOMESTIC PRODUCT
$27,200.00

GDP = C + I + G + (X − M) · Net Exports: -$800.00

Consumption Share68.0%
Investment Share17.6%
Government Share17.3%
Net Exports Share-2.9%

Use consistent currency units (e.g., all values in billions of USD) across every field.

HOW IT WORKS

Two standard macroeconomic GDP approaches

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

01

Expenditure Approach

Sums final spending across households, businesses, government, and trade:

GDP = C + I + G + (X − M)
02

Resource Cost-Income Approach

Sums factor incomes (National Income) plus indirect taxes, depreciation, and net income of foreigners:

GDP = NI + Indirect Taxes + Depreciation + Net Foreign Income

MACROECONOMICS GUIDE

Comparing Expenditure GDP, Income GDP, and GNP

Related calculators

For unit and currency-scale math or percentage breakdowns, explore our Percentage Calculator and Inflation Calculator.

Frequently asked questions

Why are imports subtracted in the expenditure formula?

Personal consumption, investment, and government spending already include imported goods. Subtracting imports (M) ensures GDP counts only domestic production.

What is the difference between GDP and GNP?

GDP measures output produced within a country's geographic borders, while Gross National Product (GNP) measures output produced by a country's residents regardless of location.

Should expenditure and income GDP give the same number?

In national accounts theory, yes—every dollar spent is a dollar of income earned. In practice, national statistical agencies report a small statistical discrepancy.

Is any financial data stored?

No. All calculations are performed locally in your browser.