CNCN Ally
← Back to blog
Scaling Operations

Safety Stock Math: How Much Inventory to Hold

CN Ally Team·June 19, 2026

The safety stock formula (SS = Z × σ × √L) decides your inventory buffer. This guide covers both versions of the formula, how to measure demand and lead-time variability, and a full worked example for China imports.

The safety stock calculation comes down to one formula: SS = Z × σ × √L. Multiply your service-level factor (Z) by the standard deviation of demand (σ) and the square root of lead time (L). Three inputs decide the buffer: how much demand varies, how long replenishment takes, and how often you want to avoid a stockout.

For importers sourcing from China, the basic formula hides a real risk: lead time itself varies. Production runs slip, inspections add days, containers get rolled, and holiday shutdowns stretch everything. When both demand and lead time fluctuate, the correct calculation is SS = Z × √(L × σd² + d̄² × σLT²) — it prices in both sources of uncertainty instead of assuming deliveries arrive on schedule. Getting reliable lead-time data is the hard part, and it is where a sourcing partner that tracks production and delivery performance on the ground pays for itself.

This guide covers both versions of the formula, how to measure each input from your own data, a full worked example for a China import, and what to do when the math says you need more inventory than you want to hold.

What is the safety stock formula?

The standard statistical safety stock formula is:

Safety stock = Z × σ × √L

  • Z is the service-level factor: the z-score from the standard normal distribution that matches your target service level. A 95% service level uses Z = 1.65; 99% uses Z = 2.33.
  • σ (sigma) is the standard deviation of demand per period — how much your sales swing around the average.
  • L is the lead time in the same periods — the time between placing a replenishment order and receiving it.

Here is a simple run-through. Say weekly demand averages 250 units with a standard deviation of 40 units, your lead time is 4 weeks, and you want a 95% service level:

SS = 1.65 × 40 × √4 = 1.65 × 40 × 2 = 132 units

Hold 132 units above expected demand during the reorder window, and you will be in stock for roughly 95 out of every 100 replenishment cycles. That is what "service level" means here: the percentage of order cycles with no stockout. Note the square root. Doubling lead time from 2 to 4 weeks doubles the safety stock (√4 = 2), not quadruples it — variability accumulates more slowly than time itself.

This version assumes lead time is constant. For domestic suppliers with clockwork deliveries, that is often close enough. For China imports, it is not — which brings us to the formula you should actually use.

Which version of the safety stock formula should you use?

Use the combined formula whenever your supplier's lead time varies — for China imports, that is essentially always. The demand-only formula assumes deliveries arrive exactly on schedule and systematically understates the buffer. This formula guide compares all four standard versions with worked examples and confirms the combined version for situations where both demand and lead time fluctuate.

Formula · What it covers · When to use it · Limitation

  • (Max demand × Max lead time) − (Avg demand × Avg lead time): Worst-case historical gap · Quick spreadsheet estimate with no statistics · One outlier inflates it; no service-level control
  • Z × σ × √L: Demand variability only · Reliable lead times, e.g. domestic suppliers · Underestimates buffer when deliveries slip
  • Z × √(L × σd² + d̄² × σLT²): Demand and lead-time variability · China imports, long international lanes · Needs 12+ orders of lead-time data

The combined formula adds a second variance term: average demand squared times lead-time variance. In practice, that term usually dominates for importers. In the worked example below, lead-time variability accounts for roughly 94% of the total variance inside the square root — meaning the supplier's unreliable schedule, not demand swings, drives almost the entire buffer.

One more component: the reorder point. Safety stock tells you how much extra to hold; the reorder point tells you when to order:

Reorder point = (average demand × average lead time) + safety stock

Order when on-hand inventory drops to this level.

How do you measure demand variability?

Export weekly units sold per SKU for at least 12 weeks, then take the standard deviation — =STDEV.S(range) in Excel or Google Sheets. Three rules keep the number honest:

  • Match the period to the formula. If lead time is measured in weeks, demand variability must be weekly too. Mixing daily demand with weekly lead time distorts the result.
  • Exclude stockout weeks. Weeks where you sold zero because the shelf was empty reflect your inventory failure, not customer demand. Leaving them in understates σ — and understates safety stock.
  • Segment seasonal products. One standard deviation computed across the whole year misleads when half your sales land in Q4. Run separate calculations for peak and off-peak.

To compare variability across SKUs, use the coefficient of variation: σ divided by mean demand. A SKU with CV of 0.15 is predictable; one with CV of 0.5 is volatile and deserves a larger buffer or a lower service level, whichever costs less.

For new products with no sales history, borrow the demand variability of the most similar existing SKU at the same lifecycle stage, and recalculate once you have 8–12 weeks of real data.

How do you measure lead-time variability from Chinese suppliers?

Record, for every purchase order, the actual date it was placed and the actual date the goods reached your warehouse — not the promised dates. The standard deviation of those durations, over at least a dozen orders, is your σLT. The measurement details matter:

  • Measure door to door. PO date to warehouse receipt is the gap the inventory has to cover. Ex-factory and port dates are useful for diagnosing problems, not for the formula.
  • Track promised versus actual. The gap between the two is a supplier scorecard. A factory that promises 30 days and delivers in 45 with high variance is far more expensive than its unit price suggests — every week of σLT lands directly in your safety stock.
  • Flag holiday periods separately. Chinese New Year and the early-October Golden Week routinely add one to three weeks through factory closures, port congestion, and booking shortages. Do not let those weeks inflate your year-round σLT; build separate ordering calendars around the shutdowns instead.

Importers who have never measured this usually discover their lead-time variability is far larger than assumed. That discovery is the single biggest lever on the safety stock number.

What service level should you set?

A 95% service level is the common default, but the right answer depends on what a stockout costs you per SKU. The z-score table:

Service level · Z-score · Typical use

  • 90%: 1.28 · Low-margin or easily substituted items
  • 95%: 1.65 · Standard items, most importers
  • 97.5%: 1.96 · Important items with moderate stockout cost
  • 99%: 2.33 · High-margin SKUs, Amazon listings where stockouts hurt rank

The relationship is not linear. Moving from 95% to 99% multiplies safety stock by about 1.4 (2.33 ÷ 1.65) for the same variability — every extra point of protection costs more than the last. Watch how that plays out in the example SKU below.

Service level · Z · Safety stock · Reorder point

  • 90%: 1.28 · 791 units · 3,191 units
  • 95%: 1.65 · 1,019 units · 3,419 units
  • 97.5%: 1.96 · 1,211 units · 3,611 units
  • 99%: 2.33 · 1,439 units · 3,839 units

The practical approach is ABC segmentation: A-items (top revenue or margin) get 99%, B-items get 95%, C-items get 90%. One blanket level either overspends on slow movers or understocks your winners. Price the tradeoff explicitly: on this SKU, moving from 95% to 99% adds 420 units of buffer. At $12 per unit and a 25% annual carrying rate, that is roughly $1,260 a year — a defensible spend if a single stockout costs more, a waste if it does not.

Worked example: safety stock for a China import

A kitchenware importer sets the buffer for a mid-volume SKU, in weekly periods:

  • Average weekly demand (d̄): 400 units
  • Standard deviation of weekly demand (σd): 60 units
  • Average door-to-door lead time (L): 6 weeks
  • Standard deviation of lead time (σLT): 1.5 weeks
  • Target service level: 95% → Z = 1.65

Step 1 — run the demand-only formula for comparison:

SS = 1.65 × 60 × √6 = 1.65 × 60 × 2.449 = ≈ 243 units

Step 2 — run the combined formula:

SS = 1.65 × √(6 × 60² + 400² × 1.5²) = 1.65 × √(21,600 + 360,000) = 1.65 × √381,600 = 1.65 × 617.7 = ≈ 1,020 units

Step 3 — set the reorder point:

ROP = (400 × 6) + 1,020 = 3,420 units

Read those numbers twice. The demand-only formula says hold 243 units; the combined formula says 1,020. The difference is entirely lead-time variability — the lead-time term (360,000) accounts for about 94% of the variance under the square root. The supplier's delivery unreliability, not demand swings, is what this importer is really buffering against.

Sanity-check the result as weeks of cover: 1,020 ÷ 400 = 2.55 weeks of average demand held as buffer. For a 6-week lead time from China, that is entirely reasonable.

How do you reduce safety stock without raising stockout risk?

The honest answer: shrink the inputs, starting with σLT — lead-time variability is usually the dominant term for importers. Every week of lead-time standard deviation you remove cuts the buffer without touching service level. What actually moves the needle:

Audit factories before committing volume. A supplier with documented capacity and a real production plan ships on time. Pre-shipment factory audits verify capacity, quality systems, and on-time history before you are dependent on them.

Write lead times into contracts and track on-time performance. The promised-versus-actual data you collect for the formula doubles as leverage. Suppliers improve when late delivery has a cost and they know you are measuring.

Schedule inspections early, not after production finishes. A failed final inspection that sends goods back for rework is one of the most common hidden delays in China sourcing. Building quality control into the production schedule removes a whole category of lead-time surprises.

Consolidate SKUs at fewer factories. Three suppliers with three different delivery rhythms triple your tracking work and dilute your leverage. One reliable partner with consolidated purchase orders gets better freight terms and more consistent production slots.

Split shipments strategically. Sea freight covers base demand at the lowest cost; a smaller air top-up covers the variability you would otherwise hold as safety stock. Freight planning that matches transport mode to demand uncertainty often beats holding the difference in the warehouse.

Run the math on improvement. Suppose this importer gets σLT from 1.5 weeks down to 0.5 weeks — better supplier, inspections on schedule, consolidated freight:

SS = 1.65 × √(21,600 + 400² × 0.5²) = 1.65 × √61,600 = ≈ 410 units

Safety stock drops from 1,020 to 410 units — 610 fewer units sitting in the warehouse. At $12 per unit, that frees about $7,320 in working capital. At a 25% annual carrying rate (the 20–30% range is the widely cited benchmark), that is roughly $1,830 a year saved on this SKU alone, with the same 95% service level. That is the real payoff of the safety stock calculation: it tells you exactly what supplier reliability is worth in dollars.

When does the safety stock formula fail?

The formula works when its assumptions hold: demand is roughly normally distributed, lead time varies around a stable average, and you can always order the full reorder quantity. Watch for the cases where those assumptions break:

  • Intermittent or lumpy demand. If a SKU sells zero most weeks and 200 units in a few, the normal-distribution assumption behind the z-score is wrong, and the formula understates the buffer. Use forecasting methods built for intermittent demand instead of forcing these SKUs through it.
  • Strong seasonality. A single σ computed across the year averages the calm months with the peak and misstates both. Calculate separate safety stocks for the seasonal peak and the baseline, and switch the reorder point on a calendar.
  • New products with no history. No σd, no σLT. Borrow analogous SKUs as a starting point, add margin, and recalculate after the first 8–12 weeks of real data. The first calculation is a placeholder — treat it as one.
  • Structural changes in lead time. Switching factories, changing freight modes, or a supplier opening a new production line makes your historical σLT fiction. Reset the measurement and use a conservative buffer until new data accumulates.
  • Capacity-constrained replenishment. The formula assumes you can always place the order the reorder point calls for. If a factory caps your monthly allocation, the buffer cannot compensate — fix the capacity constraint first.

The formula protects against random variation, not against being wrong about the average. If your demand forecast is systematically too low, or your supplier's lead time has permanently lengthened, no z-score fixes it. Recalculate the inputs before reaching for a higher service level.

Frequently asked questions

What is a good safety stock level for an importer?

There is no universal number — that is the point of the formula. As a rough planning rule, many importers hold 2–4 weeks of average demand as safety stock for sea-freight SKUs, but the formula often says more for high-variance suppliers and less for reliable ones. Run it per SKU instead of adopting a rule of thumb.

What is the difference between safety stock and reorder point?

Safety stock is the buffer held above expected demand. The reorder point is the inventory level that triggers a new purchase order: expected demand during lead time plus safety stock. Calculate safety stock first, then add it to lead-time demand to get the reorder point.

How often should safety stock be recalculated?

Quarterly is a workable default, plus a recalculation whenever something structural changes: a new supplier, a new freight lane, a seasonal shift, or a demand shock. Demand variability drifts, and a buffer computed a year ago quietly becomes wrong.

What does the Z in the safety stock formula mean?

Z is the z-score from the standard normal distribution corresponding to your target cycle service level. It converts "I want to be in stock 95% of order cycles" into a number of standard deviations of protection: 1.65 for 95%, 2.33 for 99%. Higher Z means more buffer and fewer stockouts.

Can safety stock be zero?

Yes, where a stockout costs nothing: made-to-order products, items with instant domestic resupply, or products being discontinued. For everything else, zero buffer means accepting a stockout every time demand or lead time runs above average.

Your next move: run the numbers on your top five SKUs this week

Start with the combined formula at 95% for your top five SKUs by revenue, using at least 12 weeks of demand data and 12 orders of lead-time history. Set service levels by ABC tier, not gut feeling. Recalculate quarterly. And whenever the math demands more inventory than you want to hold, ask whether the answer is a bigger buffer or a better supplier — because the formula keeps saying the same thing: lead-time reliability is usually the cheapest inventory you can buy.

If the lead-time side is your problem, on-the-ground support is what moves it. CN Ally verifies factories, monitors production, runs pre-shipment inspections, and manages freight — the work that turns a 1.5-week lead-time standard deviation into a 0.5-week one. Email hi@cnally.com with your top SKUs and current lead times, and get a sourcing setup built around predictable delivery.

Need help sourcing this kind of product?

Our team handles supplier verification, QC inspections, and logistics every day.

Get a Free Quote

Ready to source smarter from China?

Tell us what you want to source. We'll reply with vetted factory options and pricing within 24 hours — free, no obligation.