Macro & growth
GDP Calculator
This calculator computes gross domestic product (GDP) from the expenditure identity: consumption (C) + investment (I) + government spending (G) + exports (X) minus imports (M). Or use a simplified income approach starting from gross national product (GNP) plus indirect taxes and depreciation minus net income of foreigners. Optional population in millions yields per capita when inputs are in billions; prior-period GDP shows growth; a deflator or inflation rate converts nominal to real GDP. Illustrative national-accounts math, not an official estimate.
By Jeff Beem
Updated
Methodology
Expenditure: C + I + G + (X − M)
Consumption (C) + investment (I) + government spending (G) + exports (X) − imports (M). Values in the same units (e.g. billions of US dollars).
Imports subtract domestic spending on foreign goods from the total.
Per capita (optional)
Leave blank to hide per capita (US ≈ 335M).
Growth vs. prior period (optional)
Same units as current GDP.
Real GDP (optional)
Real GDP (inflation-adjusted) = nominal GDP ÷ (deflator/100) or ÷ (1 + inflation/100).
Gross domestic product
Composition
GDP in context
Imports (M) subtract from expenditure gross domestic product (GDP) because consumption, investment, and government spending already include foreign goods. Without subtracting imports, you would count production that happened outside the border. Net exports (exports minus imports) can be negative when imports exceed exports.
The expenditure and income approaches should match in theory: every dollar spent on final output becomes wages, profit, rent, or interest. This tool uses simplified national-accounts line items; your expenditure and income totals may differ unless the inputs are reconciled.
Nominal GDP uses current prices; real GDP divides by a deflator index (100 = base year) or an inflation rate. GDP per capita divides total GDP by population in millions when inputs are in billions of dollars. GDP still misses unpaid work, inequality, environmental damage, and much informal activity.
How to use this calculator
Pick Expenditure or Income in 01, then enter components in 02 using the same units throughout (billions of US dollars by default). On expenditure, enter consumption (C), investment (I), government spending (G), exports (X), and imports (M). With the default expenditure lines (C $15,000, I $3,500, G $4,500, exports $2,500, imports $3,200), net exports are −$700 billion and nominal gross domestic product (GDP) totals $22,300 billion. Optional 03 population in millions for per capita, 04 prior-period GDP for growth rate, and 05 deflator index (100 = base year) or inflation % for real GDP. Results show total GDP, composition bars for positive components, and an expansion or contraction badge when growth is entered.
Reading your GDP results
The dark results card shows nominal gross domestic product (GDP) and, when you fill optional fields, real GDP, per capita, a growth badge, and composition bars for the active approach.
Income approach (separate scenario)
Optional per capita, growth, and real GDP
Production approach not included
GDP calculator: expenditure and income approaches
This calculator computes gross domestic product (GDP) from spending components or from factor incomes plus adjustments. Optional population, prior-period GDP, and a deflator convert nominal totals to per capita, growth rate, and real GDP.
What this calculator does
- Expenditure:
C = consumption, I = investment, G = government spending, X = exports, M = imports.
- Income (this model):
GNP = gross national product (income earned by residents before the domestic adjustment).
- Real GDP:
Or nominal GDP ÷ (1 + inflation rate) when inflation % mode is selected in section 05.
How the math works
Limits of the model
GDP Calculator FAQ
How does the expenditure approach work in this calculator?
Why are imports subtracted in the GDP formula?
How does the income approach differ from expenditure here?
How is real GDP calculated on this page?
How does GDP per capita work when I enter population?
What does the growth badge mean?
Why do the composition bars not always add to 100%?
What does this calculator not measure?
Sources & citations
References used for the calculation method and definitions. Links open in a new tab when available.
U.S. Bureau of Economic Analysis overview of gross domestic product, expenditure and income approaches, and real vs nominal measures.
Official U.S. GDP data and methodology from the Bureau of Economic Analysis.
Financial Estimation Note
General Projections: Results are mathematical estimates based on the rates and formulas currently loaded for this tool, including year-specific tax data where noted. They are intended for high-level planning only.
No Advice Provided: This site does not provide financial, tax, or legal advice. Using this tool does not create a client-advisor relationship with CalcRegistry.
Confirm Numbers: Financial laws change frequently. Please verify all results with a qualified professional (CPA, Financial Planner, or Lawyer) before making significant financial decisions.