Calculate gross domestic product from its four expenditure components, and see each one's share of the total.
How to Use the GDP Calculator
Enter consumption, investment, government spending, exports, and imports — labeled generically in billions of currency units, since this is a definitional tool rather than a country-specific lookup. GDP and each component's share of it update as soon as every field has a value.
This is the expenditure approach to GDP, one of three theoretically equivalent ways economists calculate the same figure (the others being the income approach and the output, or value-added, approach).
Net Exports = Exports − Imports
GDP = Consumption + Investment + Government Spending + Net Exports
Net exports can run negative, and when it does, GDP is smaller than the first three components alone would suggest — a country importing more than it exports is spending some of its output on goods produced elsewhere. The default figures illustrate exactly that: $2,000 in exports against $2,500 in imports leaves net exports at −$500, which is why its share of the resulting $21,500 GDP prints as a negative percentage rather than a positive one like the other three.