Back to Resources
Industry

Inventory Optimization: Models, Methods, and How Data Makes It Work

Saad Selim
May 4, 2026
11 min read

Inventory optimization is the practice of maintaining the right amount of stock at the right locations to meet customer demand while minimizing holding costs, stockouts, and waste. It balances two competing objectives: have enough inventory to never miss a sale, but not so much that capital is tied up in unsold goods.

The Cost of Getting Inventory Wrong

Too Much Inventory (Overstock)

  • Capital tied up that could be invested elsewhere
  • Warehousing costs (space, utilities, labor)
  • Obsolescence risk (products expire or become outdated)
  • Markdowns required to clear excess
  • Insurance and taxes on stored goods

Too Little Inventory (Stockout)

  • Lost sales (immediate revenue loss)
  • Lost customers (they go to competitors and may not return)
  • Emergency expediting costs (rush shipping, premium suppliers)
  • Production delays (downstream operations idle)
  • Damaged reputation and brand trust

The optimal point sits between these extremes, and data analytics finds it.

Key Inventory Metrics

MetricFormulaWhat It Tells You
Inventory TurnoverCOGS / Average InventoryHow many times stock cycles per year
Days of SupplyAverage Inventory / Daily UsageHow long current stock will last
Stockout RateStockout Events / Total Demand OccasionsHow often you fail to fulfill
Fill RateUnits Shipped / Units Ordered% of demand you satisfy
Carrying Cost %Total Holding Costs / Average Inventory ValueAnnual cost to hold $1 of inventory
GMROIGross Margin / Average Inventory CostMargin per dollar invested in stock
Dead Stock %Items with zero sales in 12 months / Total SKUsInventory that is not moving

Inventory Classification

ABC Analysis

Categorize inventory by value contribution:

Class% of SKUs% of ValueStrategy
A10-20%70-80%Tight control, frequent review, high service levels
B20-30%15-20%Moderate control, regular review
C50-70%5-10%Simple rules, less frequent review, lower service levels

XYZ Analysis (Demand Variability)

ClassDemand PatternForecastability
XStable, predictableHigh (CV < 0.5)
YModerate variabilityMedium (CV 0.5-1.0)
ZHighly variable, sporadicLow (CV > 1.0)

Combined ABC-XYZ Matrix

X (Stable)Y (Variable)Z (Sporadic)
A (High value)Continuous replenishmentBuffer stock + forecastingCase-by-case management
B (Medium value)Standard reorder rulesModerate safety stockMin-max with review
C (Low value)Bulk orderingSimple rulesOrder on demand

Optimization Models

Economic Order Quantity (EOQ)

The classic model for determining optimal order size.

Formula: EOQ = sqrt(2 x D x S / H)

Where:

  • D = Annual demand (units)
  • S = Fixed cost per order (ordering cost)
  • H = Annual holding cost per unit

Example:

  • Annual demand: 10,000 units
  • Order cost: $50 per order
  • Holding cost: $2 per unit per year
  • EOQ = sqrt(2 x 10,000 x 50 / 2) = 707 units per order

Limitations: Assumes constant demand, constant lead time, no quantity discounts. Useful as a starting point but too simple for real-world complexity.

Reorder Point (ROP)

When to place an order.

Formula: ROP = (Average Daily Demand x Lead Time) + Safety Stock

Example:

  • Average daily demand: 30 units
  • Lead time: 7 days
  • Safety stock: 50 units (calculated separately)
  • ROP = (30 x 7) + 50 = 260 units

When inventory hits 260 units, place a new order.

Safety Stock

Buffer inventory to protect against demand variability and lead time variability.

Formula: Safety Stock = Z x sqrt(LT x demand_variance + demand_avg^2 x leadtime_variance)

Where Z is the service level factor:

  • 90% service level: Z = 1.28
  • 95% service level: Z = 1.65
  • 99% service level: Z = 2.33

Higher service levels require exponentially more safety stock.

Multi-Echelon Inventory Optimization (MEIO)

Optimizes inventory across the entire supply network simultaneously rather than each location independently.

Why it matters: Independently optimized locations overstock because each buffers for its own uncertainty. Network-wide optimization identifies where buffer adds the most value.

Example: Instead of holding 30 days of safety stock at each of 10 warehouses, MEIO might recommend 15 days at regional DCs and 5 days at local, reducing total inventory 40% while maintaining the same service level.

Data-Driven Inventory Optimization

Demand Forecasting

The most impactful input to inventory optimization. Better forecasts mean less safety stock needed.

Methods by data availability:

Data AvailableMethodAccuracy
2+ years of historyARIMA, exponential smoothingGood baseline
History + external signalsMachine learning (gradient boosting)Better
Real-time signalsDemand sensing (short-horizon ML)Best for near-term
New product (no history)Analogous product comparisonApproximate

Demand Sensing

Supplements traditional forecasting with real-time signals:

  • Point-of-sale data (what is selling right now)
  • Weather data (affects many product categories)
  • Social media trends (early demand indicators)
  • Web search volume (intent signals)
  • Competitor actions (promotions, stockouts)

Dynamic Safety Stock

Instead of fixed safety stock, adjust based on current conditions:

  • Increase when demand variability rises (detected by anomaly monitoring)
  • Decrease when lead times shorten (supplier performance improves)
  • Adjust seasonally (higher before known peaks)
  • React to supply disruptions (increase if supplier reliability drops)

Implementation Roadmap

Phase 1: Visibility (Month 1-2)

  • Consolidate inventory data across all locations
  • Implement real-time stock level tracking
  • Calculate baseline metrics (turnover, stockout rate, carrying cost)
  • Identify quick wins (dead stock, obvious overstock)

Phase 2: Classification and Rules (Month 2-4)

  • Perform ABC-XYZ analysis
  • Set service level targets by class
  • Implement reorder points and EOQ calculations
  • Set up automated alerts for critical stock levels

Phase 3: Forecasting (Month 4-8)

  • Deploy demand forecasting models
  • Calculate dynamic safety stock based on forecast accuracy
  • Implement automated replenishment for stable items
  • Monitor forecast accuracy and improve iteratively

Phase 4: Optimization (Month 8-12)

  • Implement multi-echelon optimization
  • Deploy demand sensing for short-horizon accuracy
  • Automate allocation decisions
  • Integrate with supply planning (supplier orders based on optimization output)

Technology Stack

LayerPurposeTools
Data collectionCapture inventory transactionsERP, WMS, POS systems
Data warehouseCentral analytical storeSnowflake, BigQuery
ForecastingPredict future demandPython (scikit-learn, Prophet), AWS Forecast
OptimizationCalculate optimal policiesOR-Tools, Gurobi, custom models
ExecutionImplement decisionsERP replenishment modules, WMS
AnalyticsMonitor and investigateSkopx (ask inventory questions in natural language), Tableau

Common Mistakes

  1. Using average demand for safety stock. Averages hide variability. Use standard deviation.
  2. Setting static safety stock. Conditions change. Review and adjust at least monthly.
  3. Optimizing each location independently. Network effects matter. Multi-echelon wins.
  4. Ignoring lead time variability. Uncertain lead times often contribute more to stockouts than demand variability.
  5. Not measuring the cost of stockouts. If you do not quantify lost sales, you cannot optimize the tradeoff.

Summary

Inventory optimization sits at the intersection of operations and analytics. The mathematical models (EOQ, safety stock, MEIO) provide the framework. Data (demand history, lead time data, real-time signals) provides the inputs. And analytics platforms connect the two, enabling continuous optimization as conditions change. Start with classification and basic rules, layer in forecasting, then progress to full network optimization as data maturity grows.

Share this article

Saad Selim

The Skopx engineering and product team

Stay Updated

Get the latest insights on AI-powered code intelligence delivered to your inbox.