Recalculate every quarter and whenever you change supplier, transport mode or sales level. Before peak season, redo the maths with the demand forecast for the peak, not the yearly average.
Safety stock is the extra quantity you hold to cover two uncertainties: demand running above forecast and the supplier delivering late. The most widely used formula combines your target service level, demand variability and lead time. Added to expected consumption over the lead time, it sets your reorder point.
Without that buffer, any delay becomes a stock-out: the product disappears from your site, the listing loses ranking and the customer buys elsewhere. With too much buffer, cash is tied up in idle goods. The calculation exists to find the middle ground with numbers instead of gut feel.
A stock-out costs the lost sale plus three things you do not see straight away. A customer who could not find the product may not come back. On marketplaces and search engines, an out-of-stock listing loses relevance and takes time to recover its position. And rushed replenishment is more expensive, because you pay for urgent freight and accept whatever price the supplier quotes.
For businesses importing into Brazil, the maths gets worse. An order that takes 60 days to arrive cannot be fixed with a phone call. If stock hits zero today, the shelf may stay empty for two months.
The most complete statistical formula accounts for demand variability and lead time variability at the same time:
SS = Z × √(LT × σd² + d² × σLT²)
Each term has a job:
A punctual supplier, with lead times that barely change, simplifies things: the second term drops out and you are left with SS = Z × σd × √LT. That is the version most textbooks show, and also the one that most underestimates the buffer for anyone buying from abroad.
The Z factor comes from the normal distribution. The table below shows the values used most often.
Service level | Z factor | Typical use |
90% | 1.28 | class C items, easy to restock |
95% | 1.65 | default for most of the catalogue |
97.5% | 1.96 | class B items with high margins |
98% | 2.05 | class A items |
99% | 2.33 | critical items with no substitute |
Going from 95% to 99% looks small. In the formula, Z grows by 41% and safety stock grows in the same proportion.
Take an online store in Brazil that imports insulated bottles. The figures are illustrative, but the steps are the ones you will repeat in your own spreadsheet.
Notice how much the lead time weighs. With the simplified formula, which ignores lead time variability, the result would be 1.65 × 12 × √60 ≈ 153 units. The 525-unit gap comes entirely from supplier delays.
In most ERP systems, yes: the "minimum stock" field holds safety stock, the level below which you are already eating into the buffer. In others, minimum stock means the reorder point. Before you configure your system, check which one the field represents, because in the example above the difference is 2,400 units.
The rule of thumb is simple. The reorder point triggers the purchase. Safety stock should only be consumed when something has gone wrong.
There is, and small businesses use it widely:
SS = (maximum daily demand × maximum lead time) − (average daily demand × average lead time)
It needs no standard deviation, only the worst case you have already seen. The catch is that it treats the worst day and the worst delay as if they happened together, which is rare. In the bottle example, with a peak of 60 units a day and a maximum delay of 75 days, the result would be 60 × 75 − 40 × 60 = 2,100 units. That is more than three times the statistical figure.
Use the simple formula to get started, while your history is short. Once you have six months of data, move to the statistical one.
Lead time enters the formula twice: through its length and through its variability. A shorter lead time cuts the buffer; a steadier one cuts it further. The concepts and ways to measure it are covered in the guide to lead time.
Back to the example. If the same bottle were restocked with an average lead time of 10 days and a deviation of 2, the result would be 1.65 × √(10 × 144 + 1,600 × 4) ≈ 146 units. That is 532 fewer units in reserve. At a unit cost of R$ 35 (Brazilian reais), it frees R$ 18,620 of capital that was sitting on the shelf.
When importing, lead time variability comes from four places: production delays at the supplier, waiting for space on transport, customs checks and final delivery. Understanding the stages of importing into Brazil helps you measure where your lead time swings and separate what you control from what you do not.
That is why it pays to run two flows. The large, planned order travels by the most economical mode. Replenishment of items that cannot run out goes by express, in smaller batches, so the buffer does not have to cover 60 days of uncertainty.
Not every item needs the same service level. ABC analysis separates the products that concentrate revenue from those that weigh little, and it usually sets the Z for each group.
Three signs call for a bigger buffer: the item is class A, it has no substitute in the catalogue, or it comes from a supplier with unstable lead times. A class C item that is easy to restock and sells irregularly can run at 90% or less.
Too much buffer shows up in the numbers too. If an item's inventory turnover has dropped while sales held steady, review its safety stock before placing the next order.
Recalculate every quarter and whenever you change supplier, transport mode or sales level. Before peak season, redo the maths with the demand forecast for the peak, not the yearly average.
No. With a 95% service level, you accept running out in about 5% of replenishment cycles. Reaching 100% would require an infinite buffer, so choosing the level is a cost decision.
Build a column with each day's sales and use the STDEV.S function over the range. Include days with zero sales, because leaving them out lowers the deviation and underestimates the buffer.
Yes, because it is part of average inventory. A bigger buffer lowers turnover, and that is the cost you accept in exchange for fewer stock-outs.
Every day cut from replenishment time, and every day less of variability, reduces the quantity you need to keep idle. For imported items that cannot run out, international express shipping with end-to-end tracking makes that lead time more predictable and the safety stock calculation lighter.
To quote recurring replenishment with business terms, open a DHL Express business account.