What Safety Stock Is For
Safety stock is the extra quantity you hold on top of what you expect to sell or consume while you wait for the next delivery. It has one job: absorbing surprises. In inventory, surprises come in two kinds. Demand turns out higher than expected, or supply turns out slower than expected.
If demand were perfectly steady and your supplier delivered on exactly the same day every time, you would need no safety stock at all. You would reorder when you had just enough to last until the truck arrived, and it would arrive as the last unit left the shelf. Reality does not work like that. A large customer orders double their usual quantity. An import shipment loses a week at sea or in clearance. Ramadan demand looks nothing like the rest of the year. Safety stock is what you pay to live with that variability.
The real question is never whether you need safety stock but how much. Too little means repeated stockouts, lost sales and customers who try a competitor. Too much means cash locked in slow stock, warehouse space used up, and a growing risk of damage and obsolescence. This guide explains why safety stock matters, works through three calculation methods on one example, shows how to choose a service level with numbers, and covers the mistakes and Saudi-specific factors we see most.
Why It Matters
- Protecting sales. A customer who cannot get the item rarely waits. They buy elsewhere, and may not come back.
- Keeping production running. In a factory, one missing raw material can stop a whole line, and downtime costs far more than holding a few extra units.
- Meeting contracts. Suppliers to projects and government entities work to delivery dates that can carry penalties.
- Avoiding emergency buying. Stockouts push companies into rush purchases at higher prices or expensive air freight.
- Calmer operations. Purchasing works to a plan instead of fighting fires every day.
Every extra unit has a carrying cost, though: financing or the opportunity cost of capital, rent and cooling, insurance, damage and obsolescence. Safety stock is a financial decision as much as an operational one.
The Terms You Need
- Average daily demand (d): average units sold or used per day over a meaningful period, usually 6 to 12 months.
- Standard deviation of daily demand (σd): how much demand swings around its average. An item that sells 95 to 105 a day is stable; one that sells 20 one day and 200 the next is not.
- Lead time (L): days from issuing the purchase order until stock is available to sell in your warehouse, not until it reaches the port.
- Standard deviation of lead time (σL): how much lead time varies between shipments.
- Service level and Z: the share of replenishment cycles you aim to complete without a stockout, and the statistical factor that corresponds to it.
Three Methods, One Example
We will use one hypothetical item throughout. Average daily demand is 100 units with a standard deviation of 25. Average lead time is 9 days with a standard deviation of 2 days. On the worst days on record, demand hit 140 units and lead time stretched to 14 days.
Method 1: Max minus average
Safety stock = (maximum daily demand × maximum lead time) − (average daily demand × average lead time)
= (140 × 14) − (100 × 9) = 1,960 − 900 = 1,060 units
Easy and needs no statistics. It assumes the worst demand and the worst delay hit together, which is rare, so it usually overshoots. It works as a starting point for items with little data or items that are genuinely critical.
Method 2: Demand variability only
Safety stock = Z × σd × √L
At a 95% service level, Z is 1.65: 1.65 × 25 × √9 = 1.65 × 25 × 3 = about 124 units
This fits when the supplier is very reliable, say a local supplier who delivers on the same weekday every week, and the real uncertainty is on the demand side.
Method 3: Demand and lead time variability together
Safety stock = Z × √(L × σd² + d² × σL²)
- L × σd² = 9 × 625 = 5,625
- d² × σL² = 10,000 × 4 = 40,000
- Sum = 45,625; square root ≈ 213.6
- Safety stock = 1.65 × 213.6 = about 352 units
Look at the jump from 124 to 352. A lead time that wobbles by just two days, on an item selling 100 a day, contributes about seven times as much as demand variability does. This is the point many companies miss: for imported items, supplier reliability can matter more than forecast accuracy.
From safety stock to reorder point
Reorder point = (average daily demand × average lead time) + safety stock = (100 × 9) + 352 = 1,252 units. When available stock drops to that level, the purchase order goes out. More in our article on the inventory reorder point.
The Methods Side by Side
| Method | Result in the example | Data needed | When to use |
|---|---|---|---|
| Max minus average | 1,060 units | Max and average demand and lead time | Little data, or a truly critical item |
| Demand variability only | 124 units | Average and deviation of demand, lead time | Highly reliable supplier |
| Demand and lead time variability | 352 units | Deviation of both demand and lead time | Most items, especially imports |
Choosing a Service Level
A 95% service level means accepting a stockout in roughly 5% of replenishment cycles. Raising it cuts stockouts, but safety stock grows faster and faster as you approach 100%. Using our example, with a unit cost of SAR 40 and an annual carrying cost of 20%, so SAR 8 per unit per year:
| Service level | Z | Safety stock (units) | Annual carrying cost (SAR) |
|---|---|---|---|
| 90% | 1.28 | 273 | 2,184 |
| 95% | 1.65 | 352 | 2,816 |
| 98% | 2.05 | 438 | 3,504 |
| 99% | 2.33 | 498 | 3,984 |
| 99.5% | 2.58 | 551 | 4,408 |
Going from 90% to 95% adds 79 units. Going from 99% to 99.5% adds 53 units for half a percentage point. One item does not look expensive. Multiply the difference across a thousand SKUs and it runs into hundreds of thousands of riyals.
Putting stockout cost next to carrying cost
Now add the other side. Suppose the item is reordered roughly every two weeks, so about 26 cycles a year, the margin is SAR 12 a unit, and a typical stockout loses 150 units of sales, or SAR 1,800 of margin, before counting any damage to the relationship.
| Service level | Expected stockouts per year | Stockout cost (SAR) | Carrying cost (SAR) | Total (SAR) |
|---|---|---|---|---|
| 90% | 2.6 | 4,680 | 2,184 | 6,864 |
| 95% | 1.3 | 2,340 | 2,816 | 5,156 |
| 98% | 0.52 | 936 | 3,504 | 4,440 |
| 99% | 0.26 | 468 | 3,984 | 4,452 |
In this hypothetical case the lowest total sits around 98%; beyond it, carrying cost outruns the stockouts it prevents. Higher margins or a higher cost of losing a customer push the right level up. Higher unit cost or a short shelf life push it down. The point is that a service level can be chosen with numbers rather than instinct.
Different levels for different items
- Critical items such as production spares, medical supplies, or items tied to a large contract: 98% to 99% is justified.
- Class A trading items that carry most of your sales: usually 95% to 97%.
- Class C items that are numerous, low value or easily substituted: 90% may be enough.
Our guide to ABC analysis shows how to build the classes.
What Drives Variability in Saudi Arabia
Seasons
Ramadan, the two Eids, back-to-school and summer reshape demand for many categories. A single safety stock calculated from the annual average comes out too low in season and too high out of it. Calculate deviation per season from the same season in previous years, and raise safety stock at least one full lead time before the season starts, not on day one.
Imports and lead times
Imported items pass through supplier production, sea freight, customs clearance and inland transport, and each step adds variation. Some products covered by technical regulations need conformity certificates through the SABER platform, a product certificate plus a certificate for each shipment, and missing paperwork lengthens lead time. Measure lead time from order to stock available in your warehouse, record it for every shipment, and you will know its real deviation. To work on the lead time itself, see our article on lead time management.
Heat and shelf life
For short-life items such as fresh food and some medicines, a generous safety stock can turn into write-offs. Keep safety stock below what you can sell before expiry, even if that means accepting a slightly lower service level.
Manufacturing and Multiple Warehouses
In a factory, safety stock applies to raw materials and bill-of-materials components as well as finished goods. A material used across many products, with no substitute, or whose absence stops the line, deserves a higher service level. Its demand comes from the production plan rather than customers, so its variability depends on how stable that plan is.
A company with warehouses in Riyadh, Jeddah and Dammam that sets safety stock separately for each will hold more in total than one that keeps part of it centrally and transfers on demand, because regional swings partly cancel out when pooled. Central pooling adds an internal transfer time, though, so the right answer depends on distance, transport speed and how sensitive customers are to delay.
Common Mistakes
- One flat percentage for everything, such as 20% above average demand. Simple, but blind to the difference between stable and volatile items, or reliable and unreliable suppliers.
- Ignoring lead time variability, which, as the example showed, can be the biggest factor.
- Measuring lead time to the port. Stock at the port cannot be sold.
- Treating sales as demand. If an item was out for ten days, recorded sales were zero but demand was not. Using sales alone pulls the average and the safety stock down, and the stockouts repeat.
- Never revisiting the numbers. A figure set two years ago reflects neither today's demand nor today's supplier. Review at least quarterly.
- Inaccurate balances. If system stock does not match the shelf, no formula helps. Safety stock starts with a count you can trust.
- Living inside the buffer. If stock sits below safety level most of the time, the problem is the reorder point or order quantity, not the safety stock.
For the wider causes and costs of running out, see our article on inventory stockouts.
Getting Started
- Classify items by value and importance, and flag the critical ones.
- Collect data: at least 12 months of daily or weekly demand, and actual lead time per shipment.
- Correct for lost demand so stockout days are not counted as zero demand.
- Agree service levels per class with sales and finance together, since it is a trade-off between customer service and capital.
- Use Method 3 for important items and Method 1 as a temporary fallback where data is thin. New items can borrow from a similar item until six months of real data exist.
- Set reorder points in the system so alerts or suggested purchase orders appear automatically.
- Review every quarter, comparing actual stockouts against target service levels.
A note on time units: weekly standard deviation is not divided by 7 to get a daily figure. The usual approximation divides by the square root of the number of days, about 2.65 for a seven-day week, assuming each day's demand is independent. Simpler still, keep demand and lead time in the same unit.
Where an ERP Comes In
Ten items in a spreadsheet is fine. Thousands of items and hundreds of suppliers need the underlying data in one place: daily sales movements, purchase order dates and actual receipt dates, balances by warehouse. An ERP records all of it as part of everyday work, so demand and lead time deviation can be calculated without anyone gathering data by hand.
In Tranquil, inventory management is connected to purchasing, sales and accounting in a single cloud system, with central inventory and multiple units of measure. Contact the Tranquil team to discuss how to organise your inventory and supply data.
Frequently Asked Questions
What is the difference between safety stock and the reorder point?
Safety stock is the buffer against variability. The reorder point is the stock level that triggers a purchase order, equal to expected demand during lead time plus safety stock.
Which safety stock formula is best?
For most items, the one combining demand and lead time variability, because it ignores neither source of surprise. Max minus average is a reasonable start when data is limited.
What service level should we use?
There is no single number. Critical items justify 98% or more, core trading items around 95%, and low-value or easily substituted items 90%. Sales and finance should decide it together.
How often should safety stock be reviewed?
At least quarterly, at least one lead time before major seasons such as Ramadan, and whenever you change supplier or lead time shifts noticeably.
Is more safety stock always safer?
No. It ties up cash and space, and for short-life items it can become waste. The goal is the level that balances stockout cost against carrying cost for each class of item.

