Understanding gross domestic product
Gross domestic product is the headline number for the size of an economy, and the expenditure approach builds it from what is spent rather than what is earned. Every dollar spent on a final good or service lands in one of four buckets: households consuming, businesses investing, government spending, and foreigners buying exports minus what the country spends on imports. Add the four buckets and you have GDP.
Formula and method
The formula: C — consumption: household spending on final goods and services. I — investment: business spending on capital goods, inventories and new housing. G — government spending: government purchases of goods and services. X — exports: goods and services sold to other countries. M — imports: goods and services bought from other countries. (X − M) — net exports, the trade balance, which can be negative. Why imports are subtracted. Consumption, investment and government spending all include spending on imported goods — a household buying an imported car counts it in consumption. But GDP measures production inside the country, so the imported part must come back out. Subtracting imports removes the foreign-produced share from the total, leaving only domestic production. Nominal versus real GDP. This calculator returns nominal GDP, valued at current prices. Real GDP adjusts for price changes: real GDP = nominal GDP ÷ (GDP deflator ÷ 100). A deflator of 105 means prices are 5% above the base year, so dividing by 1.05 removes the price effect. If nominal GDP grows 5% but prices also grow 5%, real GDP is flat — nothing more was actually produced.
Worked example
Example 1 — The site's stored example: C 1,000, I 300, G 400, X 200, M 150 A small economy reports consumption of 1,000, investment of 300, government spending of 400, exports of 200 and imports of 150, all in the same currency and year. Consumption plus investment: 1,000 + 300 = 1,300 Plus government spending: 1,300 + 400 = 1,700 Net exports: 200 − 150 = 50 GDP: 1,700 + 50 = 1,750 Nominal GDP is 1,750. Imports are smaller than exports here, so net exports add 50 to the total. Had imports been 250 instead of 150, net exports would be −50 and GDP would be 1,650 — the same domestic spending, but 100 less GDP because more of it leaked abroad. The example shows why the trade balance matters even when households and businesses spend exactly the same.