Finance tools

Days inventory outstanding (DIO) calculator

Free DIO calculator (days inventory outstanding / days sales of inventory) for US finance and operations teams. Enter COGS and average inventory — or beginning and ending balances — to compute DIO = (average inventory ÷ COGS) × days in period, see inventory turnover, and export CSV or PDF. Live results, no sign-up.

What is days inventory outstanding (DIO)?

Days inventory outstanding formula

Formula

How to use this DIO calculator

  1. Gather COGS and inventory

    Pull cost of goods sold from the income statement and inventory from the balance sheet for the same period.

  2. Enter beginning and ending inventory

    Use beginning and ending balances, or switch to average inventory mode if you already computed the average.

  3. Set days in the period

    Use 365 for a fiscal year, or 90 / 180 for a quarter or half year — keep COGS aligned to that period.

  4. Read DIO and export

    Review days inventory outstanding, inventory turnover, and the breakdown — then download CSV or PDF if needed.

DIO vs inventory turnover

How to calculate DIO in Excel

DIO vs DSO vs DPO

Retail and hospitality context

What is a good days inventory outstanding?

How to interpret days inventory outstanding

Where to find COGS and inventory

Worked example

Discover more calculators for time tracking, payroll, and HR.

Frequently asked questions

How do you calculate days inventory outstanding?

Divide average inventory by COGS, then multiply by the number of days in the period. If you only have year-start and year-end inventory, average inventory = (beginning + ending) ÷ 2.

What is the DIO formula?

DIO = (Average inventory ÷ COGS) × Days in period. Equivalently, DIO = Days in period ÷ Inventory turnover.

Is days inventory outstanding the same as days inventory on hand?

In practice, yes — DIO, days sales of inventory (DSI), and inventory days usually refer to the same idea: how long inventory sits before sale, using COGS and average inventory.

What is the difference between DIO and days sales outstanding (DSO)?

DIO measures inventory efficiency (stock on hand). DSO measures how long it takes to collect receivables after a sale. They are both working-capital metrics but use different inputs. Calculate DSO with our days sales outstanding calculator.

What is a good days inventory outstanding ratio?

There is no universal good DIO. Grocery and food service often run lower DIO than furniture or specialty retail. Compare to your own trend and to businesses with similar products and shelf life.

How do I calculate DIO for a quarter?

Use that quarter’s COGS and average inventory for the same quarter, and set days in period to 90 (or the actual calendar days in the quarter). Do not mix quarterly COGS with annual inventory without adjusting the period.

Can I use ending inventory instead of average inventory?

Some models use ending inventory for convenience when the period is short or inventory is stable. For seasonal businesses, the two-point average is more accurate — this calculator defaults to beginning and ending balances.

What is the difference between days inventory outstanding and inventory turnover?

Inventory turnover = COGS ÷ average inventory (how many times stock cycles in the period). DIO expresses the same speed in calendar days: DIO = days in period ÷ turnover (or average inventory ÷ COGS × days). This calculator shows both metrics on the results panel.

Is DIO the same as employee turnover?

No. Employee turnover is an HR metric (separations ÷ headcount). DIO is a stock and COGS metric. English uses “turnover” for both — check which formula you need.

How do I improve days inventory outstanding?

Common levers: reduce slow-moving SKUs, tighten purchasing to demand, cut spoilage and shrink, improve forecasting, and segment metrics by store or category instead of one company-wide average.

What is the cash conversion cycle?

The cash conversion cycle combines DIO with days sales outstanding (DSO) and days payable outstanding (DPO): CCC = DIO + DSO − DPO. This tool calculates DIO only — use our DSO calculator for receivables days.

How is DIO different from the safety stock calculator?

DIO uses balance-sheet inventory and COGS for a period. The safety stock calculator focuses on reorder points and buffer units from demand variability — a different operational question.

What is DSO, DOH, and DPO?

DSO (days sales outstanding) measures how long receivables stay open. DPO (days payable outstanding) measures how long you take to pay suppliers. DOH (days on hand) is often used interchangeably with DIO/DSI for inventory days. Together with DIO they feed the cash conversion cycle: CCC = DIO + DSO − DPO.

How do I calculate days inventory outstanding in Excel?

Average inventory in cell A3: =(A1+A2)/2 from beginning and ending inventory. With COGS in B1 and days in B2, DIO in B3: =(A3/B1)*B2. Use the same period for COGS, inventory, and days — see the Excel table above the FAQ.

Do you want a high or low days inventory outstanding?

Usually lower DIO is better for working capital — inventory turns faster and ties up less cash. Extremely low DIO can mean stockouts; very high DIO can mean dead stock. Optimize for steady turns without lost sales, not the lowest possible number on every close.