$
$
$
$
$
Consumption (C)$14.00
Investment (I)$4.00
Government (G)$4.00
Net exports (X − M)-$1.00
GDP$21.00

The formula

GDP=C+I+G+(XM)GDP = C + I + G + (X - M)
C — consumer spending
I — business investment
G — government spending
X − M — net exports (exports minus imports)

How it works

Gross domestic product adds up everything a country produces in a year, using the expenditure method: household spending, investment, government spending and net trade. Enter the four parts to see the total and how each contributes.

FAQ

Why are imports subtracted?

Because consumption, investment and government spending already include money spent on imported goods, which were not produced at home. Subtracting imports removes them so GDP counts only domestic production.

What if net exports are negative?

That is a trade deficit — a country importing more than it exports. It lowers GDP in this formula, though a country can still have a large, growing economy with a trade deficit.

What is the difference between nominal and real GDP?

Nominal GDP is measured in current prices, while real GDP strips out inflation to show actual changes in output. This calculator produces a nominal figure — comparing GDP across years requires adjusting for price changes.

What is GDP per capita?

It is GDP divided by population, giving a rough average of economic output per person. It is a common way to compare living standards between countries of very different sizes.

Does GDP include government transfers like pensions?

No. Transfer payments such as pensions or unemployment benefits are not counted directly because they are not payment for newly produced goods or services — only the government’s actual purchases of goods and services enter the G term.

Can GDP be calculated another way?

Yes. Besides the expenditure approach used here, GDP can also be calculated by summing incomes earned (the income approach) or the value added at each stage of production (the output approach). All three should, in theory, give the same total.

Why do currency units matter for comparing GDP?

GDP figures are usually reported in a country’s local currency, so comparing countries requires converting to a common currency, often using exchange rates or purchasing power parity to account for cost-of-living differences.

About the GDP calculator

This calculator adds up gross domestic product using the expenditure approach — the most common way GDP is measured. GDP is the total value of all the goods and services a country produces in a period, usually a year, and it is the headline figure for the size and health of an economy. The expenditure method reaches that total by adding up everything the different parts of the economy spend.

How to use it

Enter the four components in your chosen currency: consumption (what households spend), investment (what businesses spend on equipment and building), government spending, and the two trade figures, exports and imports. The calculator adds consumption, investment and government spending, then adds net exports — exports minus imports — to give GDP. For example, with 14, 4 and 4 for the first three and net exports of −1, GDP is 21. The figures are usually in trillions or billions.

The formula

The expenditure formula is GDP=C+I+G+(XM)GDP = C + I + G + (X - M), where CC is consumption, II is investment, GG is government spending, XX is exports and MM is imports. The bracket XMX - M is net exports: it is added because exports are home-made goods sold abroad, while imports are subtracted since spending on them is counted in the other terms but was not produced domestically. The four parts together capture every buyer in the economy.

Where it is used

GDP is the single most watched number in economics. Governments and central banks use it to steer policy on interest rates, tax and spending, and two consecutive quarters of falling GDP is the common definition of a recession. Economists compare GDP between countries and over time, businesses use it to plan for growth, and dividing GDP by population gives GDP per capita, a rough guide to average living standards.