Calculate nominal GDP from consumption, investment, government spending, exports, and imports, or use the income approach when those components are available.
Options
Shown before numbers in results.
Choose the scale you’re entering numbers in.
Choose a GDP method
Expenditure approach
GDP = C + I + G + (X - M)
Household spending on final goods and services.
New capital, equipment, structures, and inventory changes.
Government purchases of final goods and services; exclude transfer payments.
Domestically produced goods and services sold abroad.
Foreign-produced goods and services already included in C, I, or G, so they are subtracted.
Income approach
GNP = Compensation + Proprietors' Income + Rental Income + Corporate Profits + Net Interest
GDP = GNP + Indirect Business Taxes + Depreciation + Net Income of Foreigners
Wages, salaries, and other labour compensation.
Income earned by unincorporated business owners.
Rental income generated by property and land used in production.
Business profits before the national-account adjustments below.
Interest income received minus interest paid within the accounting measure.
Production and sales taxes that are included to reconcile income with market-price GDP.
Capital consumption allowance for wear, ageing, and replacement of fixed assets.
Adjustment for foreign-owned factor income in the domestic economy.
Results
Enter values for one method, then calculate GDP to see the result and worked breakdown.
Tip: Use the same currency and scale across all inputs. A statistical discrepancy is shown only when both methods have enough inputs.
Real GDP and GDP deflator
Real GDP = Nominal GDP / GDP deflator x 100 GDP deflator = Nominal GDP / Real GDP x 100
Current-price GDP, using the same scale selected above.
Price index where the base period is usually 100.
Inflation-adjusted GDP, using the same scale as nominal GDP.
Enter nominal GDP plus either a deflator or real GDP.
How to calculate GDP
Gross Domestic Product (GDP) estimates the value of final goods and services produced within a country during a period. The calculator above focuses on nominal GDP by expenditure or income, plus the related real GDP and GDP deflator formulas.
Expenditure approach steps
Enter consumption, investment, government spending, exports, and imports using one currency and scale.
Calculate net exports: X - M.
Add the components: GDP = C + I + G + (X - M).
Example: if consumption is 600, investment is 200, government spending is 150, exports are 120, and imports are 90, then net exports are 30 and GDP is 980.
Income approach steps
Add compensation, proprietors' income, rental income, corporate profits, and net interest to estimate GNP.
Add indirect business taxes, depreciation, and net income of foreigners.
Compare the result with expenditure GDP only when both methods are entered with consistent source data.
Income and expenditure approaches describe the same economy from different sides. In published statistics, the two can differ because surveys, timing, and source data are not perfect.
Practical notes
1
Limitations of GDP
GDP is an output measure, not a full measure of welfare, inequality, unpaid work, environmental cost, or household well-being.
Use with context
2
GDP vs GNP/GNI
GDP follows where production happens. GNP or GNI follows resident or national ownership of income, including cross-border income flows.
Scope matters
3
Nominal vs real GDP
Nominal GDP uses current prices. Real GDP adjusts for price changes, which makes it better for comparing output across periods.
Inflation adjustment
4
GDP per capita
GDP per capita divides GDP by population. It is useful for rough comparisons, but it still does not show income distribution.
Population context
5
Common mistakes
Do not mix scales, add imports instead of subtracting them, include transfer payments in government spending, or compare nominal GDP across time without considering inflation.
Check inputs
Privacy
All calculations are performed locally in your browser; nothing leaves your device.
GDP calculator FAQ
What is the GDP formula?
The common expenditure formula is GDP = C + I + G + (X - M), where C is consumption, I is investment, G is government spending, X is exports, and M is imports.
Why are imports subtracted from GDP?
Imports are subtracted because imported goods and services can already appear in consumption, investment, or government spending. GDP measures domestic production, so foreign production must be removed from the total.
What is the difference between nominal and real GDP?
Nominal GDP uses current prices. Real GDP adjusts nominal GDP with a price index such as the GDP deflator so output can be compared across time.
What is the difference between GDP and GNP?
GDP measures production within a country's borders. GNP measures production by a country's residents or nationals, including relevant income from abroad.
Why do income and expenditure GDP differ?
They should match conceptually, but real-world source data, timing, and measurement differences can create a statistical discrepancy.
Sources and methodology
This tool applies standard national-accounting formulas for educational calculation. It does not retrieve official national accounts or adjust for seasonal, chained-dollar, or purchasing-power-parity methods.