Days in Inventory Calculator
Use this tool to estimate how long inventory sits before being sold. Enter beginning inventory, ending inventory, cost of goods sold (COGS), and the number of days in the period.
Formula: Days in Inventory = (Average Inventory ÷ COGS) × Days in Period
What Is Days in Inventory?
Days in inventory (also called DIO, DSI, or days sales in inventory) measures the average number of days it takes a business to turn inventory into sales. It is one of the most practical inventory management metrics because it connects stock levels to operating efficiency and cash flow.
If days in inventory is high, products are sitting longer and cash is tied up on shelves. If days in inventory is low, stock is moving faster, but if it gets too low, you can risk stockouts and lost sales. The goal is not always to minimize the number blindly, but to optimize it for your business model.
The Core Formula
The standard formula is:
Days in Inventory = (Average Inventory ÷ COGS) × Number of Days
- Average Inventory = (Beginning Inventory + Ending Inventory) ÷ 2
- COGS = Cost of Goods Sold for the same period
- Number of Days = 365 for a year, 90 for a quarter, 30 for a month (or actual days)
Why use COGS instead of Revenue?
Inventory is recorded at cost, so you should compare inventory with cost of goods sold, not sales revenue. Using revenue can distort the metric because markup and pricing strategy vary by company and industry.
Step-by-Step Example
Suppose a company has:
- Beginning inventory: $120,000
- Ending inventory: $180,000
- COGS for the year: $900,000
- Days in period: 365
First, calculate average inventory:
(120,000 + 180,000) ÷ 2 = 150,000
Then calculate days in inventory:
(150,000 ÷ 900,000) × 365 = 60.83 days
Interpretation: on average, inventory remains on hand for about 61 days before being sold.
How to Interpret Your Result
Lower days in inventory can indicate:
- Strong sell-through and healthy demand
- Good forecasting and replenishment processes
- Lean operations and less cash tied up in stock
Higher days in inventory can indicate:
- Overbuying, weak demand, or outdated product mix
- Slow-moving or obsolete inventory
- Potential margin pressure from future markdowns
That said, context matters. Grocery stores tend to have very low days in inventory, while furniture, industrial machinery, and specialty manufacturing may naturally run much higher values due to product complexity and longer sales cycles.
Common Mistakes When Calculating Days in Inventory
- Mismatched periods: Using annual inventory with quarterly COGS (or vice versa).
- Using revenue instead of COGS: This creates apples-to-oranges comparisons.
- Ignoring seasonality: A single month can look artificially high or low.
- Not segmenting inventory: Raw materials, WIP, and finished goods can behave very differently.
- Comparing across industries directly: Benchmarks are sector-specific.
How to Improve Days in Inventory
1) Improve demand forecasting
Use historical demand, seasonality, promotional calendars, and current trend data to avoid overstocking and understocking.
2) Tighten replenishment rules
Review reorder points, safety stock, lead times, and supplier reliability. These settings directly impact how much inventory accumulates.
3) Segment products by velocity
Treat A/B/C inventory differently. Fast movers need tighter monitoring and frequent replenishment; slow movers may require reduced purchase cadence or discontinuation.
4) Clear aging inventory proactively
Set aging thresholds and action plans: discounts, bundles, channel transfers, or returns to vendors where possible.
5) Track related metrics together
Pair DIO with inventory turnover, gross margin return on inventory investment (GMROII), stockout rate, and fill rate for a full performance view.
Days in Inventory and the Cash Conversion Cycle
DIO is a key component of the cash conversion cycle (CCC):
CCC = Days Inventory Outstanding + Days Sales Outstanding - Days Payables Outstanding
Reducing DIO (without hurting service levels) can shorten the cash conversion cycle, freeing working capital for growth, debt reduction, or strategic investments.
Final Takeaway
Calculating days in inventory is simple, but using it well requires consistency and context. Run the metric on a regular schedule, compare it against your own trends, and evaluate it by product category and season. Over time, this single number can reveal where cash is trapped, where operations are inefficient, and where your inventory strategy can become a competitive advantage.