GDP Calculator — Expenditure & Income Approaches

Private & instant. Enter values in your preferred currency and scale.

Options

Shown before numbers in results.
Choose the scale you’re entering numbers in.

Expenditure approach

GDP = C + I + G + (X − M)

Resource Cost–Income approach

GNP = Compensation + Proprietors’ Income + Rental Income + Corporate Profits + Net Interest
GDP = GNP + Indirect Business Taxes + Depreciation + Net Income of Foreigners

Results

Tip: Use the same currency & scale across all inputs. The “statistical discrepancy” is the difference between the two methods due to measurement/timing.

Understanding GDP and How This Calculator Works

Gross Domestic Product (GDP) is a big-picture measure of economic activity. It estimates the value of all final goods and services produced within a country in a given period. This calculator helps you compute GDP using two standard approaches so you can compare results, understand the components, and see how spending and income connect in a real economy.

Why does this matter? GDP is used to track economic growth, compare countries, and inform policy decisions. Students and professionals also use GDP calculations to understand what drives an economy—consumer spending, business investment, government activity, or net exports. By breaking the total into parts, you can see which components are most influential.

Two Ways to Measure the Same Economy

Expenditure approach: This sums up spending on final goods and services. The classic formula is GDP = C + I + G + (X − M), where C is consumer spending, I is investment, G is government spending, X is exports, and M is imports.

Resource Cost–Income approach: This adds up income generated from production—wages, profits, rent, and interest—then applies adjustments such as indirect business taxes, depreciation, and net income of foreigners. In theory, both approaches describe the same total output from different angles.

How to Use the Calculator

  1. Choose the approach you want to use, or enter data for both to compare results.
  2. Enter values using a consistent currency and scale (for example, all in billions).
  3. Click calculate to see GDP and the statistical discrepancy between methods.
  4. Review the results and adjust inputs to explore different scenarios.

Example: Suppose consumer spending is 600, investment is 200, government spending is 150, exports are 120, and imports are 90 (all in billions). The expenditure GDP would be 600 + 200 + 150 + (120 − 90) = 980. If your income-based total comes out close to 980, the difference is the statistical discrepancy, which reflects measurement and timing gaps rather than a true economic mismatch.

GDP calculations are often used in classrooms, research, and policy discussions. They can help explain why a country is growing, how trade affects domestic output, or how a change in government spending might shift the overall economy. This calculator gives you a clear, hands-on way to explore those relationships.

Privacy

All calculations are performed locally in your browser; nothing leaves your device.

5 Fun Facts about GDP

Born from war-time math

Modern GDP was built in the 1940s so governments could track the wartime economy—Simon Kuznets warned not to confuse it with “well-being.”

Origin story

Unsold goods still boost GDP

Inventory you don’t sell this quarter shows up as investment. Warehouses filling up can make GDP rise even when shoppers stay home.

Inventory quirk

Imports aren’t “subtracted” losses

The −M term isn’t a penalty—it just cancels imported items already counted in C, I, or G so we don’t double-count foreign production.

Trade puzzle

Huge shadow economies

Some countries’ underground economy is estimated at 20–30% of GDP. Cash-only side gigs often vanish from the official tally.

Hidden output

Satellites as auditors

Economists compare nighttime lights from space with reported GDP—brightening cities can flag under-reported growth (or power outages).

Space checks

Explore more tools