Calculate Gross Domestic Product using the expenditure approach, plus GDP per capita and real GDP from a deflator.
Enter the expenditure components and click Calculate
This free GDP calculator computes Gross Domestic Product using the expenditure approach — the most commonly taught method in introductory economics — by summing consumption, investment, government spending, and net exports. It also calculates GDP per capita from a population figure, and converts a nominal GDP into real GDP using a GDP deflator.
Enter the four expenditure components — Consumption (C), Investment (I), Government Spending (G), Exports (X), and Imports (M) — and the calculator sums C + I + G + (X − M) to produce total GDP. If you enter a population figure, it also divides GDP by population for a per-capita figure. The separate Real GDP tool divides a nominal GDP figure by a GDP deflator and multiplies by 100 to strip out the effect of price changes.
Economics students working through expenditure-approach problem sets, educators demonstrating how GDP components combine, and anyone curious about how national income accounting works. It's an educational tool for understanding the formula, not a source of official economic statistics — for real countries' actual GDP figures, use an official statistical agency.
The exact formulas this calculator uses
Household spending on goods and services — typically the largest GDP component in consumer-driven economies.
Business spending on capital goods (equipment, buildings, software) plus inventory changes — not stock or bond purchases.
Government purchases of goods and services, plus exports minus imports — a trade deficit (M > X) reduces total GDP.
From entering expenditure components to reading total GDP
Fill in the C, I, and G components in the same currency and time period.
Fill in total exports and imports to calculate net exports (X − M).
Add population to also see GDP per capita in the results.
See total GDP, net exports, and GDP per capita if population was entered.
A hypothetical economy, calculated step by step
Where this calculator is genuinely useful
Work through expenditure-approach GDP problems for class or exam prep.
See exactly how a trade deficit or surplus shifts total measured GDP.
Strip out inflation's effect on a GDP figure using the deflator tool.
Model hypothetical economies with different spending mixes for teaching or discussion.
Get a quick per-person output figure for a population and GDP total.
What this GDP calculator does well, and where it has boundaries
Get an accurate expenditure-approach GDP figure
Summary: This GDP calculator computes Gross Domestic Product via the expenditure approach (C + I + G + net exports), plus GDP per capita and real GDP from a deflator — free, instant, and useful for economics coursework and macroeconomic understanding. It's an educational formula tool, not a source of official statistics.
Common questions about calculating GDP
Official statistical agency references to complement this calculator
Other measurement and finance tools