GDP Calculator
The GDP calculator adds up consumption, investment, government spending and net exports (exports minus imports) to compute Gross Domestic Product using the expenditure approach: GDP = C + I + G + (X − M), and can also compute GDP per capita.
verified_userReviewed by the Calculopedia editorial teamLast updated 2026-08-15
Embed on your site
Embed this calculator on your site:
<iframe src="https://calculopedia.darzh.xyz/embed/gdp-calculator/" width="100%" height="700" style="border:0;border-radius:12px" loading="lazy"></iframe>
quizExample
How this calculator works, with real numbers (no JavaScript needed):
Inputs
- Consumer spending (C)
- 200
- Investment (I)
- 80
- Government spending (G)
- 60
- Exports (X)
- 50
- Imports (M)
- 40
- Population (optional)
- 0
Results
- GDP
- ₹350
- Net exports (X − M)
- ₹10
- GDP per capita
- ₹0
functionsThe formula
Gross Domestic Product (GDP) is the total monetary value of all goods and services produced within a country in a given period. It is the most widely used measure of economic output — the headline number in every growth report, budget speech and election debate. The modern framework was formalised in the 1930s, when governments first needed a reliable way to measure total production (the economist whose work anchored it later won a Nobel Prize). Before that, "how is the economy doing" was answered with anecdotes; since then it is answered with a number.
The expenditure approach
GDP = C + I + G + (X − M)
Where:
- C = Consumer spending (household consumption)
- I = Investment (business capital, residential construction, inventory changes)
- G = Government spending (on goods and services, not transfer payments)
- X = Exports (goods and services sold to other countries)
- M = Imports (goods and services bought from other countries)
Worked example
C = 200, I = 80, G = 60, X = 50, M = 40 (in billions of rupees, say):
Net exports = 50 − 40 = 10
GDP = 200 + 80 + 60 + 10 = **350**
Since imports are subtracted, a trade deficit by itself drags GDP down — but the money spent on imports also signals strong consumption, so the number is best read alongside its components, not alone.
GDP per capita
GDP per capita = GDP ÷ population
This gives the average economic output per person and is used to compare living standards across countries. A country with a huge GDP but a huge population can have a modest per-capita figure — which is why India's per-capita GDP, though growing briskly, remains well below many smaller economies.
Three approaches to GDP
- Expenditure (C + I + G + X − M) — what is spent
- Income — wages + profits + rents + interest — what is earned
- Production — value added at each stage — what is produced
All three should give the same GDP figure, because every rupee spent is someone's income and every good produced is eventually bought. Differences between the three estimates are measurement error, and economists reconcile them into a national-accounts release.
What deliberately stays out
- Transfer payments — pensions, welfare, scholarships — move money without producing anything new.
- Second-hand sales — a used car's price changes ownership of existing value; only the dealer's margin on it is new production.
- Intermediate goods — counted through value added, or they would be double-counted.
- Underground activity — unreported income is real output that official statistics miss.
The limits of GDP
GDP measures production, not well-being. It counts the spending on pollution clean-up but not the pollution itself, and it values unpaid household and care work at zero. It also mixes real growth with inflation: the same goods sold at higher prices inflate nominal GDP. Economists strip that out by converting to real GDP using the GDP deflator (see the Real GDP calculator) — the number behind the "growth rate" in the news.
helpFrequently asked questions
question_markWhat is GDP?
GDP (Gross Domestic Product) is the total value of all goods and services produced within a country. Using the expenditure approach it is calculated as C + I + G + (X − M) — the sum of all spending in the economy.
question_markHow is GDP calculated?
Using the expenditure approach: GDP = Consumer spending + Investment + Government spending + (Exports − Imports). This sums up all final spending in the economy. The income and production approaches should give the same result.
question_markWhat is GDP per capita?
GDP per capita is the GDP divided by the population. It gives the average economic output per person and is used to compare living standards between countries, since a large total GDP may still mean low per-person output.
question_markWhat is the difference between nominal and real GDP?
Nominal GDP is valued at current prices and rises with both output and inflation. Real GDP strips out price changes using the GDP deflator, so an increase in real GDP means the economy genuinely produced more. Growth rates in the news are real growth.