CalculateItNow home

GDP Calculator

Nominal and real GDP by the expenditure approach, the GDP deflator, per-capita figures and growth rates — with the BEA definition and what GDP leaves out.

GDP Calculator: with the default inputs, nominal gdp ($bn) is $28,900.

$bn
$bn
$bn
$bn
$bn
million
Try an example
Net exports are -$1,000bn — a trade deficit. That subtracts from GDP arithmetically, but it does not mean the country is poorer: imports are subtracted only because they were already counted inside C, I and G.
Nominal GDP ($bn)
$28,900
In words
Nominal GDP of $28,900bn deflates to $27,524bn in base-year prices — $85,000 per person, growing 2.7% in real terms.
Real GDP ($bn, base-year prices)
$27,524
Net exports (X − M) ($bn)
-$1,000
Nominal GDP per capita
$85,000
Real GDP per capita
$80,952
Real GDP growth
2.7%
Nominal GDP growth
5.09%
Implied GDP price inflation
2.33%
Consumption share of GDP
69.2%
Investment share of GDP
17.3%
Government share of GDP
17%
Net exports share of GDP
-3.5%
Assumptions
  • Expenditure approach only; the income and production approaches are not computed.
  • The deflator is an index with the base year equal to 100, and real GDP is nominal ÷ (deflator ÷ 100) — a fixed-base calculation, not the BEA's chained Fisher index.
  • Figures are in billions of currency units and population in millions; no purchasing-power-parity adjustment.
  • Government transfer payments are excluded from G, as in the national accounts.
  • Default values are illustrative round numbers at roughly US scale, not published estimates — take real figures from the BEA.
Components of GDP
$0$10k$20kConsumption (C)Investment (I)Government (G)Exports (X)Imports (M)Nominal GDP
$bn
Expenditure components
Component$bnShare of GDP
Consumption (C)$20,00069.2%
Investment (I)$5,00017.3%
Government (G)$4,90017%
Exports (X)$3,20011.1%
Imports (M)-$4,200-14.5%
Nominal GDP$28,900100%

Imports are shown negative because they are subtracted, not because importing destroys output. They were already inside C, I and G.

Nominal, real and the deflator
MeasureValueWhat it tells you
Nominal GDP ($bn)28,900Output at this year's prices — mixes real growth with inflation.
Real GDP ($bn)27,523.81Output at base-year prices — the volume measure economists actually use.
GDP deflator105Price level vs. the base year. Nominal ÷ real × 100.
Real growth (%)2.7The number that decides whether an economy is expanding.
Math verified by automated testsUpdated 2026-09-093 sources cited

How this is worked out

The formula

Expenditure approach:
  Nominal GDP = C + I + G + (X − M)

Real GDP     = nominal GDP ÷ (GDP deflator ÷ 100)
GDP deflator = nominal GDP ÷ real GDP × 100
GDP per capita = GDP ÷ population
Real growth  = real GDP this year ÷ real GDP last year − 1
Implied inflation = (1 + nominal growth) ÷ (1 + real growth) − 1

C = household consumption, I = gross private domestic investment,
G = government consumption and gross investment, X = exports, M = imports.

Open How it’s calculated above to see this worked through with your own numbers.

What you enter

Consumption (C)
Household spending on goods and services — about two-thirds of US GDP.in dollars · 0 or more · defaults to 20000
Gross private investment (I)
Business equipment and structures, residential building, and the change in inventories. Not the purchase of shares.in dollars · 0 or more · defaults to 5000
Government consumption and investment (G)
Federal, state and local purchases. Transfer payments like Social Security are excluded — they're counted when the recipient spends them.in dollars · 0 or more · defaults to 4900
Exports (X)
A number.in dollars · 0 or more · defaults to 3200
Imports (M)
Subtracted because imports were already counted inside C, I and G — this removes foreign production from a domestic measure.in dollars · 0 or more · defaults to 4200
GDP price deflator
Price level relative to the base year = 100. A deflator of 105 means prices are 5% above the base year.from 1 to 100000 · defaults to 105
Population
A number.0 or more · defaults to 340
Prior-year real GDP(under More options)
In the same base-year dollars, so the growth rate is a real one.in dollars · 0 or more · defaults to 26800
Prior-year nominal GDP(under More options)
A number.in dollars · 0 or more · defaults to 27500

What you get back

Nominal GDP ($bn)main answer
In words
Real GDP ($bn, base-year prices)
Net exports (X − M) ($bn)
Nominal GDP per capita
Real GDP per capita
Real GDP growth
Nominal GDP growth
Implied GDP price inflation
The gap between nominal and real growth — the deflator's own inflation rate.
Consumption share of GDP
Investment share of GDP
Government share of GDP
Net exports share of GDP

What this assumes

  • Expenditure approach only; the income and production approaches are not computed.
  • The deflator is an index with the base year equal to 100, and real GDP is nominal ÷ (deflator ÷ 100) — a fixed-base calculation, not the BEA's chained Fisher index.
  • Figures are in billions of currency units and population in millions; no purchasing-power-parity adjustment.
  • Government transfer payments are excluded from G, as in the national accounts.
  • Default values are illustrative round numbers at roughly US scale, not published estimates — take real figures from the BEA.

About this calculator

Gross domestic product is the market value of all final goods and services produced within a country in a period. The Bureau of Economic Analysis measures it three ways that must agree in principle — by expenditure, by income and by production — and the expenditure approach is the one everybody quotes: C + I + G + (X − M).

What goes in each bucket

  • C, consumption. Household spending on goods and services. About two-thirds of US GDP, and the reason consumer confidence surveys move markets.
  • I, investment. Business spending on equipment and structures, residential construction, and the change in inventories. It is not buying shares — a share purchase transfers ownership of existing assets and produces nothing.
  • G, government. Federal, state and local purchases of goods and services. Transfer payments are excluded: Social Security and unemployment benefits aren't payments for production, and they're counted later when the recipient spends them.
  • X − M, net exports. Exports add; imports subtract. The subtraction confuses people constantly. Imports are not a drag on the economy — they're removed because they were already counted inside C, I and G, and GDP is a measure of domestic production. Take an imported laptop out of consumption and out of imports and GDP is unchanged.

Nominal, real and the deflator

Nominal GDP mixes two different things: producing more, and charging more. Divide by the price level and you get real GDP, the volume measure. With a deflator of 105, $28,900bn nominal is $27,524bn real in base-year prices. The deflator itself is just nominal ÷ real × 100 — and unlike CPI, it covers everything in GDP with weights that update every period, which is why it usually reads a little differently from consumer inflation.

The gap between nominal and real growth is the implied inflation rate. If nominal GDP grows 5% and real GDP grows 2.7%, prices did the other 2.3%.

Per capita, and why it's the better number

A country of 1.4 billion with a large total GDP can still be poor per person. Real GDP per capita — output, adjusted for prices, divided by the people — is the closest thing GDP offers to a living-standards measure, and it's the series to use for any comparison across countries or across decades.

What GDP does not measure

Simon Kuznets, who built the US national accounts, warned in his 1934 report to Congress that "the welfare of a nation can scarcely be inferred from a measurement of national income". He was right, and the caveats haven't changed:

  • Unpaid work is invisible. Childcare, housework and volunteering produce enormous value and count as zero. Pay someone to do the same work and GDP rises.
  • Distribution is invisible. Rising GDP per capita is consistent with falling median income.
  • Depletion and damage are invisible or perverse. Clearing a forest adds to GDP; the loss of it doesn't subtract. Cleaning up an oil spill adds to GDP twice.
  • Quality and free goods are badly handled. Software that gets better at the same price, or services funded by advertising, are systematically under-measured.
  • The informal economy is estimated rather than observed, which matters most in exactly the countries where the data is weakest.

Use GDP for what it is — a measure of market production — and reach for other series when the question is about welfare.

Frequently asked questions

Why are imports subtracted from GDP?

Because they were already counted inside consumption, investment and government spending, and GDP measures domestic production. Subtracting them removes foreign output from a domestic measure — it does not mean importing shrinks the economy.

What's the difference between nominal and real GDP?

Nominal GDP is measured at current prices and rises with both output and inflation. Real GDP is measured at a base year's prices, so it isolates the change in volume. Growth figures in the news are almost always real.

What is the GDP deflator?

The ratio of nominal to real GDP times 100 — the price level of everything a country produces. Unlike the CPI, its weights update every period and it covers investment and government output, not just a fixed consumer basket.

Is GDP the same as GNP?

No. GDP counts production inside a country's borders regardless of who owns it; GNP (now GNI) counts production by a country's residents wherever it happens. The gap matters most for economies with large foreign-owned sectors, such as Ireland.

Does GDP measure how well-off a country is?

Only partly. It ignores unpaid work, distribution, environmental depletion and much of the value of free digital goods, and it counts remediation spending as output. Kuznets, who designed the accounts, said as much in 1934. Use real GDP per capita as a production measure and pair it with other indicators for welfare.

Put this calculator on your own site

A working gdp, free for any site, with no ads and no sign-up. It resizes to fit wherever you paste it and updates itself as this page improves.

Paste this anywhere. It works on any site, carries no ads, never expires, and always shows the current version.

GDP Calculator by CalculateItNow

The page's own title. The clearest description of what the link leads to.

The credit line sits outside the widget on purpose, so it is a real link on your page rather than one buried in a frame. Please keep it — it is what pays for CalculateItNow staying free and ad-free. The script only resizes the widget to fit its contents; drop it and the widget still works.

Browse every calculator widget·How to add it to WordPress, Squarespace or Wix

The questions people ask next to a gdp.

All finance calculators·Browse everything