GDP Calculator: Real and Per Capita
GDP is consumer spending plus business investment plus government spending plus net exports: C + I + G + (X - M). An economy with $20,000 billion of consumer spending, $5,000 billion of investment, $4,500 billion of government spending, $3,000 billion of exports and $3,800 billion of imports has a GDP of $28.7 trillion. Enter your own figures, in billions of dollars, to get nominal GDP, real GDP, GDP per person and growth.
Enter your figures below. Results update as you type.
Nominal GDP$28.7 trillionC + I + G + (X - M)
- Net exports (X - M)
- -$800 billion
- Consumer spending share
- 69.69%
- Investment share
- 17.42%
- Government share
- 15.68%
- Net exports share
- -2.79%
- Real GDP (base-year dollars)
- $23.917 trillion
- GDP per person
- $86,969.70
- Growth from last year (nominal)
- 4.36%
The expenditure approach adds up spending on final goods and services produced in the country. Real GDP divides by the deflator to remove price changes. Official US figures come from the Bureau of Economic Analysis.
How the GDP calculation works
GDP = C + I + G + (X - M); real GDP = nominal GDP / (deflator / 100); GDP per person = GDP / population; growth = (this year - last year) / last year x 100
The expenditure approach counts what is spent on final goods and services made inside the country in a year. In the example, consumer spending is 69.69% of GDP, investment 17.42% and government spending 15.68%. Imports exceed exports by $800 billion, so net exports subtract 2.79%. Imports are taken away because they were made abroad, even though they show up in the other spending figures.
Nominal GDP is measured at this year's prices, so it rises when prices rise even if output does not. Real GDP strips out price changes by dividing by the GDP price deflator, an index set to 100 in a base year. With a deflator of 120, the example's $28.7 trillion is $23.917 trillion in base-year dollars. For a smaller economy with $165 billion of nominal GDP and a deflator of 110, real GDP is $150 billion.
GDP per person divides the total by the population. $28.7 trillion shared across 330 million people is $86,969.70 each. The growth rate compares this year with last: from $27,500 billion to $28,700 billion is 4.36% nominal growth. Part of that is higher prices, which is why official reports lead with real growth.
What is left out: transfer payments such as Social Security, because no new output is bought; used goods; and purely financial trades such as buying shares. Investment means new equipment, buildings, software and homes plus changes in inventories, not stock purchases. Official US figures come from the Bureau of Economic Analysis.
To see how rising prices change the value of money, use the inflation calculator. The CAGR calculator finds an average yearly growth rate across several years, and the million to billion converter helps with large numbers. Results are estimates for study and planning, not financial advice.
Frequently asked questions
How do you calculate GDP?
Add consumer spending, business investment, government spending and net exports: GDP = C + I + G + (X - M). With C = $20,000 billion, I = $5,000 billion, G = $4,500 billion, exports of $3,000 billion and imports of $3,800 billion, GDP is $28.7 trillion.
What is the difference between nominal and real GDP?
Nominal GDP uses current prices. Real GDP adjusts for inflation by dividing by the GDP price deflator and multiplying by 100. A nominal GDP of $28.7 trillion with a deflator of 120 is a real GDP of $23.917 trillion.
How do you calculate GDP per capita?
Divide GDP by the population. A GDP of $28.7 trillion and a population of 330 million give $86,969.70 per person.
How do you calculate the GDP growth rate?
Subtract last year's GDP from this year's, divide by last year's and multiply by 100. Going from $27,500 billion to $28,700 billion is growth of 4.36%. Use real GDP for both years to measure growth after inflation.
Why are imports subtracted from GDP?
GDP measures what a country produces. Imported goods are already counted inside consumer spending, investment or government spending, so subtracting them removes output that was made somewhere else.
Related calculators
Last reviewed: