Skip to content

Free browser tools that respect your files: everything runs locally, nothing is uploaded.

GDP Calculator

Calculate GDP using the expenditure approach: GDP = C + I + G + (X − M). Includes per-capita GDP and real GDP from a price deflator.

Expenditure Components

All amounts in trillions (any consistent unit works)

$T

Household spending on goods and services

$T

Business capital, equipment, and residential construction

$T

Government purchases of goods and services

$T

Goods and services sold abroad

$T

Goods and services bought from abroad (subtracted)

Per-Capita & Real GDP

Optional extra calculations

M

Per-capita GDP = GDP ÷ population

Real GDP = Nominal GDP ÷ deflator × 100

A $22T economy with 335 million people produces about $65,672 of GDP per person.
At a deflator of 115, real GDP is $19.13T in base-year dollars — prices have risen since the base year.

Component Shares of GDP

ComponentAmountShare
Consumption (C)$15T68.2%
Investment (I)$4T18.2%
Government (G)$3.5T15.9%
Net Exports (NX)$-0.5T-2.3%

Net exports are negative (a trade deficit), which subtracts 0.5T from GDP.

Formulas

Expenditure approach:GDP = C + I + G + (X − M)
Per-capita GDP:GDP ÷ population
Real GDP:(Nominal GDP ÷ deflator) × 100
GDP deflator:(Nominal GDP ÷ Real GDP) × 100

Worked Example

With C = 15T, I = 4T, G = 3.5T, X = 2.5T, and M = 3T (all trillions of dollars):

GDP = 15 + 4 + 3.5 + (2.5 − 3) = 15 + 4 + 3.5 − 0.5 = $22T

Divided by 335 million people, that is about $65,672 per capita; with a deflator of 115, real GDP = 22 ÷ 115 × 100 ≈ $19.13T in base-year dollars.

Your Results

Results are also pinned to the bottom of your screen.

GDP Results

$22T
GDP = C + I + G + NX
Net Exports (X − M)-0.5T
Per-Capita GDP$65,672
Real GDP (deflator 115)$19.13T
15T + 4T + 3.5T + (2.5T − 3T) = $22T

Quick Answer

GDP by the expenditure approach is GDP = C + I + G + (X − M): consumption plus investment plus government spending plus net exports. For example, C = 15T, I = 4T, G = 3.5T, X = 2.5T, M = 3T gives 15 + 4 + 3.5 + (2.5 − 3) = 22T. Divide by population for per-capita GDP, and divide by (deflator ÷ 100) for real GDP.

Key Facts

  • Expenditure approach: GDP = C + I + G + NX, where NX = exports − imports
  • Imports are subtracted because C, I, and G already include imported goods
  • Per-capita GDP = GDP ÷ population
  • Real GDP = (Nominal GDP ÷ deflator) × 100, with the base year deflator equal to 100
  • A deflator above 100 indicates price inflation since the base year
  • The three approaches (expenditure, income, production) should yield the same GDP in theory

Frequently Asked Questions

Frequently Asked Questions

What is the GDP formula for the expenditure approach?

GDP = C + I + G + NX. C is personal consumption (household spending), I is gross private domestic investment (business capital + residential), G is government purchases, and NX is net exports (X − M). Worked example: C = 15T, I = 4T, G = 3.5T, X = 2.5T, M = 3T → GDP = 15 + 4 + 3.5 + (2.5 − 3) = 22T.

How is per-capita GDP calculated?

Divide total GDP by total population: 22T ÷ 335M ≈ $65,672 per person. Per-capita GDP is a rough proxy for average living standards, but it ignores income distribution and non-market activity. Keep units consistent — if GDP is in trillions, multiply by 1,000,000 (to get units) before dividing by population in millions.

How do you calculate real GDP from a deflator?

Real GDP = (Nominal GDP ÷ GDP deflator) × 100. With nominal GDP of 22T and a deflator of 115, real GDP = 22 × 100 ÷ 115 ≈ 19.13T in base-year dollars. Rearranged, the deflator = (Nominal ÷ Real) × 100, so you can back out any missing value from the other two.

Why are imports subtracted in the GDP formula?

Because consumption, investment, and government spending already include purchases of imported goods. An imported phone counted in C was not produced domestically, so counting it would overstate production. Subtracting all imports (via net exports) removes every foreign-produced item that leaked into C, I, or G.

What units should I use in this calculator?

Any consistent currency unit works — trillions, billions, or millions. The example uses trillions of dollars (C = 15T, etc.). For per-capita GDP, enter population in millions (335 = 335 million); the calculator handles the unit conversion internally so the per-person result comes out in plain dollars.

Related tools

More tools like this

Secret Santa Generator

Draw Secret Santa names online free with couple exclusions, tap-to-reveal or AES-GCM encrypted share links, and a printable sign-up sheet. No email, no signup.

Memory Match

Play memory match free online - the classic concentration game. Flip tiles, remember positions, match every pair in as few moves as possible. Four board sizes, star ratings, saved bests. No signup.

Blackjack

Play free blackjack online - classic 21 with 3:2 blackjack payouts, double down, and a dealer that stands on all 17s. $100 practice bankroll, real single-deck shoe. No download, no real money.

Video Poker

Play free video poker online - Jacks or Better with the full 9/6 pay table up to a 250x royal flush. Hold, draw, and build your credits with a practice bankroll. No download, no real money.

TriPeaks Solitaire

Play TriPeaks solitaire free online - clear three peaks by playing cards one rank above or below the waste. Suits never matter, streaks score bonuses, K wraps to A. No signup.

Pyramid Solitaire

Play Pyramid solitaire free online - remove card pairs that sum to 13 (Kings go alone) and clear the 28-card pyramid. Stock draws and waste redeals included. No download, no signup.

Daily Word Puzzle

A free daily word puzzle: guess the five-letter word in six tries with green and yellow hints. One new puzzle every day - the same word for everyone - with streak tracking. No signup.

Daily Sudoku

Free daily sudoku - one new seeded puzzle per day in easy, medium, and hard, the same puzzle for everyone. Pencil marks, conflict highlighting, timer, and solve streaks. No signup.

Browse all tools