100+ free calculators, no signup | 💰 Financial ❤️ Health & Fitness 📐 Math 🔧 Other
🇺🇸 USD | About Contact

GDP Calculator

Calculate GDP from C + I + G + (X − M), convert nominal to real GDP with the deflator, and find the growth rate, doubling time and GDP per capita.

Population for GDP per capita

Defaults: BEA, NIPA Table 1.1.5, 2025, billions of current dollars, release of September 30, 2026. Population: Table 7.1.

Quick examples
Gross domestic product
$30.86trillionTrade deficit$90,252 per person

Consumer spending makes up 68 percent of this total.

ConsumptionInvestmentGovernmentNet exports (subtracts)

The top bar splits the spending that adds to GDP. The lower bar shows what is subtracted, on the same scale.

Net exports

−$921.2 billion−3.0% of GDP

Exports minus imports. The trade deficit is subtracted from domestic spending.

Exact total$30,861.3 billionC + I + G + (X − M)
Domestic demand$31,782.5 billionC + I + G, 103.0% of GDP
Private spending$26,427.4 billionC + I, 85.6% of GDP
Trade openness24.6%(X + M) ÷ GDP

Your calculation

The same steps the calculator runs, with your numbers.

  1. Net exports: X − M = 3,341.1 − 4,262.3 = −921.2.
  2. GDP: C + I + G + (X − M) = 20,870.2 + 5,557.2 + 5,355.1 + (−921.2) = $30,861.3 billion.
  3. Consumer spending share: 20,870.2 ÷ 30,861.3 × 100 = 67.63%.
  4. In words: $30,861.3 billion = $30.86 trillion.
  5. Per person: $30,861.3 billion ÷ 341.944 million people = $90,252.

Component table

Each component and its percent of GDP. Imports enter with a minus sign.

ComponentValueShare of GDP
Consumption (C)$20,870.2 billion67.6%
Investment (I)$5,557.2 billion18.0%
Government (G)$5,355.1 billion17.4%
Exports (X)$3,341.1 billion10.8%
Imports (M)−$4,262.3 billion−13.8%

Educational estimate, not financial advice. BEA revises official GDP figures as new source data arrive.

What Is GDP and How This GDP Calculator Works

Gross domestic product (GDP) is the market value of all final goods and services produced inside a country during a period, usually a quarter or a year. The U.S. Bureau of Economic Analysis (BEA) defines it as the value of goods and services produced by private industry and government, less the value of goods and services used up in production. It is the most widely quoted measure of the size of an economy and of how fast it grows.

This GDP calculator adds up GDP with the expenditure approach, converts nominal GDP to real GDP with the deflator, and measures the growth rate, compound annual rate, quarterly annualized rate, doubling time and GDP per capita. The defaults load BEA's 2025 U.S. figures, and any currency or scale works.

GDP Formula: C + I + G + (X − M) Explained

GDP = C + I + G + (X − M) C: personal consumption expenditures I: gross private domestic investment G: government consumption expenditures and gross investment X − M: exports minus imports, called net exports U.S. 2025: 20,870.2 + 5,557.2 + 5,355.1 + (3,341.1 − 4,262.3) = 20,870.2 + 5,557.2 + 5,355.1 − 921.2 = $30,861.3 billion

Consumption (C) is household spending on goods and services, from groceries and rent to medical care. It is by far the largest component: 67.6 percent of U.S. GDP in 2025. Investment (I) is business spending on equipment, software and structures, plus new homes and the change in private inventories. It does not include buying stocks or bonds, which only moves ownership of existing assets.

Government (G) covers federal, state and local purchases of goods and services and public investment such as roads. Transfer payments such as Social Security benefits are excluded because nothing is produced in exchange. Net exports (X − M) add goods and services sold abroad and subtract imports.

Imports are subtracted because they were already counted inside C, I and G; the subtraction removes spending on output made abroad and is not a penalty on trade. In 2025 U.S. imports exceeded exports by $921.2 billion, or 2.98 percent of GDP. Figures are from BEA NIPA Table 1.1.5, rounded from millions.

U.S. GDP Data, 2019 to 2025

The table lists BEA annual figures as published on September 30, 2026. Real growth is the percent change in real GDP from the year before, and per capita values divide nominal GDP by BEA's midperiod population.

YearNominal GDP ($ billions)Real GDP (2017 $ billions)Deflator (2017 = 100)Real growthPer capita
201921,540.020,715.7103.9792.6%$65,171
202021,375.320,284.5105.377−2.1%$64,414
202123,745.821,556.0110.1596.3%$71,415
202226,059.722,079.7118.0262.4%$77,941
202327,825.922,724.1122.4512.9%$82,548
202429,381.023,394.9125.5873.0%$86,391
202530,861.323,943.3128.8932.3%$90,252

The 2020 drop and the 2021 rebound reflect the pandemic recession, which the NBER dated from a February 2020 peak to an April 2020 trough.

ℹ️
BEA revises GDP as more complete source data arrive, and its annual updates can change several earlier years. These figures come from the release of September 30, 2026, so check bea.gov for the current vintage before quoting them.

Expenditure vs Income vs Production Approach

The World Bank lists three ways to measure GDP. In theory they match, because every dollar spent on final output becomes someone's income.

  • Expenditure approach: final spending, C + I + G + (X − M). This is BEA's headline GDP and the method this calculator uses.
  • Income approach: compensation of employees, taxes on production and imports less subsidies, net operating surplus (profits, proprietors' income, rent and net interest) and depreciation. BEA calls this gross domestic income (GDI).
  • Production approach: each industry's output minus the intermediate inputs it buys, so the same wheat is not counted in the flour, the bread and the sandwich.

The source data differ, so the totals rarely match. For 2025 BEA estimated GDI at $30,907.7 billion, $46.4 billion more than GDP; the gap is the statistical discrepancy.

Nominal vs Real GDP and the GDP Deflator

Nominal GDP measures output at current prices. Real GDP measures it at the prices of a base year, so it changes only when the quantity of goods and services changes. The GDP deflator is the price index that links them. BEA publishes real GDP in chained 2017 dollars and the implicit price deflator with 2017 = 100.

Real GDP = nominal GDP ÷ (deflator ÷ 100) Deflator = nominal GDP ÷ real GDP × 100 Inflation = (deflator now − deflator before) ÷ deflator before × 100 U.S. 2025: 30,861.3 ÷ 1.28893 = 23,943.3 billion chained 2017 dollars 2024 to 2025: (128.893 − 125.587) ÷ 125.587 × 100 = 2.63% Textbook: nominal 600 at deflator 120: 600 ÷ 1.20 = 500

A deflator above 100 means prices are higher than in the base year, so real GDP is below nominal GDP. In the textbook case, nominal GDP of 600 at a deflator of 120 is worth 500 at base year prices, and the price effect is 100. The deflator differs from the consumer price index because it covers every final good and service produced in the country, including investment goods and government purchases, while the CPI tracks a basket that consumers buy.

Nominal GDP grew 5.04 percent in 2025 while real GDP grew 2.34 percent. Dividing the growth factors, 1.05038 ÷ 1.02344 = 1.02632, recovers the 2.63 percent rise in the deflator.

GDP Growth Rate Formula: Annual, CAGR and Quarterly Annualized

Growth rate = (GDP2 − GDP1) ÷ GDP1 × 100 Compound annual rate = (GDP end ÷ GDP start)^(1 ÷ years) − 1 Quarterly annualized rate = (Q2 ÷ Q1)^4 − 1 Real 2024 to 2025: (23,943.3 − 23,394.9) ÷ 23,394.9 × 100 = 2.34% Real 2019 to 2025: (23,943.3 ÷ 20,715.7)^(1 ÷ 6) − 1 = 2.44% a year Q1 to Q2 2026: (24,408.0 ÷ 24,274.4)^4 − 1 = 2.22%, published as 2.2%

Use the simple growth rate between two consecutive years. Over a longer span, the compound annual growth rate (CAGR) gives the steady yearly pace that links the two values. U.S. real GDP rose 15.58 percent in total from 2019 to 2025, which is 2.44 percent a year, not 15.58 ÷ 6 = 2.60 percent.

BEA reports quarterly growth at an annual rate. Real GDP rose 0.55 percent from the first to the second quarter of 2026; compounded over four quarters that is 2.22 percent, published as 2.2 percent. BEA's general form is (later ÷ earlier)^(m ÷ n) − 1, with m = 4 for quarterly data and n the number of quarters.

Doubling time and the rule of 70

At a steady growth rate g, GDP doubles in ln 2 ÷ ln(1 + g) years. The rule of 70 approximates this as 70 divided by the growth rate in percent. At 2.34 percent the exact doubling time is 29.92 years and the rule of 70 gives 29.86 years.

Growth per yearRule of 70 (years)Exact doubling (years)
1%70.069.7
2%35.035.0
3%23.323.4
5%14.014.2
7%10.010.2
10%7.07.3

GDP Per Capita and PPP

GDP per capita divides GDP by population. U.S. GDP of $30,861.3 billion in 2025 over a midperiod population of 341.944 million is $90,252 per person. Real GDP per capita was $70,021 in chained 2017 dollars.

The same dollar buys more where prices are low, so the World Bank also converts GDP per capita with purchasing power parities (PPPs) from the International Comparison Program into international dollars. PPP figures suit comparisons of living standards; market rate figures suit trade and financial size.

What Counts in GDP and What Does Not

  • Counted: new goods and services sold to final users, new homes, business equipment and software, inventory changes, government services valued at cost, the imputed rent of owner occupied homes, and commissions on used goods sales.
  • Not counted: intermediate goods, used goods resold, purchases of stocks and bonds, transfer payments such as Social Security and unemployment benefits, unpaid household and volunteer work, and illegal or unrecorded activity.

The IMF primer notes that GDP does not measure welfare directly: it leaves out leisure, environmental costs and how income is distributed.

GDP vs GNP vs GNI

GDP counts production inside a country's borders, whoever owns the factory. Gross national product (GNP) counts production by labor and property supplied by a country's residents, wherever they are located; BEA used GNP as the main U.S. measure until 1991. In the IMF example, output of a German owned factory in the United States is part of U.S. GDP and German GNP.

GNP equals GDP plus income receipts from the rest of the world minus income payments to it. Gross national income (GNI) measures the same thing from the income side and equals GNP less the statistical discrepancy. For 2025 BEA reports U.S. GNP of $30,846.1 billion, $15.2 billion below GDP, and GNI of $30,892.5 billion.

What Is a Recession?

The NBER Business Cycle Dating Committee keeps the U.S. chronology of peaks and troughs. It weighs the depth, diffusion and duration of a decline, and an extreme reading on one can offset weaker readings on another, which is why the 2020 recession counts despite lasting only two months. Besides real GDP and real GDI, it tracks monthly data such as payroll employment, real manufacturing and trade sales and household survey employment.

⚠️
A negative result in the growth mode does not by itself mean a recession. Use real GDP, compare several quarters, and check NBER announcements for official dates.

How to Use the Calculator

  • Mode. Pick expenditure, real GDP or growth with the tabs.
  • Currency and scale. Every amount uses the same scale, such as billions.
  • Expenditure. Enter C, I, G, exports and imports as positive numbers. Add population for GDP per capita.
  • Real GDP. Enter nominal GDP and the deflator, or switch Solve for to find the deflator. Add an earlier deflator to see inflation.
  • Growth. Enter two GDP values and the years or quarters between them.

Common Mistakes

  • Negative imports. The formula already subtracts M.
  • Transfers in G. Benefits paid to households are not purchases.
  • Mixed bases. Do not mix nominal and real values in one growth rate.
  • Averaging growth. Total growth ÷ years overstates the compound rate.
  • Quarterly × 4. BEA compounds the quarterly change.
  • Mixed scales. Keep every input in billions, or every input in millions.

Frequently Asked Questions

How do you calculate GDP?

Most countries use the expenditure approach: GDP = C + I + G + (X − M). Add consumer spending, gross private investment, government spending and exports, then subtract imports. BEA Table 1.1.5 lists 2025 U.S. consumption of $20,870.2 billion, investment of $5,557.2 billion, government spending of $5,355.1 billion, exports of $3,341.1 billion and imports of $4,262.3 billion. The total is $30,861.3 billion, about $30.86 trillion. Imports are subtracted because they are already counted inside C, I and G.

What is the difference between nominal and real GDP?

Nominal GDP values output at current prices, so it rises with inflation even when output does not. Real GDP values output at base year prices, so it changes only with quantity. The GDP deflator links them: real GDP = nominal GDP ÷ (deflator ÷ 100). With 2025 U.S. nominal GDP of $30,861.3 billion and a deflator of 128.893 (2017 = 100), real GDP was 30,861.3 ÷ 1.28893 = $23,943.3 billion in chained 2017 dollars. Compare growth across years with real GDP.

How do you calculate the GDP growth rate?

Subtract the earlier GDP from the later GDP, divide by the earlier GDP and multiply by 100. U.S. real GDP rose from $23,394.9 billion in 2024 to $23,943.3 billion in 2025: (23,943.3 − 23,394.9) ÷ 23,394.9 × 100 = 2.34 percent. Over several years use the compound annual rate, (end ÷ start)^(1 ÷ years) − 1. For quarters BEA uses (Q2 ÷ Q1)^4 − 1: real GDP of $24,274.4 billion in the first quarter of 2026 and $24,408.0 billion in the second gives 2.2 percent at an annual rate.

What is not included in GDP?

GDP counts only final goods and services produced in the country during the period. It excludes intermediate goods such as flour sold to a bakery, used goods and existing homes resold, purchases of stocks and bonds, and transfer payments such as Social Security benefits, which pay for no new production. Unpaid household work, volunteer work and illegal activity are left out because they are hard to measure. Commissions on used car and home sales do count as current services.

Is a recession two quarters of negative GDP growth?

Not in the official U.S. dating. The National Bureau of Economic Research defines a recession as a significant decline in economic activity that is spread across the economy and lasts more than a few months. Its committee weighs monthly indicators such as payroll employment, real personal income less transfers and industrial production, and gives real GDI equal weight with real GDP. The 2001 recession did not include two consecutive quarters of falling real GDP.

What is GDP per capita?

GDP per capita is GDP divided by population, the output per person. U.S. GDP of $30,861.3 billion in 2025 divided by a midperiod population of 341.944 million is about $90,252 per person. For international comparisons the World Bank also publishes GDP per capita converted with purchasing power parities into international dollars, which adjust for price differences between countries. It is an average and says nothing about how income is shared.

Sources & References

Educational estimates, not financial advice. Official GDP figures are revised by BEA as new source data arrive. Every number on this page was recomputed with the same formulas the calculator uses. Data checked: October 2026.