# Safety Stock Calculator: Size Buffers With Demand and Lead Time Variability

> Source: https://netray.co/tools/safety-stock-calculator
> Publisher: Netray (netray.co), AI and integration engineering for ERP and manufacturing systems.
> Section: Free Tools

## Short answer

Size statistically defensible safety stock using demand variability, lead time variability, and your target service level, then see what that buffer costs to carry.

## Category

manufacturing

## Tool

**Kind:** calculator

**Inputs:**

#### Average daily demand

**Key:** avg_daily_demand

**Type:** number

**Default:** 250

**Min:** 1

**Max:** 1000000

**Step:** 5

**Unit:** units/day

**Help:** Mean units consumed per working day over the last 6-12 months, not per calendar day.

#### Standard deviation of daily demand

**Key:** demand_std_dev

**Type:** number

**Default:** 60

**Min:** 0

**Max:** 500000

**Step:** 1

**Unit:** units/day

**Help:** Standard deviation of the same daily demand series. A rough proxy is (peak day - average day) divided by 3.

#### Average replenishment lead time

**Key:** lead_time_days

**Type:** number

**Default:** 21

**Min:** 1

**Max:** 365

**Step:** 1

**Unit:** days

**Help:** Actual door-to-stock lead time from purchase order release to available inventory, not the quoted lead time.

#### Standard deviation of lead time

**Key:** lead_time_std_dev

**Type:** number

**Default:** 5

**Min:** 0

**Max:** 180

**Step:** 0.5

**Unit:** days

**Help:** Variability in actual receipt dates. Most ERP receipt history can produce this in a pivot table.

#### Target cycle service level

**Key:** service_level_z

**Type:** select

**Default:** 1.65

**Unit:** z

**Help:** Probability of not stocking out during a replenishment cycle. Higher service levels get expensive fast.

**Options:**

##### 90% service level (z = 1.28)

**Value:** 1.28

##### 95% service level (z = 1.65)

**Value:** 1.65

##### 97.5% service level (z = 1.96)

**Value:** 1.96

##### 99% service level (z = 2.33)

**Value:** 2.33

##### 99.9% service level (z = 3.09)

**Value:** 3.09

#### Standard unit cost

**Key:** unit_cost

**Type:** number

**Default:** 45

**Min:** 0.01

**Max:** 1000000

**Step:** 1

**Unit:** $

**Help:** Fully loaded inventory value per unit as carried on the balance sheet.

#### Annual inventory carrying cost

**Key:** carrying_cost_pct

**Type:** slider

**Default:** 22

**Min:** 5

**Max:** 45

**Step:** 1

**Unit:** %

**Help:** Capital, storage, insurance, handling, shrink, and obsolescence. Discrete manufacturers typically land between 18% and 28%.

**Outputs:**

#### Combined demand and lead time sigma

**Key:** combined_sigma

**Expr:** sqrt(lead_time_days * pow(demand_std_dev, 2) + pow(avg_daily_demand, 2) * pow(lead_time_std_dev, 2))

**Format:** number

**Description:** One standard deviation of total demand over the replenishment lead time, blending both variability sources.

#### Recommended safety stock

**Key:** safety_stock_units

**Expr:** round(service_level_z * combined_sigma)

**Format:** number

**Description:** The buffer quantity to load into your ERP item record for this service level.

**Primary:** true

#### Safety stock days of cover

**Key:** days_of_cover

**Expr:** safety_stock_units / max(avg_daily_demand, 1)

**Format:** days

**Description:** How many average demand days the buffer absorbs before you are exposed.

#### Safety stock inventory value

**Key:** safety_stock_value

**Expr:** safety_stock_units * unit_cost

**Format:** currency

**Description:** Working capital permanently tied up in this buffer.

**Primary:** true

#### Annual cost to carry the buffer

**Key:** annual_carrying_cost

**Expr:** safety_stock_value * carrying_cost_pct / 100

**Format:** currency

**Description:** Recurring annual expense of holding this safety stock.

**Disclaimer:** Estimates only. The formula assumes roughly normal demand and independent lead time variation. Intermittent, lumpy, or highly seasonal items need different models and a planner review before you change ERP settings.

## Content

**Intro:** This free safety stock calculator sizes inventory buffers for supply chain planners, materials managers, and ERP administrators in discrete manufacturing. Instead of the guesswork rule of thumb where someone sets two weeks of cover for every item, it applies the standard statistical formula that combines demand variability and lead time variability at your chosen service level. Enter average daily demand, its standard deviation, average lead time, lead time variability, and a target service level, and the tool returns a defensible buffer quantity along with the working capital and annual carrying cost that buffer will consume.

**Sections:**

#### The formula behind the number

**Body:** Safety stock equals the service level z-score multiplied by the combined standard deviation of demand over lead time. That combined sigma is the square root of two terms: lead time multiplied by demand variance, plus average demand squared multiplied by lead time variance. With the defaults, the demand term is 21 times 3,600, or 75,600, and the lead time term is 62,500 times 25, or 1,562,500. The square root of the sum is roughly 1,280 units. Multiply by a 1.65 z-score for 95% service and you get about 2,112 units of safety stock, or 8.4 days of cover. Notice that lead time variability dominates here. That is typical, and it is why chasing supplier delivery consistency usually beats chasing forecast accuracy.

**Bullets:**

- Demand variability term: lead time days multiplied by the square of daily demand standard deviation.
- Lead time variability term: the square of average daily demand multiplied by the square of lead time standard deviation.
- Combined sigma: the square root of the two terms added together.
- Safety stock: the z-score for your target service level multiplied by that combined sigma.

#### Benchmarks and service level choices

**Body:** Service level is the single most expensive assumption in this calculation, and most organizations set it far too high by default. Moving from 95% to 99% raises the z-score from 1.65 to 2.33, which increases safety stock by roughly 41% for identical variability. Going to 99.9% nearly doubles it. Common practice across discrete manufacturers is to segment: 98-99% for A items and critical assemblies where a stockout halts a line, 95% for B items, and 90% or a simple time-based buffer for low-value C items. Carrying costs in aerospace and defense supply chains typically run 18-28% annually once capital, storage, insurance, obsolescence, and shelf-life scrap are included. High-mix electronics with short component life cycles often exceed 30%.

#### Reading your result and loading it into ERP

**Body:** If the recommended buffer looks shockingly large, the input that is usually wrong is lead time standard deviation. Planners often enter the quoted lead time variability rather than the actual receipt spread, and a supplier who quotes 21 days but delivers anywhere between 14 and 40 days is genuinely forcing you to carry that much inventory. Compare the days of cover output against what your item master holds today. A large gap in either direction is a finding worth acting on. In Infor SyteLine you would load the result into the item safety stock field or a planning parameter policy; in Infor LN it maps to the item order data safety stock setting. Recalculate quarterly, because both demand and supplier performance drift.

#### How Netray helps you operationalize this

**Body:** Calculating one item by hand is easy; keeping ten thousand item buffers current is not. Netray builds automated parameter maintenance directly against Infor SyteLine, CloudSuite Industrial, Infor LN, and Baan, pulling real demand history and actual receipt variability from your own transaction tables rather than from quoted standards. We layer on-prem AI models that segment items by demand pattern, detect when variability has shifted, and stage recommended parameter changes for planner approval. Because the models run inside your firewall, ITAR and CMMC constraints in aerospace and defense are not an obstacle. Most engagements start with a one-time recalculation across your A and B items, which typically frees working capital while raising service on the parts that actually matter.

**Cta:** Get a personalized safety stock review across your item master and a working capital release estimate from Netray's supply chain systems engineers.

**Faq:**

#### Should I use the same service level for every item?

**Answer:** No, and doing so is the most common cause of bloated inventory. Segment your items first. Assign 98-99% service to A items and any part whose absence stops a production line or a customer shipment, 95% to mid-value B items, and 90% or a flat time buffer to low-value C items. Uniform high service levels quietly tie up large amounts of capital in parts that nobody would miss for a week.

#### What if my demand is lumpy or intermittent rather than normally distributed?

**Answer:** This formula assumes roughly normal demand, so it overstates or understates buffers for parts ordered a few times a year. For intermittent demand, Croston's method or a bootstrapping approach based on actual demand history gives far better results. A practical shortcut for spares and slow movers is to set the buffer to the largest single historical order quantity, then review it annually rather than applying a statistical model.

#### How often should safety stock be recalculated in ERP?

**Answer:** Quarterly is the practical standard for most discrete manufacturers, with an exception process for items whose demand or supplier performance shifts sharply in between. Recalculating monthly tends to inject churn into MRP without improving service, while annual reviews let parameters drift badly out of date. The trigger that matters most is a change in supplier lead time reliability, since that term usually dominates the calculation.

## Search terms

safety stock calculator, safety stock formula, how to calculate safety stock, service level z score safety stock, safety stock lead time variability, safety stock ERP settings, inventory buffer calculator manufacturing

---
Talk to an engineer: https://netray.co/contact?intent=erp_ai | Machine catalog: https://netray.co/agent/catalog.json
