Inventory Days Calculator
- DIO = average inventory / cost of goods sold × days in the period = $450,000.00 / $2,920,000.00 × 365 = 56.25 days.
- Inventory turnover = cost of goods sold / average inventory = 6.49 turns a year — the same position seen from the other side.
This inventory days calculator measures how long cash remains tied up in stock before goods are sold. Enter your average inventory, cost of goods sold, and the number of days in your period, and the tool returns your days inventory outstanding (DIO) alongside your inventory turnover ratio. For example, average inventory of $450,000.00 against annual COGS of $2,920,000.00 yields a DIO of 56.3 days and turnover of 6.49 times a year, while average inventory of $120,000.00 against COGS of $876,000.00 gives exactly 50.0 days and 7.30 turns. Using the 360-day banking convention, average inventory of $98,000.00 against COGS of $540,000.00 produces 65.3 days and 5.51 turns.
DIO is the first leg of the cash conversion cycle, alongside days sales outstanding and days payables outstanding, making it the accepted standard for evaluating inventory efficiency. The formula—average inventory divided by cost of goods sold, multiplied by days in the period—is widely used because DIO and inventory turnover are reciprocals seen from opposite sides: turnover equals days in the period divided by DIO. Lower DIO means cash spends less time locked in stock, but driving it too low risks stockouts; the right level depends on lead times, perishability, and demand variability. This page shows the formula, step-by-step workings, worked examples, and sources.
Worked examples
Fifty-six days on the shelf
Primary result: 56.3 days — the stock turns 6.49 times a year. (450000 $ · 2920000 $ · 365 days)
| Days inventory outstanding (DIO) | 56.3 days |
| Inventory turnover | 6.49× per year |
| Cost of one day of COGS | $8,000.00 |
A clean fifty
Primary result: 50.0 days — $120,000.00 of average inventory against $876,000.00 of annual cost of goods sold. (120000 $ · 876000 $ · 365 days)
| Days inventory outstanding (DIO) | 50.0 days |
| Inventory turnover | 7.30× per year |
| Cost of one day of COGS | $2,400.00 |
The 360-day version
Primary result: 65.3 days — the banking-year convention trims the same stock position slightly differently. (98000 $ · 540000 $ · 360 days (banking convention))
| Days inventory outstanding (DIO) | 65.3 days |
| Inventory turnover | 5.51× per year |
| Cost of one day of COGS | $1,500.00 |
What days inventory outstanding measures
Days inventory outstanding, often abbreviated as DIO, measures how long stock sits before it is sold — the shelf-time of the cash tied up in inventory. The formula is straightforward: average inventory divided by cost of goods sold, multiplied by the number of days in the period. It is the first of the three legs of the cash conversion cycle, alongside days sales outstanding and days payables outstanding. Together, these three metrics show how quickly a company converts its outlays into cash collected from customers. An inventory days calculator applies this formula so you can see, at a glance, how many days your average inventory will sit before moving out the door.
DIO and inventory turnover are reciprocals seen from opposite sides: turnover equals days in the period divided by DIO. When one goes up, the other goes down. A company with 50 days of inventory on hand, for example, turns its stock 7.30 times a year on a 365-day basis. The verified figures make this concrete: average inventory of $450,000.00 against annual COGS of $2,920,000.00 gives a DIO of 56.3 days and an inventory turnover of 6.49 times a year. A smaller operation with average inventory of $120,000.00 against COGS of $876,000.00 produces exactly 50.0 days and 7.30 turns a year. On the 360-day banking convention, average inventory of $98,000.00 against COGS of $540,000.00 gives 65.3 days and 5.51 turns.
Lower DIO means cash spends less time locked in stock, freeing it for other uses such as paying suppliers, investing in equipment, or covering payroll. A company that shaves ten days off its DIO effectively unlocks ten days of working capital that was previously sitting on shelves. That is why managers watch this metric closely and why an inventory days calculator is a useful tool for tracking changes over time.
Pushing DIO too low, however, carries real risk. The right level depends on lead times, perishability, and how variable demand is. A grocer needs far fewer days of fresh produce on hand than a furniture retailer, and a business with long supplier lead times needs a larger buffer than one that can restock overnight. Cutting inventory to the bone can trigger stockouts, lost sales, and frustrated customers. The goal is not the lowest possible number but the one that matches the rhythm of the business — enough stock to meet demand without letting cash gather dust in the warehouse.
The inventory days formula
The inventory days formula is straightforward: days inventory outstanding (DIO) equals average inventory divided by cost of goods sold, multiplied by the days in the period. DIO is the first of the three legs of the cash conversion cycle, alongside days sales outstanding and days payables outstanding. Together, these three metrics show how long cash remains tied up in operations before it returns to the business.
The formula uses average inventory rather than a single point-in-time snapshot because inventory levels fluctuate throughout a period. A company might carry high stock before a holiday season and draw it down afterward. Averaging the beginning and ending inventory balances smooths those swings and gives a more reliable picture of what the company typically holds. The denominator is cost of goods sold, not sales, because sales include a markup that has nothing to do with how much inventory the company actually carried. Comparing inventory at cost to COGS at cost keeps both sides of the ratio on the same basis.
Consider a verified case: average inventory of $450,000.00 against annual COGS of $2,920,000.00. Using a 365-day year, the calculation is $450,000.00 divided by $2,920,000.00, which gives 0.1541. Multiply that by 365 and you get a DIO of 56.3 days. The same figures produce an inventory turnover of 6.49 times a year. DIO and inventory turnover are reciprocals seen from opposite sides: turnover equals days in the period divided by DIO. So 365 divided by 56.3 equals 6.49.
An inventory days calculator can run these numbers in seconds, but the interpretation matters as much as the math. Lower DIO means cash spends less time locked in stock, which is generally positive for liquidity. Driving it too low, however, risks stockouts and lost sales. The right level depends on lead times, perishability, and how variable demand is. A company with long supplier lead times may need a higher DIO to avoid running out, while a business selling perishable goods needs to keep DIO low regardless.
Worked examples
The table below shows three verified cases that an inventory days calculator should reproduce exactly. Each one uses the 360-day banking convention and pairs DIO with its companion metric, inventory turnover. Because DIO and inventory turnover are reciprocals seen from opposite sides, you can check any result by dividing the days in the period by the DIO to get the turnover: turnover = days in period / DIO.
The first case carries an average inventory of $450,000.00 against annual COGS of $2,920,000.00. That gives a DIO of 56.3 days and an inventory turnover of 6.49 times a year. The second case scales down to an average inventory of $120,000.00 against COGS of $876,000.00, producing exactly 50.0 days and 7.30 turns a year. The third case uses an average inventory of $98,000.00 against COGS of $540,000.00, yielding 65.3 days and 5.51 turns.
Together these examples show how sensitive the result is to the ratio of average inventory to cost of goods sold. A larger stock holding relative to sales volume pushes DIO up and turnover down, while a leaner inventory position does the opposite. The formula behind every row is the same: DIO = average inventory / cost of goods sold × days in the period.
Remember that DIO is the first of the three legs of the cash conversion cycle, alongside days sales outstanding and days payables outstanding. Lower DIO means cash spends less time locked in stock, but driving it too low risks stockouts; the right level depends on lead times, perishability and how variable demand is. Use these verified figures to confirm that your own inputs and day-count convention are set up correctly before reading too much into the output.
| Average inventory | Annual COGS | DIO (360-day convention) | Inventory turnover |
|---|---|---|---|
| $450,000.00 | $2,920,000.00 | 56.3 days | 6.49 times a year |
| $120,000.00 | $876,000.00 | 50.0 days | 7.30 times a year |
| $98,000.00 | $540,000.00 | 65.3 days | 5.51 times a year |
DIO in the cash conversion cycle
The cash conversion cycle measures how long a company's cash is tied up in operations before it returns to the balance sheet. It has three legs: days inventory outstanding (DIO), days sales outstanding (DSO), and days payables outstanding (DPO). The formula is DIO + DSO − DPO. DIO is the first leg and, for most product businesses, the largest and most controllable piece of the cycle. Because it comes first in the equation and reflects decisions a company makes every day about purchasing and stocking, it often offers the clearest opportunity to free up cash.
DIO is calculated as average inventory divided by cost of goods sold, multiplied by the days in the period. An inventory days calculator can turn this ratio into a day count quickly. The relationship between DIO and inventory turnover is direct: turnover equals days in the period divided by DIO. The two metrics are reciprocals seen from opposite sides. A lower DIO means cash spends less time locked in stock, but driving it too low risks stockouts. The right level depends on lead times, perishability, and how variable demand is.
Consider a verified example. Average inventory of $450,000.00 against annual COGS of $2,920,000.00 gives a DIO of 56.3 days and an inventory turnover of 6.49 times a year. A smaller operation with average inventory of $120,000.00 against COGS of $876,000.00 produces exactly 50.0 days and 7.30 turns a year. On the 360-day banking convention, average inventory of $98,000.00 against COGS of $540,000.00 gives 65.3 days and 5.51 turns. Each result shows how the same formula scales across businesses of different sizes and accounting conventions.
Within the cash conversion cycle, DIO sits before DSO and DPO for a reason. A company must acquire or build inventory before it can sell on credit or negotiate supplier terms. That makes inventory days the lever with the widest range of movement in most product businesses. Tightening it by even a few days can reduce the overall cycle and free working capital, but the tradeoff is always the risk of not having enough stock to meet demand.
What is a good DIO?
There is no single DIO number that works for every business, so the right answer depends on the industry and how a company operates. Grocers, who sell perishable goods quickly, often run days in the teens because fresh food cannot sit on shelves for long. Fashion retailers, by contrast, carry far higher DIO figures because clothing is less perishable and seasonal lines must be bought well in advance of demand. The key is to judge your result against peers rather than aim for an arbitrary target. An inventory days calculator can help you see where you stand, but the number only becomes meaningful when placed next to companies that face similar lead times, product types and demand patterns.
Lower DIO means cash spends less time locked in stock, which frees up working capital for other uses. That is generally a good thing, but driving the number too low creates a real risk of stockouts. When you run out of product, you lose sales and may push customers to competitors for good. The right level depends on lead times, perishability and how variable demand is. A business with long supplier lead times may need a higher DIO to avoid running short, while a company with steady, predictable demand can safely operate with leaner stock.
To put the formula in context, consider a few verified examples. Average inventory of $450,000.00 against annual cost of goods sold of $2,920,000.00 gives a DIO of 56.3 days and an inventory turnover of 6.49 times a year. A smaller operation with average inventory of $120,000.00 against COGS of $876,000.00 produces exactly 50.0 days and 7.30 turns a year. Using the 360-day banking convention, average inventory of $98,000.00 against COGS of $540,000.00 yields 65.3 days and 5.51 turns. These figures show how DIO and inventory turnover are reciprocals seen from opposite sides: turnover equals days in the period divided by DIO.
When you review your own result, weigh the cost of holding too much stock against the cost of a stockout. A grocer with 15 days of inventory may be operating efficiently, while a fashion retailer with 60 days could be in a normal range for that sector. The goal is not simply the lowest possible number but the level that balances cash flow with the ability to serve customers without interruption.
Limits of the measure
An inventory days calculator gives you a single, tidy number, but that number has real limits. Because the formula for days inventory outstanding (DIO) divides average inventory by cost of goods sold and multiplies by the days in the period, it smooths everything across the full span you are measuring. Annual averages hide seasonality. A company that sells pool equipment or winter coats will see inventory pile up before peak season and drain down after it. A DIO figure of 56.3 days, based on average inventory of $450,000.00 against annual COGS of $2,920,000.00, may look steady on paper. In reality, stock levels could swing wildly month to month, and the annual average simply masks those peaks and valleys.
Write-downs and changes in product mix also distort comparisons. If a business records a large inventory write-down, the average inventory figure drops, which in turn lowers DIO even though operations have not improved. The same distortion happens when a company shifts its product mix toward items that move faster or carry lower unit costs. A smaller operation with average inventory of $120,000.00 against COGS of $876,000.00 produces exactly 50.0 days and 7.30 turns a year. If that company changes what it sells, the next period's DIO may not be comparable to the last, because the underlying goods, margins, and turnover patterns are different.
Ending inventory can be gamed at period end. Because the average used in the DIO formula typically blends beginning and ending inventory, managers who delay purchases or push extra units out the door right before the period closes can make the ending balance look artificially lean. On the 360-day banking convention, average inventory of $98,000.00 against COGS of $540,000.00 gives 65.3 days and 5.51 turns. But if that ending inventory was depressed by a last-minute shipment delay or a deliberate cutback, the calculated DIO understates the inventory the business normally carries.
DIO and inventory turnover are reciprocals seen from opposite sides: turnover equals days in the period divided by DIO. That relationship is useful, but it does not fix the problems above. Lower DIO means cash spends less time locked in stock, yet driving it too low risks stockouts. The right level depends on lead times, perishability, and how variable demand is. DIO is the first of the three legs of the cash conversion cycle, alongside days sales outstanding and days payables outstanding, so a distorted inventory figure flows straight into a distorted view of how long cash is tied up overall.
FAQs
How do you calculate inventory days?
Use the formula DIO = average inventory / COGS × 365. In the verified example, $450,000.00 divided by $2,920,000.00 multiplied by 365 equals 56.3 days. This tells you how long inventory sits before being sold.
What is the difference between DIO and inventory turnover?
They are reciprocals. The verified 56.3-day case is the same position as 6.49 turns a year. DIO measures days in inventory, while turnover counts how many times inventory cycles annually.
Why use COGS instead of sales?
Inventory is carried at cost, so it is compared with the cost flow (COGS), not the marked-up sales figure. Using sales would overstate turnover because sales include profit margins, making inventory look faster than it is.
Is a lower DIO always better?
No. The verified lean case runs 50.0 days, but pushing far lower without reliable supply risks empty shelves and lost sales. Efficiency matters, but stockouts damage revenue and customer trust.
When is the 360-day year used?
In banking and some textbook conventions. The verified 360-day case gives 65.3 days for the same kind of position that reads differently on 365. Always confirm which convention a lender or textbook uses before comparing results.
How does DIO affect cash flow?
Every day of DIO is a day of COGS financed by the business. Cutting the 56.3-day case by a week frees roughly a week's COGS in cash. Lower DIO means less working capital tied up in stock.