GDP Calculator
Calculate gross domestic product (GDP) with the expenditure approach — consumption, investment, government spending and net exports — and real GDP with a deflator.
Calculate gross domestic product (GDP) with the expenditure approach — consumption, investment, government spending and net exports — and real GDP with a deflator.
Results
About This Calculator
Enter each spending component in the same units (for example $ billions). Add the GDP deflator to convert nominal GDP to real GDP in base-year prices.
Example
Example: C 19,000 + I 5,200 + G 4,900 + (X 3,200 − M 4,100) = $28,200 billion. With a deflator of 120, real GDP is $23,500 billion.
Assumptions
GDP = C + I + G + (X − M). Government spending means purchases of goods and services, not transfer payments like pensions. Real GDP = nominal ÷ deflator × 100. These are standard textbook formulas for learning, homework and quick business estimates; real markets rarely follow straight-line curves exactly.
Frequently Asked Questions
Why are imports subtracted?
Imports are already counted in C, I and G but weren't produced at home, so they are taken back out.
What's the difference between nominal and real GDP?
Nominal uses current prices; real removes inflation so you can compare output across years.
Related Calculators
About the Author

Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile