How to Calculate DSO: Formula, Example, and Common Mistakes

How Do You Calculate DSO?
You calculate DSO by dividing accounts receivable by total credit sales, then multiplying by the number of days in the period. The formula is DSO = (Accounts Receivable / Total Credit Sales) x Number of Days. It tells you the average number of days it takes to collect payment after a credit sale, which is one of the clearest measures of how fast your finance team turns revenue into cash. The lower the number, the faster earned revenue becomes cash you can actually deploy.
This guide walks through the formula, a worked example, the period choices that trip teams up, the variations worth knowing, and how to actually move the number down. For the broader picture of why DSO stays high despite automation, see Monk's Definitive AR Guide. If you want the conceptual background first, start with what is DSO in finance.
What Is the DSO Formula?
The standard DSO formula has three inputs: accounts receivable at the end of the period, total credit sales during the period, and the number of days in that period, typically 30, 90, or 365.
DSO = (Accounts Receivable / Total Credit Sales) x Number of Days. Use credit sales rather than total sales, because cash sales are collected immediately and would understate the true collection period. Keep both inputs on the same period; pairing a quarter of receivables with a year of sales produces a meaningless result.
For accounts receivable, most teams use the ending balance for the period, though some average the opening and closing balances to smooth out a large invoice that landed near the cutoff. Either is defensible as long as you stay consistent. The number of days simply matches the window you are measuring: 30 for a month, 90 for a quarter, 365 for a year. The output is always expressed in days, which makes DSO directly comparable to your payment terms.
What Does a DSO Calculation Look Like in Practice?
Consider a company with $450,000 in accounts receivable and $3,000,000 in credit sales over a 90-day quarter. The calculation is (450,000 / 3,000,000) x 90, which equals 13.5 days. The table below shows how the same receivables balance produces very different DSO depending on sales volume, which is why the ratio matters more than the raw balance.
| Accounts receivable | Credit sales | Period (days) | Calculation | DSO |
|---|---|---|---|---|
| $450,000 | $3,000,000 | 90 | (450,000 / 3,000,000) x 90 | 13.5 days |
| $450,000 | $1,500,000 | 90 | (450,000 / 1,500,000) x 90 | 27 days |
| $450,000 | $900,000 | 90 | (450,000 / 900,000) x 90 | 45 days |
| $450,000 | $675,000 | 90 | (450,000 / 675,000) x 90 | 60 days |
The pattern is clear: as credit sales fall against a fixed receivables balance, DSO climbs. A rising DSO over time often means receivables are growing faster than the sales that should be retiring them, a sign that collection is lagging billing. It can also mean the opposite in a fast-growing company, where receivables swell simply because sales are accelerating, which is why the number is best read alongside your sales trend rather than on its own.
Are There Different Ways to Calculate DSO?
Yes. The version above is standard DSO. Two variations are worth knowing. Best Possible DSO uses only current (not yet overdue) receivables, showing the floor you could reach if every customer paid on time; comparing it to your actual DSO reveals how much of the gap is overdue cash. The countback or average method spreads the calculation across recent months to smooth out a single lumpy billing cycle.
Pick one method and apply it consistently. The goal is a comparable trend line, not a single perfect number, so switching methods between periods defeats the purpose. Most teams track standard DSO monthly and use Best Possible DSO as a target to close the gap against.
The countback method deserves a note for businesses with seasonal or lumpy revenue. Instead of dividing by a single period's sales, it works backward through recent months, subtracting each month's credit sales from the receivables balance until the balance is exhausted, then counts the days that took. This avoids the distortion you get when one large invoice lands right at period end and a simple calculation makes DSO spike for reasons that have nothing to do with collection performance. For most steady B2B businesses the standard formula is enough, but it is worth knowing why the more complex methods exist.
What Are Common Mistakes When Calculating DSO?
The most common mistake is using total sales instead of credit sales, which understates DSO because cash sales never sat in receivables. The second is mismatching the period: pairing a quarter of receivables with a full year of sales produces a number that means nothing.
A third mistake is reading a single month's DSO in isolation. DSO naturally fluctuates with billing cycles and seasonality, so the trend over several periods is more informative than any one snapshot. Finally, unmatched cash distorts the picture: payments that have arrived but are not yet applied still show as outstanding, inflating DSO even when the cash is in the bank. That last one is why accurate cash application is part of measuring DSO honestly, not just lowering it.
How Do You Lower DSO Once You Have Measured It?
Measuring DSO is only useful if you act on it. The fastest levers are accurate, immediate invoicing, consistent follow-up, frictionless payment, and intelligent collections that adapt to each customer rather than firing the same reminder at everyone. Most of the days in a high DSO are not a single failure but the sum of small delays: an invoice sent late, a reminder that never went out, a dispute that sat unanswered, a payment that arrived but was not applied.
Monk automates these steps as one invoice-to-cash motion, and customers see a 40% average reduction in DSO, 88.2% of invoices resolved without escalation, and a 2.4x increase in cash on hand in the first quarter. Monk's Intelligent Collections reads the context of each account and adapts tone per customer history, which monk.com reports is 24% more effective than standard dunning. Automating cash application also keeps DSO accurate by matching payments the moment they arrive. For the full playbook, see how to reduce DSO: 6 proven strategies.
What Does Lower DSO Look Like in Practice?
The payoff is working capital you already earned, freed without raising a dollar of new financing. AI fintech Pump runs collections through Monk across more than 1,500 customers and roughly $25M in volume, automating the follow-up that used to be manual and pulling payments into the current cycle. See the Pump case study for the detail. Every day shaved off DSO is a day of cash that funds payroll, growth, or runway instead of sitting in a customer's AP queue.
Frequently Asked Questions
What is the formula for DSO?
DSO = (Accounts Receivable / Total Credit Sales) x Number of Days in the period. For example, $450,000 in receivables against $3,000,000 in 90-day credit sales gives 13.5 days.
Should I use total sales or credit sales for DSO?
Use credit sales. Cash sales are collected immediately and would understate the true collection period, making DSO look better than it is.
What period should I use to calculate DSO?
Match the period to your reporting cadence, commonly 30, 90, or 365 days, and keep receivables and sales on the same period so the ratio is meaningful.
What is Best Possible DSO?
Best Possible DSO uses only current receivables to show the lowest DSO you could reach if every customer paid on time. The gap between it and your actual DSO is the overdue cash worth chasing.
How often should I calculate DSO?
Monthly is typical, but watch the trend across periods rather than a single reading, since DSO fluctuates with billing cycles and seasonality.
Why is my DSO higher than expected?
Common causes are invoicing errors, inconsistent follow-up, payment friction, and unapplied cash. Automating collections and cash application addresses all four.
Does automation change how DSO is calculated?
No, the formula is the same. Automation changes the inputs by collecting faster and applying cash promptly, which lowers the number. Monk customers see a 40% average reduction in DSO.
Ready to bring your DSO down? Book a demo with Monk.



.avif)