Free Tool
Safety Stock Calculator
Calculate how much buffer inventory your store needs to avoid stockouts. Uses the standard safety stock formula at 95% service level.
Researched by the ShelfMerge Research Team
Typical units sold per day
Peak units sold on your busiest day
Days from order to stock received
Slowest a supplier has ever delivered
What is safety stock?
Safety stock is the inventory buffer you hold on top of expected demand to handle variability. Both demand and supply vary — customers buy more than expected some weeks, suppliers deliver late. Safety stock is your insurance against both types of uncertainty happening at the same time.
For a Shopify store, a stockout is expensive in ways that don't show up immediately. You lose the direct sale. Shopify search ranking for the product drops. Customers who find "out of stock" often don't come back — they find a competitor. Paid traffic keeps driving clicks to a product that can't convert. The cost of a stockout is almost always higher than the cost of carrying a small buffer.
The safety stock formula explained
The formula used here is the industry-standard approach: Safety Stock = Z × √(Lead Time) × Sales Standard Deviation. The Z-score of 1.645 corresponds to a 95% service level — meaning you will have enough stock 95% of the time under normal variability.
The square root of lead time reflects that uncertainty compounds but not linearly. If your lead time doubles, your safety stock need does not double — it grows by the square root of 2 (about 41%). This matches real-world inventory behavior where longer lead times require more buffer, but with diminishing marginal additions.
Sales variance in this calculator is approximated as the difference between your maximum and average daily sales. A product that averages 15 units/day but peaks at 30 has a variance of 15 — a high-demand spike relative to baseline. That product needs more safety stock than one with minimal variability.
Reorder point: the trigger for action
The reorder point tells you when to act, not just how much to hold. It combines your expected demand during lead time (average daily sales × average lead time) with your safety stock buffer. When inventory hits this level, you have exactly enough stock to cover normal sales through the replenishment window, with safety stock as the floor.
For example: a product with 15 average daily sales and 14-day lead time needs 210 units just to cover expected demand during replenishment. Add safety stock on top and your reorder point might be 240 units. If you wait until 50 units remain, you will stockout before the order arrives on average lead-time.
How ShelfMerge automates this
Running this calculation manually for 50 or 500 products is not practical. ShelfMerge pulls your Shopify order history and calculates sales velocity, variance, and lead time estimates for every product automatically — then surfaces restock alerts when inventory hits the reorder point. You see which products need ordering today, not after you've already stocked out.
Common questions about safety stock
How to use this safety stock tool
Install and connect
OAuth takes 30 seconds. ShelfMerge requests read_products and read_orders scopes — nothing more. No credit card required to get your first health score.
Five engines run in parallel
ShelfMerge syncs your order history and product catalog, then runs five analysis engines. Your first health score appears in under 60 seconds.
Act on what you find
See which products are dead weight, which variants to cut, and which products are stealing each other's sales. Act on insights or let ShelfMerge alert you weekly.
Common questions about safety stock
What does the health score measure?
The health score is a weighted 0–100 number built from five signals: dead inventory percentage, products missing images, dead variants (zero sales), duplicate product count, and cannibalization severity. A score above 80 is healthy. Below 60 means real revenue is leaking somewhere in your catalog.
How does dead inventory detection work?
ShelfMerge analyzes sales velocity, days since last sale, and current inventory levels for every product. Each product is classified as thriving, slowing, dying, or dead. The dead inventory report shows the total dollar value tied up in stock that hasn't moved.
What is product cannibalization?
Cannibalization happens when two products in your catalog compete for the same buyer — one gets a sale and the other loses one. ShelfMerge detects this using Pearson correlation on weekly sales data. A high negative correlation between two products is a strong cannibalization signal.
Will ShelfMerge delete my products?
No. ShelfMerge is advisory only. Every insight is a recommendation, not an automated action. The Cleanup tab lets you merge duplicate products with a full undo option, but nothing is ever auto-deleted or archived without your explicit confirmation.
Never calculate safety stock manually again
ShelfMerge connects directly to your Shopify store and runs this analysis automatically — across your entire catalog, updated daily.
Free plan — no credit card required.