GDP Calculator
Calculate Gross Domestic Product (GDP) using the expenditure approach: consumption, investment, government spending and net exports.
| Component | Amount | % of GDP |
|---|---|---|
| Consumption (C) | $14,000,000,000,000 | 69.3% |
| Investment (I) | $3,500,000,000,000 | 17.3% |
| Government Spending (G) | $3,800,000,000,000 | 18.8% |
| Net Exports (X − M) | -$1,100,000,000,000 | -5.4% |
| GDP (Total) | $20,200,000,000,000 | 100% |
Consumption is the biggest driver of this GDP figure — net exports are negative, meaning imports ($3,200,000,000,000) outweigh exports ($2,100,000,000,000).
ƒShow your work
GDP = C + I + G + (X − M)
About the GDP Calculator
GDP isn't one number pulled from a single source — it's built from four components added together: consumption, investment, government spending, and net exports (exports minus imports). The expenditure approach used here is one of several ways economists arrive at the same total, and seeing GDP broken into these pieces explains a lot that the headline figure alone doesn't, like why a country can have strong consumption but weak overall growth once a trade deficit is subtracted out.
This is the calculator for a student working through a macroeconomics problem set, or anyone trying to sanity-check how a change in one component — a jump in government spending, a widening trade deficit — actually flows through to the total, using the same C + I + G + (X − M) formula taught in intro economics.
The figures you enter are computed right in your browser, with no account or server round-trip needed just to work through a GDP problem or check a homework answer.
How it’s calculated
Each of the four components is added directly: consumption (household spending), investment (business spending on capital, plus residential construction and inventory changes), and government spending are summed, and net exports — exports minus imports — is added on top, since imports represent spending on foreign-produced goods and are subtracted back out to keep GDP measuring only domestic production.
The percentage breakdown shows what share of total GDP each component represents, which is often more informative than the raw dollar figures — consumption is typically the largest share of GDP in most developed economies, for instance.
Frequently asked questions
Why are imports subtracted in the GDP formula?
Because consumption, investment and government spending figures already include money spent on imported goods, and GDP is meant to measure only domestic production. Subtracting imports removes that foreign-produced spending back out, leaving a net exports figure that reflects only the trade balance's actual contribution.
What's the difference between the expenditure approach and other ways of calculating GDP?
The expenditure approach sums spending (C + I + G + net exports); the income approach instead sums all income earned in producing that output (wages, profits, rents, and so on); a third, the production approach, sums value added at each stage of production. All three should theoretically arrive at the same total GDP figure, just measured from different angles.
Does a negative net exports figure mean the economy is doing poorly?
Not necessarily — a trade deficit (importing more than exporting) reduces GDP's net exports term, but it doesn't automatically mean weak overall growth if strong domestic consumption and investment are more than making up for it. Net exports is one component among four, not a standalone verdict on economic health.
What's the difference between nominal and real GDP?
Nominal GDP is measured in current prices, so it can rise just from inflation even if actual output doesn't grow. Real GDP adjusts for price changes to isolate the actual change in the quantity of goods and services produced — this calculator computes a nominal-style total from the figures entered, without an inflation adjustment.
What counts as 'investment' in the GDP formula?
It's a specific economic definition, not everyday investing — it means business spending on capital like equipment and structures, residential construction, and changes in inventories. It does not include buying stocks or bonds, which is a transfer of existing assets rather than spending on newly produced output.
Powered by GetCalculator.online