Economics
Intermediate

GDP (Expenditure)

Gross domestic product by spending.

Formula

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

Variables

CConsumption
IInvestment
GGovernment
X-MNet exports

Example

Total economic output

How it works

This formula measures an economy’s total output by adding up all final spending on goods and services produced within the country. It works because every dollar of final expenditure becomes income for someone involved in production, so consumption, investment, government purchases, and net exports together account for the value of what is made. Imports are subtracted because they are produced abroad, so they should not be counted as domestic output.

When to use it

Use this when you need to calculate or interpret GDP from the spending side, especially in macroeconomics, national accounts, or policy analysis. It is also useful for comparing which parts of the economy are driving growth or recession.

Worked example, step by step

Suppose an economy has the following spending components: C = 1,200 billion I = 300 billion G = 500 billion X = 250 billion M = 200 billion First find net exports: X - M = 250 - 200 = 50 billion Now add all spending components: GDP = C + I + G + (X - M) GDP = 1,200 + 300 + 500 + 50 GDP = 2,050 billion So, the GDP is 2,050 billion (in the currency units given).

Common mistakes to avoid

  • Adding imports instead of subtracting them from exports
  • Using intermediate goods or raw transactions instead of final spending
  • Forgetting that GDP counts domestic production, not total spending on all goods including imports

Did You Know?

GDP was invented in the 1930s to measure the Depression, yet its creator warned it ignores wellbeing.

Share this formula

Reviewed & maintained by the FormulaWon editorial teamLast reviewed September 2026