Stock-out Cost Calculator (Lost Sales)
Running out of stock costs more than the sale that day. Some customers wait, some buy elsewhere and a few do not come back. Put numbers on a stock-out so you can weigh it against the cost of carrying more safety stock.
Also known as: cost of stockout calculator · lost sales calculator · out of stock cost · shortage cost calculator · cost of lost sales inventory · backorder cost calculator
Result
- Cost per year
- ₹1,88,000
- Units short per event
- 200
- Sales revenue lost per event
- ₹96,000
- Margin lost on lost sales
- ₹28,800
- Backorder and expediting cost
- ₹3,200
- Cost per unit short
- ₹235
Compare the yearly figure with the annual carrying cost of the extra safety stock that would prevent these stock-outs.
Results are estimates for planning. Confirm final rates, rules and charges with your carrier or authority.
How to use the Stock-out Cost Calculator
- Enter Daily demand for the item, Days out of stock per event, Selling price per unit, Gross margin, Demand lost outright, not backordered, Extra cost per backordered unit.
- Read the result instantly – it updates as you type, with a breakdown below the main figure.
- Use “Copy link” to share the exact calculation, or “Copy results” to paste it into an email, quote or invoice.
Stock-out Cost Calculator formula
Units short = daily demand × days out of stock
Margin lost = units short × lost % × price × gross margin %
Backorder cost = units short × (1 − lost %) × extra cost per backordered unit
Cost per stock-out = margin lost + backorder cost + future margin lost; yearly cost = × stock-outs per year
About the Stock-out Cost Calculator
A stock-out has three kinds of cost. The immediate one is the margin on sales lost because customers bought elsewhere or went without. The second is the cost of serving those who wait: expedited freight, extra handling, split deliveries and the administration of backorders. The third, hardest to see, is future business lost from customers who switch supplier or lose confidence.
This matters because safety stock is set by trading one cost against another. Holding more stock costs capital, space and risk of obsolescence every day; holding less saves that but raises the chance of a stock-out. Without a figure for what a stock-out costs, the service-level target is a guess. With one, you can ask whether an extra ₹50,000 a year of carrying cost avoids more than ₹50,000 of stock-out cost.
The share of demand lost outright depends on the product. For everyday items with ready substitutes, most shoppers buy a competitor's product at once. For specialised or contracted items, customers usually wait, so the cost is mainly expediting and penalties. Estimate it from what actually happened in past shortages.
Worked example
Here is the calculation for the sample values pre-filled in the stock-out cost calculator above.
| Daily demand for the item (units) | 40 |
|---|---|
| Days out of stock per event | 5 |
| Selling price per unit | ₹800 |
| Gross margin (%) | 30 % |
| Demand lost outright, not backordered (%) | 60 % |
| Extra cost per backordered unit (expedite, handling) | ₹40 |
| Future margin lost from customers who switch | ₹15,000 |
| Stock-outs per year | 4 |
| Cost per stock-out | ₹47,000 |
|---|---|
| Cost per year | ₹1,88,000 |
| Units short per event | 200 |
| Sales revenue lost per event | ₹96,000 |
| Margin lost on lost sales | ₹28,800 |
| Backorder and expediting cost | ₹3,200 |
| Cost per unit short | ₹235 |
Who uses this tool
- Justifying safety stock or a higher service level for key items
- Prioritising which items must never run out
- Showing the cost of late supplier deliveries
- Deciding when air freight to avoid a stock-out is worth it
Tips to save cost and avoid mistakes
- Use gross margin, not revenue, for lost sales; the cost of goods was not spent.
- Review past stock-outs to estimate how many customers waited.
- Include penalties under customer contracts in the backorder cost.
- Rank items by yearly stock-out cost to set service levels by class.
Stock-out Cost Calculator – frequently asked questions
How do you calculate the cost of a stock-out?
Units short × share lost × price × margin, plus backorder costs for the rest and an allowance for future lost business. In the default example a 5-day stock-out costs about ₹47,000.
What is the difference between a lost sale and a backorder?
A lost sale is demand that goes elsewhere and is never recovered. A backorder is demand the customer agrees to wait for, filled later at extra cost.
Why use margin and not revenue for lost sales?
Because the goods were not bought or made for that sale, the business loses only the profit it would have earned, plus any wider effects.
How does stock-out cost relate to safety stock?
Safety stock should be raised until the yearly carrying cost of the extra stock equals the yearly stock-out cost it prevents.
Stock-out Cost Calculator API
Building an app, spreadsheet or chatbot? Run this stock-out cost calculator from your own code with Weeple's free logistics calculator API. It returns JSON, needs no API key and uses the same formula as this page.
curl "https://www.weeple.in/api/v1/calculators/stockout-cost-calculator/run?demand=40&days=5&price=800&margin=30&lost=60&backCost=40&churn=15000&events=4"
Inputs you leave out use the sample values above. Input names, units and the JSON Schema are at GET /api/v1/calculators/stockout-cost-calculator. Free limit: 60 requests a minute per IP address.
Add this stock-out cost calculator to your website
Run a transport, e-commerce or packaging site? Paste this code into any page to give your visitors the same calculator. It is free, needs no sign-up and stays up to date with this page.