# GDP Calculator (Gross Domestic Product)

URL: https://speedycalculator.com/calculators/finance/gdp/
Last updated: 2026-10-25

> The GDP calculator works out gross domestic product with the expenditure approach – consumption + investment + government spending + net exports – and each component's share of GDP.

## Inputs

- Consumption (C)
- Investment (I)
- Government spending (G)
- Exports (X)
- Imports (M)

## Results

- GDP
- Net exports
- Consumption share
- Investment share
- Government share
- Net exports share

## Formula

```
GDP = C + I + G + (X − M)
Net exports = exports − imports
```

## Explanation

In the U.S. personal consumption makes up about 68% of GDP, investment about 18%, government about 17% and net exports a few percent negative. GDP can also be measured by the income and production approaches.

### How to use the GDP Calculator

- **Consumption (C)**
- **Investment (I)**
- **Government spending (G)**
- **Exports (X)**
- **Imports (M)**

Results update as you type, and every field accepts the units shown in its menu.

### How it works

Enter consumption, investment, government spending, exports and imports (in the same units, e.g. billions).

### Tips

- Use real (inflation-adjusted) figures to compare across years.
- Check whether data are seasonally adjusted.
- Use the same currency and base year throughout.
- Economic models simplify reality – treat results as illustrations, not forecasts.

### Common mistakes to avoid

- Mixing nominal and real values.
- Comparing percentage changes with percentage-point changes.
- Treating correlations as causes.

### Inputs explained

FieldWhat to enterConsumption (C)Amount in your currencyInvestment (I)Amount in your currencyGovernment spending (G)Amount in your currencyExports (X)Amount in your currencyImports (M)Amount in your currency

### What each result means

- **GDP** = [Consumption (C)] + [Investment (I)] + [Government spending (G)] + [Exports (X)] - [Imports (M)]
- **Net exports** = [Exports (X)] - [Imports (M)]
- **Consumption share** = [Consumption (C)]÷[GDP]×100
- **Investment share** = [Investment (I)]÷[GDP]×100
- **Government share** = [Government spending (G)]÷[GDP]×100
- **Net exports share** = [Net exports]÷[GDP]×100

### Example values

How the main result changes when **Consumption** changes and everything else stays at the example values above:

Consumption (C)GDP10,00019,50015,00024,50020,00029,50025,00034,50030,00039,50040,00049,500

## Worked example

Inputs — Consumption (C): $20,000; Investment (I): $5,300; Government spending (G): $5,100; Exports (X): $3,200; Imports (M): $4,100.

Results — **GDP = $29,500.00**; Net exports = $-900.00; Consumption share = 67.8 %; Investment share = 17.97 %; Government share = 17.29 %; Net exports share = -3.05 %.

## FAQ

**How is GDP calculated?**
GDP = C + I + G + (X − M) with the expenditure approach.

**What is not included in GDP?**
Unpaid household work, used goods, financial transactions and transfer payments.

**What is the difference between nominal and real GDP?**
Real GDP removes the effect of price changes.

**What formula does the GDP Calculator use?**
GDP = C + I + G + (X − M).


## Sources

- [U.S. Bureau of Economic Analysis – GDP](https://www.bea.gov/data/gdp/gross-domestic-product)
