What is days sales outstanding (DSO), and how do you calculate it?
Days sales outstanding measures how fast you collect after a sale. The DSO formula, a worked example, and how to judge whether your DSO is healthy.

Days sales outstanding (DSO) is the average number of days it takes a business to collect cash after making a sale on credit. To calculate it, divide accounts receivable by credit sales for the period and multiply by the number of days in that period. A company with $1.2 million in receivables and $3.6 million of credit sales over a 90-day quarter has a DSO of 30 days. This guide covers the DSO formula, a worked calculation, the variants you will meet, and how to judge whether your number is healthy against a sourced benchmark.
Key takeaways
• DSO = (accounts receivable ÷ credit sales) × days in the period. It measures how many days of sales are sitting uncollected in receivables.
• APQC's cross-industry benchmark puts median DSO at 38 days, with top performers at 30 days or less and bottom performers at 46 days or more.
• Judge DSO against your payment terms, not just a benchmark. A 40-day DSO is healthy on net 45 terms and a warning sign on net 15.
• The formula you pick changes the number. Averaging, ending balances, and the countback method can give different DSOs for the same month when sales are uneven.
• Loopfour, the deterministic finance workflow automation platform, calculates DSO the same way every period and flags movements with the invoices behind them.
What is days sales outstanding?
Days sales outstanding is a working-capital metric that expresses your accounts receivable balance as a number of days of sales. APQC defines it as "the length of time from when a sale is made until cash for it is received from customers." A lower DSO means you convert sales to cash faster.
DSO matters because receivables are cash you have earned but cannot spend. Every day of DSO ties up roughly one day of credit sales in working capital. For a business with $14.6 million in annual credit sales, one day of DSO is about $40,000 of cash.
DSO is sometimes called the average collection period or days receivable. The idea is the same. It links the AR balance on your balance sheet to the revenue line on your income statement, which is why lenders, investors, and auditors watch it. If you need a refresher on the receivables side itself, see what accounts receivable is and how it is recorded.
How do you calculate days sales outstanding?
Calculate DSO by dividing accounts receivable by total credit sales for a period, then multiplying by the number of days in that period. Use credit sales only, because cash sales never create a receivable.
DSO = (Accounts receivable ÷ Credit sales) × Number of days
Three inputs need a decision:
• Accounts receivable. Use the ending AR balance, or the average of beginning and ending AR for the period. Averaging smooths one-off swings.
• Credit sales. Use gross credit sales for the same period as the days. Exclude cash sales. APQC's measure also excludes unbilled receivables.
• Number of days. Match the period: 30 or 31 for a month, 90 or 91 for a quarter, 365 for a year.
Consistency matters more than the variant you choose. Pick one definition, write it down, and use it every period so trends mean something.
Worked example: calculating DSO step by step
Here is a worked DSO calculation for an illustrative B2B company in its third quarter. The numbers are hypothetical and chosen to make the arithmetic easy to follow.
| Input | Value |
|---|---|
| Credit sales, July | $1,300,000 |
| Credit sales, August | $1,300,000 |
| Credit sales, September | $1,000,000 |
| Total Q3 credit sales | $3,600,000 |
| AR balance, September 30 | $1,200,000 |
| AR not yet past due, September 30 | $800,000 |
| Days in period | 92 (use 90 for simplicity) |
| Payment terms | Net 30 |
Step 1: divide AR by credit sales. $1,200,000 ÷ $3,600,000 = 0.333.
Step 2: multiply by days in the period. 0.333 × 90 = 30 days DSO.
Step 3: interpret it. On net 30 terms, a 30-day DSO looks like customers are paying on time. But $400,000 of the balance is already past due. The next section shows why the headline number can hide that.
DSO variants: which formula should you use?
The standard formula is simple, but three variants give a sharper picture when sales are seasonal or uneven. Each answers a slightly different question.
| Variant | Formula | Example result | Best for |
|---|---|---|---|
| Standard DSO | (AR ÷ credit sales) × days | 30.0 days | Quick trend tracking with steady sales |
| Annualized (APQC) | Average gross AR ÷ (annual gross sales ÷ 365) | Depends on full-year data | Benchmarking against APQC peers |
| Countback DSO | Subtract each month's sales from AR, newest first, counting days | 34.8 days | Seasonal or uneven sales |
| Best possible DSO | (Current, not-past-due AR ÷ credit sales) × days | 20.0 days | Separating terms from collection performance |
Countback DSO
The countback method walks backward through recent months, subtracting each month's sales from AR until AR runs out. Using the example: $1,200,000 AR minus September's $1,000,000 in sales covers 30 days, leaving $200,000. That remainder is $200,000 ÷ $1,300,000 of August sales × 31 days = 4.8 days. Countback DSO = 34.8 days.
Countback shows the September sales dip that the averaging method hid. Because sales fell in the latest month, the standard formula divided by a larger quarterly average and understated how much of the recent revenue is still unpaid.
Best possible DSO and average days delinquent
Best possible DSO uses only current, not-yet-due receivables, so it shows the DSO you would have if every customer paid on time. Here: $800,000 ÷ $3,600,000 × 90 = 20 days.
Subtract it from standard DSO to get average days delinquent: 30 − 20 = 10 days. That is the portion of DSO driven by late payment rather than by your terms. It is the number your collections process actually controls.
What is a good DSO?
A good DSO is one close to your average payment terms and stable or falling over time. As an external reference point, APQC's open standards benchmarking reports a cross-industry median DSO of 38 days, with top performers at 30 days or less and bottom performers at 46 days or more.
Use that benchmark carefully:
• It is cross-industry. APQC itself recommends comparing against peers in your own industry, because terms vary widely by sector.
• Terms dominate. A business billing net 60 will carry a higher DSO than one billing net 15, even with perfect collections.
• Trend beats level. A DSO rising from 34 to 41 days over two quarters matters more than whether 41 is above or below a cross-industry median.
A practical rule: compare DSO to your weighted-average payment terms. If DSO runs more than about a third above terms, look at average days delinquent and your aging report before blaming customers.
Why DSO moves, and what it cannot tell you
DSO moves when either receivables or sales change, so a rising DSO does not always mean slower collections. Read it alongside the aging report.
Common reasons DSO rises:
• Slower customer payments, the reason everyone assumes.
• Billing delays, where invoices go out days after the service period ends.
• A sales dip in the latest period, which inflates standard DSO even if collections are unchanged.
• Large invoices at quarter end, which raise AR before they are due.
• Unapplied cash, where payments are received but not matched, so AR stays overstated.
DSO cannot tell you which customers are late, or why. For that, use the AR aging report. To act on the number, see how to reduce days sales outstanding.
How Loopfour monitors DSO
Loopfour runs DSO monitoring as a deterministic workflow that calculates the metric the same way every period and explains every movement. A number that changes definition between periods is not a trend.
The flow: period close in NetSuite or QuickBooks → pull AR and credit sales → calculate standard, countback, and best possible DSO using your documented definition → compare to prior period and terms → post the result to Slack with the top invoices driving any change.
Because the calculation depends on current AR, it runs after Cash Application, so unapplied payments do not inflate DSO. Every run lands in the execution tree with its inputs, so your auditors or board can re-perform the number.
Book a workflow review to see how your DSO definition would run on your own stack.
How to choose a DSO method for your team
Choose the DSO method that answers your team's question, then hold it constant. Standard DSO for board reporting, countback when sales are seasonal, and best possible DSO for managing collections.
| If you need to… | Use |
|---|---|
| Report a simple trend to the board | Standard DSO on a consistent period |
| Compare against an external benchmark | The benchmark provider's own formula, such as APQC's annualized method |
| Handle seasonal or lumpy sales | Countback DSO |
| Measure your collections team | Average days delinquent |
Spreadsheets calculate DSO fine. The risk is drift: a changed cell range, a different AR report, or a month where someone forgot to exclude cash sales. A deterministic workflow removes that drift.
Frequently asked questions
What is days sales outstanding in simple terms? Days sales outstanding is how many days, on average, it takes to collect payment after a credit sale. It turns your accounts receivable balance into days of sales, so a DSO of 40 means about 40 days of sales are waiting to be collected.
How do you calculate DSO for a month? Divide the month-end accounts receivable balance by that month's credit sales, then multiply by the days in the month. For example, $500,000 of AR on $450,000 of credit sales in a 30-day month gives a DSO of about 33 days.
What is a good DSO benchmark? APQC's cross-industry data shows a median DSO of 38 days, with top performers at 30 days or less and bottom performers at 46 days or more. Compare against your own industry and your payment terms before drawing conclusions.
Should DSO use total sales or credit sales? Use credit sales, because cash sales never create a receivable. Including cash sales makes DSO look artificially low. If you cannot separate them, state that clearly and use the same basis every period.
Is a lower DSO always better? Usually, but not always. A very low DSO can mean terms are too strict for your market and are costing sales. Aim for DSO close to your terms, with low average days delinquent.
Conclusion
Days sales outstanding tells you how many days of sales are tied up in receivables. Calculate DSO as AR divided by credit sales, multiplied by the days in the period, and hold the definition constant. Judge it against your terms and APQC's cross-industry median of 38 days, then use countback and best possible DSO to see what is really driving the number.
Tell us the one workflow your team dreads. We will show it running — deterministic, permissioned, and auditable.
Book a demo.
Sources
• APQC, Days sales outstanding (open standards benchmarking measure)
• APQC, What is DSO in finance?
Related reading
• How to reduce days sales outstanding: the levers that actually move DSO
• The AR aging report: how to read it and forecast collections from it
• What is accounts receivable? Asset or liability, debit or credit
• How accounts receivable automation improves cash flow forecasting
• What is cash application? How payments get applied to open invoices
