Calculate Gross Domestic Product (GDP) using the expenditure approach: consumption, investment, government spending, and net exports.
📂 Business & TradeFill in the fields on the left with your information, then press the button to see your result instantly. No sign-up required, and no data is sent anywhere — everything is calculated right in your browser.
Gross Domestic Product (GDP) is the most widely used measure of the overall size of a country's economy during a given period, most commonly calculated using the "expenditure approach" applied in this tool: GDP = Consumption (C) + Investment (I) + Government spending (G) + Net exports (exports minus imports, X−M). Consumption represents household spending on goods and services and is typically the largest component in most economies, often 55–70% of GDP; investment represents business spending on equipment, factories, and inventory (not to be confused with buying stocks or bonds, which is a financial transfer rather than new economic output); government spending represents government purchases of goods and services (excluding transfer payments like pensions, which don't directly represent new production); and net exports reflects the impact of foreign trade, where a trade surplus (exporting more than importing) adds to GDP and a trade deficit subtracts from it. This expenditure method is one of three theoretically equivalent approaches economists use — the others being the income approach (summing all income earned) and the production approach (summing value added at each stage of production) — which should all yield the same total GDP figure for a well-measured economy, since one person's spending is always someone else's income.
GDP gets reported constantly in economic news as a single headline number, but the formula behind the expenditure method — GDP = C + I + G + (X−M) — breaks that number down into four distinct streams of spending, each telling a different part of the economic story for a given period.
Consumption (C) is spending by households on goods and services — everything from groceries to haircuts to streaming subscriptions — and is by far the largest component in most developed economies, commonly making up somewhere between 55% and 70% of total GDP. Because it's such a large share, consumer spending trends are closely watched as an economic health indicator.
Investment (I) in this formula specifically means business spending on productive capacity — new equipment, factory construction, and inventory accumulation — not buying financial assets like stocks or bonds, which economists classify as a transfer of existing wealth rather than the creation of new economic output. This distinction trips up many people encountering the formula for the first time, since "investment" colloquially usually means something quite different.
Government spending (G) counts government purchases of goods and services — infrastructure, public sector salaries, defense equipment — but specifically excludes transfer payments like pension payouts or unemployment benefits, since those represent a redistribution of existing income rather than new spending on newly produced goods or services.
Net exports (X−M) captures the trade balance: a country exporting more than it imports adds to GDP (foreign demand for domestic production), while a country importing more than it exports subtracts, since imported goods were produced elsewhere and shouldn't count toward domestic output even though they were purchased domestically. This is also why the expenditure formula is theoretically equivalent to summing all income earned in the economy or all value added at each production stage — every dollar of spending eventually becomes someone's income and reflects goods actually produced, which is why economists cross-check GDP estimates using all three approaches when data allows.
No, GDP can also be calculated using the income approach or the production (value-added) approach — all three should theoretically arrive at the same total.
It means imports exceed exports (a trade deficit), which reduces the GDP total compared to a country with a trade surplus, all else being equal.
The total figure reflects overall economic size, but the growth rate shows whether the economy is expanding or contracting — which matters more for policy and investment decisions.