Skip to content
Tezmy Tools

GDP Calculator

GDP from spending, GDP per person, GDP growth and real versus nominal GDP

GDP

20,800

C + I + G + (X − M) = 14,000 + 3,500 + 3,800 + -500

Net exports (X − M)
-500
Consumption
67.31% of GDP
Investment
16.83% of GDP
Government spending
18.27% of GDP
Net exports
-2.4% of GDP

Enter every amount in the same currency and units, such as billions of dollars. Counting rules for official GDP differ from this simple textbook version.

Runs in your browser. Nothing is uploaded.

About the GDP Calculator

Gross domestic product, or GDP, measures the total value of goods and services produced in an economy. This GDP calculator covers the four calculations economics students and analysts use most: GDP from the expenditure approach (consumption plus investment plus government spending plus exports minus imports), GDP per person, the growth rate between two years including the average yearly rate, and real GDP from nominal GDP and the GDP deflator. It also shows how large each spending component is as a share of the total.

Updated October 2026

How to use the GDP Calculator

  1. 1Choose the calculation you need from the list.
  2. 2For GDP from spending, enter consumption, investment, government spending, exports and imports.
  3. 3For per capita GDP, enter total GDP and the population.
  4. 4For growth, enter GDP for two years and the number of years between them.
  5. 5For real GDP, enter nominal GDP and the deflator, where the base year is 100.

The four parts of spending

  • Consumption (C): household spending on goods and services.
  • Investment (I): business spending on equipment and buildings, and new housing.
  • Government spending (G): public purchases of goods and services, not transfer payments.
  • Net exports (X - M): exports minus imports, which can be negative.

Reading the results

Consumption is normally the largest part of GDP, often well over half. The share table shows how your numbers split. A negative net export figure means the country buys more from abroad than it sells, and a persistent deficit is something economists watch. Growth rates are most useful for comparing real GDP across years, since nominal growth includes the effect of rising prices.

Related finance tools

Use the Inflation Calculator to see how prices change over time, the CAGR Calculator for compound growth of any value, the Percentage Calculator for share and change questions and the ROI Calculator for investment returns. For comparing living standards, remember to adjust per-capita figures for purchasing power. This tool teaches the standard textbook formulas.

Features

  • Expenditure approach GDP
  • Shares of consumption, investment, government and net exports
  • GDP per capita
  • Total and compound yearly growth
  • Real GDP from a deflator
  • Inflation since the base year
  • Runs in your browser

Frequently asked questions

What is the GDP formula?

By the expenditure approach, GDP equals consumption plus investment plus government spending plus net exports, where net exports are exports minus imports. Written out, GDP = C + I + G + (X - M). Exports add to GDP because they are produced at home, while imports are subtracted because they are included in spending but produced elsewhere.

What is GDP per capita?

It is GDP divided by the population, giving the average output per person. It is a rough guide to average living standards, though it hides inequality and does not capture non-market work or the environment. Make sure the GDP and the population use compatible units.

How do I calculate the GDP growth rate?

Divide the later GDP by the earlier GDP, subtract 1 and multiply by 100. If GDP rose from 20,000 to 21,000 in one year, the growth is 5 percent. Over several years, the tool also gives the compound average yearly rate, which is the nth root of the ratio minus 1.

What is the difference between nominal and real GDP?

Nominal GDP uses the prices of the year being measured, so it rises with inflation as well as with real output. Real GDP uses constant prices from a base year and shows growth in actual production. Real GDP equals nominal GDP divided by the deflator, times 100.

What is the GDP deflator?

The GDP deflator is a price index for everything produced in an economy, set to 100 in the base year. A deflator of 105 means prices are 5 percent higher than the base year on average. It is nominal GDP divided by real GDP, times 100.

Can I use this for any currency?

Yes. Enter all amounts in the same currency and units, such as billions of dollars. The calculator does arithmetic only, and official GDP statistics follow detailed national accounting rules, so use this for learning, quick checks and homework rather than for reporting.

Related tools