# Safety stock: the buffer in your purchase advice

Safety stock is the calculated buffer around expected demand that helps protect product availability when demand or supply varies. In purchase advice, Optiply shows safety stock as the difference between the applicable **Order up to** value and the expected demand in the replenishment cycle.

## What safety stock means in Optiply

Safety stock in Optiply is a planning figure, expressed in the product's stock unit. Read **Safety stock**, **Forecast** and **Order up to** together for the same product and order moment.

Safety stock is part of the **Order up to** value. It is not the quantity physically set aside in your warehouse, and it is not the purchase quantity you should enter manually.

Optiply calculates the stock target using your desired service level, demand and its variability, lead time and reorder period. The target combines protection against uncertainty with demand coverage. The **Safety stock** in your purchase advice is the remaining component after Optiply subtracts expected cycle demand from that target.

### Why safety stock can be higher than the forecast

The forecast is expected demand, while safety stock reflects the protection included in the target. They are different quantities, so safety stock can exceed the forecast. Optiply calculates that target from your desired service level, demand and its variability, lead time and reorder period.

For example, a **Forecast** of 6 units and **Safety stock** of 10 units do not, by themselves, identify an error. First compare the same product, supplier, order moment and demand period. Support needs the applicable service target and planning inputs to explain that product's numbers.

## How Optiply calculates safety stock in purchase advice

Optiply calculates the safety stock in the purchase advice breakdown as the applicable, adjusted **Order up to** value minus the expected cycle demand. Optiply rounds only the expected cycle demand down to whole units:

`Safety stock = Order up to − (expected cycle demand, rounded down to whole units)`

- **Expected cycle demand** is the demand Optiply expects in the replenishment cycle of that order moment. The purchase advice breakdown shows it as **Forecast**, before rounding.
- **Replenishment cycle:** for a regular order moment, the cycle is the lead time plus the applicable reorder period. Emergency calculations can use the days until the next regular review instead, and Optiply Lite uses the coverage period.
- **Applicable:** a regular or brought-forward regular order moment uses the regular **Order up to** and regular expected cycle demand. Other order moments use the emergency ones.
- **Adjusted:** Optiply first applies order adjustments and the handling of products that are not being bought to **Order up to**.

When **Order up to** is below the rounded expected cycle demand, the difference is negative. Each webshop uses one of two calculations, set internally: a signed calculation shows that negative difference, and a zero-floor calculation shows 0 instead. You cannot see in Optiply which one your webshop uses, and a result of 0 or more looks the same in both. Support can check it for your webshop.

Final purchase advice also accounts for stock position and purchasing constraints.

### Match the demand period before comparing safety stock

Optiply builds forecasts for individual days. The Products table's expected-demand value represents 30-day demand, while **Forecast** in the purchase advice breakdown covers the applicable replenishment cycle. Check the field and its period before comparing either quantity with **Safety stock**.

When expected cycle demand rounds down to zero, **Safety stock** can equal **Order up to**. Equal displayed values alone do not tell you which demand input was used or whether anything is wrong.

## Example: safety stock for a garden hose with an Order up to of 140 units

This example uses made-up numbers. You sell a garden hose that you buy from one supplier. For the hose's next regular order moment:

- Lead time: 10 days, reorder period: 7 days, so the replenishment cycle is `10 + 7 = 17` days
- Expected cycle demand for those 17 days, shown as **Forecast**: 100.8 units
- **Order up to:** 140 units

1. Optiply rounds the expected cycle demand down to **100 units**.
2. Optiply subtracts it from **Order up to**: `140 − 100 = 40`.
3. **Safety stock** is **40 units**. These 40 units are already part of the 140 units: you would not order 140 plus another 40 units.

The 100.8 units and the 140 units of **Order up to** are inputs to this example. The 17 days alone do not give 100.8 units, and 140 is not a value calculated from the forecast alone.

Now **Order up to** is 95 units instead of 140, with the same 100.8 units of expected cycle demand: `95 − 100 = −5`. A signed calculation shows **−5 units**, while a zero-floor calculation shows **0**. A negative safety stock is a planning figure: your physical stock stays as it is.

Open the hose under **Products** and go to the **Supply chain** section on the **Product** tab. Read **Safety stock** next to **Forecast** and **Order up to** before you review the purchase advice.

## Where to find safety stock in Optiply

Safety stock appears in Optiply in the purchase advice breakdown in the product's **Supply chain** section. It also appears in the purchase advice breakdown of a purchase order line, under **Original advised quantity**. In both places, **Safety stock** is read-only. It also shows as a column in the proposed and concept purchase order tables.

### Safety stock on the product page

Before you look: in Optiply Lite, **Safety stock** and **Forecast** show a blocked-feature indicator in the **Supply chain** section instead of a value.

1. Open **Products** and open the product.
2. On the **Product** tab, go to the **Supply chain** section.
3. Read **Forecast**, **Safety stock** and **Order up to** in the purchase advice breakdown.

In the product side panel, the same information is on the **Supply chain** tab.

### Safety stock in a purchase order line

1. Open **Purchase** and open the order or draft.
2. Click the quantity of an order line.
3. Under **Original advised quantity**, read **Forecast**, **Safety stock** and **Order up to** for that line.

### What changes the safety stock value you see

What you see in the purchase advice breakdown depends on the product:

- When planning values are missing, the row shows a dash (`–`). A dash means missing, not zero: do not replace it with zero to force a calculation of your own.
- Assembly configuration also affects which product values are shown.

### Buffer stock, Unrealized sales and Covered by incoming next to safety stock

When unrealized-sales support is enabled, the product's purchase advice breakdown also includes **Buffer stock**, **Unrealized sales** and **Covered by incoming** next to **Safety stock**. The unrealized-sales feature shows or hides these three rows together.

In this expanded breakdown:

`Buffer stock = Safety stock + Unrealized sales + rounded Covered by incoming`

Incoming coverage contributes to this buffer only when time-dependent stock position is enabled for your account. Otherwise, that contribution is zero. A missing incoming-coverage input also contributes zero to this calculation, rather than making every missing planning value zero.

Support can confirm which breakdown your account uses. Read these as components of the calculated target, not an extra buffer to add to **Order up to**.

**Covered by incoming** is the demand that incoming deliveries serve in the applicable replenishment period. The full quantity on your open orders is a separate figure. Read the related Covered by incoming guide before you compare it with your open orders.

## How to change safety stock in Optiply

Optiply calculates safety stock, so you change it through its inputs rather than by editing the **Safety stock** value.

### Check these inputs when safety stock looks unexpected

If safety stock looks unexpected, review these for the product:

- demand and stockout history
- forecast and seasonality
- supplier and product lead time
- reorder period
- service-level target
- manual stock constraints: the **Minimum stock level** and **Maximum stock level** you set on the product

Before you change anything, check the product and supplier state and the selected order moment.

### What a service-level change does to safety stock

The desired service level is an input to the target that contains safety stock, so a service-level change can change **Safety stock**. Changing the service-level target is a planning decision: it does not promise a fixed or proportional change in the displayed **Safety stock**. A service-level change is queued at once and is usually processed close to real time, but with many products it can take minutes to hours. Compare the new purchase advice after the relevant planning update.

The **desired service level** is a target used in planning. The **actual service level** measures achieved stock availability. Both are percentages, while safety stock is a quantity in stock units.

To review the target, use the route your account provides:

- **Settings > Desired service levels** when the service-level simulator is enabled.
- Otherwise, the desired service-level fields in **Settings > ABC classification** or **ABC-XYZ classification**.
- The product's **Product Settings > Manual service level**, when available. A manual product target takes precedence over category targets. Lite blocks this field, and permissions or product state can prevent editing.

![Desired service levels for categories A, B and C, showing 98, 95 and 90](/screenshots/safety-stock/category-service-targets.png)

These are category targets, not safety-stock quantities. Follow the related Service levels guide for the relevant procedure before you save a change.

Ask Support to confirm the target used for the product and the recalculated safety stock before recommending an adjustment. A percentage change alone cannot tell you how many units the buffer will change.

### Why a one-piece order is not necessarily safety stock

A proposed order of 1 piece with zero free stock does not show that the piece is safety stock. **Safety stock** and the advised order quantity are separate fields.

The base replenishment quantity is **Order up to** minus the applicable stock position, with a minimum of zero. Stock position can include incoming stock. MOQ, lot size and other purchasing constraints can then change the final quantity.

Compare the row's **Order up to**, **Safety stock**, stock position, incoming stock, MOQ and lot size before changing a setting.

### Check manual minimum and maximum stock separately

**Minimum stock level** is a separate setting from calculated safety stock. When stock position is below this minimum, it can raise advice to close the gap. **Maximum stock level** can cap the quantity, or stop advice when stock position already meets that maximum.

For one product, open **Products > the product > Product Settings** and select **Edit** to change **Minimum stock level**. Editing requires the appropriate permissions. Ignored products and assembled products without assembly support cannot use these settings. Wait until loading finishes. **Maximum stock level** also requires the product maximum-stock feature.

Optiply uses the minimum stored on the product for planning. Supplier MOQ and lot size are separate purchasing constraints. This does not identify which field, if any, your ERP or warehouse system supplies.

For several products, ask Support to confirm the supported bulk-import route and template before you prepare changes. Also confirm which system owns the minimum and whether synchronization can overwrite it. Do not assume an Optiply edit preserves or changes an ERP value.

Lead time and demand alone do not give a recommended manual minimum for a product. Review the service target, demand variability, replenishment cycle and current constraints before choosing one.

If advice looks high, compare the actual row values and the product's category or manual service target. Ask Support to trace which inputs affected that recommendation. Do not lower a target or minimum solely because the resulting advice looks similar to it.

### If safety stock shows a dash

If **Safety stock** shows a dash (`–`), check these yourself first:

- Let the page finish loading, then check which active supplier the **Supply chain** section shows.
- Check whether an assembled-product warning applies to the product.
- Check that you see a dash and not the Optiply Lite blocked-feature indicator.

A **Minimum stock level** does not replace a missing safety stock.

If **Safety stock** still shows a dash, or the purchase advice breakdown values look inconsistent after these checks, contact Support. Send the product, the supplier, the order moment and the purchase advice breakdown as Optiply displays it.

## How safety stock differs from the forecast, manual stock constraints, Buffer stock and service-level targets

- **Safety stock and the forecast.** The **Forecast** describes expected demand. Safety stock is the buffer alongside it inside **Order up to**, not another forecast to add twice.
- **Safety stock and manual stock constraints.** Optiply calculates safety stock. A manual stock constraint is a separate product setting that you enter, and it can also affect the final purchase advice.
- **Safety stock and Buffer stock.** Safety stock is the calculated protection component. The expanded **Buffer stock** also includes unrealized sales and, with time-dependent stock position enabled, rounded incoming coverage. Both describe the target's breakdown, not quantities to add to it again.
- **A service-level target and the result.** A service-level target is the availability you aim for, without a guaranteed result.

## Questions customers ask about safety stock

### Why do I have a negative safety stock? / How is it possible that safety stock can drop below zero?

When **Order up to** is below the rounded expected cycle demand, the difference is negative. Some configurations display that signed difference, while others show 0; Support can check which calculation your webshop uses.

### Why is the safety stock of my product so high / higher than the forecast? There is a forecast of 6 and a safety stock of 10

Forecast is expected demand, while safety stock is protection included in the target, so the two quantities can differ and safety stock can exceed the forecast. Compare the same product, supplier, order moment and demand period; Support needs the applicable service target and planning inputs to explain a specific item's values.

### What is the safety stock based on? / How does Optiply calculate the safety stock? / What is the buffer stock formula?

Optiply calculates the target using desired service level, demand and its variability, lead time and reorder period; the displayed safety-stock component is the applicable **Order up to** minus expected cycle demand rounded down to whole units. The expanded **Buffer stock** can also include unrealized sales and rounded **Covered by incoming**, when the applicable features are enabled.

### Who determines the safety stock and can it be adjusted?

Optiply calculates safety stock from planning inputs rather than letting you edit the **Safety stock** value directly. Review the service-level target and other inputs that affect it, such as demand, lead time and reorder period.

### how can i manage how optiply handles safety stock? a lot of the proposed orders has purchasing of 1 pcs which I would guess is safety stock when free stock is 0

A one-piece proposed order does not show that the piece is safety stock: safety stock and advised order quantity are separate fields. The base replenishment quantity is **Order up to** minus stock position, with a minimum of zero, and MOQ, lot size and other purchasing constraints can change the final quantity.

## Related articles on stock targets and purchase advice

- [Covered by incoming](/article/covered-by-incoming)
- [Manual stock constraints](/article/manual-stock-constraints)
- [Service levels: targets, availability and simulations](/article/service-levels)
