Days Inventory Outstanding (DIO)

Excel Formulas › Retail & Inventory

All versions

Days inventory outstanding converts turnover into a number of days — how long, on average, stock sits before selling. Average inventory divided by COGS, times the days in the period.


Quick formula: days of inventory on hand:
=average_inventory / COGS * 365
Average inventory over COGS scaled by 365 gives the days stock is held before it sells.

The example

$80k inventory, $480k COGS.

AB
1ItemValue
2Avg inventory80000
3COGS480000 → ~61 days

The formula

The formula:

=B2 / B3 * 365 // inventory ÷ COGS × 365

How it works

How it works:

  1. average_inventory / COGS is the fraction of a year’s cost tied up in stock.
  2. Multiply by 365 (or the days in your period) to express it as days.
  3. Equivalently, 365 / inventory_turnover — the two are inverses.
  4. Lower DIO means stock sells faster and less cash is tied up — usually better.

Part of the cash conversion cycle: DIO plus days sales outstanding (receivables) minus days payable outstanding tells you how many days cash is locked in operations. Cutting DIO frees working capital — one reason retailers obsess over it.

Try it: interactive demo

Live demo

Average inventory and COGS.

DIO:

Variations

From turnover

The inverse:

=365 / inventory_turnover

Per SKU

One product:

=units_on_hand / units_sold_per_day

Custom period

Quarterly:

=average_inventory / COGS * 90

Pitfalls & errors

Cost basis. Use inventory and COGS at cost, consistently.

Period days. Use 365 for annual, 90 for a quarter — match the COGS window.

Lower usually better. But too low can mean stockouts — balance against service level.

Practice workbook

📊
Download the free Days Inventory Outstanding (DIO) practice workbook
A DIO sheet with the from-turnover, per-SKU, and custom-period variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I calculate days inventory outstanding in Excel?
Use =average_inventory / COGS * 365. It shows how many days, on average, stock is held before selling.
How does DIO relate to turnover?
They're inverses: DIO = 365 / inventory_turnover. A turnover of 6 is about 61 days.
Is lower DIO always better?
Usually — it frees cash — but too low risks stockouts. Balance DIO against your target service level.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Inventory turnover · Stock cover · Average inventory value