Born from war-time math
Modern GDP was built in the 1940s so governments could track the wartime economy—Simon Kuznets warned not to confuse it with “well-being.”
GDP = C + I + G + (X − M)
GNP = Compensation + Proprietors’ Income + Rental Income + Corporate Profits + Net Interest
GDP = GNP + Indirect Business Taxes + Depreciation + Net Income of Foreigners
Tip: Use the same currency & scale across all inputs. The “statistical discrepancy” is the difference between the two methods due to measurement/timing.
Gross Domestic Product (GDP) is a big-picture measure of economic activity. It estimates the value of all final goods and services produced within a country in a given period. This calculator helps you compute GDP using two standard approaches so you can compare results, understand the components, and see how spending and income connect in a real economy.
Why does this matter? GDP is used to track economic growth, compare countries, and inform policy decisions. Students and professionals also use GDP calculations to understand what drives an economy—consumer spending, business investment, government activity, or net exports. By breaking the total into parts, you can see which components are most influential.
Expenditure approach: This sums up spending on final goods and services. The classic formula is GDP = C + I + G + (X − M), where C is consumer spending, I is investment, G is government spending, X is exports, and M is imports.
Resource Cost–Income approach: This adds up income generated from production—wages, profits, rent, and interest—then applies adjustments such as indirect business taxes, depreciation, and net income of foreigners. In theory, both approaches describe the same total output from different angles.
Example: Suppose consumer spending is 600, investment is 200, government spending is 150, exports are 120, and imports are 90 (all in billions). The expenditure GDP would be 600 + 200 + 150 + (120 − 90) = 980. If your income-based total comes out close to 980, the difference is the statistical discrepancy, which reflects measurement and timing gaps rather than a true economic mismatch.
GDP calculations are often used in classrooms, research, and policy discussions. They can help explain why a country is growing, how trade affects domestic output, or how a change in government spending might shift the overall economy. This calculator gives you a clear, hands-on way to explore those relationships.
All calculations are performed locally in your browser; nothing leaves your device.
Modern GDP was built in the 1940s so governments could track the wartime economy—Simon Kuznets warned not to confuse it with “well-being.”
Inventory you don’t sell this quarter shows up as investment. Warehouses filling up can make GDP rise even when shoppers stay home.
The −M term isn’t a penalty—it just cancels imported items already counted in C, I, or G so we don’t double-count foreign production.
Some countries’ underground economy is estimated at 20–30% of GDP. Cash-only side gigs often vanish from the official tally.
Economists compare nighttime lights from space with reported GDP—brightening cities can flag under-reported growth (or power outages).