Everyday utility

GDP Calculator

Calculate gdp and gdp per capita from Consumption, Investment, Government spending, Exports, Imports, with the key formulas and caveats needed to interpret the result correctly.

Last reviewed May 18, 2026 by ToolSpilo Editorial Team.

Review method: Reviewed against the implemented GDP expenditure formula and interpretation examples, displayed formulas, and worked examples.

Calculator tool

How this calculator works

Use the explanation to understand the formula, assumptions, and practical limits behind the calculator result.

What GDP Measures

Gross domestic product, or GDP, is a way to estimate the value of final goods and services produced inside an economy during a period of time. This calculator uses the spending approach:

GDP=C+I+G+(XM)GDP = C + I + G + (X - M)

where CC is consumption, II is investment, GG is government spending, XX is exports, and MM is imports.

A Simple Example

If households spend 500, businesses invest 120, government spends 180, exports are 90, and imports are 70, then:

GDP=500+120+180+(9070)=820GDP = 500 + 120 + 180 + (90 - 70) = 820

Why Imports Are Subtracted

Imports may already be included inside household, business, or government spending. Subtracting them keeps GDP focused on what was produced inside the economy rather than what was bought from abroad.

How to Read the Result

GDP tells you about total output, not everything about people's lives. GDP per capita divides GDP by population, but it still does not show how income is shared, whether prices rose, or whether daily life improved. When comparing years, check whether the numbers are nominal or adjusted for inflation as real GDP.

Frequently asked questions

Why are imports subtracted from GDP?

Because GDP is meant to measure domestic production. Imports can already appear inside household, business, or government spending, so they are subtracted to remove goods made abroad.

What is GDP per capita?

GDP per capita is GDP divided by population. It is useful for broad comparisons, but it is still only an average and does not show whether income is shared evenly.

Is nominal GDP the same as real GDP?

No. Nominal GDP uses current prices. Real GDP adjusts for inflation, which makes growth across different years easier to compare.

Can GDP tell me whether people are better off?

Not by itself. GDP summarizes production, but it does not show income distribution, unpaid work, household debt, environmental costs, or quality of life.