Back

Days Inventory Outstanding (DIO): Formula, Worked Example and What a Rising Figure Means

Guide · · Published December 2026 · 8 min read

By Ashwin Gopinath, CEO

TL;DR

Days inventory outstanding (DIO) is the average number of days a company holds inventory before selling it. The DIO formula is DIO = average inventory / cost of goods sold x days in the period. With $5,000,000 of inventory and $9,000,000 of cost of goods sold in a 90-day quarter, DIO is 50 days. A rising figure usually means the company bought or made more than it sold. This guide is published by Sentra, a management agent that does the work: it joins the ERP with email, chat and meetings, so when DIO moves it explains the movement with sources.

What is days inventory outstanding?

Days inventory outstanding is the average time between buying or making stock and selling it. It turns the inventory balance into days of cost of goods sold, so a DIO of 50 means the company is holding about 50 days of sales as stock.

The same measure is also called days in inventory, days sales of inventory (DSI) and inventory days. Finance teams track it because inventory is cash already spent and waiting to come back. Operations teams track it because it shows whether buying and production are in step with demand.

The DIO formula

The standard DIO formula is average inventory divided by cost of goods sold for the period, multiplied by the number of days in the period.

DIO = average inventory / cost of goods sold x days in period

  • Inventory. The average of the opening and closing balances, or the closing balance alone. Include raw materials, work in progress and finished goods. Pick one basis and keep it.
  • Cost of goods sold. Use cost of goods sold for the same period. Inventory is carried at cost, so dividing it by revenue would understate the days.
  • Days. Use the days in the same period as the cost of goods sold: 30 or 31 for a month, 90 to 92 for a quarter, 365 for a year.

How to calculate DIO: a worked example

To calculate DIO, divide the inventory balance by cost of goods sold for the period and multiply by the days in that period. The figures here are an example with round numbers. A company had $9,000,000 of cost of goods sold in a 90-day quarter and ended it with $5,000,000 of inventory.

  • DIO = 5,000,000 / 9,000,000 x 90 = 50 days
  • Average daily cost of goods sold = 9,000,000 / 90 = $100,000
  • One day of DIO is therefore worth $100,000 of cash. Holding five fewer days of stock would release $500,000.

DIO formula variants on the same numbers

There are several accepted versions of the DIO formula, and each gives a different answer for the same company. The example adds a few assumptions: opening inventory of $4,600,000, annual cost of goods sold of $35,000,000, and closing inventory made up of $1,500,000 of raw materials, $500,000 of work in progress and $3,000,000 of finished goods.

VersionFormulaCalculationResult
Ending inventoryclosing inventory / COGS x days5.0 / 9.0 x 9050.0 days
Average inventory((opening + closing) / 2) / COGS x days4.8 / 9.0 x 9048.0 days
Annualclosing inventory / annual COGS x 3655.0 / 35.0 x 36552.1 days
From inventory turnoverdays / (COGS / closing inventory)90 / 1.850.0 days
Raw materialsraw materials / COGS x days1.5 / 9.0 x 9015.0 days
Work in progresswork in progress / COGS x days0.5 / 9.0 x 905.0 days
Finished goodsfinished goods / COGS x days3.0 / 9.0 x 9030.0 days

DIO and inventory turnover are the same measure seen from two sides. Turnover counts how many times stock is sold in a period, and DIO converts that count into days. Our guide to the inventory turnover ratio covers the turnover side.

The split by stage is the most useful version for a manufacturer. Thirty days of finished goods points to sales and forecasting. Fifteen days of raw materials points to purchasing and supplier lead times.

What a rising DIO usually means

A rising DIO usually means stock came in faster than it went out, for one of a small number of reasons. Check them in this order.

CauseWhat to check
Sales came in below forecastForecast against actual by product, and when the forecast was last changed
Purchasing bought aheadLarge orders placed for a price break, a supplier minimum or an expected shortage
Slow or obsolete stock is buildingInventory aging by item, and items with no sale in 90 days or more
A launch or season is comingPlanned build against the launch date. This rise is intended and should reverse
Stock is in the wrong placeStock by location against demand by location, and transfers waiting for approval
Production is held upWork in progress days, missing components, quality holds
Cost of goods sold fell late in the periodMonthly cost of goods sold. A weak final month lifts DIO with no change in stock

Most of these start outside finance: a sales forecast that nobody revised, a buyer who took a volume discount, a quality hold that paused shipments. Stock that will not sell at full price is covered in our guide to excess inventory.

How to read the result

Read DIO against your own history, your lead times and your product mix, because the right level differs by business.

  • Compare with replenishment lead time. If suppliers deliver in 20 days and you hold 50 days of stock, ask what the other 30 days are protecting against.
  • Read the trend. Three quarters of rising DIO with flat sales is a buying problem. One high quarter before a launch is a plan.
  • Do not push it to the floor. A very low DIO can mean empty shelves and lost sales. The average can also look healthy while fast sellers are out of stock and slow items pile up, as our guide to stockouts and phantom inventory describes.
  • Read it by item. The company figure is an average. The cash sits in specific items at specific locations.

How DIO sits in the cash conversion cycle

DIO is the first of the three terms in the cash conversion cycle, which measures the days between paying suppliers and collecting from customers.

Cash conversion cycle = days inventory outstanding + days sales outstanding - days payable outstanding

A company with 50 days of DIO, 40 days of days sales outstanding and 45 days of payables has a cycle of 45 days. If DIO rises to 58, the cycle becomes 53 days, and at $100,000 of daily cost of goods sold the extra eight days tie up $800,000. Our guide to the cash conversion cycle covers all three terms together.

Common mistakes

  • Dividing by revenue. Inventory is held at cost. Using revenue makes DIO look shorter than it is by the size of the gross margin.
  • Mixing periods. Quarterly cost of goods sold needs the days in that quarter. Annual cost of goods sold needs 365.
  • Using one closing balance in a seasonal business. A balance taken just before peak season overstates DIO. Use an average of month-end balances.
  • Ignoring write-downs. Writing off old stock lowers DIO with no change in how fast stock sells. Note any write-down beside the figure.
  • Stopping at the average. One DIO for the whole company hides the items that are stuck.

Where the explanation for the number lives

The ERP shows that DIO moved, and the reason usually sits in email, chat and meetings. The ERP records 4,000 extra units received in March. The email where the buyer accepted a larger order for a lower price, the chat thread where sales cut the forecast, and the meeting where a launch slipped six weeks all sit outside it.

Sentra is a management agent that does the work. It reads the ERP, CRM and BI tools alongside email, chat, meetings and documents: the systems of record say what happened, and the conversations say why. For DIO, Sentra writes the explanation of the movement, by item, location and cause, with a link to each source. It puts that in the pre-read for the weekly business review, drafts the follow-up for each stuck item, sends it to the person who owns the decision and chases it. At Lenskart, a top product line was reported as about 95% in stock while Sentra measured 12.8% availability on the shelves, and time to root cause fell from 3 to 4 days to about 30 minutes.

A named person approves anything Sentra drafts or raises before it reaches anyone else. Every line cites its source, and each reader sees only what they could already open in the source system.

To see Sentra explain a DIO movement in your own inventory, book a demo.

FAQ

What is the DIO formula?

DIO = average inventory / cost of goods sold x days in the period. With $5,000,000 of inventory and $9,000,000 of cost of goods sold in a 90-day quarter, DIO is 5 / 9 x 90 = 50 days.

Is days in inventory the same as days inventory outstanding?

Yes. Days in inventory, days inventory outstanding, days sales of inventory and inventory days are names for the same measure: the average number of days stock is held before it is sold.

Should DIO use cost of goods sold or revenue?

Cost of goods sold. Inventory is recorded at cost, so both sides of the division should be at cost. Using revenue understates the days by the size of the gross margin.

What is a good DIO?

One that covers your replenishment lead time and demand swings with little left over. The right level depends on the product, so compare DIO with your own history and lead times first, then with companies that sell similar goods.

What does a rising DIO mean?

Stock is being held longer than before. The usual causes are sales below forecast, buying ahead of need, slow or obsolete items, a planned build before a launch, stock in the wrong location or production delays.

How is DIO related to inventory turnover?

DIO equals the days in the period divided by inventory turnover. A company that turns its stock 1.8 times in a 90-day quarter has a DIO of 90 / 1.8 = 50 days.

Is a lower DIO always better?

No. A lower DIO releases cash, but too little stock causes stockouts and lost sales. The aim is the lowest DIO that still keeps the items customers want available.