DSO formula

DSO equals accounts receivable divided by average sales per day. The result is in days.

What is the DSO formula?

Days sales outstanding is accounts receivable divided by average sales per day. Wikipedia gives the same ratio as receivables divided by annual sales over 365.

DSO = accounts receivable / average sales per day

DSO = accounts receivable / (annual sales / 365)

Average sales per day can come from any period you find useful. A calendar year, a fiscal year or a month all work.

Quick facts

  • DSO is stated in days.
  • Use credit sales. Cash sales never sit in receivables.
  • DSO is typically calculated monthly.
  • A period that is too short can add artifacts to the data.

DSO formula variants

The sources show three common forms. They answer slightly different questions, so pick one and keep it the same each period.

VariantFormulaUse it when
SimpleReceivables / credit sales x days in periodYou have one balance and one period of sales.
Average((opening + closing receivables) / 2) / net revenue x 365Balances moved a lot during the period.
CountbackSubtract monthly sales from the balance, newest firstSales change a lot from month to month. See countback DSO.

The average version comes from the AFP article, where net revenue is total sales minus returns and discounts for the same period.

DSO formula example

Receivables are 50,000. Credit sales over 90 days are 300,000. Sales per day are 300,000 / 90 = 3,333.33. DSO is 50,000 / 3,333.33 = 15 days.

Enter your own figures in the DSO calculator, or follow the step-by-step guide to calculating DSO.

Common questions about the DSO formula

Does the DSO formula use total sales or credit sales?

Credit sales. The AFP article says DSO measures only credit sales, so a company with many cash sales shows a lower DSO. Cash sales do not create receivables.

Is DSO the average number of days to collect payment?

Not exactly. Wikipedia describes DSO as the size of receivables in days of average sales and calls the common reading, days to collect after a sale, a misinterpretation. It also describes a separate time-to-collect measure it calls true DSO.

Which period should the DSO formula use?

Any period that suits you. Wikipedia names a calendar year, a month, a fiscal year or a fiscal period. Use the number of days in that period, such as 30 or 31 for a month and 365 for a year.

Sources: Wikipedia, days sales outstanding; AFP, days sales outstanding. Page updated 26 November 2026.