GDP Calculator
Compute gross domestic product two ways: the expenditure approach adds consumption, investment, government spending, and net exports (C + I + G + NX), while the income approach sums wages, profits, rent, and interest with a few adjustments. Enter a population to get GDP per capita. Both methods aim at the same total.
How GDP is measured
Gross domestic product is the market value of all final goods and services produced within a country in a period. Because every dollar spent is a dollar earned by someone, GDP can be reached from either side. The expenditure approach adds up who bought the output — households, businesses, government, and the rest of the world — while the income approach adds up who earned the income from producing it. A third method, the production approach, sums value added across industries. In principle all three land on the same number.
How it’s calculated
Expenditure: GDP = C + I + G + NX, where net exports NX = exports − imports. Income: first GNP = employee compensation + proprietors’ income + rental income + corporate profits + interest income; then GDP = GNP + indirect business taxes + depreciation − net foreign income (the income domestic citizens earn abroad minus what foreigners earn domestically). Per capita: GDP ÷ population. Enter values in billions of dollars; the tool reports GDP in billions and per capita in dollars.
This is an educational model. Official U.S. GDP is estimated by the Bureau of Economic Analysis (BEA) in the National Income and Product Accounts, drawing on hundreds of source series; released estimates are revised as fuller data arrive.
The four expenditure components
| Component | What it covers |
|---|---|
| C — Consumption | Household spending on goods and services (not new housing) |
| I — Investment | Business equipment, structures, inventories, and new housing |
| G — Government | Government purchases of goods and services (not transfer payments) |
| NX — Net exports | Exports minus imports |
Framework from the BEA National Income and Product Accounts.
Worked example
Using the expenditure approach with consumption $15,000B, investment $4,000B, government $3,500B, exports $2,500B, and imports $3,000B: net exports are 2,500 − 3,000 = −$500B, so GDP = 15,000 + 4,000 + 3,500 − 500 = $22,000B. With a population of 335 million, GDP per capita is 22,000B ÷ 335M ≈ $65,672 per person.
Common mistakes
- Counting transfer payments (Social Security, unemployment) in G — only purchases of goods and services count.
- Adding imports instead of subtracting them; imports reduce net exports.
- Including used-goods sales or purely financial transactions, which are not new production.
- Mixing nominal and real (inflation-adjusted) figures when comparing across years.
Where it is used
- Teaching macroeconomics and the national accounts.
- Sizing an economy and tracking growth or recession.
- Comparing living standards via GDP per capita.
- Modeling how a change in spending or trade shifts total output.
Frequently asked questions
What is the formula for GDP?
The expenditure approach is GDP = C + I + G + NX, where C is personal consumption, I is gross investment, G is government consumption, and NX is net exports (exports minus imports). The income approach instead sums wages, profits, rent, and interest, then adds indirect taxes, depreciation, and net foreign income.
What is the difference between the expenditure and income approaches?
They measure the same total from two sides. The expenditure approach adds up everything spent on final goods and services; the income approach adds up all the income earned producing them. In principle both give the same GDP, though real-world data differ slightly (the statistical discrepancy).
How is GDP per capita calculated?
Divide total GDP by the population: GDP per capita = GDP ÷ population. It approximates average economic output per person and is often used to compare living standards, especially when adjusted for purchasing power parity (PPP).
What counts as net exports?
Net exports (NX) are total exports minus total imports. A country that exports more than it imports has positive net exports, which add to GDP; a trade deficit gives negative net exports, which subtract from it.
Why isn’t all economic activity in GDP?
GDP measures the market value of final goods and services produced. Unpaid work like housework or volunteering and untaxed black-market activity are excluded because they are hard to measure. Intermediate goods are also excluded to avoid double-counting — only final output is counted.