SmartShelfKart

Free tool

Safety stock calculator

Safety stock is the buffer that absorbs the weeks when demand spikes and the supplier is late at the same time. This works it out properly — from your variability and your chosen service level, not a flat "two weeks of cover".

—

    Everything is calculated in your browser. Nothing you type on this page is sent to a server, stored, or logged.

    What safety stock is actually for

    If demand were perfectly steady and suppliers perfectly punctual, safety stock would be zero: you would order exactly lead time demand and it would arrive exactly as you ran out. Safety stock exists because neither of those is true, and it is sized by how untrue they are — not by how nervous you feel.

    Safety stock = Z × √( L × σd² + d² × σL² )

    Two terms, two risks. L × σd² is demand bouncing around over a lead time of L days. d² × σL² is the supplier being late while you carry on selling at rate d. They are added as variances, then square-rooted, because they are independent — both going wrong at once is possible but not the common case, and sizing for it would be needlessly expensive.

    Which risk is actually costing you?

    The calculator above splits the two, and the split is usually the most actionable output on this page. In the default example, roughly three quarters of the variance comes from lead-time unreliability rather than demand. That tells you where the fix is: a conversation with the supplier, or a second supplier, will cut your inventory investment far more than any amount of demand forecasting.

    If the split runs the other way and demand variability dominates, the lever is different — smoothing demand through better promotion planning, or accepting the buffer as a cost of doing business in that category.

    The Z-score table

    Service levelZStockouts per 20 cyclesBuffer vs. 95%
    80%0.844−49%
    85%1.043−37%
    90%1.282−22%
    95%1.651baseline
    97%1.88~0.6+14%
    98%2.05~0.4+25%
    99%2.33~0.2+41%
    99.9%3.09~0.02+88%

    Read the last column before choosing. Going from 95% to 99.9% eliminates roughly one stockout in twenty cycles and costs you 88% more buffer stock, permanently. For most products that is a bad trade; for a hospital consumable it is obviously the right one. The decision is per-product, which is precisely what ABC analysis is for.

    Why "two weeks of cover" costs you twice

    The flat-cover rule is popular because it is easy, and wrong in both directions at once. On a steady, reliably supplied product it holds far more stock than the risk justifies — cash sitting idle. On a volatile product with a flaky supplier it holds far too little, and you stock out anyway despite carrying the buffer. You pay for insurance you did not need and remain uninsured where you did.

    Costing the decision

    The calculator prices the buffer at your unit cost so the trade-off is visible in money rather than units. Multiply that figure across the catalogue and safety stock stops being an abstract policy and becomes a line item — typically one of the larger ones a small business is carrying without ever having decided to.

    Turning it into a working number

    Safety stock on its own is not operational; it becomes operational as part of a reorder point, which is the level a system can actually watch. In SmartShelfKart that lives on the product as its low-stock threshold, monitored against live stock.

    Questions

    What is the safety stock formula?

    Safety stock = Z × √(L × σd² + d² × σL²), where Z is the service-level factor, L is average lead time, σd is the standard deviation of daily demand, d is average daily demand and σL is the standard deviation of lead time.

    Is "two weeks of stock" a good rule?

    No. It ignores how variable the product and the supplier actually are, so it simultaneously over-stocks steady lines and under-stocks volatile ones. You pay for a buffer you did not need on one product and stock out on another despite carrying one.

    What Z-score corresponds to a 95% service level?

    1.65. Common values are 1.28 for 90%, 1.65 for 95%, 2.05 for 98%, 2.33 for 99% and 3.09 for 99.9%.

    Can safety stock be zero?

    Mathematically yes, when both demand and lead time are perfectly stable. In practice a zero buffer means you stock out roughly half the time, since demand exceeds its own average about half the time.

    Should safety stock be the same for every product?

    No. It scales with each product's own variability and the service level you choose for it, so it is necessarily per-product. Use ABC analysis to decide which products deserve a high service level.

    Stop recalculating this by hand every month

    SmartShelfKart keeps a reorder point on every product and watches it against live stock, so the number you just worked out becomes an alert instead of a spreadsheet you forget to update.