GDP Calculator

Estimate gross domestic product with the expenditure approach, convert nominal GDP to real GDP, and explore net exports, GDP per capita, and growth.

Enter economic data

Use the same currency and scale for all monetary values. Example: all values in billions of dollars or crores of rupees.

Household spending on final goods and services.
Business/residential investment and inventory changes.
Government purchases, not transfer payments.
Goods and services sold abroad.
Goods and services purchased from abroad.
Price index; base year is normally 100.
Enter in millions if monetary values are in millions.
Use the same currency scale and GDP type.

Your GDP results

Calculated from the values you enter. These are estimates, not official national accounts.

Nominal GDP (expenditure approach)
—
C + I + G + (X − M)
Net exports (X − M)—
Real GDPEnter deflator
GDP per capitaEnter population
GDP growthEnter previous GDP
GDP deflator—
Net exports share—
ComponentAmountShare of GDP
GDP measures the market value of final goods and services produced within an economy over a period. Net exports may be negative when imports exceed exports.

GDP Calculator: Formula and guide

Gross domestic product (GDP) is a common measure of the size of an economy. This calculator uses the expenditure approach, adding consumption, investment, government purchases, and net exports. Enter all monetary components using a consistent currency and scale.

GDP formula

Nominal GDP = C + I + G + (X − M)
Net Exports = Exports − Imports
Real GDP = (Nominal GDP ÷ GDP Deflator) × 100
GDP Deflator = (Nominal GDP ÷ Real GDP) × 100
GDP per Capita = GDP ÷ Population
GDP Growth (%) = ((Current GDP − Previous GDP) ÷ Previous GDP) × 100

Worked example

Suppose consumption is 7,000, investment is 2,000, government purchases are 1,800, exports are 1,500, and imports are 1,700 (all in the same monetary scale).

Net exports = 1,500 − 1,700 = −200
Nominal GDP = 7,000 + 2,000 + 1,800 − 200 = 10,600

If the GDP deflator is 105, real GDP is 10,600 ÷ 105 × 100 = 10,095.24 in base-year prices.

Understanding the components

  • Consumption (C): household spending on final goods and services.
  • Investment (I): spending on capital goods, residential structures, and inventory changes—not purchases of stocks and bonds.
  • Government purchases (G): government purchases of goods and services; transfer payments are generally excluded.
  • Net exports (X − M): exports minus imports, which removes foreign-produced goods already counted in spending.

Frequently asked questions

What does GDP mean?

GDP stands for gross domestic product. It measures the value of final goods and services produced within a country's borders over a defined period.

What is the difference between nominal and real GDP?

Nominal GDP uses current prices. Real GDP adjusts for price changes using a GDP deflator so output can be compared in base-year prices.

Why are imports subtracted?

Imported products may already be included in consumption, investment, or government spending. Subtracting imports excludes production that occurred outside the domestic economy.

Can net exports be negative?

Yes. If imports exceed exports, net exports are negative and reduce the expenditure total.

What is the GDP deflator?

It is a price index calculated as nominal GDP divided by real GDP, multiplied by 100. A value of 105 means the measured price level is 5% above the base-year level.

Is this an official GDP estimate?

No. This tool calculates results from your inputs and does not fetch or verify official government statistics. Use a national statistical agency for published GDP figures.