Days inventory outstanding (DIO): the formula and a calculator

Days inventory outstanding (DIO) is the number of days your average inventory would last at your rate of cost of goods sold. The formula is average inventory divided by cost of goods sold, times the days in the period. The calculator below fills in the formula with your own numbers and adds your inventory turnover.

A long, bright warehouse aisle with tall shelves of boxed stock on both sides

The DIO formula

Formula

DIO = average inventory ÷ cost of goods sold × days in the period

Average inventory = (inventory at the start + inventory at the end) ÷ 2

Inventory turnover = cost of goods sold ÷ average inventory, so DIO = days in the period ÷ inventory turnover

BDC, the Business Development Bank of Canada, calls the same measure average days inventory. It multiplies average inventory by the days in the period and divides by cost of goods sold (COGS).

The ASCM Supply Chain Dictionary lists it under days of supply: the value of inventory divided by the average daily cost of goods sold. The Corporate Finance Institute adds other names: inventory days of supply, days in inventory and the inventory period. Under any of these names, including the inventory days formula, the calculation is the same.

DIO divides by cost of goods sold rather than sales, so both sides of the ratio are at cost. Averaging the start and end balances smooths out an inventory figure that moves every day. If your stock swings with the seasons, average the month-end balances for the year instead.

Days in inventory calculator

This days in inventory calculator works out DIO from three numbers. Enter your average inventory, your cost of goods sold for the same period and the days in that period. It shows DIO, inventory turnover and the formula with your numbers filled in, starting from the example on this page.

DIO calculator
Use 365 for a year, or 360 if your reports use a 360-day year. For a quarter or a month, enter its days and that period’s cost of goods sold.
Days inventory outstanding
60.0 days
Inventory turnover
6.08 times
DIO = $3,000,000 ÷ $18,250,000 × 365 = 60.0 days
Inventory turnover = $18,250,000 ÷ $3,000,000 = 6.08 times in 365 days
The calculator runs in your browser. The numbers you type are not sent to ThriveAI, and they are kept out of the site’s analytics.

A worked example

Take a distributor with $18,250,000 of cost of goods sold last year. Its inventory stood at $2,900,000 at the start of the year and $3,100,000 at the end.

  1. Average inventory = ($2,900,000 + $3,100,000) ÷ 2 = $3,000,000.
  2. DIO = $3,000,000 ÷ $18,250,000 × 365 = 60.0 days.
  3. Inventory turnover = $18,250,000 ÷ $3,000,000 = 6.08 times a year, and 365 ÷ 6.08 gives the same 60 days after rounding.

The distributor holds about two months of stock at cost. Each day of DIO is $50,000 of inventory, which is the cost of goods sold for one day: $18,250,000 ÷ 365.

A manufacturer uses the same formula on total inventory: raw materials, goods in process and finished products. Statistics Canada reports manufacturing inventories in those three stages, and a DIO split the same way shows where the days sit.

Formula variants

Textbooks and software calculate DIO in slightly different ways. On the example numbers, the variants give these results.

VariantFormulaExample resultSource
Average inventory, 365 daysAverage inventory ÷ COGS × 36560.0 daysBDC and the Corporate Finance Institute
Ending inventory, 365 daysEnding inventory ÷ COGS × 36562.0 daysOpenStax Principles of Finance
Average inventory, 360 daysAverage inventory ÷ COGS × 36059.2 daysAccountingCoach
Days ÷ turnover365 ÷ (COGS ÷ average inventory)60.0 daysAccountingCoach, and the same result as the first row
One quarterThe quarter’s average inventory ÷ the quarter’s COGS × 9261.0 daysThe Corporate Finance Institute: any period, with its own days

The quarter row uses the fourth quarter alone: $4,600,000 of cost of goods sold over 92 days, with $3,050,000 of average inventory. OpenStax, part of Rice University, shows two variants: its Principles of Accounting uses average inventory, and its Principles of Finance uses ending inventory.

Pick one variant and keep it. On the example, a DIO on ending inventory and 365 days is almost three days higher than one on average inventory and 360 days. Nothing changed in the warehouse, so write the variant on the report.

What a good DIO looks like for a manufacturer or a distributor

No single benchmark exists for a good DIO. It depends on what you sell, how you make it and how fast your suppliers deliver. OpenStax recommends comparing the ratio with your own previous years, your direct competitors and your industry.

For a national reference point, Statistics Canada publishes an inventory-to-sales ratio each month. It measures how many months it would take to exhaust inventories if sales stayed at their current level.

SectorInventory-to-sales ratio, July 2026In days of salesSource
Manufacturing1.62 monthsAbout 49 daysMonthly Survey of Manufacturing, July 2026
Wholesale trade1.51 monthsAbout 46 daysWholesale trade, July 2026, excluding petroleum products, oilseed and grain

The days column multiplies each ratio by 30.4, the average number of days in a month. The ratio divides by sales at selling prices, while DIO divides by cost of goods sold. The same stock therefore shows more days of DIO than days of sales, so read these figures as a floor for each sector’s DIO.

A plant’s inventory includes raw materials and goods in process as well as finished products. A wholesaler’s inventory is goods bought for resale. Your own trend is the better test: a DIO that rises while sales are flat means stock is building faster than it sells.

How DIO links to cash

BDC’s cash conversion cycle adds average days inventory to average days receivable and subtracts average days payable. The result is the number of days your cash stays tied up in operations. BDC notes that a positive cycle means daily operations tie up cash, and you may need financing to pay suppliers on time.

ASCM calls the same sum the cash-to-cash cycle time. On the example, one day of DIO is $50,000 of inventory at cost. Cutting DIO from 60 to 50 days, at the same cost of goods sold, releases about $500,000 of cash. Order to cash covers the receivables side of the cycle.

How to lower DIO without running short

OpenStax states the trade-off: too little inventory means lost sales, and too much means idle money plus the cost of storing it. Lower DIO item by item, starting where the days are.

An AI reporting setup can compute DIO by item and family from your ERP every week, with the query behind each number. ThriveAI’s AI reporting sprint builds that kind of report from your own records, and a person still decides which stock to cut. More calculators for manufacturers and distributors are on the tools page.

Questions people ask

What is days inventory outstanding?
Days inventory outstanding (DIO) is the number of days your average inventory would last at your rate of cost of goods sold. It shows how long cash sits in stock before the goods sell.
What is the DIO formula?
DIO = average inventory ÷ cost of goods sold × days in the period. For a year, the days are 365. Average inventory is usually the inventory at the start plus the inventory at the end, divided by 2.
Is a higher or lower DIO better?
A lower DIO ties up less cash, as long as you still fill orders on time. A DIO that drops while backorders rise has gone too far.
What is the difference between DIO and inventory turnover?
They measure the same thing from opposite sides. Inventory turnover is cost of goods sold ÷ average inventory. DIO is the days in the period ÷ turnover, so 6 turns a year is about 61 days.
Should I use 365 or 360 days?
Either works if you use it every time. AccountingCoach shows both. On the same numbers, 360 days gives a DIO about 1.4% lower than 365 days.
What is a good DIO for a manufacturer or a distributor?
No single benchmark exists, so compare with your own history and with peers in the same industry. For context, Statistics Canada put the inventory-to-sales ratio at 1.62 months for manufacturing and 1.51 months for wholesale trade in July 2026.

Contact

See your days of inventory by item, every week

Tell Derik which ERP and accounting system you run and how you track inventory today. He replies with how a weekly report of days of inventory by item and family could be built from them.

Prefer to talk? Book a meeting.

Your message goes to Derik Lawlis, the founder.