DIO Calculator

Find the Days Inventory Outstanding (DIO): the average number of days it takes to sell through your inventory, using DIO = (Average Inventory / COGS) x Days in period.

Quick Facts

Formula
DIO = (Average Inventory / COGS) x Days
Average inventory is (beginning + ending inventory) / 2 for the period.
Related metric
Inventory Turnover = COGS / Average Inventory
Turnover and DIO are reciprocals: a higher turnover means a lower DIO.

Your Results

Calculated
Days Inventory Outstanding
-
Average days to sell through inventory
Average inventory
-
(Beginning + ending) / 2
Inventory turnover
-
Times inventory sold per period
Average daily COGS
-
Cost of goods sold per day

Ready

Enter beginning and ending inventory, COGS, and the period length, then press Calculate.

How the DIO Calculator works

Days Inventory Outstanding (DIO) measures how long, on average, a company holds inventory before it is sold. It answers a simple operational question: given current stock levels and the pace of sales at cost, how many days of selling would it take to work through the goods currently on the shelf? DIO is one of the three components of the cash conversion cycle, alongside days sales outstanding and days payable outstanding.

The formula

The standard formula is:

DIO = (Average Inventory / Cost of Goods Sold) x Number of Days in Period

Average inventory is calculated as (beginning inventory + ending inventory) / 2, which smooths out timing distortions from a single snapshot balance. Cost of Goods Sold (COGS) is the total cost of the inventory sold during the period — not revenue — because DIO compares inventory (carried at cost) to the cost of what moved out the door. The period length is typically 365 days for an annual figure, 90 or 91 days for a quarter, or 30 days for a month.

Worked example

Suppose a company starts the year with $50,000 of inventory and ends with $60,000, for an average inventory of $55,000. Its cost of goods sold for the year is $400,000. Over a 365-day period:

DIO = ($55,000 / $400,000) x 365 ≈ 50.2 days

That means, on average, about 50 days pass between when inventory is acquired or produced and when it is sold. The same inputs give an inventory turnover ratio of $400,000 / $55,000 ≈ 7.27, meaning the company cycles through its average inventory roughly 7.3 times per year — turnover and DIO are two views of the same underlying pace.

What moves DIO

  • Inventory levels: holding more stock relative to sales volume raises DIO; leaner stocking lowers it.
  • Cost of goods sold: faster sales at cost (higher COGS for the same inventory) lowers DIO, since the same stock is worked through more quickly.
  • Period length: the same average inventory and COGS produce a proportionally different DIO depending on whether you annualize (365 days) or use a shorter reporting period.

Reading the result

Lower DIO generally signals efficient inventory management and less cash tied up in unsold stock, but a DIO that is too low can also mean thin stock levels that risk running out of goods. Higher DIO ties up more working capital and raises exposure to obsolescence, spoilage, or markdown risk, but may be normal for businesses with long production or aging cycles. DIO should be compared against a company's own historical trend and against close industry peers, since typical values vary enormously between a grocery chain, a car dealership, and a wine producer.

Frequently Asked Questions

How is Days Inventory Outstanding calculated?
DIO = (Average Inventory / Cost of Goods Sold) x Number of Days in the Period. Average inventory is the beginning inventory plus ending inventory divided by two. The result is the average number of days it takes to sell through the inventory on hand during that period.
What is a good DIO value?
There is no single good value: it depends heavily on the industry. Grocery and fast-fashion retailers often run a DIO under 30 days, while manufacturers of heavy equipment or aged goods like wine or lumber can run well over 90 days. Compare DIO to direct competitors and to the company's own trend over time rather than to a fixed benchmark.
How does DIO relate to inventory turnover?
Inventory turnover ratio equals Cost of Goods Sold divided by average inventory, and DIO equals the number of days in the period divided by that turnover ratio. The two metrics are reciprocals of each other scaled by the period length: a high turnover ratio corresponds to a low DIO, and vice versa.
Why use average inventory instead of ending inventory alone?
Average inventory smooths out seasonal swings and one-time stock builds or drawdowns that a single ending balance would distort. Using (beginning + ending) / 2 gives a more representative picture of inventory levels held throughout the period, though some analysts use ending inventory alone for a simpler snapshot calculation.