Skip to content
thecalculatorstudio

GDP Calculator: Expenditure Approach, Real GDP and Growth

Enter the four spending components, and optionally a price index, an earlier year and a population. You will see nominal and real GDP, growth and GDP per person.

Last reviewed

$
$
$
$
$
$

Nominal GDP

$20,800.00 billion

with imports above exports, net exports reduce GDP

Real GDP
$20,000.00 billion
Growth in real GDP
4.17%
GDP per person
$63,030
Real GDP per person
$60,606
ComponentAmountShare of GDP
Consumption (C)$14,000.0067.31%
Investment (I)$3,800.0018.27%
Government (G)$3,600.0017.31%
Net exports (X - M)-$600.00-2.88%

The figures are examples. Use your country's statistics office for real data, and use the same unit and the same year throughout.

What GDP measures

Gross domestic product is the value of the final goods and services an economy produces in a period, usually a year or a quarter. The US Bureau of Economic Analysis defines it as the value of goods and services produced by private industry and government, less what was used up in production, and notes that it equals the sum of consumption, investment, net exports and government spending.

There is more than one way to measure it, because every dollar produced is also a dollar spent and a dollar earned. This page uses the expenditure approach, the one most courses and most countries’ headline figures are built on: add up what is spent on final goods and services.

The formula

GDP = C + I + G + (X − M)

  • C, consumption. What households spend on goods and services.
  • I, investment. What businesses spend on structures, equipment and software, residential building, and the change in inventories. It does not mean buying shares or bonds.
  • G, government. Government spending on goods and services, such as defence, schools and roads. Pensions and benefits are not counted, because they only move money from one person to another.
  • X − M, net exports. Exports (goods and services sold abroad) less imports (bought from abroad).

Imports are subtracted because C, I and G all include spending on goods that were made elsewhere. Taking imports off keeps foreign production out of domestic product.

A worked example

These are illustrative numbers, in billions, not any country’s data.

Component Amount Share of GDP
Consumption (C) 14,000 67.31%
Investment (I) 3,800 18.27%
Government (G) 3,600 17.31%
Net exports (2,500 − 3,100) −600 −2.88%
GDP 20,800 100%

Imports are larger than exports, so net exports are negative and take 600 off the total. A trade deficit does not mean a smaller economy by itself: the imports are already inside C, I and G, so the deduction only removes what was not produced at home.

Nominal and real GDP

The figure above is nominal GDP, measured at current prices. If prices rise 4%, nominal GDP rises even when nothing more is made. To see real growth you need real GDP, which removes the effect of prices by dividing by a price index. The index used for the whole economy is the GDP deflator, set to 100 in a base year.

With a price index of 104:

Real GDP = 20,800 ÷ 1.04 = 20,000

Suppose real GDP the year before was 19,200. Then growth is:

20,000 ÷ 19,200 − 1 = 4.1667%

If you used nominal GDP instead you would overstate growth by the amount of inflation. That is the most common mistake in homework and in headlines.

GDP per person

Dividing GDP by the population gives an average that makes countries of different size comparable. With a population of 330 million, nominal GDP of 20,800 billion is 63,030.30 each, and real GDP of 20,000 billion is 60,606.06 each.

The calculator takes amounts in millions, billions or trillions and the population in millions, and does the unit conversion for you.

What GDP leaves out

  • Unpaid work. Housework and caring for family at home are not counted.
  • Distribution. An average hides who gets the income. Two countries with the same GDP per person can be very different places to live.
  • Environmental cost. Using up a resource adds to output and does not subtract the loss.
  • Quality of life. Leisure, health and safety matter and GDP does not measure them.
  • Second-hand sales. Only final goods count and not resale of old ones.

GDP is a measure of production, and a useful one, but it does not say how well off people are.

Common mistakes

  • Leaving imports out of the subtraction, or adding them.
  • Counting government transfers (pensions, benefits) as G.
  • Counting share purchases as investment. In GDP, investment is spending on real capital.
  • Mixing units. All five amounts must be in the same unit.
  • Using nominal GDP for growth. Use the real figure.

Before you use it for work

The inputs here are for learning and for working through problems. For real data, take the figures from your national statistics office, such as the BEA in the United States, and use the series for the same year and the same price basis. Official figures are revised, so the latest estimate can differ from an earlier one.

To see how prices have changed over time, try the inflation calculator. To turn two values and a period into an annual growth rate, use the CAGR calculator.

How it is calculated

GDP is C + I + G + (X − M). Each component’s share is its amount divided by GDP. Real GDP is nominal GDP divided by the price index over 100. Growth is real GDP divided by the earlier real GDP, less 1. GDP per person is GDP multiplied by the unit (a million, a billion or a trillion), divided by the population in units. Amounts are exact decimals, shown to two places, and growth and shares to four.

Frequently asked questions

What is the formula for GDP?

GDP = C + I + G + (X − M): consumption, investment, government spending, and exports less imports. The Bureau of Economic Analysis describes this as the sum of goods and services bought by final users. With C 14,000, I 3,800, G 3,600, X 2,500 and M 3,100, GDP is 20,800.

Why are imports subtracted?

Because consumption, investment and government spending all include spending on imported goods and services, which were not produced at home. Subtracting imports keeps foreign production out of domestic product.

What is the difference between nominal and real GDP?

Nominal GDP is measured at the prices of the year. Real GDP removes the effect of price changes by dividing by a price index, so it shows growth in output. A nominal GDP of 20,800 with an index of 104 is a real GDP of 20,000.

How is GDP growth calculated?

As the percentage change in real GDP from the earlier year. Real GDP of 20,000 against 19,200 the year before is growth of 4.1667%. Use real, not nominal, GDP, or inflation will look like growth.

What is GDP per person, and what is it good for?

GDP divided by population. 20,800 billion over 330 million people is 63,030.30 each. It lets you compare countries of different sizes, but it is an average and says nothing about how the output is shared.

Can investment be negative?

Yes. Investment includes the change in business inventories, which can fall. When stocks are run down, investment can be negative and reduces GDP for the period.

Related calculators

Sources