Days Inventory Calculator
Estimate how many days, on average, your inventory sits before it is sold. This metric is also called Days Inventory Outstanding (DIO) or inventory days.
Days Inventory = (Average Inventory ÷ Cost of Goods Sold) × Number of Days
Average Inventory = (Beginning Inventory + Ending Inventory) ÷ 2
What is days inventory?
Days inventory tells you how long inventory is tied up in your business before it turns into a sale. In practical terms, it answers one simple question: “How many days of stock am I holding?”
This metric matters because inventory is cash. If products stay in storage too long, your money sits idle, carrying costs increase, and markdown risk grows. If inventory moves too quickly, you may face stockouts and lost sales. The goal is balance.
Formula for calculating days inventory
Standard approach
The most common method uses average inventory and COGS for a period:
- Average Inventory = (Beginning Inventory + Ending Inventory) / 2
- Days Inventory = (Average Inventory / COGS) × Period Days
You can use 365 days for annual data, 90 days for quarterly data, or 30 days for monthly data. Just keep the period for inventory, COGS, and day count consistent.
Quick interpretation
- Lower days inventory: generally faster turnover, less capital tied up.
- Higher days inventory: slower movement, possible overstocking or weak demand.
There is no universal “perfect” number. Grocery businesses often have very low inventory days, while furniture, industrial parts, and luxury goods tend to carry higher levels.
Worked example
Suppose your numbers are:
- Beginning Inventory: $120,000
- Ending Inventory: $90,000
- COGS: $450,000
- Period: 365 days
Average Inventory = ($120,000 + $90,000) / 2 = $105,000
Days Inventory = ($105,000 / $450,000) × 365 = 85.17 days
That means your inventory sits for roughly 85 days before being sold.
Why this metric is important
1) Cash flow visibility
Inventory days converts accounting data into a timing metric. It helps you see how quickly working capital cycles back into cash.
2) Purchasing and planning decisions
If days inventory starts climbing, you may need tighter purchasing controls, better demand forecasting, or SKU rationalization.
3) Performance benchmarking
Track your result monthly or quarterly and compare it against historical values and industry norms. A trend line is often more useful than one standalone figure.
Common mistakes when calculating days inventory
- Using sales instead of COGS in the denominator.
- Mixing periods (e.g., monthly inventory with annual COGS).
- Ignoring seasonal swings by checking only one month.
- Failing to remove obsolete or unsellable stock.
- Relying on ending inventory only instead of average inventory.
How to reduce days inventory (without hurting sales)
- Improve demand forecasting by product and season.
- Set smarter reorder points and safety stock levels.
- Shorten supplier lead times where possible.
- Identify slow-moving SKUs and clear them early.
- Use ABC analysis to prioritize high-impact items.
Final takeaway
Calculating days inventory is one of the fastest ways to understand operational efficiency and working-capital health. Use the calculator above, monitor the number over time, and pair it with inventory turnover and gross margin to make better purchasing and pricing decisions.