Everyday · FREE ONLINE TOOL

GDP Calculator

Calculate expenditure-based GDP or reconcile entered income components, capital consumption and statistical discrepancy to a domestic total.

What would you like to calculate?

Your inputs

How it works

Expenditure approach

GDP = consumption + investment + government purchases + exports − imports.

All components must use the same currency, scale, accounting period, and national-accounts definitions.

Calculations run in your browser. No account needed.

EXAMPLE RESULTCalculated locally
Nominal GDP
21,500
Clear inputs. Transparent methods.
My workspace

Calculate with your inputs to save a result or compare scenarios.

How it works

Illustration for GDP Calculator: a globe; a ruler and scales.
Expenditure approachGDP = consumption + investment + government purchases + exports − imports.
A useful distinction

Imports correct the production boundary

Imports are subtracted because consumption, investment and government purchases can already include foreign production. Reducing imports alone while holding those linked spending entries unchanged describes a different scenario, not the accounting effect of simply removing an imported purchase.

Follow one imported purchase through both entries

Imported purchase
100
GDP contribution. A (Consumption) → +100. B (Net change) → 0.
Follow one imported purchase through both entries
QuantityCalculationGDP contribution
A Consumption100 × 1+100
B Net change100 − 1000

Keep the national-accounting components compatible

The expenditure identity is GDP = consumption + investment + government expenditure + exports − imports. Enter every component for the same economy, period, currency and scale. If one series is in billions and another in millions, the resulting sum is not meaningful.

The investment component uses national-accounts definitions, not an individual investor’s purchases of existing shares. Use components prepared on a consistent accounting basis rather than mixing similarly named household-budget categories.

Worked expenditure example with negative net exports

With consumption 14,000, investment 4,000, government expenditure 4,000, exports 3,000 and imports 3,500, net exports equal −500. GDP is therefore 14,000 + 4,000 + 4,000 − 500 = 21,500 in the chosen common scale.

If all inputs are billions of one currency for the same year, the output is 21,500 billion of that currency for that year. The calculator does not retrieve or verify a country’s latest statistics.

Illustrative expenditure components
ComponentAmount
Consumption14,000
Investment4,000
Government expenditure4,000
Exports3,000
Imports (subtracted)3,500
Nominal GDP21,500

Why imports are subtracted without treating them as lost output

Imports can already be included in consumption, investment or government spending. The subtraction removes foreign production from the measure of domestic production. It does not mean an imported purchase is necessarily harmful or that exports and imports alone determine national welfare.

Avoid counting intermediate transactions repeatedly. National-accounting aggregates are designed to measure production consistently; simply adding every observed business receipt is not the same calculation.

Use the income method with the correct net and gross basis

Income-based national accounts offers detailed and aggregate income components plus the stated adjustments. Keep domestic versus national income and net versus gross values distinct. Capital consumption and a statistical discrepancy are not arbitrary balancing entries to insert without a source.

Select the basis matching the supplied accounts, and avoid entering both a detailed component and an aggregate that already includes it. Expenditure and income estimates can differ in measured data even though the accounting concepts are linked.

Interpret nominal GDP separately from growth and living standards

This arithmetic does not remove price changes, convert currencies using purchasing-power parity or divide by population. A larger nominal number can reflect prices, exchange-rate conventions, population or production rather than one uniquely defined improvement.

For comparisons over time, use consistent published real or nominal series as appropriate. For comparisons across economies, specify the currency conversion, price basis and period before interpreting the result.

Expenditure approach: formula and assumptions

GDP = consumption + investment + government purchases + exports − imports.

All components must use the same currency, scale, accounting period, and national-accounts definitions.

Use Expenditure approach

Income-based national accounts: formula and assumptions

GDI = net domestic factor income + taxes less subsidies + capital consumption.

The national basis adds net payments abroad to move to domestic income. All amounts must use compatible net/gross definitions, currency, scaling and period. The discrepancy reconciles income to expenditure GDP.

Use Income-based national accounts

Worked example

Using the Expenditure approach example:

Inputs
Private consumption
14000
Investment
4000
Government purchases
4000
Exports
3000
Imports
3500
Method

GDP = consumption + investment + government purchases + exports − imports.

Result

Example result

Nominal GDP: 21,500

These are illustrative inputs. Change the values to explore a different scenario.

Formula references

References explain the underlying methods; they do not imply endorsement or individual professional review of Finflo.

Common questions

What is the GDP expenditure formula?

GDP = C + I + G + X − M, with consumption, investment, government expenditure, exports and imports measured consistently.

Why are imports subtracted?

Imported production may already be inside the spending components. Subtracting imports keeps the expenditure total focused on domestic production.

Can I mix annual and quarterly figures?

No. Use the same accounting period and check whether a published quarterly series has been annualized.

Does this calculate real GDP automatically?

No. It adds the entered components. It does not apply a price deflator or retrieve inflation-adjusted national accounts.

Does investment mean stock-market purchases?

Not generally in this identity. Use the investment definition in the relevant national accounts, rather than an individual portfolio’s transactions.

Can the income and expenditure results differ?

Measured accounts can include a statistical discrepancy. Use consistent source definitions and the appropriate reconciliation rather than silently forcing equality.

See our methodology and editorial policy.