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

1

Install from the Shopify App Store

OAuth takes 30 seconds. ShelfMerge requests read_products and write_products scopes — nothing more. No credit card for the Free plan.

2

Run your first scan

ShelfMerge pulls your full product catalog and runs all three detection layers simultaneously. A 2,000-product store scans in under 8 seconds.

3

Review duplicates, merge in bulk

Duplicates are grouped by confidence score. Select a group, pick the primary product, click Merge. The duplicate is archived and variants consolidated. Click Undo at any time.

Common questions about safety stock

Will ShelfMerge permanently delete my products?

No. ShelfMerge archives the duplicate product — it moves to Archived status in your Shopify admin and remains fully recoverable. Before any merge, ShelfMerge creates a complete snapshot of both products. You can restore to the exact pre-merge state from the Merge History tab at any time.

How does fuzzy title matching work without creating false positives?

We use Levenshtein distance with a configurable threshold (default 85% similarity). Every match is assigned a confidence score from 0-100%. Matches above 95% are "High confidence". Matches below 70% are flagged "Review needed". You always see the score before deciding to merge.

Does ShelfMerge work with stores that have thousands of products?

Yes. We use cursor-based pagination against the Shopify Admin API with a built-in rate limiter (2 req/s, burst 40). A 10,000-product store scans in under 60 seconds. The Agency plan is tested against catalogs up to 50,000 products.

What happens to variant inventory when I merge products?

Variants from the duplicate are consolidated onto the primary product. Inventory quantities are summed. Pricing, weight, and fulfillment settings from the primary product take precedence. The merge preview shows exactly which variant data will change before you confirm.

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.