{
    "name": "GDP Calculator",
    "url": "https://calculators.geekmidst.com/calculators/gdp-calculator",
    "markdown": "https://calculators.geekmidst.com/calculators/gdp-calculator.md",
    "category": "Everyday tools",
    "description": "Calculate gross domestic product from consumption, investment, government spending, exports and imports, with GDP per capita and each component’s share.",
    "summary": "Under the expenditure approach, GDP is everything spent on final goods and services produced in a country: household consumption, investment, government purchases and net exports.",
    "also_called": [
        "GDP expenditure approach calculator"
    ],
    "applies_to": "Worldwide",
    "last_updated": "2026-10-29",
    "computation": "Results are computed in the visitor’s browser on the HTML page. This API describes the calculator; it does not compute results.",
    "inputs": [
        {
            "name": "consumption",
            "label": "Household consumption (C)",
            "type": "number",
            "default": "14000000"
        },
        {
            "name": "investment",
            "label": "Gross investment (I)",
            "type": "number",
            "default": "3500000"
        },
        {
            "name": "government",
            "label": "Government purchases (G)",
            "type": "number",
            "default": "4000000"
        },
        {
            "name": "exports",
            "label": "Exports (X)",
            "type": "number",
            "default": "2500000"
        },
        {
            "name": "imports",
            "label": "Imports (M)",
            "type": "number",
            "default": "3000000"
        },
        {
            "name": "population",
            "label": "Population",
            "type": "number",
            "default": "300",
            "unit": "people"
        },
        {
            "name": "currency",
            "label": "Currency",
            "type": "currency",
            "default": "USD"
        }
    ],
    "outputs": [
        {
            "key": "gdp",
            "label": "GDP",
            "format": "currency"
        },
        {
            "key": "per_capita",
            "label": "GDP per person",
            "format": "currency"
        },
        {
            "key": "net_exports",
            "label": "Net exports (X − M)",
            "format": "currency"
        },
        {
            "key": "consumption_share",
            "label": "Consumption share",
            "format": "percent"
        },
        {
            "key": "investment_share",
            "label": "Investment share",
            "format": "percent"
        },
        {
            "key": "government_share",
            "label": "Government share",
            "format": "percent"
        },
        {
            "key": "net_exports_share",
            "label": "Net exports share",
            "format": "percent"
        }
    ],
    "formula": {
        "text": "GDP = C + I + G + (X − M);  GDP per capita = GDP ÷ Population",
        "variables": {
            "C": "household consumption",
            "I": "gross private investment",
            "G": "government purchases of goods and services",
            "X − M": "exports minus imports"
        }
    },
    "worked_example": {
        "inputs": {
            "consumption": "14000000",
            "investment": "3500000",
            "government": "4000000",
            "exports": "2500000",
            "imports": "3000000",
            "population": "300",
            "currency": "USD"
        },
        "steps": [
            "Net exports = 2,500,000 − 3,000,000 = −500,000.",
            "GDP = 14,000,000 + 3,500,000 + 4,000,000 − 500,000 = 21,000,000.",
            "Per person: 21,000,000 ÷ 300 = 70,000."
        ],
        "result": "This small economy has a GDP of 21 million, or 70,000 per person; consumption is two-thirds of it."
    },
    "interpretation": "A negative net-exports share means the country imports more than it exports; imports are subtracted because they are already counted in C, I and G but were produced abroad. To compare years, use real GDP (adjusted for inflation), not nominal figures.",
    "assumptions": [
        "All amounts are nominal, for the same period and in the same currency and scale."
    ],
    "limitations": [
        "Official GDP also uses statistical adjustments and the income and production approaches; it is not recomputed here.",
        "Real GDP, deflators and growth rates are not calculated."
    ],
    "rules": null,
    "faqs": [
        {
            "question": "Why are imports subtracted?",
            "answer": "Consumption, investment and government spending include imported goods. Subtracting imports leaves only what was produced domestically."
        },
        {
            "question": "Are pensions and benefits part of G?",
            "answer": "No. Transfer payments do not buy a good or service, so they are excluded; they count only when recipients spend them, as consumption."
        }
    ],
    "sources": [],
    "related": [
        {
            "name": "Inflation Calculator",
            "url": "https://calculators.geekmidst.com/calculators/inflation-calculator"
        },
        {
            "name": "Percentage Calculator",
            "url": "https://calculators.geekmidst.com/calculators/percentage-calculator"
        },
        {
            "name": "Percentage Change Calculator",
            "url": "https://calculators.geekmidst.com/calculators/percentage-change-calculator"
        }
    ],
    "disclaimer": null,
    "publisher": "GM¹X CalcVerse"
}