Ecommerce

Stockout Cost Calculator

A stockout costs more than the margin on the sale you missed, because some of those customers do not come back.

What you could not sell, and what it was worth

The lost sales

units

Units of demand you could not fulfil.

Price per unit, in your local currency.

Cost per unit, in your local currency.

The customers you do not get back

×

Multiplier for lost future business (1 = direct margin only).

Estimated Stockout Cost

3,000.00

Direct lost margin scaled by the loyalty loss factor.

Formula verified 25 September 2026

Direct Lost Margin

2,000.00

Lost units multiplied by margin per unit.

Lost Units

100

Units of unfulfilled demand entered.

Report an issue

Estimate only — platform fees and costs vary; verify current rates. Read the full disclaimer ↓

How the stockout cost builds up

Each step from margin per unit to the final estimate, computed from your inputs. The direct loss is pure missed profit; the loyalty factor scales it up for customers who may not return after finding the shelf empty.

StepHow it is foundAmount (local currency)
Margin per unit40 price − 20 cost20
Direct lost margin100 lost units × margin2000
Loyalty uplift× 1.5 repeat-loss factor1000
Estimated stockout cost ◀Direct loss × loyalty factor3000

Estimates only — not financial, tax, or professional advice.

Calculated in your browser — the numbers you enter are never sent to our servers.

What it calculates: Estimated Stockout Cost, Direct Lost Margin, Lost Units.

Updated 25 September 2026 · 4,367 automated cases pass

You did not lose the sale price, you lost the contribution

A missed sale does not cost the full selling price, because you also did not incur the cost of the goods. The immediate loss is the contribution margin — price less unit cost — on every unit you could not supply.

Stockout cost = lost units × lost margin (× repeat/loyalty loss factor)

Reporting stockouts as lost revenue overstates the damage substantially on low-margin lines, and it is the figure that makes people over-invest in buffer stock for products that barely contribute.

Some share of those buyers never return, and that is the larger number

A customer who finds an empty shelf may wait, may buy a substitute, or may buy from a competitor and stay there. The repeat loss factor prices that last group — the future margin from customers the stockout permanently cost you.

For a business with genuine repeat purchase, this term usually dominates the immediate margin loss. It is also the term hardest to measure, which is why it is an input you set rather than a figure assumed for you.

The sale that never happened leaves no record

Every other cost in a business generates a transaction. A stockout generates nothing — no order, no line item, no entry anywhere — which is why it is chronically under-managed relative to costs of similar size.

The proxies are out-of-stock days weighted by a normal sales rate, and for online catalogues, sessions that landed on an unavailable product. Neither is exact, and both are better than treating the cost as zero.

The cost of running out against the cost of holding too much

The figure here is what justifies safety stock. Set it against the carrying cost of the buffer that would have prevented the stockout, and the right level of protection follows from the comparison.

High-margin fast-moving lines with loyal customers justify deep buffers. Low-margin slow lines rarely do, and treating every product the same is how a catalogue ends up simultaneously overstocked and out of stock.

Frequently Asked Questions

What is a stockout?

A stockout happens when a product is unavailable and a willing customer cannot buy it. Beyond the immediate lost sale, stockouts can erode trust and send shoppers to competitors, which is why they carry a cost larger than the missed margin alone.

Why include a loyalty loss factor?

Because a stockout often costs more than one sale. Frustrated customers may switch to a rival and not return, so a multiplier above one approximates that lost future revenue. A factor of one counts only the direct margin lost.

Should I use margin or selling price for lost units?

Use margin, which is selling price minus cost. The selling price overstates the loss because it ignores the cost you would have paid for the goods. Margin reflects the actual profit a sale would have produced.

How do I estimate lost units?

Compare normal sales of the item with the period it was unavailable, or use waitlist signups, backorder requests, and traffic to the out-of-stock page. Unmet demand is hard to measure exactly, so treat the figure as an informed estimate.

How does stockout cost help with inventory decisions?

It puts a number on the downside of running out, which you can weigh against the cost of carrying more safety stock. If the stockout cost is high, holding a larger buffer is easier to justify; if it is low, lean inventory may be fine.

Is the estimate exact?

No. It is a planning estimate built on assumed lost units and a judgement-based loyalty factor. Use it to compare scenarios and inform buffers rather than as a precise accounting of money lost.

Sources & References

Figures on this page are checked against primary, authoritative sources. Links open in a new tab.

What the calculation assumes

  • Lost units reflect genuine demand you could not meet, not demand that simply shifted to another of your products.
  • Margin per unit is the difference between selling price and cost, excluding variable fees unless you fold them into cost.
  • The repeat-loss factor is a judgement estimate of lost future business, not a measured figure.
  • Results are for general analysis and educational use.

Where it stops

  • The loyalty loss factor is inherently approximate; true lifetime impact depends on customer behaviour you cannot see directly.
  • It does not capture brand or reputation damage beyond the simple multiplier.
  • Estimating lost units during a stockout is difficult because unmet demand is rarely recorded.
  • It treats every lost sale as fully lost, though some customers may wait or backorder.

Related Calculators

Safety StockThe buffer that covers a bad cycle — peak demand across your worst lead time, less the normal case.
Reorder PointThe stock level that triggers a reorder, covering demand through the lead time plus your safety buffer.
Profit MarginWork out gross, contribution, operating, and net margin, with target pricing, break-even, scenarios, and SKU comparison.
Sell-Through RateThe share of received stock that sold in a period, with the daily rate and units still on hand.
Demand ForecastA moving-average and a trend forecast side by side from three months of history, plus your growth assumption.
Order Defect RateThe marketplace defect rate and whether it sits inside the one percent threshold that governs account health.
Return LossThe full cost of returns — reverse shipping, restocking, damaged units and what resale recovers.
Exchange CostWhat an exchange costs across both shipping legs plus handling, per exchange and in total.

More in Business, or browse all calculators.

Business disclaimer

Results are estimates for planning and analysis based on the figures you enter. They are not accounting, tax, or financial advice — verify with your own records and a qualified professional before making decisions.

How we calculate · Found an error? email us

Authorship & verification

Built and maintained by , who runs a rice mill and trading business in Kashipur, India, and works with pricing, margins, working capital and bank credit as part of it.

How this calculator is tested

4,367 automated cases pass, run against the engine this calculator shares with 7 related calculators; last run 30 September 2026.

Test cases by kind
Independent cross-check55expected values published elsewhere, or reached by a second method
Golden18worked by hand, the arithmetic written into the test
Boundary12zero, negative, extreme and invalid inputs
Property4,250rules that must hold for any input
Structural32every output present and finite

Full verification report for this calculator

What's changed (4 updates)

Published 13 September 2026

  1. Published the calculator with its formula, worked example, assumptions, limitations and a bespoke guide, and added an automated formula test suite covering it.
  2. Tested the immediate contribution margin lost on unfulfilled units plus the repeat-customer value the factor represents.
  3. Tested that a selling price below unit cost floors the margin at zero rather than reporting a negative loss.
  4. Frequently Asked Questions now show on the page: 6 answers, checked in a page-by-page audit.

Add this calculator to your site

Responsive embed — and private: nothing your visitors type leaves their browser.