Skip to content

GDP Calculator

Calculate nominal GDP, real GDP, GDP growth, GDP per capita, GDP deflator, sector contribution, and country GDP comparisons with step-by-step macroeconomics formulas.

Last Updated: May 17, 2026

Calculate Gross Domestic Product

Choose a GDP method, keep all money values in the same currency and scale, then review GDP, shares, growth, per capita output, real GDP, and the step-by-step math.

This labels results only. It does not convert exchange rates.

USD trillion
USD trillion
USD trillion
USD trillion
USD trillion

Optional for GDP per capita.

USD trillion

Optional for growth.

Optional for real GDP.

Nominal GDP

USD 17.5T

GDP per capita

USD 51,471

Real GDP

USD 16T

Growth / deflator

-12.5%

GDP Component Breakdown

ComponentAmountShareNote
ConsumptionUSD 10T57.14%Household spending.
InvestmentUSD 3T17.14%Business investment, housing, and inventories.
Government spendingUSD 4T22.86%Government purchases of goods and services.
ExportsUSD 2T11.43%Domestic output sold abroad.
Imports-USD 1.5T-8.57%Subtracted because imports are foreign output.
Net exportsUSD 500B2.86%Exports minus imports.

GDP Component Visual

Positive bars add to GDP. Negative bars reduce GDP, such as imports or subsidies.

ConsumptionUSD 10T
InvestmentUSD 3T
Government spendingUSD 4T
ExportsUSD 2T
Imports-USD 1.5T
Net exportsUSD 500B

Step-by-Step Solution

  1. Step 1: Net exports = exports - imports = 2 - 1.5.
  2. Step 2: GDP = C + I + G + (X - M).
  3. Step 3: GDP = 10 + 3 + 4 + (2 - 1.5).
  4. Step 4: GDP = 17.5 trillion.

Consumption is the largest positive component. Economic output contracted from the previous period.

GDP Data and Estimation Notice

This calculator is an educational macroeconomics tool, not an official national accounts release. National GDP estimates can be revised, may use different base years, and may differ across nominal, real, PPP, seasonally adjusted, and local currency series. The top-50 table uses World Bank WDI data for 2024, last updated April 8, 2026.

Checked by Jitendra Kumar

GDP Calculator is checked for formula labels, source links, and result limits.

Jitendra Kumar, Founder & Editorial Standards Lead. Updated May 17, 2026. Scope: measurement calculators.

Sources & methodology ยท Review standards

How to Use the GDP Calculator

Choose a calculator mode, then enter money values in one currency and one unit scale. For example, if the scale is trillion, enter 10 for a value of 10 trillion.

Use optional population, previous GDP, and GDP deflator fields when you want GDP per capita, growth, and real GDP context alongside the main GDP result.

  1. Step 1: Choose the GDP method

    Pick expenditure, income, production, sector, real GDP, growth, per capita, deflator, or country comparison mode.

  2. Step 2: Enter consistent values

    Keep all money inputs in the same currency and scale, such as USD trillions or INR billions.

  3. Step 3: Review the breakdown

    Check component shares, net exports, growth, per capita output, real GDP, and GDP deflator results.

  4. Step 4: Use the country table

    Compare the calculator output with the World Bank top-50 nominal GDP table for the latest available data year.

How This GDP Calculator Works

The expenditure mode uses \(GDP=C+I+G+(X-M)\), where consumption, investment, government spending, exports, and imports are entered in a consistent currency and unit scale.

Income mode adds production income, while production mode uses value added. Real GDP adjusts nominal GDP with \(\text{Real GDP}=\frac{\text{Nominal GDP}}{\text{GDP Deflator}}\times100\). Growth mode compares current GDP with previous GDP, and per-capita mode divides GDP by population.

The country comparison and top-50 table use World Bank World Development Indicators: GDP (current US$), Population total, and GDP growth annual percent. Country rows exclude World Bank regional and income-group aggregates.

GDP Formulas, Country Data, and Common Mistakes

GDP Formula Library

FormulaExpressionUse
Expenditure approach\(GDP=C+I+G+(X-M)\)Adds consumption, investment, government spending, and net exports.
Income approach\(GDP=\text{Wages}+\text{Rent}+\text{Interest}+\text{Profit}+\text{Taxes}-\text{Subsidies}+\text{Depreciation}\)Adds income earned from production.
Production approach\(GDP=\text{Gross Value Added}+\text{Taxes}-\text{Subsidies}\)Adds value added and adjusts for product taxes and subsidies.
Real GDP\(\text{Real GDP}=\frac{\text{Nominal GDP}}{\text{GDP Deflator}}\times100\)Removes the effect of price changes.
GDP growth\(\text{Growth}=\frac{\text{Current GDP}-\text{Previous GDP}}{\text{Previous GDP}}\times100\)Compares output between two periods.
GDP per capita\(\text{GDP per capita}=\frac{GDP}{\text{Population}}\)Divides total output by population.
GDP deflator\(\text{GDP Deflator}=\frac{\text{Nominal GDP}}{\text{Real GDP}}\times100\)Measures the economy-wide price level relative to the base year.

Calculator Modes

ModeCore inputBest use
Expenditure approachC + I + G + X - MBest for learning the main GDP formula.
Income approachWages, rent, interest, profits, taxes, subsidies, depreciationShows who earns income from production.
Production approachGross value added plus taxes minus subsidiesAvoids double-counting intermediate goods.
Real GDPNominal GDP adjusted by deflatorSeparates output growth from inflation.
GDP growthCurrent vs previous GDPMeasures expansion or contraction.
GDP per capitaGDP divided by populationUseful for broad living-standard comparisons.
GDP deflatorNominal GDP divided by real GDPShows economy-wide price-level change.
Sector contributionAgriculture, industry, services, technology, energy, governmentShows the structure of production.
Country comparisonWorld Bank top-50 dataCompares GDP, population, GDP per capita, and real growth.

Top 50 Countries by GDP

The table below ranks countries by nominal GDP in current U.S. dollars using World Bank data for 2024. Population, GDP per capita, and real GDP growth come from related World Bank WDI indicators.

RankCountryGDPPopulationGDP per capitaReal growth
1United States (USA)US$ 28.75T340,110,988US$ 84,5342.79%
2China (CHN)US$ 18.74T1,408,975,000US$ 13,3034.98%
3Germany (DEU)US$ 4.69T83,516,593US$ 56,104-0.50%
4Japan (JPN)US$ 4.03T123,975,371US$ 32,4870.10%
5India (IND)US$ 3.91T1,450,935,791US$ 2,6956.49%
6United Kingdom (GBR)US$ 3.69T69,226,000US$ 53,2461.13%
7France (FRA)US$ 3.16T68,551,653US$ 46,1031.19%
8Italy (ITA)US$ 2.38T58,952,704US$ 40,3850.69%
9Canada (CAN)US$ 2.24T41,288,599US$ 54,3401.55%
10Brazil (BRA)US$ 2.19T211,998,573US$ 10,3113.42%
11Russian Federation (RUS)US$ 2.17T143,533,851US$ 15,1454.34%
12Korea, Rep. (KOR)US$ 1.88T51,751,065US$ 36,2392.00%
13Mexico (MEX)US$ 1.86T130,861,007US$ 14,1861.43%
14Australia (AUS)US$ 1.76T27,196,812US$ 64,6041.37%
15Spain (ESP)US$ 1.73T48,848,840US$ 35,3273.46%
16Indonesia (IDN)US$ 1.4T283,487,931US$ 4,9255.03%
17Turkiye (TUR)US$ 1.36T85,518,661US$ 15,8933.33%
18Saudi Arabia (SAU)US$ 1.24T35,300,280US$ 35,1222.00%
19Netherlands (NLD)US$ 1.21T17,993,485US$ 67,5201.08%
20Switzerland (CHE)US$ 936.56B9,005,582US$ 103,9981.30%
21Poland (POL)US$ 917.77B36,559,233US$ 25,1043.03%
22Belgium (BEL)US$ 671.37B11,858,610US$ 56,6151.07%
23Argentina (ARG)US$ 638.37B45,696,159US$ 13,970-1.34%
24Ireland (IRL)US$ 609.16B5,395,790US$ 112,8952.60%
25Sweden (SWE)US$ 603.72B10,569,709US$ 57,1170.82%
26United Arab Emirates (ARE)US$ 552.32B10,986,400US$ 50,2743.99%
27Singapore (SGP)US$ 547.39B6,036,860US$ 90,6744.39%
28Israel (ISR)US$ 540.38B9,974,400US$ 54,1770.87%
29Austria (AUT)US$ 534.79B9,177,982US$ 58,269-0.66%
30Thailand (THA)US$ 526.52B71,668,011US$ 7,3472.54%
31Norway (NOR)US$ 483.59B5,572,279US$ 86,7852.10%
32Viet Nam (VNM)US$ 476.39B100,987,686US$ 4,7177.09%
33Iran, Islamic Rep. (IRN)US$ 475.25B91,567,738US$ 5,1903.66%
34Philippines (PHL)US$ 461.62B115,843,670US$ 3,9855.69%
35Bangladesh (BGD)US$ 450.12B173,562,364US$ 2,5934.22%
36Denmark (DNK)US$ 424.52B5,976,992US$ 71,0263.48%
37Malaysia (MYS)US$ 422.23B35,557,673US$ 11,8745.11%
38Colombia (COL)US$ 418.82B52,886,363US$ 7,9191.60%
39Hong Kong SAR, China (HKG)US$ 406.86B7,524,100US$ 54,0752.50%
40South Africa (ZAF)US$ 401.14B64,007,187US$ 6,2670.53%
41Egypt, Arab Rep. (EGY)US$ 389.06B116,538,258US$ 3,3382.40%
42Romania (ROU)US$ 382.56B19,051,804US$ 20,0800.92%
43Pakistan (PAK)US$ 371.57B251,269,164US$ 1,4793.05%
44Czechia (CZE)US$ 347.03B10,905,028US$ 31,8231.23%
45Chile (CHL)US$ 330.27B19,764,771US$ 16,7102.64%
46Portugal (PRT)US$ 313.27B10,694,681US$ 29,2922.14%
47Finland (FIN)US$ 298.7B5,619,911US$ 53,1500.42%
48Kazakhstan (KAZ)US$ 291.48B20,592,571US$ 14,1555.00%
49Peru (PER)US$ 289.22B34,217,848US$ 8,4523.30%
50Iraq (IRQ)US$ 279.64B46,042,015US$ 6,074-1.55%

Nominal GDP vs Real GDP

Nominal GDP is measured at current prices, so it can rise because production increased, prices increased, or both. Real GDP adjusts for price-level changes and is usually better for comparing output across years.

The GDP deflator is a broad price index. If nominal GDP is 5.5 trillion and real GDP is 5.0 trillion, then the deflator is \(\frac{5.5}{5.0}\times100=110\), which means the price level is about 10% above the base year.

GDP Growth Interpretation

Growth rateInterpretation
NegativeEconomic contraction.
0%No measured GDP growth.
1% to 2%Slow positive growth.
2% to 4%Moderate growth in many mature economies.
5% to 7%Fast growth, common in some emerging or rebound periods.
8%+Very rapid growth that needs inflation, base-year, and boom-cycle context.

GDP vs GNP, GNI, NDP, PPP, and Related Measures

MeasureMeaning
GDPOutput produced within a country or economy.
GNPOutput produced by residents or nationals, including abroad.
GNIIncome received by residents from domestic and foreign sources.
NDPGDP minus depreciation.
Nominal GDPGDP measured at current market prices.
Real GDPGDP adjusted for inflation or price-level change.
GDP per capitaGDP divided by population.
PPP GDPGDP adjusted for purchasing power parity.

GDP Limitations

GDP does not directly measureWhy it matters
Income inequalityGDP can rise while gains are unevenly distributed.
Wellbeing and happinessGDP does not directly measure quality of life.
Environmental damageGDP can count production without deducting sustainability costs.
Unpaid workHousehold labor and volunteer work are often outside GDP.
Informal economyUnrecorded production may be missed.
Public service qualityGDP does not show whether healthcare or education outcomes improved.
Cost of livingNominal GDP does not show affordability.
Wealth distributionGDP is an output flow, not a balance sheet of wealth.

Common GDP Calculation Mistakes

MistakeWhy it matters
Adding importsImports are subtracted because they are produced abroad.
Confusing GDP with government budgetGovernment spending is only one component of GDP.
Confusing GDP with national wealthGDP measures production during a period, not total assets.
Mixing unitsDo not combine billions and trillions without conversion.
Mixing nominal and real GDPNominal values include price changes; real values adjust for inflation.
Using population incorrectlyGDP per capita requires GDP and population from the same period.
Ignoring PPPInternational living-standard comparisons often need PPP-adjusted data.
Double-counting intermediate goodsProduction GDP should use value added, not every sales receipt.

For inflation-adjusted comparisons, use this calculator with the Inflation Calculator. For exchange-rate presentation, compare with the Currency Converter.

Keep the research moving with Inflation Calculator, Currency Converter, Percentage Calculator, and CAGR Calculator.

Frequently Asked Questions

A GDP calculator estimates gross domestic product using expenditure, income, production, real GDP, growth, per capita, deflator, sector, or country-comparison inputs.

The common expenditure formula is GDP = consumer spending + investment + government spending + exports - imports.

GDP stands for gross domestic product, the market value of final goods and services produced inside an economy during a period.

Imports are subtracted because consumption, investment, and government spending can include goods and services made abroad. GDP counts domestic production only.

Nominal GDP is GDP measured at current market prices. It changes when output changes and when prices change.

Real GDP adjusts nominal GDP for inflation using a price index such as the GDP deflator, so it better reflects changes in output volume.

GDP per capita divides GDP by population. It helps compare average output per person but does not show inequality or cost of living.

GDP growth rate is the percentage change from previous GDP to current GDP: ((current GDP - previous GDP) / previous GDP) x 100.

The GDP deflator is nominal GDP divided by real GDP, multiplied by 100. It measures broad price-level change across the economy.

GDP itself is normally positive, but GDP growth can be negative when economic output contracts from one period to the next.

Related Calculators

Sources & References

  1. 1.World Bank - GDP (current US$), indicator NY.GDP.MKTP.CD(Accessed May 2026)
  2. 2.World Bank - GDP growth (annual %), indicator NY.GDP.MKTP.KD.ZG(Accessed May 2026)
  3. 3.World Bank - Population, total, indicator SP.POP.TOTL(Accessed May 2026)
  4. 4.World Bank Data Help Desk - Indicator API queries(Accessed May 2026)
  5. 5.U.S. Bureau of Economic Analysis - Expenditures approach(Accessed May 2026)