Free tool
Inventory Days Calculator
See how much stock you held compared with what you sold, measured in days.
This days sales in inventory calculator compares your average stock value with the cost of the goods you sold. Enter figures from the same reporting period to see your inventory days and stock turnover.
Use it to compare periods and spot when you are carrying more stock for the sales you make. The result looks back at past sales. To estimate when today’s stock could run out, use the Weeks of Supply Calculator.
Past sales · Stock valued at cost · Matching reporting dates
Your reporting period
Use the same products and locations for both amounts.
Replace these examples with your own numbers. Results update as you type. Your entries stay on this page until you copy them.
Need help finding your figures in Shopify?
Ask Sidekick for product costs and historical stock values. Check the reports it uses. You may need your accounting records for missing costs or stock values.
Paste the copied text into Shopify Sidekick.
What’s different about this calculator
See how quickly stock moved during your chosen reporting period.
| Basic calculation | What this adds |
|---|---|
| Average stock divided by cost of goods sold | Guides you to use stock at cost and match products, locations and period |
| A full-year calculation | Uses your reporting dates to calculate the number of days |
| Inventory days alone | Also shows turnover, with guidance on averaging stock when levels change |
How this tool works
How to calculate inventory days
Divide your average stock value by the cost of goods sold, then multiply by the number of days in your reporting period. Both money values must use what the products cost you, not their selling price.
For a simple average, add the stock value at the start and end of the period and divide by two. If you received large deliveries or had seasonal peaks, average regular daily or monthly stock values instead. Use the same products, locations and costing method throughout.
Inventory days = average stock value ÷ cost of goods sold × days in the period.
Example: 30 inventory days over a 90-day period
You held an average of $30,000 in stock and sold goods that cost $90,000 over 90 days. That is three times your average stock value: $90,000 ÷ $30,000 = 3. Divide 90 days by 3 to get 30 inventory days.
Questions & answers
Understanding your result
What does 30 inventory days mean?
It means your average stock value equalled about 30 days of goods sold at that period’s pace, measured at cost. It does not mean every item sold in 30 days, or that today’s stock will last another 30 days.
Are DSI, DIO and days on hand the same?
Days sales in inventory (DSI) and days inventory outstanding (DIO) usually describe this calculation. An inventory days on hand calculator may use the same formula, or it may estimate how long current stock will last. Check whether it uses past stock values or today’s available units.
Should I use sales revenue or cost of goods sold?
Use cost of goods sold (COGS), meaning what the products you sold cost you. Sales revenue includes your markup, so it would make inventory days look lower. Your stock value and goods sold must both be measured at cost.
Is a lower number always better?
A lower number means less stock was held relative to goods sold. That can free up cash, but it can also happen when popular products sell out. Compare similar seasons and check stockouts, missing sizes and upcoming deliveries before cutting your next order.
What if no goods were sold in the period?
With zero cost of goods sold, there is no selling pace to divide by, so inventory days cannot be calculated. Check your dates and product costs. A blank result does not mean you had zero days of stock.
