Days inventory outstanding calculator
A seasonal seller with $5.2 million of cost of goods sold ends the year with $500,000 of stock, which is a DIO of 35.1 days. A two-point average gives 35.8. But inventory peaked at $1.5 million in October, and the average of all 13 month-end balances is $789,231, a DIO of 55.4 days. The same business, the same year, and a 20-day range depending on which inventory figure you use.
The formula is one line. The judgment is in the inputs. This calculator shows DIO on the ending balance, a two-point average and the average of every month-end balance, adds a forward-looking days of supply, and puts a dollar value on each day: $14,247 of cash for every day in this example.
Month-end inventory at cost (start of the year, then each month)
Leave a month equal to its neighbor if you do not have it. For a quarter or a month, enter the balances inside that period.
Forecast, slow stock, target DIO, and carrying cost
DIO, average of all balances
55.4 days
DIO, two-point average
35.8 days
DIO, ending balance
35.1 days
Days of supply, forward
30.4 days
Why the answers differ, and what a day is worth
The two-point average misses the seasonBeginning $520,000 and ending $500,000 average $510,000; all 13 balances average $789,231.
19.6 days gap
Peak and low balance
105.3 days at $1,500,000 · 31.6 days at $450,000
Inventory turnover on the average of all balances
6.59×
Cash tied up in each day of DIO (COGS ÷ days)
$14,247
DIO without the slow stock15.2% of average inventory is slow-moving.
47.0 days
Cash released by reaching a 45-day targetPlus about $29,627 a year of carrying cost at 20%.
$148,135
DIO = inventory ÷ COGS × days. Always use COGS, not sales. Days of supply divides the ending balance by forecast daily COGS, so it looks forward where DIO looks back. The carrying cost rate is your assumption, and inventory value depends on your cost method (FIFO, LIFO or average cost). Not accounting advice.
A DIO workbook with 13 month-end balances and DIO on every method, an aging and category sheet that shows slow stock and DIO by category, and a target-floor sheet that builds a planning DIO from transit time, safety stock and order frequency. Every formula is editable.
Download the workbookWho reaches for this
Wants to know how long stock sits and how much cash a seasonal build ties up.
Needs DIO by product group, and the cash value of trimming it.
Is building the cash conversion cycle and wants an inventory figure that will hold up in the board deck.
Is reading a balance sheet and wants to know whether a year-end DIO tells the true story.
Needs the formula, the averaging choices and the link to turnover and the cash cycle.
How this days inventory outstanding calculator works
You enter cost of goods sold for the period, the days in the period, and up to 13 month-end inventory balances: the balance at the start and one for each month. The calculator computes DIO three ways, plus DIO at the peak and the low. It then adds four things that competing calculators leave out: days of supply on a forecast, the cash tied up in each day, DIO without slow-moving stock, and the cash released if you reach a target.
The inventory turnover calculator covers the ratio, economic order quantity, reorder points, safety stock and ABC analysis. This page is about the days number itself: measuring it so it reflects reality, seeing what it costs, and deciding what a good one is for your business.
The DIO formula and its many names
Days inventory outstanding is inventory divided by cost of goods sold, multiplied by the number of days in the period. For a year, that is inventory ÷ COGS × 365. The same measure appears as days sales of inventory, days in inventory, inventory days and the inventory period. Some sources use “average days inventory outstanding” for DIO averaged over several periods, which is useful for spotting seasonal patterns.
It is the inverse of turnover, expressed in days. Turnover is COGS divided by average inventory, so DIO is also 365 ÷ turnover. In the example, turnover is 6.59 times a year and 365 ÷ 6.59 is 55.4 days. The two say the same thing, and days are easier to set beside lead times, payment terms and the calendar.
Cost of goods sold, not sales
Inventory is recorded at cost, so it belongs beside the cost of what was sold. Using sales inflates the denominator by the markup and understates DIO. If cost of goods sold is 62% of sales, the example’s $8.39 million of sales gives 34.3 days instead of 55.4, a 21-day error. Sales also make DIO incomparable across businesses with different margins, since a high-margin business would look faster for the same physical turnover.
The number of days
Most sources use 365. Some finance teams use 360, which gives 54.6 days for the example, and a leap year has 366, giving 55.5. The differences are under a day, so consistency matters more than the choice. The rule that does matter is matching the period: use that period’s cost of goods sold, that period’s balances and that period’s days. A quarter uses 90 days and a month 30. Dividing quarterly inventory by annual COGS, or multiplying a monthly ratio by 365, gives a number that means nothing.
When prices are moving
DIO depends on how inventory is valued. When prices rise, first-in, first-out costing leaves older, cheaper costs in inventory and puts recent costs in cost of goods sold. Last-in, first-out does the opposite. The same physical stock and the same sales can therefore give different inventory values, different cost of goods sold and so a different DIO under each method. Inflation also makes DIO drift: if unit costs rise 5% in a year, inventory at cost rises with them even when the number of units is unchanged.
Two habits help. Compare DIO with a prior period only under the same cost method, and when comparing companies, check the method in the notes to the financial statements. In periods of changing prices, a units-based view, weeks of stock in units, gives a check that the dollar figures cannot.
Average or ending inventory? The choices that move the answer
Every DIO calculation has to pick an inventory figure. The three in common use give different answers when stock changes through the year, and for a seasonal business the difference can be weeks. Here is the example seller, with month-end balances of $520,000 at the start of the year, rising to $1,500,000 in October, and falling to $500,000 in December.
The ending balance and the two-point average both land near 35 days, because they use December and the start of the year, the two low points. They describe the business on the day the books close, not the stock it carries through the year. The average of all balances gives 55.4 days, and it is the figure that reflects the cash the business has tied up on an ordinary day. The peak of 105.3 days is a warning about the financing needed in the busy season: a credit line sized to the year-end balance would fall $1 million short in October.
Which to use
The two-point average is the convention when you only have the balance sheet, and it is fine for a business whose stock is steady through the year.
The average of all balances, with the peak beside it. It shows what the business actually carries and what it must finance at the high point.
The same method for both, with the method stated. A comparison of your 12-month average with a competitor’s year-end figure is not a comparison.
Compare the same month across years, or a trailing 12-month average, so that the season does not appear as a trend.
A business with steady stock will see the three measures agree, and then the choice does not matter. A business with a strong season will see them diverge, which is the signal that the simple version is hiding something.
A quarter or a month on its own
The same logic applies to a single period. Take the fourth quarter alone, which has 92 days. Month-end balances of $1,350,000 in September, $1,500,000 in October, $1,300,000 in November and $500,000 in December average $1,162,500. If fourth-quarter cost of goods sold is $2,000,000, quarterly DIO is $1,162,500 ÷ $2,000,000 × 92 = 53.5 days. It looks close to the year’s 55.4, but it comes from a different mix: a heavy quarter of sales against a stock that peaks and then drains. Compare it with the fourth quarter of the year before, not with the first quarter.
Days of supply: the forward-looking cousin
DIO looks back. It says how long inventory has lasted at the rate the company has sold. Days of supply looks forward: ending inventory divided by forecast daily cost of goods sold. It says how long today’s stock will last if sales follow the forecast.
The two diverge when sales are changing. The example seller expects cost of goods sold to grow from $5.2 million to $6.0 million. Its $500,000 of ending stock is 35.1 days of last year’s sales, and 30.4 days of next year’s forecast, since forecast daily COGS is $16,438 against $14,247 last year. A growing business looks better on a forward view because the same stock covers less time, and a shrinking one looks worse.
Days of supply is the number to use for buying decisions. If the supplier lead time is 21 days and safety stock is 7 days of demand, the business needs about 28 days on hand at the point of reordering. At 30.4 days of supply, that leaves little slack, and a purchase order that is late will produce a stockout. A backward-looking DIO of 35.1 would hide the tighter position. DIO is for judging how well stock has been managed. Days of supply is for deciding what to order.
What a day of inventory is worth
A day of DIO is worth one day of cost of goods sold. The example’s $5.2 million of COGS is $14,247 a day, so each day removed frees $14,247 of cash. Moving from 55.4 days to a 45-day target frees 10.4 days, or $148,135, once. It is a cash release, not a profit, and it happens one time.
The recurring benefit is the cost of carrying that stock. Carrying cost includes the return on the capital tied up or the interest paid to finance it, warehouse space, handling, insurance, shrinkage and the risk of obsolescence. Businesses estimate it at very different percentages, and the calculator uses 20% as an illustration, so replace it with your own figure. At 20%, $148,135 less inventory saves $29,627 a year. Even counting only the interest at a 9% cost of capital, the saving is $13,332 a year. To build the rate from your own capital, storage, service and risk costs, and to see how much of it is avoidable, use the inventory carrying cost calculator.
These numbers explain why inventory decisions get attention from finance. A ten-day improvement in DIO for a business this size funds a hiring plan or repays a loan. It also cuts a risk that is easy to forget: stock that sits gets old, damaged or superseded, and the longer it sits, the larger the write-down when it finally moves.
What lenders and buyers read into DIO
Lenders look at DIO for two reasons. A rising DIO with flat sales suggests stock that is not moving, which weakens the collateral behind an inventory-backed loan. And a seasonal peak tells them how much borrowing the business will need, and when. Many inventory loans advance only a percentage of eligible stock, and aged or slow-moving goods are often excluded, so the aging view on this page is close to what a lender will compute. Buyers of a business do the same arithmetic: a large slice of old stock is a price adjustment waiting to happen.
How often to measure
Monthly is the useful rhythm for most businesses. It is frequent enough to catch a build-up before it becomes a write-down, and the month-end balances feed the 13-point average directly. Weekly tracking makes sense for fast-turning goods, where a few days matter. Quarterly is the minimum for a business with steady stock. Whatever the frequency, record the method each time, so that a change in the number reflects the stock and not a change in the calculation.
Blended DIO hides the slow stock
A single DIO averages fast-moving goods with slow ones, and the average can look healthy while a slice of the stock is going stale. Splitting inventory by category shows it. The example’s $789,231 of average inventory divides into three groups.
The slow group is 27.8% of inventory and 9.6% of sales at cost, and it turns in about 160 days. The blended figure of 55.4 days does not show that. Age is the second lens. If $120,000 of the average is more than 180 days old, DIO without it is 47.0 days, and that stock is 15.2% of the total. An aging report divides inventory into buckets and puts a write-down assumption on each.
The write-down percentages are assumptions for illustration, not accounting rules. On those assumptions, $47,539 of inventory is at risk. The exercise matters more than the percentages: an aging view turns “DIO is a bit high” into a list of what to clear, and by when.
For a manufacturer: three stages
A manufacturer holds inventory in three forms: raw materials, work in process and finished goods. Total DIO hides where the days are. Suppose the $789,231 average splits into $240,000 of raw materials, $120,000 of work in process and $429,231 of finished goods. Each stage divided by the same $5.2 million of COGS gives 16.9, 8.4 and 30.1 days, which add to the 55.4 total.
The split tells you where to act. Long raw material days point to purchasing, supplier lead times and minimum order quantities. Long work in process days point to production scheduling, batch sizes and bottlenecks. Long finished goods days point to forecasting, sales and the range. The stages have different owners, so a single DIO target rarely works. Set one for each.
Setting a target DIO
Benchmarks tell you how you compare. A target built from how you buy tells you what you should be able to reach. Four components make up the stock a business needs on an ordinary day.
Buying in batches means stock falls from a full order to nothing between deliveries. Its average is half the days between orders.
Extra stock held against variation in demand and in supplier delivery. It rises with variability and with the service level you want.
Goods that are yours but still moving. If you take ownership at the supplier’s dock, the days in transit are inventory.
Stock built ahead of a peak. It is real inventory with a real purpose, and it belongs in the target.
Take a business that orders every 28 days, so cycle stock averages 14 days. It holds 7 days of safety stock, owns goods for 14 days in transit and plans an average of 7 days of seasonal build. The planning floor is 14 + 7 + 14 + 7 = 42 days. The example’s 55.4 days is 13.4 days above it, which is about $191,000 of stock beyond what the way it buys explains. That gap is where to look first: slow stock, over-ordering, a bad forecast or a purchase pattern that no longer fits.
The floor is a planning tool, not a law. A higher service level needs more safety stock, and a supplier who ships weekly lowers cycle stock. The inventory turnover calculator covers economic order quantity and safety stock in detail, and the workbook has a sheet that builds the floor from your own numbers.
DIO inside the cash conversion cycle
DIO is the first of three pieces in the cash conversion cycle. The full cycle is DIO plus days sales outstanding minus days payable outstanding. It says how many days cash is tied up between paying for inputs and collecting from customers. With a DIO of 55.4, a DSO of 38 and a DPO of 42, the cycle is 51.4 days.
Each piece is a lever. A day off DIO frees $14,247 of cash in this example, by way of a smaller inventory. A day off DSO frees a day of sales, and a day added to DPO holds a day of purchases. The days are on different bases: DIO and DPO on cost of goods sold, and DSO on sales, so the dollar value of a day differs by component. The cash conversion cycle calculator, the DSO calculator and the DPO calculator work through the other two.
Improving DIO without stockouts
The trap in reducing DIO is cutting stock the business needs. The levers worth pulling shrink the stock that does no work, and leave service alone. Here is what each is worth in the example, where a day is $14,247.
Clearing the slow stock is the fastest and the most certain, since it requires no change to how the business buys. It may mean a markdown, a bundle or a return to the supplier, and the loss on those is real, but it is smaller than the loss from letting the stock age. Ordering more often trades a lower cycle stock for more purchase orders and, for some suppliers, higher freight. Cutting safety stock needs a better forecast first. Changing when you take ownership of in-transit goods moves days between you and the supplier, so it needs their agreement.
Watch service while you do this. A DIO that falls while the fill rate falls is a sign that the wrong stock was cut. The number to hold steady is the availability of the products customers buy most. The cost side of the decision, the price per unit that goes into inventory, comes from the cost per unit calculator and the landed cost calculator.
Common mistakes
It understates DIO by the size of the markup. In the example it turns 55.4 days into 34.3.
It measures the quietest day of the year and hides the peak.
Quarterly inventory with annual COGS, or a monthly ratio multiplied by 365, gives a meaningless result.
Inventory cost method, year-end date, and average versus ending all change the number.
A healthy average can carry a slice of stock that is a year old.
When sales are rising, historical DIO overstates how long stock will last. Check days of supply.
A falling DIO is only good if the fill rate holds.
A manufacturer’s inventory includes all three stages. Measure the total, and each stage separately.
What this calculator can't tell you
It works from the balances and cost of goods sold you enter. It does not value inventory, and the result depends on your cost method: FIFO, LIFO and average cost give different inventory values and cost of goods sold in periods of changing prices, and so different DIOs. The carrying cost rate is your assumption. The 20% shown is an illustration.
The page does not publish industry benchmarks for DIO, because published figures vary with definitions, dates and samples. The dependable comparisons are your own history, direct competitors and the floor implied by how you buy. The write-down percentages in the aging table are illustrative, not accounting rules.
This is a planning aid, not accounting advice. Inventory valuation and write-downs follow your reporting framework, so confirm them with your accountant.
Sources
The formulas follow standard financial analysis and managerial accounting practice, as taught in the CMA curriculum and in corporate finance texts. Days inventory outstanding, days sales of inventory and inventory days are the same calculation under different names. The examples were computed with the same engine as the calculator and checked by hand: $789,231 ÷ $5,200,000 × 365 = 55.4 days, and the segments of inventory by category and age add back to the same $789,231.
Frequently asked questions
Days inventory outstanding (DIO) is the average number of days a company holds inventory before selling it. It is inventory divided by cost of goods sold, multiplied by the days in the period. A business with $789,231 of average inventory and $5,200,000 of cost of goods sold has a DIO of 55.4 days. It is also called days sales of inventory, inventory days, days in inventory, or the average age of inventory.
DIO = (inventory ÷ cost of goods sold) × days in the period. For a year, use 365 days. The inventory figure is usually the average of the beginning and ending balances, though an average of all month-end balances is more accurate when stock varies through the year. An equivalent form is DIO = 365 ÷ inventory turnover, where turnover is cost of goods sold divided by average inventory.
A lower DIO means less cash is tied up in stock and stock turns faster, which is usually better. But too low can mean stockouts, lost sales and rushed purchasing, and a business preparing for a season will carry more inventory on purpose. Treat DIO as a measure to compare with your own history and with similar businesses, and pair it with fill rate and lost-sales data so that a falling DIO does not hide a service problem.
There is no universal figure, because DIO reflects the product, the supply chain and the selling model. Fast-turning goods have short DIOs and durable or seasonal goods long ones. The useful comparisons are your own trend over time, direct competitors with similar products, and the floor implied by your lead times, order frequency and safety stock. A DIO far above that floor points to slow stock or over-ordering.
They measure the same thing in different units. Turnover says how many times inventory is sold and replaced in a period. DIO says how many days that takes. A turnover of 6.59 times a year is a DIO of 55.4 days. Days are easier to compare with lead times and payment terms, which is why DIO is the version used in the cash conversion cycle. The inventory turnover calculator covers turnover, order quantity and reorder points.
Average inventory is standard, because it reflects the stock held through the period. For a steady business, the average of the beginning and ending balances is fine. For a seasonal business, it can mislead badly: with balances of $520,000 at the start, $500,000 at the end and a $1.5 million peak, the two-point average gives 35.8 days while the average of all 13 month-end balances gives 55.4. Use the fuller average for managing cash.
Inventory is recorded at cost, so it should be compared with the cost of what was sold. Sales include the markup, which makes DIO look shorter than it is. If cost of goods sold is 62% of sales, using sales in the example gives 34.3 days instead of 55.4. Cost of goods sold also makes DIO comparable across businesses with different margins.
None in practice. Days sales of inventory (DSI), days inventory outstanding, days in inventory and inventory days all describe the same calculation, and financial sites use them interchangeably. Some sources reserve “average days inventory outstanding” for the average of DIO across several periods, which is useful for spotting seasonal patterns.
Use that period’s cost of goods sold, the inventory balances inside the period, and that period’s days: 90 for a quarter or 30 for a month. Do not divide quarterly inventory by annual cost of goods sold, or multiply by 365 with a monthly COGS. A monthly DIO swings more than an annual one, so compare a month with the same month a year earlier.
The cash conversion cycle is DIO plus days sales outstanding minus days payable outstanding. It measures how long cash is tied up between paying suppliers and collecting from customers. With a DIO of 55.4, a DSO of 38 and a DPO of 42, the cycle is 51.4 days. Cutting DIO by a day shortens the cycle by a day, as does collecting faster or paying suppliers later.
Clear slow-moving stock, order more often in smaller quantities, improve forecasts so safety stock can shrink, and negotiate shorter lead times or consignment for the long tail of products. In the example, clearing $120,000 of slow stock removes 8.4 days, ordering every 14 days instead of 28 removes about 7, and cutting safety stock from 7 days to 5 removes 2. Do it without letting fill rate fall.
Days of supply is ending inventory divided by forecast daily cost of goods sold, so it says how long current stock will last at the expected rate of sales. DIO looks back and days of supply looks forward. When sales are growing they diverge: $500,000 of ending stock is 35.1 days of last year’s sales but only 30.4 days of next year’s forecast. Use days of supply for purchasing and DIO for performance.
Continue with the inventory turnover calculator or the cash conversion cycle calculator.
Glossary:Days Inventory Outstanding,Inventory Carrying Cost,Inventory Turnover,Cash Conversion Cycle
Related calculators