Skip to content
Embed

Paste this on your site. The attribution link is required and is what makes embedding free.

GDP Calculator — Free Online GDP Tool

Calculate Gross Domestic Product using the expenditure approach by entering consumption, investment, government spending, and net exports.

B
B
B
B

GDP Expenditure Approach

GDP = C + I + G + NX where C is personal consumption, I is gross private investment, G is government spending, and NX is net exports (exports minus imports). A negative NX indicates a trade deficit.

GDP Results

Total GDP$19,700.0B
Consumption Share71.1%
Investment Share17.8%
Government Share15.2%
Net Exports Share-4.1%

GDP Component Breakdown

Consumption (C): 65.7%Investment (I): 16.4%Government (G): 14.1%Net Exports (NX): 3.8%
Consumption (C)65.7%
Investment (I)16.4%
Government (G)14.1%
Net Exports (NX)3.8%

GDP Components Reference Table

Component Includes Typical U.S. Share Approximate Value
Consumption (C) Durable goods, nondurable goods, services 68-70% $19,200B
Investment (I) Business equipment, structures, software, inventories 17-18% $4,800B
Government (G) Federal, state, local spending on goods/services 17-18% $4,900B
Net Exports (NX) Exports minus imports of goods and services −3% to −4% −$900B
Total GDP Sum of all components 100% $28,000B
GDP Per Capita Total GDP divided by population (~335M) N/A ~$83,600

Related Calculators

About this calculator

Understanding the GDP Formula

The expenditure approach to GDP is the most widely used method for measuring economic output. It captures all spending on final goods and services produced within a country's borders during a specific period. The fundamental formula is elegantly simple but represents an enormous amount of economic activity.

GDP = C + I + G + (X − M)

GDP = C + I + G + NX

Where each variable represents:

  • C (Consumption) = Personal consumption expenditures on goods and services
  • I (Investment) = Gross private domestic investment including business equipment, structures, and inventory changes
  • G (Government) = Government consumption expenditures and gross investment
  • X (Exports) = Goods and services sold to foreign buyers
  • M (Imports) = Goods and services purchased from foreign producers
  • NX (Net Exports) = X minus M (trade balance)

Step-by-Step Calculation Example

Using approximate U.S. economic data, calculate total GDP:

  1. Personal Consumption (C): $19,200 billion
  2. Investment (I): $4,800 billion
  3. Government (G): $4,900 billion
  4. Exports: $3,100 billion; Imports: $4,000 billion; NX = $3,100 − $4,000 = −$900 billion
  5. GDP = $19,200 + $4,800 + $4,900 + (−$900) = $28,000 billion

The component shares are: Consumption 68.6%, Investment 17.1%, Government 17.5%, Net Exports −3.2%. These shares are typical for the U.S. economy, where consumer spending dominates output. Other economies have different compositions: China has a much higher investment share (around 42%) and lower consumption share (around 38%), while Germany has a positive net exports figure due to its export-oriented manufacturing sector.

Alternative GDP Measurement Approaches

Besides the expenditure approach, GDP can be calculated using the income approach (summing all incomes earned: wages, profits, rents, interest) or the production (value-added) approach (summing the value added at each stage of production). In theory, all three methods yield the same GDP figure because total spending equals total income equals total value added. In practice, small statistical discrepancies exist due to data collection challenges. The BEA publishes GDP using primarily the expenditure approach but uses income data to fill gaps and cross-check results.

Sources

  • U.S. Bureau of Economic Analysis — Gross Domestic Product: bea.gov
  • U.S. Bureau of Labor Statistics — Consumer Price Index: bls.gov
  • Federal Reserve — Consumer Credit Data: federalreserve.gov

Disclaimer: This calculator is for informational purposes only and does not constitute financial advice. Consult a qualified financial advisor before making financial decisions.

Last updated: November 3, 2026