{
    "name": "Inventory Stockout Cost Calculator",
    "url": "https://calculators.geekmidst.com/calculators/inventory-stockout-cost-calculator",
    "markdown": "https://calculators.geekmidst.com/calculators/inventory-stockout-cost-calculator.md",
    "category": "Commerce & retail",
    "description": "Estimate what running out of stock costs: units short, profit lost on customers who walk away and the extra cost of backorders.",
    "summary": "When an item is out of stock some customers wait and some leave. The cost is the profit lost on those who leave plus the extra cost of serving those who wait.",
    "also_called": [
        "Out-of-stock cost calculator",
        "Lost sales 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": "daily_demand",
            "label": "Average daily demand",
            "type": "number",
            "default": "40",
            "unit": "units/day"
        },
        {
            "name": "stockout_days",
            "label": "Days out of stock",
            "type": "number",
            "default": "5",
            "unit": "days"
        },
        {
            "name": "lost_pct",
            "label": "Share of demand lost (not backordered)",
            "type": "number",
            "default": "60",
            "unit": "%"
        },
        {
            "name": "unit_margin",
            "label": "Profit per unit sold",
            "type": "number",
            "default": "12"
        },
        {
            "name": "backorder_cost",
            "label": "Extra cost per backordered unit",
            "type": "number",
            "default": "3",
            "optional": true
        },
        {
            "name": "goodwill_cost",
            "label": "Other one-off costs",
            "type": "number",
            "default": "0",
            "optional": true
        },
        {
            "name": "currency",
            "label": "Currency",
            "type": "currency",
            "default": "USD"
        }
    ],
    "outputs": [
        {
            "key": "total_cost",
            "label": "Cost of the stockout",
            "format": "currency"
        },
        {
            "key": "units_short",
            "label": "Units of demand missed",
            "format": "number"
        },
        {
            "key": "lost_units",
            "label": "Units lost for good",
            "format": "number"
        },
        {
            "key": "backordered_units",
            "label": "Units backordered",
            "format": "number"
        },
        {
            "key": "lost_profit",
            "label": "Lost profit",
            "format": "currency"
        },
        {
            "key": "backorder_total",
            "label": "Backorder cost",
            "format": "currency"
        },
        {
            "key": "cost_per_day",
            "label": "Cost per day out of stock",
            "format": "currency"
        }
    ],
    "formula": {
        "text": "Units short = Demand × Days;  Lost profit = Units short × Lost% × Unit profit;  Backorder cost = Units short × (1 − Lost%) × Extra cost;  Total = Lost profit + Backorder cost + Other",
        "variables": {
            "Lost%": "share of customers who buy elsewhere instead of waiting",
            "Unit profit": "contribution per unit sold"
        }
    },
    "worked_example": {
        "inputs": {
            "daily_demand": "40",
            "stockout_days": "5",
            "lost_pct": "60",
            "unit_margin": "12",
            "backorder_cost": "3",
            "goodwill_cost": "0",
            "currency": "USD"
        },
        "steps": [
            "Units short = 40 × 5 = 200.",
            "Lost: 200 × 60% = 120 units × 12 = 1,440.",
            "Backordered: 80 units × 3 = 240.",
            "Total = 1,440 + 240 = 1,680, or 336 a day."
        ],
        "result": "Five days out of stock costs about 1,680: 1,440 of lost profit and 240 of backorder handling."
    },
    "interpretation": "Compare the cost per day with the carrying cost of the extra safety stock that would have prevented it. If a week of extra stock costs less to hold than one day out of stock, hold more.",
    "assumptions": [
        "Demand during the stockout equals normal average demand.",
        "Customers who leave do not return later for this purchase."
    ],
    "limitations": [
        "Longer-term effects, such as customers who never come back or lower marketplace ranking, are only captured if you add them as other costs."
    ],
    "rules": null,
    "faqs": [
        {
            "question": "How do I estimate the share of sales lost?",
            "answer": "Look at past stockouts: compare backorders taken with normal demand for the same period. The gap is roughly the lost share."
        },
        {
            "question": "Why use profit rather than revenue?",
            "answer": "If the sale had happened you would also have paid for the goods, so only the margin is actually lost."
        }
    ],
    "sources": [],
    "related": [
        {
            "name": "Inventory Carrying Cost Calculator",
            "url": "https://calculators.geekmidst.com/calculators/inventory-carrying-cost-calculator"
        },
        {
            "name": "Sell-Through Rate Calculator",
            "url": "https://calculators.geekmidst.com/calculators/sell-through-rate-calculator"
        },
        {
            "name": "Profit Margin Calculator",
            "url": "https://calculators.geekmidst.com/calculators/profit-margin-calculator"
        }
    ],
    "disclaimer": null,
    "publisher": "GM¹X CalcVerse"
}