Talk to a CFO
Eightx Talk to a CFO
← All Insights

eCommerce

Safety Stock Is Expensive Insurance: The Formula

·By Matt Putra, Managing Partner ·16 min read

Safety stock is calculated as SS = Z x the square root of (average lead time x demand variance + average demand squared x lead-time variance), where Z is the z-score for your target service level (1.65 for 95%). Carrying that buffer costs 20-30% of its value per year, and lead-time variability usually drives the cost more than demand variability because it is multiplied by average demand squared.

Safety Stock Is Expensive Insurance: The Formula

Key Takeaways

  • The combined safety-stock formula is SS = Z x sqrt(lead time x demand variance + demand squared x lead-time variance), the same formula MIT's supply chain program and the 2003 Chopra-Reinhardt-Dada paper use, and that almost no DTC operator actually runs.
  • Carrying that buffer costs 20-30% of its value every year (25% is the standard planning assumption): 8-15% cost of capital, 2-6% storage, 1-3% insurance and tax, 1-5% shrinkage and obsolescence.
  • Lead-time variability usually drives the cost more than demand variability, because it's multiplied by average demand squared in the formula. Fixing your supplier beats fixing your forecast, and that is what to watch next.
  • 71% of SMB manufacturers raised safety-stock targets in 2025 in response to tariff uncertainty, and one WMS vendor logged a 228% surge in days-of-inventory-on-hand across its ecommerce customer base in two months.
  • YETI cut inventory days from a 172-day FY2023 peak to 133 in FY2025, a 39-day, 23% reduction, freeing an estimated $84M in working capital while revenue grew 13%.

In May 2025, warehouse-management-software vendor Deposco reported a 228% surge in days-of-inventory-on-hand across its ecommerce customer base, and what most operators should watch next is the bill for it. They front-loaded orders between February and April ahead of new US tariffs, and a Netstock survey the same month found 71% of SMB manufacturers raising their safety-stock targets in response. The buffer-building is rational, but it is expensive, because safety stock is not free insurance. Most operators never run the math on what that coverage actually costs.

When we talk through inventory sizing with founders, the explanation starts the same way every time: you begin at zero, and the entire reason you carry a safety stock is so that if you break through it during a reorder cycle, you're covered. That's the intuition almost every operator has. What almost nobody does is run the actual math on how much that coverage should cost.

Safety stock is inventory sitting on a shelf earning nothing while carrying 20-30% of its value a year in capital, storage, insurance, and shrinkage cost, and most operators size it by adding "a few extra weeks" and hoping. The formula that should size it instead, Z-score times the combined variance of demand and lead time, is well established in the supply-chain literature. Almost no DTC brand runs it. This post walks through that formula, gives you a calculator that turns your own numbers into a right-sized buffer and its dollar cost, and shows the one counter-intuitive finding buried in the academic research that most operators never hear: fixing your supplier's lead-time reliability shrinks required safety stock more than fixing your demand forecast, dollar for dollar of effort.

The safety-stock formula operators actually need

The formula supply-chain academics and MIT's Center for Transportation & Logistics teach is:

SS = Z x sqrt(L̄ x sigma_D2 + D̄2 x sigma_L2)

Where Z is the z-score for your target cycle service level, L̄ is your average supplier lead time, sigma_D is the standard deviation of your daily demand, D̄ is your average daily demand, and sigma_L is the standard deviation of your lead time. This is the formula Peter L. King laid out in "Safety Stock 101" (APICS Magazine, 2011) and that Chopra, Reinhardt and Dada derived and validated against simpler approximations back in 2003. It is the formula the calculator below is built on, and it is the one worth learning even if you never do the arithmetic by hand again after today.

Here's what the formula looks like on a real SKU. Say you sell 150 units a day on average, with a standard deviation of 40 units. Your supplier's lead time averages 21 days, with a standard deviation of 6 days. At a 95% service level (Z = 1.65), the combined formula returns a safety stock of roughly 1,515 units. At $18 landed cost per unit, that's about $27,300 tied up in cash, costing roughly $6,800 a year to carry at a 25% rate. Your reorder point, the stock level at which you place your next order, works out to about 4,665 units: your expected demand during the lead time (150 x 21 = 3,150) plus the safety stock.

Push that same SKU to a 99% service level and the safety stock jumps to about 2,140 units, an extra $11,200 in tied-up cash and roughly $2,800 more a year in carrying cost, just to shave your stockout odds from 1-in-20 to 1-in-100. That acceleration, not the formula itself, is the real lesson: each step up in service level buys a shrinking amount of extra revenue protection for a growing amount of cash.

Cycle service levelZ-score
84%1.00
90%1.28
95%1.65
97%1.88
98%2.05
99%2.33
99.9%3.09
Source: Peter L. King, "Safety Stock 101," APICS Magazine (2011), hosted by MIT Center for Transportation & Logistics.

Why "a few extra weeks" is expensive insurance

The reason the formula matters is that carrying safety stock is not free, and most operators price it as if it were. The standard planning assumption is that inventory costs 20-30% of its value per year to hold, with 25% a reasonable default when you fully load every component. That breaks down roughly into cost of capital (8-15%, usually the largest single bucket), storage and warehousing (2-6%), insurance and tax (1-3%), and shrinkage and obsolescence (1-5%).

ComponentTypical annual cost (% of inventory value)
Capital / opportunity cost8-15%
Storage / warehousing2-6%
Insurance & tax1-3%
Shrinkage & obsolescence1-5%
Total (typical range)20-30%
Source: NetSuite; APQC (via Fishbowl Inventory); Eightx inventory carrying-cost benchmark synthesis. See our inventory carrying-cost benchmarks by vertical for category detail.

And both halves of that cost have gotten more expensive since 2019, which is exactly the wrong direction if you're building bigger buffers. The producer price index for warehousing and storage is up 63% since 2019, and the bank prime loan rate spent 2023-2025 running well above its pre-pandemic level.

That combination means the same physical buffer you held in 2019 costs meaningfully more to warehouse and meaningfully more to finance today. When we've reviewed a brand's balance sheet and found inventory running high, the read is usually blunt: on one recent review, the first thing that stood out was an inventory balance sitting at roughly 250 days, which is far above what the business needed. Our recommendation in that case was something closer to 3 to 4 months of inventory at the outside, not because the extra buffer was worthless, but because at today's carrying-cost rates it was quietly eating margin every month it sat there.

The lever that matters more: fix your supplier before you fix your forecast

Here is the finding from the academic literature that almost never makes it into an operator's inventory playbook. In the combined formula, lead-time variance (sigma_L) is multiplied by your average demand squared (D̄2), while demand variance (sigma_D) is only multiplied by your average lead time (L̄). Because demand squared is almost always a much bigger multiplier than lead time alone, a given percentage reduction in lead-time variability shrinks your required safety stock far more than the same percentage improvement in demand forecasting.

Run the numbers on an illustrative SKU selling 300 units a day (standard deviation 50) with a 10-day average lead time (standard deviation 2 days) at a 99% service level: the lead-time-variance term alone contributes roughly 1,400 units of the safety stock, versus roughly 370 units from the demand-variance term, even though both standard deviations are proportionally similar relative to their averages. Lead time is doing almost four times the work.

In practice, that means dual-sourcing a key input, nearshoring a supplier, or simply negotiating a tighter, more reliable production and shipping window does more for your cash position than another quarter spent tuning your demand forecast. This shows up constantly in real supplier conversations. In one, the lead time under discussion was blunt: "two months on production, lead time seems a bit high," with the alternative on the table being air freight, which fixes the timing problem but comes at a real margin cost, "gross margin would go from 85 to 75 or 80." That's the actual tradeoff behind the formula: faster, more reliable lead times either cost you a supplier relationship you have to rebuild, or a chunk of gross margin you have to eat, but they buy back more safety stock reduction than almost anything else you could do.

Tiering matters here too. The way we'd typically approach it: rank your SKUs by volume and margin into A, B, and C tiers. The Cs might stay on drop-ship. The Bs get maybe eight weeks of held inventory. The As, the ones actually driving revenue, get twelve. Blanket buffering across your whole catalog is how "a few extra weeks" turns into a working-capital problem; tiered buffering, sized with the formula, is how you protect the SKUs that matter without over-insuring the ones that don't.

What happened: tariffs sent buffer stock surging in 2025-2026

The buffer-building isn't hypothetical. It's a documented 2025-2026 fact. A Netstock survey found 71% of SMB manufacturers planned to increase safety-stock levels specifically in response to tariff uncertainty, and Deposco, a warehouse-management-software vendor, reported a 228% surge in days-of-inventory-on-hand across its ecommerce customer base between February and April 2025.

That is a rational response given the formula above. Tariff uncertainty doesn't just raise landed cost; it raises lead-time uncertainty, as suppliers reroute shipments, operators front-load orders ahead of rate changes, and customs processing times get less predictable. Every one of those factors widens sigma_L, and because sigma_L is multiplied by demand squared, even a modest widening of lead-time variance can justify a large jump in safety stock under the formula. The problem is that most operators aren't running the formula; they're pattern-matching to "buy more, just in case," which is how you end up holding buffer sized for a worse scenario than the one you're actually facing, at a carrying cost that's already elevated for reasons unrelated to tariffs.

Case study: how YETI freed roughly $84M by cutting 39 days of inventory

YETI Holdings gives a real, SEC-filed example of what unwinding excess safety stock looks like in dollars. Its days inventory outstanding (DIO, computed as inventory divided by cost of goods sold, times 365) peaked at 172 days in FY2023, the tail end of the post-pandemic overstock era across consumer brands, before falling to 133 days by FY2025.

That's a 39-day, 23% reduction, and it happened while revenue grew from $1.66B to $1.87B over the same window, meaning the cut came from genuine buffer discipline, not a shrinking business needing less inventory. Applying FY2025's cost of goods sold to the FY2023 inventory-days ratio implies YETI would be carrying roughly $374.8M in inventory today instead of the $290.6M it actually reports, a gap of about $84M in freed working capital. That's a derived comparison, not a metric YETI itself discloses, but it's a useful way to see what a 39-day cut is actually worth on a nine-figure revenue base.

Not every big inventory swing tells the same story, and it's worth being honest about that. Crocs' inventory jumped 121% in a single year, from $213.5M in 2021 to $471.6M in 2022, before settling back to $356.3M by 2024. Part of that spike reflects the February 2022 HEYDUDE acquisition adding inventory to the balance sheet outright, not pure safety-stock building, so treat it as a directional caution rather than a clean before-and-after. The lesson isn't "more inventory is always bad." It's that a big swing deserves the same question YETI's example answers cleanly: is this buffer sized against actual demand and lead-time variance, or is it just accumulating?

How much is too much for your category, and what to do this week

Every category has a rough "healthy ceiling" for inventory days, and plenty of real public comps run well past it.

CategoryHealthy ceiling (days)Real-world example (days)
Ambient food4526 (fast-turn median)
Apparel6070-91 (value apparel & footwear, public median)
Beauty & cosmetics75168-181 (e.l.f. Beauty ~181 days; Olaplex ~170 days)
Home goods90118 (home & furniture, public median)
Supplements10030-46 (top operators, 8-12 turns/yr)
Source: Eightx inventory-days benchmark, cross-referenced against public-company disclosures. See our full days-inventory-outstanding benchmark by vertical for the underlying methodology and more categories.

Beauty brands running 150-180+ days against a 75-day ceiling aren't holding twice the "necessary" safety stock by accident; they're holding it because nobody ran the formula against their real demand and lead-time variance, and the cost quietly compounds every quarter it goes unexamined. Supplements brands running under ceiling show the opposite is achievable: tight forecasting and shorter, more reliable production runs get you there.

The action list for this week, in order: run your own numbers through the calculator above for your two or three highest-revenue SKUs. Compare your current inventory days to your category's ceiling above (and to the fuller DTC working-capital playbook if you want the levers beyond inventory). Then price out the marginal cost of your current service-level target versus one step down: if you're running 99% on a SKU where a stockout costs you almost nothing, that's cash you can free up this quarter without touching revenue. If you'd rather have a fractional CFO run the A/B/C tiering and the supplier-negotiation math with you directly, that's exactly the kind of work we do SKU by SKU with clients.

Safety stock isn't free insurance sitting quietly on a balance sheet. It's a line item with a 20-30% annual premium, and the single biggest lever for shrinking that premium isn't a better sales forecast, it's a more reliable supplier.

Related reading. For the year-end count that verifies what's actually on the shelf, see the year-end inventory-count SOP.

Sources and methodology

The core formula comes from the academic supply-chain literature, not a vendor's simplified version. Peter L. King's "Safety Stock 101" (APICS Magazine, 2011, hosted by MIT's Center for Transportation & Logistics) and Chopra, Reinhardt and Dada's 2003 paper, "The Effect of Lead-Time Uncertainty on Safety Stocks", both derive and validate the combined Z-score formula used in the calculator above. Multiple inventory-software vendors publish restatements of the same underlying math; we went to the original derivations rather than a vendor's summary.

Warehousing and financing cost data comes from two public US government series. The BLS Producer Price Index for warehousing and storage (series PCU493110493110) and the FRED bank prime loan rate (series DPRIME) were pulled directly for the 2019-2026 window. December index values are used for year-over-year PPI comparisons; April 2026 is the latest available (preliminary) print.

The YETI and Crocs figures come from SEC filings, not issuer press releases. Inventory, cost of goods sold (computed as revenue minus gross profit where not separately disclosed), and revenue were pulled from 10-K and 10-Q filings via SEC EDGAR. Days inventory outstanding is a derived metric (inventory divided by COGS, times 365), not an issuer-stated figure, and should be treated as a close approximation rather than an exact number YETI or Crocs themselves publish.

The tariff-driven buffer-building figures are from industry survey and vendor telemetry, not government data. The 71% figure comes from Netstock's 2025 Tariff Impact Report; the 228% days-of-inventory-on-hand surge comes from Deposco, a warehouse-management-software vendor, drawn from its own ecommerce customer base over February to April 2025. Both are third-party industry reports, not primary government statistics, and should be read as directional rather than census-level.

Category ceiling figures blend Eightx's own benchmark work with public-company disclosures. Real-world category examples (e.l.f. Beauty, Olaplex, and category medians) are drawn from public financial statements; the "healthy ceiling" figures are Eightx's benchmark synthesis, not a single external authority, and are presented as directional guardrails rather than hard rules.

Frequently asked questions

what is the safety stock formula for ecommerce?

SS = Z x the square root of (average lead time x demand variance + average demand squared x lead-time variance). Z is the z-score for your target service level: 1.65 for 95%, 2.33 for 99%. This combined formula is what MIT's supply chain program teaches and what the 2003 Chopra-Reinhardt-Dada paper validated against simpler approximations.

how do you calculate safety stock using a z-score?

Pick a target service level (95% is a common default), look up its z-score, then multiply by the combined standard deviation of demand during your lead time. Our calculator above does the lookup and the math for you: enter your demand and lead-time numbers and it returns the units, the cash tied up, and the annual carrying cost.

what service level should i target for safety stock?

95% for most SKUs. Push to 98-99% only for your highest-margin, highest-velocity hero products, where a stockout genuinely costs you revenue and customers. Drop to 90% for long-tail SKUs where running out barely moves the needle. Each step up gets meaningfully more expensive, not linearly, which is the whole point of running the math instead of eyeballing it.

how much does it cost to carry extra inventory each year?

Plan on 20-30% of the inventory's value per year, with 25% a reasonable planning default. That splits roughly into 8-15% cost of capital (the largest single bucket), 2-6% storage and warehousing, 1-3% insurance and tax, and 1-5% shrinkage and obsolescence. $100K of safety stock costs $20K-$30K a year sitting on a shelf, whether or not it ever gets touched.

does lead time variability or demand variability matter more for safety stock?

Lead-time variability, and it is not close. In the combined formula, lead-time variance is multiplied by your average demand squared, while demand variance is only multiplied by average lead time. A given percentage improvement in supplier lead-time reliability (dual-sourcing, nearshoring, better forecasting commitments from your factory) shrinks required safety stock more than the same percentage improvement in your own demand forecast.

should i be holding more inventory because of tariffs?

A lot of operators already did: 71% of SMB manufacturers raised safety-stock targets in 2025 specifically in response to tariff uncertainty, and one WMS vendor logged a 228% surge in days-of-inventory-on-hand across its ecommerce customer base in two months. That is a rational response to genuinely longer, more uncertain lead times, but it is still expensive insurance. Run the formula before you decide how much extra to hold; don't just add a flat few weeks.

how do i calculate my reorder point?

Reorder point = (average demand x average lead time) + safety stock. It is the inventory level at which you should place your next purchase order, not a stock target. Our calculator computes it automatically alongside your safety-stock recommendation.

how do i know if my inventory days are too high for my category?

Compare your days inventory outstanding to a rough category ceiling: about 45 days for ambient food, 60 for apparel, 75 for beauty and cosmetics, 90 for home goods, 100 for supplements. Real public comps in beauty and broad-SKU apparel routinely run 150-180+ days, well above ceiling; that gap is largely excess safety stock, not operational necessity.

About the Author

Matt Putra, Managing Partner

Matt is the Managing Partner of Eightx, a fractional and interim CFO firm managing $650M+ in revenue across 35+ ecommerce, DTC, and CPG portfolio brands across the US, Canada, Australia, and the UK. A former PE investor with $500M+ deployed, Matt specializes in benchmark-driven financial leadership for apparel, beauty, food and beverage, and household brands.

Sitting on more buffer than you need?

Get a CFO to run the real numbers on your inventory

30-minute call. We'll size your safety stock SKU by SKU against your actual demand and lead-time data, not a rule of thumb.

Talk to a CFO