GDP calculator

Enter the spending components for an economy (in any unit, such as billions of dollars). You get GDP, each part’s share, and optionally GDP per person and growth over the previous year.

Your answer

GDP28,200
GDP per personIf GDP is in billions and population in millions, this is in dollars84,179
Shares of GDP
PartAmountShare
C19,00067.4%
I5,20018.4%
G4,80017%
Net exports (X − M)-800-2.8%

Worked out in your browser. Nothing you type is sent to a server.

How we worked it out

Updated as you change the numbers.

  1. GDP = C + I + G + (X − M). Real growth = (1 + nominal growth) ÷ (1 + inflation) − 1.

Method and assumptions

The expenditure approach adds up final spending in the economy: household consumption, business investment, government purchases and net exports. Imports are subtracted because they are counted in the other parts but produced elsewhere.

Questions

Why are imports subtracted from GDP?

Spending on imports is already included in consumption and investment, but GDP measures only what is produced at home.

Sources

Method and figures checked on . Every worked answer on this page is covered by an automated test. Found a mistake? Tell us.

Embed this calculator on your site

Free to use. Paste this where you want the calculator; it runs in your visitors’ browsers, sets no cookies and sends nothing to us.

Related calculators