"How many should we order?" In most Moroccan businesses the answer is still the purchasing manager's instinct. It works as long as that person is around, volumes stay stable and suppliers deliver on time. The day one of those three shifts, you discover either a saturated warehouse or empty shelves.
Safety stock is the buffer that absorbs the unexpected. It can be calculated, and the calculation is within reach of any manager.
What safety stock actually protects against
Safety stock is not there to cover normal consumption. That is covered by cycle stock, the quantity you replenish with each order.
Safety stock covers two uncertainties, and only those:
- Demand is higher than forecast. You were selling 100 units a week; one exceptional order takes 180.
- The supplier delivers late. You planned for 15 days; the delivery arrives after 25.
If you have neither demand variation nor lead time variation, you need no safety stock at all. In real life both vary, and it is the combination that hurts.
The basic formula
The simplest version, usable straight away:
Safety stock = (Maximum consumption × Maximum lead time)
− (Average consumption × Average lead time)
Take a concrete example. You distribute a cleaning product:
- Average consumption: 200 units per week
- Maximum observed consumption: 320 units per week
- Average supplier lead time: 2 weeks
- Maximum observed lead time: 4 weeks
Safety stock = (320 × 4) − (200 × 2)
= 1,280 − 400
= 880 units
880 units may look like a lot. That is the price of a supplier who can double their lead time without warning. The right response is not to arbitrarily lower the figure: it is to check whether that 4-week maximum was an isolated incident or recurring behaviour.
The reorder point follows from safety stock
Safety stock alone does not tell you when to order. That is the reorder point:
Reorder point = (Average consumption × Average lead time) + Safety stock
With our figures:
Reorder point = (200 × 2) + 880 = 1,280 units
As soon as available stock drops below 1,280 units, you trigger the order. This is the threshold you configure in your software to get an automatic alert.
The single-figure trap
The costliest mistake is applying one rule to the whole catalogue — "we always keep a month of stock". That rule does two kinds of damage at once: it overstocks stable products and understocks volatile ones.
Safety stock must be calculated reference by reference, because both input variables change for every product:
| Product | Demand variation | Supplier lead time | Safety stock |
|---|---|---|---|
| Product A, imported, stable demand | Low | Long and irregular | High |
| Product B, local, stable demand | Low | Short and reliable | Very low |
| Product C, local, seasonal demand | High | Short and reliable | Medium |
| Product D, imported, seasonal demand | High | Long and irregular | Very high |
Product B barely justifies any safety stock: your supplier is in Casablanca and delivers within 48 hours. Product D is where your service level is won or lost.
What to measure before calculating
The formula is only as good as its inputs. Three figures to pull from your history, over twelve months minimum:
Actual weekly consumption, not forecasts. Use real stock issues. Take care to exclude one-off movements that will not recur.
Actual supplier lead time, not the quoted one. Measure the gap between your purchase order date and the actual receipt date. This is often the most useful discovery of the whole exercise: many suppliers quote 10 days and deliver in 18.
The consumption peak, not the average of peaks. Take the highest week observed, not the average of high seasons.
Reducing safety stock without taking risks
Safety stock is expensive: it is cash tied up, space occupied and obsolescence risk. Three levers reduce it without degrading service.
Make supplier lead times reliable. This is the most powerful lever. In our example, if the maximum lead time drops from 4 to 3 weeks, safety stock falls from 880 to 560 units — a 36% reduction without touching demand at all.
Order more frequently. Ordering every two weeks rather than monthly reduces cycle stock and lets you react faster. Provided transport costs allow it.
Improve stock accuracy. If your theoretical quantities are wrong, you compensate with extra safety stock without realising it. Stock that is 98% accurate lets you work with a thinner buffer.
Rolling it out gradually
Do not try to calculate safety stock for 1,500 references at once. The calculation would be obsolete before it was finished.
- Pull your top 20 references by revenue.
- For each, record average consumption, maximum consumption, average lead time and maximum lead time over 12 months.
- Apply the formula and set the reorder point in your software.
- Let it run for three months, then check: was there a stockout? Did stock stay permanently above the threshold without ever approaching it?
- Adjust, then move on to the next 30 references.
A reference that never came near its reorder point in three months is overstocked: the threshold is too high. A reference that ran out despite the threshold has a lead time or a variability you underestimated.
Where software fits
These calculations work in a spreadsheet for twenty references. They become unmanageable for several hundred, mainly because the input data keeps moving.
Business management software calculates average consumption from actual issues, measures real supplier lead time at every receipt, and triggers the alert when available stock crosses the reorder point.
In G-stock, each reference carries its own threshold and its own safety stock, both recalculable from history. Alerts appear on the dashboard and feed directly into a suggested purchase order, which still requires your approval.