GDP Calculator

Add up GDP by the expenditure, income or production approach, then turn it into real GDP with the deflator, GDP per person and a growth rate.

Calculator Finance Updated Oct 4, 2026
Learn how this works
How to Use
  1. Choose an approach: Expenditure (C + I + G + X − M), Income (wages + operating surplus + taxes − subsidies) or Production (output − inputs + product taxes − subsidies).
  2. Pick the unit and currency your figures are in — billions of US dollars, for example — then enter the components.
  3. Optionally add the GDP deflator for real GDP, the population for GDP per person, and last year’s GDP (and deflator) for the growth rate.
  4. Read GDP and the extra results; the waterfall chart shows each component adding to or subtracting from the total.
  5. Try the United States 2024 preset (World Bank data) or the illustrative presets, which give the same GDP three different ways.
Input
households
business & homes
goods & services
sold abroad
bought abroad
wages + benefits
profit, rent, interest, depreciation
sales, excise, property
subtracted
all sales
inputs used up
VAT, sales, duties
subtracted
Optional: real GDP, per person, growth
index
people
nominal
index
Presets
The United States preset is World Bank data; the others are illustrative round numbers.
Building GDP
GDP
—
Real GDP
—
Real growth
—
GDP per person
—

Worked Example

United States, 2024 (World Bank, US$ billions). Consumption 19,896.009 + investment 6,308.623 + government 3,991.84 + exports 3,215.368 − imports 4,113.828. Net exports are 3,215.368 − 4,113.828 = −898.46, so GDP = 19,896.009 + 6,308.623 + 3,991.84 − 898.46 = $29,298.012 billion. Consumption is 67.9% of it.

Real GDP and growth. With the GDP deflator at 119.027 (2020 = 100), real GDP = 29,298.012 ÷ 119.027 × 100 = $24,614.6 billion in 2020 prices. In 2023 nominal GDP was 27,811.517 and the deflator 116.144, giving $23,945.7 billion. Real growth = 24,614.6 ÷ 23,945.7 − 1 = 2.79%. Divided by 340,003,797 people, GDP is $86,170 per person.

The common mistake: quoting nominal growth as growth. The same two years give nominal growth of 29,298.012 ÷ 27,811.517 − 1 = 5.34%. That is not how much more the economy produced: 2.55 points of it is higher prices. Headline “GDP growth” figures are real unless they say otherwise.

Show Work

Enter values and calculate to see the step-by-step breakdown.

Formulas

Expenditure approach
GDP = C + I + G + (X − M)
Final spending on what the economy produced
Income approach
GDP = W + GOS + T − S
Compensation of employees + gross operating surplus and mixed income + taxes on production and imports − subsidies
Production approach
GDP = (O − IC) + Tp − Sp
Gross value added, plus taxes less subsidies on products
Real GDP
Real = Nominal ÷ deflator × 100
Values every year at base-year prices
Growth rate
g = (GDPt ÷ GDPt−1 − 1) × 100
Use real GDP in both years for real growth
Per person
GDP per capita = GDP ÷ population
Scale GDP to the same units first ($ billions × 10⁹)

Where GDP Comes From

Modern national accounts began in the Great Depression. Simon Kuznets prepared the first official estimates of United States national income for Congress, published in 1934 as National Income, 1929–1932, and warned in the same report that the welfare of a nation can scarcely be inferred from a measure of national income. He received the Nobel Prize in economics in 1971. Richard Stone built the matching accounts in Britain and led the United Nations’ first System of National Accounts in 1953; the 2008 SNA is the framework most countries use, and its three approaches are the three modes of this calculator.

The United States used gross national product (GNP) as its headline measure until 1991, when the Bureau of Economic Analysis switched to GDP, which counts production inside the country whoever owns it.

About the United States preset. The figures are from the World Bank’s World Development Indicators (current US$, 2024; series last updated 13 July 2026, retrieved 4 October 2026): household and non-profit final consumption expenditure $19,896.009 billion, gross capital formation $6,308.623 billion, general government final consumption expenditure $3,991.84 billion, exports of goods and services $3,215.368 billion and imports $4,113.828 billion. The published GDP total is $29,298.013 billion; the components add to $29,298.012 billion, a $1 million rounding difference. The GDP deflator is 119.027 in 2024 and 116.144 in 2023 (2020 = 100), and the population is 340,003,797. In this series government investment sits in gross capital formation (I), not G, so the split differs from the U.S. Bureau of Economic Analysis’s own tables, though GDP is the same concept. All other presets are illustrative.

About This Calculator

This calculator adds up gross domestic product three ways — by spending, by income and by production — and draws each component as a step in a waterfall so you can see what adds and what subtracts. Give it a GDP deflator and it works out real GDP; give it last year’s GDP and it works out the growth rate, real if both years’ deflators are entered; give it a population and it divides GDP per person. The figures can be in units, millions, billions or trillions of any currency.

Everything runs in your browser; nothing you enter is sent anywhere. It suits economics students, teachers and anyone checking a national-accounts figure in the news. Estimates for planning and education — not financial, tax or legal advice.

Related tools: Inflation Calculator, Percentage Calculator, and Currency Converter.

Frequently Asked Questions

What are the three ways to measure GDP?

Spending (C + I + G + X − M), income (wages + operating surplus + taxes on production − subsidies) and production (gross output − intermediate inputs + taxes on products − subsidies). In principle all three give the same number; the illustrative presets here each come to 20,700. In real statistics the estimates differ slightly and the gap is published as a statistical discrepancy.

What is the difference between nominal and real GDP?

Nominal GDP is measured in each year’s own prices, so it rises with inflation. Real GDP removes price changes: real = nominal ÷ deflator × 100. With World Bank figures, US nominal GDP grew 5.34% from 2023 to 2024 but real GDP grew 2.79%; the other 2.55 points were higher prices.

Why are imports subtracted in C + I + G + (X − M)?

Because imported goods are already inside consumption, investment and government spending, and they were not produced at home. Subtracting M removes them; imports do not reduce GDP by themselves. Adding imports instead of subtracting them turns the 20,700 example into 26,900.

How is GDP per person calculated?

Divide GDP by the population, in the same currency units. US GDP of $29,298.012 billion in 2024 divided by 340,003,797 people is $86,170 per person. Comparing countries fairly usually also needs purchasing-power parity, which this calculator does not apply.

What does a GDP deflator of 119.027 mean?

That prices across the whole economy are 19.027% above the base year, where the deflator is 100. The World Bank’s US series uses 2020 = 100; it went from 116.144 in 2023 to 119.027 in 2024, a rise of 2.48%. Deflator = nominal GDP ÷ real GDP × 100.

How do I use the GDP Calculator?

Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.

Does it cost anything or need an account?

No. The tool is completely free, there is no account to create, and it keeps working offline after the page first loads.

Is anything I type uploaded?

No. The tool works entirely on your device, so the values you enter never leave your browser.

Common Use Cases

Economics homework

C 14,000 + I 3,500 + G 3,800 + X 2,500 − M 3,100 gives GDP of 20,700, with a trade deficit of 600 and consumption at 67.6% of GDP.

Reading a growth headline

Check whether a figure is nominal or real: US GDP rose 5.34% in current dollars in 2024 but 2.79% after inflation.

Comparing economies by size and per person

US GDP of $29,298 billion over 340 million people is about $86,170 per person; enter another country’s figures to compare.

Seeing the three approaches agree

Wages 11,200 + surplus 8,100 + taxes 1,550 − subsidies 150, and output 38,000 − inputs 18,800 + taxes 1,650 − subsidies 150, both give the same 20,700.

Export-led economies

With exports of 1,800 and imports of 1,500 on GDP of 4,000, net exports are a surplus of 300 and exports equal 45% of GDP.

Last updated: