Enter your demand data
Input average daily demand and its standard deviation. If you have 90 days of sales history, use the mean and standard deviation of that series. The more data you have, the more accurate the result.
Safety stock, reorder point, and holding cost for any service level target.
Updated Reviewed by Sajid HussainΒ· Editor
Results update in real time as you type β no submit needed.
Your numbers
Results
Results appear as you type
No submit button needed
Why trust this calculator
Last updated
June 3, 2026
Coverage
9 markets Β· 8 currencies
Privacy
Calculated in-browser Β· no data stored
Pricing
Free forever Β· no sign-up
Safety stock is the cushion of inventory you hold on top of your average needs. When a supplier delivers late or a customer order comes in larger than expected, safety stock is what keeps you from going out of stock. Without it, even a single bad week can translate into lost sales, unhappy customers, and costly emergency shipments.
The right amount of safety stock is not a guess or a rule of thumb β it is a calculation based on how much your demand and lead time actually vary, and how often you are willing to risk a stockout. This calculator uses the statistically correct combined formula that accounts for both sources of variability simultaneously.
Too little safety stock and you stockout. Too much and you tie up cash in slow-moving inventory with a real holding cost attached. The goal is to find the minimum buffer that meets your service level target β and this tool shows you exactly what that number is, along with the annual cost of carrying it.
Quick facts
Input average daily demand and its standard deviation. If you have 90 days of sales history, use the mean and standard deviation of that series. The more data you have, the more accurate the result.
Enter the average number of days from order to receipt, and how much that varies. Check your last 20β30 purchase orders to find a realistic standard deviation β many teams discover lead time variability is the bigger risk.
Select how often you want to avoid a stockout during a replenishment cycle. 95% means you will have stock available 95% of the time. The higher the target, the more safety stock required β the calculator shows you the exact trade-off.
The calculator returns your safety stock quantity, reorder point, annual holding cost, and days of coverage. Use the reorder point as your trigger level in your ERP or inventory system, and review it when demand patterns change.
Steps to use the Safety Stock Calculator: Enter your demand data, Enter your lead time data, Choose your service level, Read your results.
This is the statistically correct formula accounting for both demand and lead time variability. Z is the service-level z-score, LT is average lead time, Οd is standard deviation of daily demand, ΞΌd is average daily demand, and ΟLT is standard deviation of lead time.
Example: Z=1.645, LT=7, Οd=15, ΞΌd=100, ΟLT=1.5 β β(7Γ225 + 10000Γ2.25) = β24075 β 155.2 β ceil(1.645 Γ 155.2) = 256 units
If your supplier always delivers on exactly the same day (ΟLT = 0), the formula simplifies to this. It only accounts for demand variability spread over the lead time. Most real scenarios have some lead time variability, so the combined formula is more accurate.
Example: Z=1.645, Οd=15, LT=7 β 1.645 Γ 15 Γ β7 = 1.645 Γ 39.69 β 65.3 β ceil = 66 units
The reorder point is the stock level at which you trigger a new purchase order. Cycle stock (ΞΌd Γ LT) is the average demand during the lead time. Safety stock sits on top of it as the buffer.
Example: (100 Γ 7) + 256 = 700 + 256 = 956 units
The financial cost of carrying your safety stock for one year. Holding cost rate covers capital cost, storage, insurance, and obsolescence β typically 20β30% of unit cost for manufactured goods.
Example: 256 units Γ 25 (unit cost) Γ 25% = 1,600/year
Scenario
A warehouse item has average daily demand of 100 units (Οd = 15), average lead time of 7 days (ΟLT = 1.5 days), a 95% service level target, unit cost of 25, and a 25% annual holding cost rate.
95% service level β Z = 1.645. Variance = LT Γ ΟdΒ² + ΞΌdΒ² Γ ΟLTΒ² = 7 Γ 225 + 10,000 Γ 2.25 = 24075. Combined StdDev = β24075 = 155.2.
Z = 1.645, StdDev = 155.2
Safety Stock = ceil(1.645 Γ 155.2) = ceil(255.24) = 256 units
Safety Stock = 256 units
Cycle Stock = ceil(100 Γ 7) = 700 units. ROP = 700 + 256 = 956 units
Reorder Point = 956 units
256 units Γ 25 (unit cost) Γ 25% = $1,600.00/year
Holding Cost = $1,600.00/year
The takeaway
Set your reorder point at 956 units. When stock hits this level, place a new order. The 256-unit safety stock costs $1,600.00 per year to carry β that is your insurance premium against stockouts at 95% service level.
| Metric | Poor | Average | Good | Excellent |
|---|---|---|---|---|
| Service Level | 90% β basic commodity | 95% β standard stock | 97.5β99% β important parts | 99.9% β safety-critical |
| Stockout risk per cycle | 10% | 5% | 0.5β1% | 0.1% |
| Typical use case | Low-cost, easy-to-source items | Most consumer goods & MRO | Key production components | Medical, aerospace, safety parts |
| Holding cost premium vs 90% | Baseline | +28% more stock | +53β81% more stock | +141% more stock |
| Feature | Calcrux (Free) | Simple MaxβMin Rule | ERP Safety Stock Module |
|---|---|---|---|
| Combined demand + lead time variability | |||
| Service-level z-score selection | |||
| Annual holding cost calculation | Varies | ||
| Days of coverage output | Varies | ||
| Warnings for over-stocking or high risk | |||
| No data entry or licence required | |||
| Cost | Free | Free | 500β5,000 per year |
Why it matters
If your supplier sometimes takes 5 days and sometimes 9, using only the 7-day average ignores the risk in that 2-day swing. The combined formula captures this explicitly.
Fix
Measure the standard deviation of your last 20β30 lead times and enter it in the lead time standard deviation field.
Why it matters
A 99% service level on a low-cost, easy-to-source item wastes capital. A 90% level on a critical spare part that halts your production line is dangerous.
Fix
Segment your SKUs by criticality and cost. Reserve 99%+ for parts where a stockout causes disproportionate harm, and use 90β95% for standard items.
Why it matters
Safety stock calculated on last year's demand distribution does not protect you when demand doubles in Q4 or a new product launch spikes volume.
Fix
Review and recalculate safety stock at least quarterly, or whenever you see a step-change in demand or a supplier performance shift.
Why it matters
The max-minus-average rule is easy but statistically wrong β it treats the historical maximum as a guaranteed future event and usually over-stocks without addressing the real probability distribution.
Fix
Use the standard deviation of actual demand, which correctly weights all historical observations and maps to a specific service level probability.
Why it matters
Safety stock has a real annual cost in tied-up capital, storage, and insurance. Treating it as "free" leads to over-buffering and disguises poor supplier performance.
Fix
Use this calculator's annual holding cost output to make the trade-off visible: the cost of holding X units vs the cost of occasional stockouts.
For most supply chains, reducing lead time variability cuts safety stock requirements more than any demand-smoothing effort. Run the calculator with ΟLT = 0 to see the potential saving from more reliable suppliers.
Monthly aggregates hide the day-to-day swings that drive safety stock. If you only have monthly data, multiply the monthly standard deviation by β(1/30) to approximate a daily figure, but invest in daily tracking.
When a supplier's on-time delivery rate drops, their lead time standard deviation rises β and so should your safety stock. Automate the recalculation by connecting supplier performance data to your reorder-point logic.
Some teams set a single reorder-point number without splitting it into its components. Keeping cycle stock and safety stock as separate fields makes it easy to see which component changes when demand or lead time shifts.
Replay the last 12 months and count how many replenishment cycles would have ended in a stockout. If your actual stockout rate is worse than your target service level, your demand or lead time data needs updating.
The Safety Stock Calculator works across every stage of the workflow.
Set statistically sound reorder points for hundreds of SKUs, segmenting by service level tier β critical components at 99%, standard MRO at 95%, commodity consumables at 90%.
Determine the minimum buffer stock needed for key raw materials so the production line never stops waiting for parts, without over-investing in slow-moving inventory.
Calculate safety stock for best-selling SKUs before a peak season, using the past 90 days of sales and the lead times from each supplier to avoid stockouts during the highest-margin period of the year.
Quantify the holding-cost impact of working with a less reliable supplier so they can make a data-backed case for switching to a more consistent source or negotiating better delivery SLAs.
Run a quick inventory health check for a new client β gather demand and lead time stats, calculate safety stock, compare to what they actually hold, and show where they are over- or under-stocked and at what annual cost.
Every important term you'll encounter in this calculator and the broader topic.
Everything you need to know about how the Safety Stock Calculator works.
Safety stock is extra inventory held above your average needs to protect against demand spikes and supplier delays. It acts as a buffer so you can keep filling orders even when things do not go to plan.
The combined formula is: Safety Stock = Z Γ β(LT Γ ΟdΒ² + ΞΌdΒ² Γ ΟLTΒ²), where Z is the service-level z-score, LT is average lead time, Οd is daily demand standard deviation, ΞΌd is average daily demand, and ΟLT is lead time standard deviation.
For standard consumer goods, 95% is a common starting point. Use 99% or higher for critical spare parts, medical supplies, or any item where a stockout causes significant cost or customer harm. Commodity items can run at 90%.
Safety stock is the buffer above your cycle stock. The reorder point is the stock level that triggers a new order β it equals cycle stock (demand during lead time) plus safety stock. Safety stock is a component of the reorder point.
You need average daily demand, its standard deviation, average lead time in days, lead time standard deviation, your target service level, unit cost, and an annual holding cost rate (typically 20β30% of unit cost).
Lead time variability is often the bigger driver of safety stock than demand variability. If your supplier delivers in 5β9 days instead of a consistent 7, that 2-day swing multiplied by daily demand creates significant exposure that safety stock must cover.
Annual holding cost = Safety Stock Γ Unit Cost Γ Holding Cost Rate. If you hold 256 units at 25 per unit with a 25% holding rate, the holding cost is 1,600 per year β the cost of your stockout insurance.
Calculate safety stock separately for each season using that period's average and standard deviation. A single annual figure will over-stock in slow seasons and under-stock in peak periods. Review and update at least quarterly.
Yes β completely free, no sign-up required, and runs entirely in your browser. The formula applies to any industry and currency worldwide. Enter unit cost in your local currency and the annual holding cost converts automatically.
The formula assumes demand and lead time follow a normal distribution. It calculates safety stock for one SKU at a time and does not model multi-echelon supply chains or correlated demand across SKUs. Review the results for items with highly irregular or seasonal demand.
Keep exploring
Theoretical, effective, and net capacity β for machines, shifts, and efficiency.
Availability, performance, quality, and the Six Big Losses β in one view.
Set your production pace: takt time, required output rate, and line status.
Category
Manufacturing & ERP Operations
Subcategory
inventory procurement
Availability
Global Β· 9 markets
Price
Free forever
Topics
Calculators, simulators, and decision tools for every stage of business operations.
Your honest feedback shapes what we build next. Takes 30 seconds, fully anonymous β we don't ask for your name or email.