GDP Calculator (Gross Domestic Product)

Calculate nominal GDP from consumption, investment, government spending, exports, and imports, or use the income approach when those components are available.

Options

Shown before numbers in results.
Choose the scale you’re entering numbers in.

Advertisement

Choose a GDP method

Expenditure approach

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

Household spending on final goods and services.
New capital, equipment, structures, and inventory changes.
Government purchases of final goods and services; exclude transfer payments.
Domestically produced goods and services sold abroad.
Foreign-produced goods and services already included in C, I, or G, so they are subtracted.

Results

Enter values for one method, then calculate GDP to see the result and worked breakdown.

Tip: Use the same currency and scale across all inputs. A statistical discrepancy is shown only when both methods have enough inputs.

Real GDP and GDP deflator

Real GDP = Nominal GDP / GDP deflator x 100
GDP deflator = Nominal GDP / Real GDP x 100

Current-price GDP, using the same scale selected above.
Price index where the base period is usually 100.
Inflation-adjusted GDP, using the same scale as nominal GDP.
Enter nominal GDP plus either a deflator or real GDP.

How to calculate GDP

Gross Domestic Product (GDP) estimates the value of final goods and services produced within a country during a period. The calculator above focuses on nominal GDP by expenditure or income, plus the related real GDP and GDP deflator formulas.

Expenditure approach steps

  1. Enter consumption, investment, government spending, exports, and imports using one currency and scale.
  2. Calculate net exports: X - M.
  3. Add the components: GDP = C + I + G + (X - M).

Example: if consumption is 600, investment is 200, government spending is 150, exports are 120, and imports are 90, then net exports are 30 and GDP is 980.

Income approach steps

  1. Add compensation, proprietors' income, rental income, corporate profits, and net interest to estimate GNP.
  2. Add indirect business taxes, depreciation, and net income of foreigners.
  3. Compare the result with expenditure GDP only when both methods are entered with consistent source data.

Income and expenditure approaches describe the same economy from different sides. In published statistics, the two can differ because surveys, timing, and source data are not perfect.

Practical notes

Limitations of GDP

GDP is an output measure, not a full measure of welfare, inequality, unpaid work, environmental cost, or household well-being.

Use with context

GDP vs GNP/GNI

GDP follows where production happens. GNP or GNI follows resident or national ownership of income, including cross-border income flows.

Scope matters

Nominal vs real GDP

Nominal GDP uses current prices. Real GDP adjusts for price changes, which makes it better for comparing output across periods.

Inflation adjustment

GDP per capita

GDP per capita divides GDP by population. It is useful for rough comparisons, but it still does not show income distribution.

Population context

Common mistakes

Do not mix scales, add imports instead of subtracting them, include transfer payments in government spending, or compare nominal GDP across time without considering inflation.

Check inputs

Privacy

All calculations are performed locally in your browser; nothing leaves your device.

GDP calculator FAQ

What is the GDP formula?

The common expenditure formula is GDP = C + I + G + (X - M), where C is consumption, I is investment, G is government spending, X is exports, and M is imports.

Why are imports subtracted from GDP?

Imports are subtracted because imported goods and services can already appear in consumption, investment, or government spending. GDP measures domestic production, so foreign production must be removed from the total.

What is the difference between nominal and real GDP?

Nominal GDP uses current prices. Real GDP adjusts nominal GDP with a price index such as the GDP deflator so output can be compared across time.

What is the difference between GDP and GNP?

GDP measures production within a country's borders. GNP measures production by a country's residents or nationals, including relevant income from abroad.

Why do income and expenditure GDP differ?

They should match conceptually, but real-world source data, timing, and measurement differences can create a statistical discrepancy.

Sources and methodology

This tool applies standard national-accounting formulas for educational calculation. It does not retrieve official national accounts or adjust for seasonal, chained-dollar, or purchasing-power-parity methods.

Explore more tools