Free tool
Days inventory outstanding formula & days in inventory calculator
Days inventory outstanding formula: average inventory at cost divided by cost of goods sold, times the days in the period, gives how many days of stock a business holds, also called days in inventory or days sales in inventory (DSI), for owners and planners. Enter average inventory, COGS and the matching period days.
- Free to use
- No sign-up
- Formula shown
- Updated as you type
Your inventory and cost of goods
Days inventory outstanding
91.25 days
- Cost of goods sold per day
- $3,287.67
- Inventory turnover
- 4 turns
Average inventory divided by cost of goods sold, times the days in the period.
Use this in the free planning spreadsheet
What does days inventory outstanding mean?
Days inventory outstanding means how many days, on average, a business holds its inventory before selling it, measured as stock at cost against the pace cost of goods sold flowed through the period.
A DIO of 60 says the stock you carried equalled about 60 days of cost of goods sold. Days in inventory and days sales in inventory (DSI) are the same figure under other names. It is a historical average across every item, so a catalog at 60 days can hold best sellers with two weeks of stock next to slow lines with a year of it. For an online seller, stock in transit, at a 3PL or in a marketplace's fulfillment center counts as long as you own it. Read it next to the sales trend: DIO rising while sales fall is stock building up, while DIO rising ahead of a peak season can be the plan working.
How do you calculate days inventory outstanding?
Divide average inventory at cost by cost of goods sold for the same period, then multiply by the days in that period.
For example, opening inventory of $250,000 and closing inventory of $350,000 give a simple average of $300,000. Against $1,200,000 annual COGS over 365 days, DIO is 300,000 ÷ 1,200,000 × 365 = 91.25 days. Daily COGS is about $3,287.67, so dividing the same $300,000 by daily COGS gives the same answer. Use the actual days in the reporting period: a 90-day quarter and a 365-day year cannot share the same day multiplier. If inventory rises sharply between the opening and closing dates, average more frequent balances before entering the value. The linked average inventory and COGS calculators help prepare matching inputs without confusing purchases, revenue and inventory expense.
DIO vs DSI vs inventory turnover
DIO and DSI are two names for the same days figure, and inventory turnover is its reciprocal: turnover = days in the period ÷ DIO.
At 4 turns a year, DIO and DSI are both 365 ÷ 4 = 91.25 days; at 6 turns they are about 61 days. Analysts who say days sales of inventory usually mean the same cost-based calculation despite the word sales, though a few use ending inventory instead of an average, which moves the figure without anything changing in the business. Use turnover to compare periods of different lengths, and DIO when you need days, for cash planning or for the cash conversion cycle. The inventory turnover ratio page gives dated retailer examples and shows both views from the same inputs.
What is a good DIO for a retailer?
A good DIO supports the retailer’s service and cash needs for its product mix, replenishment lead times and season, rather than meeting one universal days target.
Compare your own DIO across equivalent periods first. A retailer holding 91.25 days on average may be carrying a planned seasonal build, slow-moving products that are no longer sold or stock needed against long supplier lead times; the ratio cannot distinguish those cases. Compare similar categories and inspect availability and aging before acting. Published inventories-to-sales ratios also need care: dividing cost-valued inventory by selling-price revenue gives a different measure from DIO based on COGS. Converting that sales ratio into days does not make it a cost-based DIO benchmark. The related turnover page gives dated company examples with their calculation bases. Use any external comparison as context, and establish the stock needed to serve customers before selecting a lower days target.
Where does DIO sit in the cash conversion cycle?
DIO is the inventory leg of the cash conversion cycle: inventory days plus customer collection days, minus supplier payment days.
With 60 days of inventory, 10 days to collect from customers and 30 days to pay suppliers, the cycle is 60 + 10 − 30 = 40 days. Inventory days describe the stock held relative to historical COGS, while payable days determine how much supplier credit offsets that investment. A shorter DIO therefore does not automatically release the full stock value into cash immediately. An unpaid receipt and an already-paid receipt have different payment timing even if they hold identical inventory. Use the cash conversion cycle formula for the combined view and the turnover calculator for the reciprocal inventory measure. Review demand, supplier reliability and open commitments separately; DIO does not determine the appropriate next order or the age of a particular batch.
DIO formula: days in inventory and days sales in inventory (DSI)
Days inventory outstanding = average inventory ÷ cost of goods sold × days in the period
Cost of goods sold per day = cost of goods sold ÷ days in the period
- Average inventory
- Stock value at cost averaged over the period.
- Cost of goods sold
- The cost of the stock that sold during the same period.
- Days in the period
- 365 for a year, 90 for a quarter, matched to the cost of goods sold figure.
Worked example
- Average inventory at cost is $300,000 and cost of goods sold over 365 days is $1,200,000.
- Cost of goods sold per day is $1,200,000 ÷ 365 = $3,287.67.
- Days inventory outstanding is $300,000 ÷ $1,200,000 × 365 = 91.25 days.
- The same stock turns 4 times a year, and 365 ÷ 4 gives the same 91.25 days.
When it applies
- Tracking how long cash sits in stock from one period to the next.
- Feeding the inventory leg of the cash conversion cycle.
When it breaks down
- With no cost of goods sold in the period, the historical selling pace is zero and DIO is undefined; it does not establish whether stock can sell in the future.
- A single business-wide figure blends items that sell in days with items that sit for a year.
Common mistakes
Mismatching the days
A quarter's cost of goods sold needs 90 or 91 days, not 365, or DIO comes out four times too long.
Using selling price
Inventory is at cost, so cost of goods sold belongs in the denominator, not revenue.
Reading DIO as shelf life
DIO is an average across all stock. Individual items can be far older or far newer.
Questions
What does a days inventory outstanding calculator tell me?
A days inventory outstanding calculator estimates how many days of inventory a business carried relative to its historical cost of goods sold. Enter average stock value at cost, COGS for the same period and the number of days that period covers. With $300,000 average inventory and $1,200,000 annual COGS, DIO is 300,000 ÷ 1,200,000 × 365 = 91.25 days. The result is also called days in inventory or days sales of inventory (DSI). Use it to compare stock investment over time and inform a cash conversion cycle; it does not measure each item’s age or forecast when today’s stock will run out.
Is DIO the same as days in inventory or DSI?
Yes. Days inventory outstanding, days in inventory, inventory days and days sales of inventory (DSI) commonly name the same cost-based calculation: average inventory ÷ COGS × period days. Some reports use ending inventory instead of an average, so check the definition before comparing numbers. The word sales in DSI does not mean revenue belongs in the denominator when inventory is valued at cost. Keep that separate from days sales outstanding (DSO), which measures customer collection time and is another part of the cash conversion cycle. This calculator measures inventory days, not receivable days.
How does DIO relate to inventory turnover?
DIO equals days in the period divided by inventory turnover when average inventory and COGS are both positive and measured consistently. At 4 annual turns over 365 days, DIO is 91.25 days. At 5 turns, it is 73 days. That difference describes less average inventory per dollar of COGS; it does not establish why the ratio changed. Use the linked inventory turnover ratio calculator to see both views from the same inputs. Do not compare annual turns with quarterly DIO without matching the period, and avoid interpreting rounded turnover as an exact intermediate value.
Is a lower DIO always better?
A lower DIO can mean less money tied up in stock, but it can also mean shortages, a write-down or a change in product mix. Compare the result with service, availability and margins. A long-lead imported line may require more inventory than a locally replenished staple; cutting both to one days target can leave the imported line short. A seasonal build can also raise DIO before the intended selling period. Review comparable periods and the reason stock was held before changing an order. A historical ratio is useful context for planning, rather than a stand-alone instruction to reduce inventory.
Why does the calculator refuse zero cost of goods sold?
DIO divides by COGS, so zero COGS makes the ratio undefined. With positive inventory and no COGS recorded, there is no observed selling pace from which to express inventory in days. That does not prove the stock will never sell. Check whether the period genuinely had no sales, or whether COGS entries are missing or late. A confirmed zero average inventory with positive COGS yields zero DIO, while the corresponding turnover ratio is undefined. A blank or unknown inventory balance is different from zero and should be resolved before treating the result as evidence for a buying decision.
How does DIO connect to buying and the cash conversion cycle?
DIO is the inventory part of cash conversion cycle = DIO + days sales outstanding − days payable outstanding. Reducing average inventory can shorten that cycle if sales, collections and supplier terms stay comparable. For example, at $1,200,000 annual COGS over 365 days, a ten-day reduction corresponds to about $32,877 less average stock at cost. That is an inventory-investment comparison, not guaranteed cash released today: payment timing, sell-through and replacement orders matter. Use the linked cash conversion cycle calculator for the full timing view, then assess per-item demand, lead time and existing supply before changing a purchase plan.
Related
- Inventory turnover ratio calculator
- Cost of goods sold formula & COGS calculator
- Average inventory calculator
- GMROI calculator
- Cash conversion cycle formula & calculator
- From dollars at stake to a cash plan
- Understanding planning and replenishment
- Negative cash conversion cycle
- Skuvelo vs Inventory Planner
- Skuvelo vs Netstock
- How Skuvelo plans inventory
Published by Skuvelo. Results are estimates computed from the figures you enter, not a reading of your own sales or stock.
A calculator answers once. Skuvelo keeps answering.
This tool computes one number from what you type. Skuvelo computes it continuously, for every SKU, from your own sales and stock.