GDP Calculator
Estimate gross domestic product with the expenditure approach, convert nominal GDP to real GDP, and explore net exports, GDP per capita, and growth.
Enter economic data
Use the same currency and scale for all monetary values. Example: all values in billions of dollars or crores of rupees.
Your GDP results
Calculated from the values you enter. These are estimates, not official national accounts.
| Component | Amount | Share of GDP |
|---|
GDP Calculator: Formula and guide
Gross domestic product (GDP) is a common measure of the size of an economy. This calculator uses the expenditure approach, adding consumption, investment, government purchases, and net exports. Enter all monetary components using a consistent currency and scale.
GDP formula
Net Exports = Exports − Imports
Real GDP = (Nominal GDP ÷ GDP Deflator) × 100
GDP Deflator = (Nominal GDP ÷ Real GDP) × 100
GDP per Capita = GDP ÷ Population
GDP Growth (%) = ((Current GDP − Previous GDP) ÷ Previous GDP) × 100
Worked example
Suppose consumption is 7,000, investment is 2,000, government purchases are 1,800, exports are 1,500, and imports are 1,700 (all in the same monetary scale).
Nominal GDP = 7,000 + 2,000 + 1,800 − 200 = 10,600
If the GDP deflator is 105, real GDP is 10,600 ÷ 105 × 100 = 10,095.24 in base-year prices.
Understanding the components
- Consumption (C): household spending on final goods and services.
- Investment (I): spending on capital goods, residential structures, and inventory changes—not purchases of stocks and bonds.
- Government purchases (G): government purchases of goods and services; transfer payments are generally excluded.
- Net exports (X − M): exports minus imports, which removes foreign-produced goods already counted in spending.
Frequently asked questions
What does GDP mean?
GDP stands for gross domestic product. It measures the value of final goods and services produced within a country's borders over a defined period.
What is the difference between nominal and real GDP?
Nominal GDP uses current prices. Real GDP adjusts for price changes using a GDP deflator so output can be compared in base-year prices.
Why are imports subtracted?
Imported products may already be included in consumption, investment, or government spending. Subtracting imports excludes production that occurred outside the domestic economy.
Can net exports be negative?
Yes. If imports exceed exports, net exports are negative and reduce the expenditure total.
What is the GDP deflator?
It is a price index calculated as nominal GDP divided by real GDP, multiplied by 100. A value of 105 means the measured price level is 5% above the base-year level.
Is this an official GDP estimate?
No. This tool calculates results from your inputs and does not fetch or verify official government statistics. Use a national statistical agency for published GDP figures.