GDP Calculator
Result
GDP, expenditure approach
- GDP, income approach
- 30,100.00
- Statistical discrepancy
- 100.00
- Net exports
- -800.00
- Net exports, share of GDP
- -2.65%
Gross domestic product is the total value of everything produced in an economy over a period, and it can be arrived at from more than one direction. This page computes it two ways and shows the gap between them. The expenditure approach adds up who bought the output: consumption by households, investment by businesses, spending by government, and the difference between what was exported and what was imported. The income approach adds up what was earned producing it: the compensation paid to employees, the gross operating surplus that remains with businesses, and taxes on production less the subsidies paid out. Both totals describe the same economy in the same period, so in principle they agree — and in practice, because the two are measured from separate bodies of data, they almost never do exactly. The difference is the statistical discrepancy, and it is a real published figure rather than a rounding error, which is why the page prints it instead of adjusting one side to match the other. Imports are subtracted rather than added: they are not a fifth component of GDP, they are already inside the other four, and taking them out is what stops foreign-produced goods being counted as domestic output.
Net exports and the expenditure total as imports rise, with everything else held at the defaults
| Imports | Net exports | GDP, expenditure approach | Net exports, share of GDP |
|---|---|---|---|
| 2000 | 1000 | 32000 | 3.13 |
| 3000 | 0 | 31000 | 0 |
| 3800 | -800 | 30200 | -2.65 |
| 4500 | -1500 | 29500 | -5.08 |
| 5500 | -2500 | 28500 | -8.77 |
| 6500 | -3500 | 27500 | -12.73 |
The axis is imports, and the reason is that it is the quantity a reader of this page is usually asking about — the trade position — while consumption, investment, government spending and exports are held at the defaults so any row can be reproduced by changing that one field. Watch the second and third columns together, because they move for different reasons. Net exports fall by exactly as much as imports rise, one for one, which is arithmetic: they are the difference between two figures, only one of which is changing. The total does the same, since net exports is a term in it. The last column is the one that rewards a second look: the share is net exports divided by the total, and both the top and the bottom are shrinking as imports rise, so the share moves faster than the arithmetic of a single difference would suggest, from 3.13 percent to −12.73 across the table. The row where the share is zero is the row where exports and imports are equal, and it is a good illustration of why a deficit is not a fault: four rows below it the same exports, the same consumption and the same government are described as an economy with a deficit of 3,500, and the only difference is that its households and firms bought more from abroad.
Formula
Net exports = exports − imports; GDP, expenditure approach = consumption + investment + government spending + net exports; GDP, income approach = compensation of employees + gross operating surplus + taxes less subsidies; statistical discrepancy = expenditure approach − income approach; net exports share of GDP = net exports ÷ GDP × 100
- Consumption
- Household spending on goods and services — the largest component in most economies, and the one that moves least from year to year. It covers what people buy to use rather than to resell, including durable goods such as cars and appliances, and it is measured from retail and survey data rather than from a single reporting system.
- Investment
- Business spending on capital: buildings, machinery, vehicles, software, and the change in inventories. Note the last item, because it is what makes this figure behave oddly — when a company adds to its stock of unsold goods that counts as investment, and when it sells from stock without replacing it the figure can fall below zero. A negative investment figure is therefore a normal reading meaning inventories were run down, not an error in the data.
- Government spending
- Government consumption and investment — what the state buys for its own use, from salaries to roads. It deliberately excludes transfer payments such as pensions and unemployment benefits, because those are not purchases of output: the money is handed to households and shows up in consumption when they spend it, so counting it here as well would count it twice.
- Exports
- Goods and services produced domestically and sold abroad. They are added because they were produced here but were not bought by any of the three domestic sectors above, so without them the total would miss them.
- Imports
- Goods and services produced abroad and bought here. They are subtracted, and the reason is not that trade is being penalised: imports are already inside consumption, investment and government spending, because those record what was bought regardless of where it was made. Subtracting them removes the foreign-produced part, leaving the total counting only domestic output.
- Compensation of employees
- Wages, salaries and the social contributions employers pay on behalf of their workers — the labour share of what was earned producing the output. It is the largest component of the income approach in most economies, and it is measured from payroll and tax records rather than from a survey of spending.
- Gross operating surplus
- What remains with businesses after labour has been paid and before taxes on production: profits, plus the earnings of the self-employed and the consumption of fixed capital. It is a residual rather than an observed figure, which is one of the reasons the two approaches to GDP do not agree to the last digit.
- Taxes less subsidies on production
- Taxes that fall on producing — value added tax, sales taxes, property taxes on business premises — minus the subsidies paid to producers. It is added because the expenditure figures are recorded at prices that include those taxes, so the income side has to include them too for the two totals to describe the same thing. It can be negative where subsidies to producers exceed the taxes collected from them.
- GDP, expenditure approach
- The sum of the four domestic sectors, with imports taken out: what the economy produced, counted from the side of who bought it. Printed alongside the income figure rather than instead of it, so the two can be compared.
- GDP, income approach
- The same output counted from the side of what was earned producing it. It should equal the expenditure figure and will not, and the size of the failure is itself information: a small gap is measurement noise, a large one usually means the two bodies of data are describing different periods or different populations, or that an unusually large revision is pending.
- Statistical discrepancy
- The expenditure total minus the income total. It is a published part of the national accounts rather than an embarrassment, and it is what tells you how much confidence the underlying data support: a discrepancy of a few tenths of a percent of GDP is ordinary, a large one is a reason to look at the inputs. This page's definition is its own — it reports expenditure minus income, so a positive figure means the spending data came out higher.
- Net exports, share of GDP
- Exports minus imports as a percentage of output, which is the form the trade position is usually discussed in. It is a ratio of two figures on the same panel, so it inherits the uncertainty in both; a small share near zero means trade was roughly balanced and a negative one means more was imported than exported, which for most economies is the ordinary state of affairs rather than a problem in itself.
Use it to see the size and the composition of an economy in one place, to check whether a period ran a trade surplus or deficit and how large it was as a share of output, and to work out a statistical discrepancy when the two published totals for a period do not match. It is also a useful way to see how the income side decomposes: the split between what labour earned and what businesses retained is the starting point for a great deal of analysis about where growth is going. What the page cannot do is tell you whether an economy is doing well. GDP counts output, not welfare: it includes spending on cleaning up a disaster, it excludes unpaid work in the home, it says nothing about how the output is distributed, and a rising total can coexist with a falling standard of living for most people. Nor does the expenditure side distinguish between investment that builds capacity and investment that merely replaces what wore out, which is the difference between an economy growing and one standing still. Both figures here are also nominal unless you have deflated them before entering them, and comparing nominal totals across years mixes up price changes with volume changes — which is what the related inflation and productivity pages exist to handle.
Worked examples
The default: a 30,200 economy with a small trade deficit
- Net exports: 3,000 − 3,800 = −800
- Expenditure approach: 19,000 + 5,000 + 7,000 − 800 = 30,200
- Income approach: 16,000 + 12,000 + 2,100 = 30,100
- Statistical discrepancy: 30,200 − 30,100 = 100
- Net exports share: −800 ÷ 30,200 = −2.65 percent
Both approaches land within a hundred of each other on a total of about thirty thousand, which is the ordinary state of national accounts — the two are built from different data and are revised separately, so a small gap is expected rather than alarming. The trade position is a deficit of 800, which is 2.65 percent of output. Nothing on this panel says the deficit is a problem, and nothing says it is not: net exports is one line of the identity, and an economy can run a deficit for decades while growing.
Both approaches agreeing exactly
- Net exports: 3,000 − 3,800 = −800
- Expenditure approach: 19,000 + 5,000 + 7,000 − 800 = 30,200
- Income approach: 16,000 + 12,100 + 2,100 = 30,200
- Statistical discrepancy: 30,200 − 30,200 = 0
- Net exports share: −800 ÷ 30,200 = −2.65 percent
Raising gross operating surplus by a hundred closes the gap exactly. It is worth seeing once because it makes clear what the discrepancy is: not a mistake in either total but the distance between two independent measurements of the same thing. In real published accounts it is essentially never zero, and a period that showed zero would more likely mean one figure had been adjusted to fit than that the measurement had been perfect.
A trade surplus: exports above imports
- Net exports: 5,000 − 3,000 = 2,000
- Expenditure approach: 19,000 + 5,000 + 7,000 + 2,000 = 33,000
- Income approach: unchanged at 30,100
- Statistical discrepancy: 33,000 − 30,100 = 2,900
- Net exports share: 2,000 ÷ 33,000 = 6.06 percent
Swapping the trade position to a 2,000 surplus raises the expenditure total by 2,800, because imports also fell and each of the two movements pushes the total the same way. The income side is untouched, so the discrepancy opens to 2,900 — which is the point of showing both. In practice a gap this large against a real economy would mean the income data were missing something, most likely the profits earned by the exporters, and that is exactly the kind of thing the discrepancy is there to flag.
Investment below zero: inventories being run down
- Net exports: 3,000 − 3,800 = −800
- Expenditure approach: 19,000 + (−500) + 7,000 − 800 = 24,700
- Income approach: unchanged at 30,100
- Statistical discrepancy: 24,700 − 30,100 = −5,400
- Net exports share: −800 ÷ 24,700 = −3.24 percent
Investment is one of only two fields here that may be negative, and the reason is inventories: a period in which businesses sell more from stock than they add to it records negative inventory investment. Spending falls by 5,500 and the trade share moves even though net exports are unchanged, because the denominator shrank — a good reminder that a share of GDP can move for no reason other than GDP moving.
Subsidies larger than production taxes
- Net exports: 3,000 − 3,800 = −800
- Expenditure approach: unchanged at 30,200
- Income approach: 16,000 + 12,000 + (−200) = 27,800
- Statistical discrepancy: 30,200 − 27,800 = 2,400
- Net exports share: −800 ÷ 30,200 = −2.65 percent
The other field that may be negative: taxes on production less subsidies, which goes below zero when a government pays producers more than it collects from them. The income total falls to 27,800 and the discrepancy turns positive at 2,400. The expenditure panel is identical to the default case, which is the property to notice — the two approaches share no inputs, so an economy's output can be described entirely differently on the two sides while both are internally consistent.
Limitations
The page is an identity, and an identity is only as good as the numbers put into it. Every field is a nominal total from some period, and if the period is not the same for all eight the two approaches are not comparable and the discrepancy becomes meaningless. Nothing here adjusts for inflation: entering one year's totals and another year's is the most common way to get a nonsense answer, and the page has no way to detect it. The components are also aggregations that hide what matters — consumption of 19,000 says nothing about whether it went on food or on gambling, and investment of 5,000 says nothing about whether it built new capacity or replaced worn-out equipment. GDP itself is a measure of output rather than of welfare, and the things it leaves out are systematic rather than random: unpaid household work, the environmental cost of production, the distribution of what is produced and the quality of what is bought are all outside the boundary. The income approach in particular is a residual calculation in its largest component, so it carries more measurement uncertainty than the expenditure side, which is one reason the discrepancy is reported rather than resolved. Finally, no statistic here is a forecast or a policy instrument: an identity holds by construction, and changing one of its terms in this page tells you what would have to give elsewhere, not what a government can actually do.
Frequently asked questions
- Why do the two approaches not give the same answer?
- Because they are measured from different data. The expenditure side is built up from surveys of what households, businesses and governments bought; the income side is built up from payroll records, tax returns and company accounts. They describe the same economy, so they should agree, and the difference between them is published as the statistical discrepancy rather than being adjusted away. In normal periods it is a small fraction of a percent of GDP. When it is large it usually means the two sets of data cover slightly different populations or periods, or that a revision is coming.
- Are imports a component of GDP?
- No, and the way they appear in the formula makes that easy to misread. Imports are subtracted from the total, but not because they are being treated as a negative contribution standing on their own. They are already inside consumption, investment and government spending, because those record purchases regardless of where the goods were made. Taking imports out removes the foreign-produced portion, so what is left counts domestic output only. Adding exports and subtracting imports is best read as a single term — net exports — rather than as two components.
- What does a negative investment figure mean?
- That inventories were run down. Investment in the national accounts includes the change in the stock of goods that businesses hold, so a period in which companies sell more from stock than they replenish produces a negative figure. It is a normal reading rather than a data error, and it usually signals either that demand was unexpectedly strong or that businesses were deliberately drawing down stock. It is one of only two fields on this page that may legitimately be negative.
- Is a trade deficit bad for the economy?
- Not by itself, and the identity on this page shows why. Net exports is one term of a sum, and a deficit means only that a country imported more than it exported; the goods it imported are inside consumption or investment, so they counted toward the total rather than against it. A deficit can reflect strong domestic demand, and a surplus can reflect weak demand at home. Whether a particular deficit is a concern depends on what financed it and whether the borrowing is sustainable, neither of which is visible in any field here.
- Why are transfer payments not in government spending?
- Because they do not buy output. A pension or an unemployment benefit hands money to a household, and when that household spends it the purchase shows up in consumption. Counting the payment as government spending as well would count the same output twice. Government spending in the national accounts is therefore what the government buys for its own use — public sector pay, roads, equipment — and not the total of what it pays out.
- Can I compare these totals across years?
- Not directly from this page, because the figures are nominal: they mix changes in prices with changes in the volume of output. An economy whose output is unchanged but whose prices rose ten percent shows a ten percent larger GDP, which is not growth. Comparisons across years need a price index to remove the effect, which is what a deflator does and what the real-terms figures in published accounts have already done. The same caution applies across countries, where different currencies and price levels make raw totals even less comparable.
- What is national income in relation to this?
- It is the same idea measured at a slightly different boundary. GDP counts output produced inside a country's borders regardless of who owns the factors producing it; national income measures what the country's residents earned, so it adds the income they receive from abroad and subtracts the income earned locally by foreign residents. For economies with large cross-border investment or large numbers of workers sending money home the two can differ noticeably, and which one is the right measure depends on whether the question is about production or about the incomes of the people living there.
References
- Gross Domestic Product — the official U.S. measure, published quarterly by the Bureau of Economic Analysis, and the source of the expenditure and income components used here — U.S. Bureau of Economic Analysis (United States)
- NIPA Handbook: Concepts and Methods of the U.S. National Income and Product Accounts — how the accounts are constructed, including why the expenditure approach and the income approach are measured from separate data and do not agree exactly — U.S. Bureau of Economic Analysis (United States)
- Glossary: Gross Domestic Product — a plain-language definition of what is inside the total and what is not, including the treatment of goods and services produced domestically — Investor.gov, U.S. Securities and Exchange Commission (United States)