Enter Values

$ B
Household spending in $ billions
$ B
Business capital and inventory spending in $ billions
$ B
Government purchases only (exclude transfer payments)
$ B
Goods and services sold abroad in $ billions
$ B
Goods and services purchased from abroad in $ billions
M
Population in millions (for per capita GDP)
$ B
GDP in current-year prices ($ billions)
$ B
GDP in base-year prices ($ billions)

Optional: Enter two deflator values to compute deflator-based inflation.

Earlier-year deflator index value (e.g. 100 = base year)
Later-year deflator index value
$ B
Earlier-year GDP in $ billions
$ B
Later-year GDP in $ billions
Key Formulas
GDP = C + I + G + NX
Deflator = (Nominal / Real) × 100
Growth = [(GDP₂ − GDP₁) / GDP₁] × 100
C = Consumption  |  I = Investment  |  G = Government Purchases  |  NX = Net Exports (X − M)
Ryan O'Connell, CFA
Calculator by Ryan O'Connell, CFA

Calculation Result

GDP (Expenditure Approach) Calculated
Net Exports (NX)
GDP Per Capita

Formula Breakdown

GDP = C + I + G + NX

GDP Components

Component Value ($ B) % of GDP
C — Consumption
I — Investment
G — Government Purchases
NX — Net Exports
GDP Total

Model Assumptions

Key Assumptions
  • Uses the expenditure approach: GDP = C + I + G + NX
  • Government purchases excludes transfer payments (Social Security, unemployment benefits)
  • Investment includes business fixed investment, residential investment, and inventory changes
  • GDP deflator uses current-year quantities (Paasche index); CPI uses a fixed basket (Laspeyres index)
  • Nominal GDP uses current prices; Real GDP uses base-year prices
  • Per capita formula: (GDP in billions × 1,000) ÷ Population in millions = $ per person

For educational purposes. Not financial advice. Market conventions simplified.

Understanding GDP

What is GDP?

Gross Domestic Product (GDP) is the market value of all final goods and services produced within a country's borders during a given time period. It is the most widely used measure of economic size and growth. GDP captures production by all firms operating inside the country, regardless of whether they are foreign or domestically owned.

Expenditure Approach
Y = C + I + G + NX
Where NX = Exports − Imports

The Four Components of GDP

Consumption (C)

Household spending on goods and services — the largest component, typically 60–70% of GDP. Includes food, clothing, healthcare, and services. Excludes new housing construction.

Investment (I)

Spending on capital goods: business fixed investment (machinery, equipment), residential investment (new homes), and changes in inventories. Not stock market purchases.

Government Purchases (G)

Government spending on goods and services — military, roads, schools. Excludes transfer payments (Social Security, Medicare, unemployment benefits) because those do not directly purchase output.

Net Exports (NX)

Exports minus imports. Exports add to GDP (foreign demand for domestic output). Imports are subtracted because they represent domestic spending on foreign output. A trade deficit means NX is negative.

Nominal vs. Real GDP

Nominal GDP values output at current prices. It rises when production increases or when prices rise. Real GDP values output at constant base-year prices, so it only rises when actual production increases. Economists prefer real GDP for measuring growth because it removes the distortion of inflation.

The GDP deflator bridges the two: Deflator = (Nominal GDP / Real GDP) × 100. Unlike the CPI — which tracks a fixed basket of consumer goods (Laspeyres index) — the GDP deflator adjusts its basket every year to reflect what is actually produced (Paasche index).

What GDP Measures — and What It Doesn't

GDP counts: all domestically produced final goods and services, imputed rent on owner-occupied housing, inventory additions. GDP does not count: illegal activity, household production, used-goods transactions, or output produced abroad by domestic firms (that's GNP, not GDP).

As a welfare measure, GDP also has limitations: it ignores income inequality, environmental degradation, leisure time, and non-market well-being. Economists use supplemental measures like the Human Development Index (HDI) to capture what GDP misses.

Frequently Asked Questions

GDP (Gross Domestic Product) is the market value of all final goods and services produced within a country's borders during a given period. It captures production by all firms located inside the country — foreign-owned or domestic. GDP is the most widely used measure of economic size and short-run economic growth. It is typically reported quarterly (annualized) and annually.

The expenditure approach sums all spending on domestically produced final goods and services: GDP = C + I + G + NX. Consumption (C) is household spending; Investment (I) is business capital and inventory spending; Government Purchases (G) excludes transfer payments; Net Exports (NX) = Exports − Imports. A trade deficit makes NX negative, reducing GDP. This is also called the demand-side or spending approach.

Nominal GDP values output at current-year prices, so it rises with both production increases and price increases. Real GDP values output at constant base-year prices, isolating changes in actual production from price changes. When comparing GDP across years, economists use real GDP to strip out inflation. To convert: Real GDP = Nominal GDP ÷ (GDP Deflator / 100).

The GDP deflator = (Nominal GDP / Real GDP) × 100. It measures the average price level of all domestically produced goods and services. The CPI (Consumer Price Index) tracks a fixed basket of consumer goods using base-year quantities (Laspeyres index). The GDP deflator uses current-year quantities (Paasche index), so its composition updates automatically. The CPI also includes imported goods (a computer made in South Korea), while the GDP deflator covers only domestically produced output.

GDP per capita divides total GDP by the population to show average economic output per person. It is a widely used proxy for average living standards and is used to compare countries. However, it has important limitations: it does not capture income inequality (a wealthy country with high inequality may have a high per-capita GDP but poor living standards for most), it excludes non-market production, environmental quality, health, or leisure time. Use it alongside measures like the HDI for a fuller picture.

GDP has well-known blind spots: it omits household production, volunteer work, and informal economic activity. It does not account for income distribution — GDP can rise while most citizens become worse off. It counts spending on pollution cleanup or disaster recovery as positive output. It ignores environmental costs, resource depletion, health, education quality, and leisure. Alternative indicators like the Human Development Index (HDI), Genuine Progress Indicator (GPI), or the OECD Better Life Index supplement GDP by incorporating broader dimensions of well-being.
Disclaimer

This calculator is for educational purposes only. Results are based on simplified models from Mankiw's Principles of Macroeconomics. Actual GDP accounting involves additional complexities including seasonal adjustments, chain-weighted price indices, and revisions by statistical agencies such as the BEA. This tool should not be used for professional economic analysis or policy decisions.