Gross domestic product (GDP) is the headline number for the size of an economy. It can be added up in three ways: from what is produced, from what is earned or from what is spent. The spending approach is the most familiar: household consumption, business investment, government spending and net exports. This calculator adds them up and gives GDP per capita, growth and the share of each component.
How the calculation works
- GDP = C + I + G + (X − M)
- Net exports = exports − imports
- GDP per capita = GDP ÷ population
- Growth = (GDP ÷ previous GDP − 1) × 100
- Share of a component = component ÷ GDP
Example
Consumption is $18,900 billion, investment $5,100 billion, government spending $4,800 billion, exports $3,000 billion and imports $3,900 billion. Net exports are −$900 billion. GDP is 18,900 + 5,100 + 4,800 − 900 = $27,900 billion. With a population of 335 million, GDP per capita is about $83,284. Compared with $26,950 billion the year before, growth is 3.52%. Consumption makes up 67.7% of GDP.
Why it matters
GDP growth is the main gauge of whether an economy is expanding or in recession, and it guides decisions of central banks, governments and investors. The split between consumption, investment and trade shows what drives growth: a consumption-led economy behaves differently from an export-led one.
Good to know
Nominal GDP includes inflation. To compare years, use real GDP, adjusted with a price index; the GDP deflator calculator does that. GDP leaves out unpaid work, such as housework, and the informal economy, and it counts spending on repairing damage as output. It is not a measure of well-being. This tool is for education. Compare the result with figures from official sources before drawing conclusions, and treat small differences as noise rather than as signals. Real economies move for many reasons at once, so no single indicator tells the whole story.
Related tools
The GDP deflator calculator converts nominal GDP to real GDP, the spending multiplier calculator shows how a change in spending ripples through GDP, and the inflation calculator tracks price changes.