GDP and Economics Calculator
Work through the standard economics formulas: GDP from C + I + G + NX, real GDP and the deflator, GDP per capita and growth, the unemployment rate, price elasticity and market equilibrium.
How to calculate GDP
The expenditure approach adds up spending on final goods and services produced in a country:
GDP = C + I + G + (X − M)
| Letter | Component | Includes |
|---|---|---|
| C | Consumption | Household spending on goods and services |
| I | Investment | Business equipment and buildings, new homes, change in inventories |
| G | Government purchases | Spending on goods, services and public investment (not transfer payments like Social Security) |
| X − M | Net exports | Exports minus imports |
Example (in $ billions): 14,000 + 3,500 + 4,000 + (2,500 − 3,200) = 20,800. Net exports are −700, a trade deficit. Imports are subtracted because they’re already included in C, I and G but weren’t produced at home.
In the US, the Bureau of Economic Analysis (BEA) publishes GDP; consumption is by far the largest component.
How to calculate real GDP and the GDP deflator
Nominal GDP uses current prices; real GDP uses the prices of a base year, so it measures output without inflation.
| To find | Formula |
|---|---|
| Real GDP | nominal GDP ÷ deflator × 100 |
| GDP deflator | nominal GDP ÷ real GDP × 100 |
| Nominal GDP | real GDP × deflator ÷ 100 |
Example: nominal GDP of 25,000 with a deflator of 115 gives real GDP = 25,000 ÷ 115 × 100 = 21,739. A deflator of 115 means prices are 15% above the base year. You can use the CPI the same way to turn any nominal figure into real terms.
From quantities and prices: nominal GDP = Σ (this year’s price × this year’s quantity); real GDP = Σ (base-year price × this year’s quantity).
GDP per capita and growth
GDP per capita = GDP ÷ population. Watch the units: GDP in $ billions divided by population in millions gives thousands of dollars per person.
Growth rate = (GDP this period − GDP last period) ÷ GDP last period × 100. From 20,000 to 20,800 is 4% growth. Over several years, the average annual rate is (later ÷ earlier)^(1/years) − 1: from 15,000 to 20,000 over 5 years is 5.92% a year. Use real GDP so growth reflects output, not prices.
How to calculate the unemployment rate
Unemployment rate = unemployed ÷ labor force × 100, where the labor force is employed + unemployed. People without a job who aren’t looking (retirees, full-time students, discouraged workers) aren’t in the labor force at all.
Example: 6.5 million unemployed and 158 million employed make a labor force of 164.5 million, so the rate is 6.5 ÷ 164.5 = 3.95%.
| Measure | Formula |
|---|---|
| Labor force participation rate | labor force ÷ working-age population × 100 |
| Employment-population ratio | employed ÷ working-age population × 100 |
In the US, the Bureau of Labor Statistics (BLS) defines unemployed as having no job, being available to work and having looked for work in the past 4 weeks; the working-age population is civilians 16 and older outside institutions.
Price elasticity of demand
Elasticity measures how much quantity demanded responds to a price change. The midpoint (arc) method gives the same answer whichever direction you go:
E = [(Q₂ − Q₁) ÷ ((Q₁ + Q₂)/2)] ÷ [(P₂ − P₁) ÷ ((P₁ + P₂)/2)]
Example: price rises from $10 to $12 and quantity falls from 100 to 80. %ΔQ = −20 ÷ 90 = −22.2%; %ΔP = 2 ÷ 11 = 18.2%; E = −1.22, elastic. Revenue falls from $1,000 to $960, as expected when demand is elastic.
| |E| | Demand is | Raising the price… | | --- | --- | --- | | Greater than 1 | Elastic | lowers total revenue | | Exactly 1 | Unit elastic | leaves revenue unchanged | | Less than 1 | Inelastic | raises total revenue |
For cross-price elasticity, use the same formula with the quantity of one good and the price of another: positive means substitutes, negative means complements.
How to calculate equilibrium price
With linear demand Qd = a − bP and supply Qs = c + dP, set them equal: P = (a − c) ÷ (b + d), then plug P back in to get Q. For Qd = 100 − 2P and Qs = 10 + P: P = 90 ÷ 3 = 30 and Q* = 100 − 60 = 40.
Frequently asked questions
Why is the deflator different from the CPI?
The GDP deflator covers everything produced in the country, including business and government purchases; the CPI tracks a basket of goods and services bought by consumers, including imports.
What’s the difference between GDP and GNP?
GDP counts production inside the country’s borders; GNP counts production by the country’s residents wherever it happens.
How do I adjust a dollar amount for inflation?
Divide by the price index and multiply by the base-year index: real = nominal ÷ CPI × CPI(base). For percentage changes in general, use the percentage calculator.