GDP Calculator
Calculate GDP using the expenditure method (C + I + G + net exports), GDP growth rate between two years, or GDP per capita.
How to use this calculator
- 1Choose which calculation you need.
- 2For the expenditure method, enter each spending component in the same currency and period.
How the calculation works
GDP = C + I + G + (X − M). Growth rate = (GDPₑₙd / GDPₛₜₐᵣₜ)^(1/years) − 1. Per capita = GDP ÷ Population- C, I, G
- Consumption, investment and government spending
- X − M
- Net exports — exports minus imports
The expenditure method is one of three ways to calculate the same GDP figure (alongside the income approach, summing wages/profits/rents, and the output approach, summing value added by industry) — in well-measured economies all three converge on the same number.
Worked example
C=$14,000, I=$3,500, G=$4,000, X=$2,000, M=$2,800 (billions)
- 1.Net exports: 2,000 − 2,800 = −800 (a trade deficit).
- 2.GDP: 14,000 + 3,500 + 4,000 + (−800) = 20,700.
Result: 20,700 (in whatever unit the inputs used, e.g. billions)
What GDP measures — and what it leaves out
Gross domestic product totals the market value of all final goods and services produced within a country's borders over a given period. "Final" is doing real work in that definition — it excludes intermediate goods (steel sold to a car manufacturer is not counted separately from the finished car that contains it) specifically to avoid double-counting the same economic activity twice.
GDP is a measure of market production, not of wellbeing, and it leaves out plenty that shapes how well a country is actually doing. Unpaid work — caregiving, household labor, volunteer work — is not counted, because it has no market transaction. Informal or unreported economic activity is missed for the same reason. Environmental depletion and pollution are not subtracted, even when growth comes at the cost of resources a country cannot replace. And GDP says nothing about how the total is distributed across a population — a rising number is compatible with most of that growth going to a small share of people.
Three ways to arrive at the same number
GDP is not calculated only one way. Three distinct accounting approaches are designed to converge on the same figure, and comparing them is one of the ways statistical agencies check their own data for consistency.
- Expenditure approach — sums everything spent on final goods and services — consumption, investment, government spending, and net exports. This is the method this calculator's "expenditure" mode implements.
- Income approach — sums everything earned in producing that output — wages, profits, rents and interest, plus taxes on production less subsidies. In principle, every dollar spent on a final good ends up as someone's income, which is why this should match the expenditure total.
- Output (value-added) approach — sums the value each industry adds at its own stage of production, avoiding double-counting by measuring only the value contributed at each step rather than each step's full sale price.
Nominal vs real GDP, and GDP vs GDP per capita
Nominal GDP is measured in the prices of the period being measured, so it rises from both real output growth and simple price inflation tangled together. Real GDP strips out price changes by valuing every period's output at a fixed base year's prices, isolating the actual change in the quantity of goods and services produced — real GDP growth is what economists mean when they talk about "economic growth," as distinct from a number that is partly just prices going up.
GDP per capita divides total output by population, giving a measure of average output per person — useful for comparing countries of very different sizes, but still not a measure of typical income or living standards, since it says nothing about how that average is actually distributed across the people it is averaged over.
Where the concept came from
Modern national income accounting traces back to work commissioned by the US Congress in the 1930s to measure the severity of the Great Depression, led by the economist Simon Kuznets. The framework was refined and standardized internationally in the years after the Second World War, becoming the default way governments and international institutions size and compare economies. Notably, Kuznets himself cautioned early on against treating growth in this single number as a stand-in for a nation's overall welfare — a caveat that GDP's many well-documented blind spots (unpaid work, environmental cost, distribution) still bear out today, even as the figure remains the standard headline measure of an economy's size.
What this assumes, and where it stops
Assumptions
- All expenditure components are measured over the identical period and in the same currency.
Limitations
- This is nominal GDP by construction — it does not adjust for inflation. Comparing nominal GDP across years overstates real growth whenever prices are rising.
- GDP itself is a widely used but imperfect measure of economic wellbeing — it does not capture unpaid work, environmental costs, or how output is distributed across a population.
Common questions
What is the difference between nominal and real GDP?
Nominal GDP is measured in current prices, so it rises from both genuine output growth and simple inflation. Real GDP strips out price changes using a base year, isolating actual growth in the quantity of goods and services produced — real GDP is what economists mean by "economic growth."
Why can net exports be negative?
A country running a trade deficit imports more than it exports, which by the expenditure-method accounting identity subtracts from GDP even though the goods themselves were still consumed domestically — imported goods are counted in consumption or investment spending, so subtracting imports avoids double-counting them as if they were produced at home.
Sources
- GDP: An Economy's All — International Monetary Fund
Formula and content last reviewed on .
Results are estimates for information only, not professional advice.
Related calculators
Tools people commonly use alongside the gdp calculator.