Skip to content

GDP Calculator

Work out gross domestic product (GDP) by the expenditure approach. Add up spending on consumption, business investment, government purchases and net exports, and see how much each part contributes. Enter every amount in the same unit, such as billions of your currency.

Household spending on goods and services. Enter every amount in the same unit, such as billions.

Equipment, buildings, inventories and new housing.

Government purchases of goods and services. Leave out transfers such as pensions.

Goods and services sold abroad.

Goods and services bought from abroad.

Gross domestic product

$21,200

Imports are larger than exports, so net exports take $300 off GDP.

Consumption share
66%
Investment share
16.5%
Government share
18.9%
Net exports (X − M)
-$300
Net exports share
-1.4%
Each part of GDP
ComponentAmountShare of GDP
Consumption (C)$14,00066%
Investment (I)$3,50016.5%
Government (G)$4,00018.9%
Exports (X)$2,80013.2%
Imports (M), subtracted-$3,100-14.6%
Net exports (X − M)-$300-1.4%
GDP$21,200100%

How to use this calculator

  1. 1 Enter consumer spending, business investment and government spending.
  2. 2 Enter exports and imports.
  3. 3 Read GDP, the net exports figure and the share of GDP that each part makes up.
  4. 4 Check the table to see how each part adds to or takes from the total.

What GDP measures

GDP is the total market value of the final goods and services produced inside a country over a set period, usually a quarter or a year. It is the most widely used measure of the size of an economy.

Economists can measure GDP in three ways: by spending, by income or by production. In theory, all three give the same answer. This calculator uses the spending method, which is the most common.

The four parts of spending

Consumption (C) is what households spend on goods and services, such as food, rent and healthcare. Investment (I) is spending by businesses on equipment, buildings and stock, plus new homes. Government spending (G) covers things the state buys, such as roads, schools and public staff.

Net exports (X − M) is exports minus imports. Exports add to GDP because they are made at home. Imports are subtracted, because they are spent on output made abroad. Transfers such as pensions are not counted in G, because no new goods or services are bought.

Nominal and real GDP

Nominal GDP uses the prices of the year it was produced. If prices rise, nominal GDP can grow even when the economy produces no more. Real GDP removes that effect, so it is better for comparing years.

Official statistics agencies publish real and nominal figures. When you read a news story about growth, check which one it uses. The inflation calculator shows how prices change the value of money over time.

GDP per person and growth rates

To compare countries of different sizes, economists divide GDP by population. This gives GDP per person, which is a rough average and not a typical income. Growth rates are found by comparing GDP in two periods. If the figures are in different currencies, convert them first with the currency converter.

For example, if GDP rises from 20,000 to 21,000, that is growth of 5%. The percentage calculator works out this kind of change in one step.

What GDP does not show

GDP does not show how income is shared between people. A country can grow strongly while many households see little change. It also leaves out most unpaid work, such as caring for children or family members, and much informal activity.

GDP does not measure health, education, the environment or happiness. Other measures, such as life expectancy or household income surveys, can give a fuller picture alongside it.

The formula

Expenditure approach

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

C
consumer spending by households
I
business investment, including housing and inventories
G
government purchases of goods and services
X
exports
M
imports

Share of GDP

Share = component ÷ GDP × 100%

Real GDP (for reference)

Real GDP = nominal GDP ÷ GDP deflator × 100

GDP deflator
a price index, set to 100 in the base year

Worked example

An economy with C = 14,000, I = 3,500, G = 4,000, X = 2,800 and M = 3,100 (billions)

  1. 1.Add the domestic spending: 14,000 + 3,500 + 4,000 = 21,500
  2. 2.Net exports: 2,800 − 3,100 = −300
  3. 3.GDP: 21,500 + (−300) = 21,200, or $21,200 billion
  4. 4.Consumption share: 14,000 ÷ 21,200 = 66%

GDP of $21,200 (billions), with net exports of −$300.

Frequently asked questions

What is the difference between nominal and real GDP?

Nominal GDP values output at the prices of the year it was produced. Real GDP removes the effect of price changes, so you can compare output across years. Real GDP is nominal GDP divided by a price index (the GDP deflator), multiplied by 100 with the base year set to 100.

Why are imports subtracted?

Consumption, investment and government spending can include goods made abroad. Imports are subtracted so only domestic production counts, and exports are added because they are made at home.

Does GDP count unpaid work or the informal economy?

Not fully. National accounts count market transactions and some estimated values. Unpaid household work and much informal activity are excluded or only partly estimated.

Is GDP the same as wealth or well-being?

No. GDP measures the value of goods and services produced in a period. It does not show how income or wealth is shared, or how healthy or happy people are.

Why does the GDP figure change after it is published?

Statistics agencies revise their estimates as more data arrives. The first figure is an early estimate, so later revisions can be larger or smaller than the first release.

Sources

Last reviewed by the GridCalculators team.