Stockout Rate Formula: Measure How Often Customers Can’t Buy
Definition
The proportion of measured products, periods or order opportunities affected by unavailable stock.
Overview
Stockout Rate is calculated as the ratio of unavailable occurrences to the total number of opportunities; the simplest stockout formula is stockout rate = stockout occurrences ÷ total opportunities, expressed as a percentage. In practice that "occurrence" and that "opportunity" can be counted as SKU-days, customer order-lines, or demand units, producing different results from the same inventory history.
Basic Stockout Formula
The basic idea behind any stockout formula is the same: compare how often customers encounter unavailable inventory against the universe of chances they had to buy. Written generically:
stockout rate = (number of stockout events) / (number of opportunities to purchase) × 100%
What changes between SKU-day, order-line and demand-weighted variants is the definition of "stockout event" and "opportunity." Choose the counting method that matches your customer experience question and operational levers.
SKU-Day Calculation
The SKU-day approach treats every SKU on every day as one opportunity. If a SKU is unavailable for any portion of a day it counts as a stockout for that SKU-day. Formula:
SKU-day stockout rate = (SKU-days with zero available stock) / (total SKU-days observed) × 100%
- Label:Simple to compute from daily inventory snapshots and works well for measuring catalog-level availability across time.
- Label:Insensitive to order size — a one-unit demand and a 1,000-unit demand both count the same.
Order-Line Calculation
The order-line variant counts customer order lines (a single SKU on a customer order) as opportunities. An order-line is a stockout if one or more units on that line cannot be fulfilled. Formula:
Order-line stockout rate = (order-lines with any unfulfilled quantity) / (total order-lines placed) × 100%
- Label:Reflects customer experience for multi-line orders and partial fills; it penalizes situations where some lines ship while others don’t.
- Label:Gives weight to the frequency of order events rather than calendar time.
Demand-Weighted Calculation
The demand-weighted method measures the fraction of demanded units that were unavailable. It treats each unit of demand as an opportunity, so large orders weigh more. Formula:
Demand-weighted stockout rate = (units not shipped because of stockouts) / (total units demanded) × 100%
- Label:Best for measuring revenue or volume impact because it reflects lost units directly.
- Label:Sensitive to a few large orders; a handful of big stockouts can dominate the metric.
Example: Same Inventory, Different Results
Consider two SKUs observed over three days with recorded customer demand and whether stock was available when orders arrived. The inventory history is the same, but the metrics diverge.
Data (SKU1 demand by day: 5, 2, 3 — stock unavailable on day 1 and 3; SKU2 demand by day: 1, 4, 1 — stock unavailable on day 2). Total SKU-days = 2 SKUs × 3 days = 6. SKU-days with stockout = 3. SKU-day stockout rate = 3 ÷ 6 = 50%.
If each demand-day is one customer order-line, total order-lines = 6 and order-lines with any unfulfilled quantity = 3, so order-line stockout rate = 50% as well. But looking at units demanded: total units demanded = 5+2+3+1+4+1 = 16 units. Units unfulfilled because of stockouts = 5 (SKU1 day1) + 3 (SKU1 day3) + 4 (SKU2 day2) = 12 units. Demand-weighted stockout rate = 12 ÷ 16 = 75%.
The same inventory history therefore yields 50% by SKU-day or order-line but 75% by demand-weighted — showing how demand concentration changes the interpretation.
When To Use Each Metric
- SKU-Day: Use this when you want a time-based measure of catalog availability (for example, corporate availability targets or shelf-facing metrics). It’s useful for assortments with consistent demand per SKU and for inventory planning across days or weeks.
- Order-Line: Choose order-line when your objective is customer experience at the transaction level — for marketplaces or retailers where partial order fulfillment drives complaints or additional shipping expense.
- Demand-Weighted: Use demand-weighted when you need to understand revenue or volume impact. This is the go-to when large orders or B2B customers matter more than the number of times an item was unavailable.
Practical Tips For Implementation
- Label:Align the metric to the business question: availability targets, customer satisfaction, or lost sales calculations each point to a different formula.
- Label:Define your observation window consistently — SKU-day calculations need consistent snapshot times; order-line requires clean order timestamps and allocation logic.
- Label:Account for partial fills: decide whether partial shipment counts as a stockout for order-line metrics (commonly yes) and log the unfulfilled quantity for demand-weighted metrics.
- Label:Use the demand-weighted method to estimate lost revenue: multiply unfulfilled units by average unit margin or price to estimate financial impact.
- Label:Report two or more metrics together: a SKU-day rate with a demand-weighted rate gives both availability breadth and business impact.
How To Avoid Common Measurement Pitfalls
Don’t mix denominators — comparing SKU-day percentage to demand-weighted percentage without context leads to false conclusions. Capture the right data: inventory snapshots, allocation logs, and actual shipped quantities are necessary to compute reliable metrics. Finally, document counting rules (e.g., when you consider a SKU-day a stockout, how backorders are handled) so the metric is consistent over time.
In short, the Stockout Rate is a straightforward proportion at its core, but the exact stockout formula you use — SKU-day, order-line, or demand-weighted — materially changes the number and its business meaning. Pick the variant that matches the customer experience or financial impact you must manage, and report complementary metrics to give a complete picture.
🔗
Related Terms
6More from this term
All guides about Stockout Rate
Looking for a 3PL?
Compare warehouses on Racklify and find the right logistics partner for your business.