The DSO Formula: How to Calculate Days Sales Outstanding
The DSO formula, worked through with real numbers, what a day of delay actually costs you, and why the gap is almost never a credit problem.

You know roughly what you are owed. The number sits on the aging report and it is usually bigger than anyone would like. What most businesses never put a figure on is how slow that money is arriving, and that is the number that actually decides whether payroll feels comfortable this month.
Days sales outstanding, or DSO, is the average number of days it takes to get paid after a sale on credit. It is the cleanest single read on whether your invoices are turning into cash at the speed your business quietly assumes they are. The receivables total tells you size. DSO tells you speed, and speed is the part you can change.
This walks through the DSO formula, a worked example with real numbers, how to read the result against your own payment terms, and what a single day is worth in cash. The calculation itself takes three figures off your own ledger and about a minute.
What is the DSO formula?
The DSO formula is your accounts receivable balance divided by your credit sales for a period, multiplied by the number of days in that period. Receivables is everything invoiced and not yet paid at the end of the period. Credit sales is what you invoiced over it. The result is a number of days.
One input trips people up more than the rest. Only credit sales belong in the denominator. Anything a customer paid at the point of sale never sat in receivables, so including it inflates the denominator, drags the result down, and hides a collections problem behind a healthy-looking figure. It is the most common way this number gets quietly flattered.
How to calculate DSO, step by step
- Take your receivables balance. Everything you have invoiced and not yet been paid for, at the end of the period you are measuring.
- Take credit sales for the same period. What you invoiced over that window, excluding anything paid up front.
- Divide receivables by credit sales. This gives the share of a period's sales still sitting unpaid.
- Multiply by the days in the period. Ninety for a quarter, 365 for a year. The result is your DSO in days.
- Compare it to your payment terms. The gap between your DSO and the terms you actually invoice on is the part that is available to fix.
A worked example
Take a business invoicing on 30 day terms. At the end of the last quarter it was owed $320,000, and over that quarter it invoiced $600,000 on credit. Those are the only two figures needed, plus the length of the period. Here is the calculation in full, so you can redo it against your own numbers.
| Step | Figure |
|---|---|
| Accounts receivable at period end | $320,000 |
| Credit sales for the quarter | $600,000 |
| Days in the period | 90 |
| Receivables ÷ credit sales | 0.533 |
| DSO = 0.533 × 90 | 48 days |
| Payment terms invoiced on | 30 days |
| Gap between DSO and terms | 18 days |
Forty-eight days against 30 day terms is an 18 day gap. Now turn it into money. That business invoices $600,000 a quarter, which is about $6,670 of sales a day. Every day of DSO is worth a day of sales, so the 18 day gap is roughly $120,000 sitting in customers' bank accounts instead of its own. No extra selling required to get it back, and you can run the same sum on your own figures with the DSO calculator.

Work out your own DSO
Three numbers off your ledger and you have your DSO, the gap to your terms, and what closing it frees up. Free, no signup, and nothing leaves your browser.
Use the DSO calculatorWhat is a good DSO?
The only comparison that means anything is to your own payment terms. A DSO of 45 on 30 day terms is a 15 day gap worth fixing. The same 45 on 60 day terms means customers are paying early. Industry benchmarks vary so widely that they mostly tell you what industry you are in, not how you are doing.
The second thing that matters is direction. A DSO creeping up quarter on quarter is a collections process falling behind its own growth, and it shows up in the trend long before anyone calls it a cash problem. Three or four quarters of history tells you more than any single reading.
How to read the number: trend, terms, and limits
A single DSO figure is a snapshot, and snapshots mislead. The reading that matters is the shape over several quarters, because that is where a collections process quietly falling behind its own growth becomes visible. Here is the pattern to look for, using the same business from the worked example.

Nothing dramatic happens in any single quarter. Four or five days each time, each one explainable by a big customer or a slow month. Cumulatively it is a fortnight of cash, and it usually gets noticed when someone asks why the bank balance feels tighter than the sales figures suggest it should.
What DSO does not tell you
DSO is an average, and averages hide the cases you most want to see. A handful of very large or very old invoices can pull it around while most of your customers pay perfectly well, and it will not tell you which is happening. It is a thermometer, not a diagnosis.
So read it next to two other things. The aging report shows the distribution DSO flattens, which is where a single 120 day invoice hiding behind a decent average turns up. And best possible DSO, calculated with only your current, not-yet-due invoices, shows the floor your terms allow. The distance between the two is the part your process is responsible for.
| Measure | What it answers | Where it misleads |
|---|---|---|
| DSO | On average, how many days until we get paid? | Averages hide a few very old invoices |
| Best possible DSO | What is the floor our payment terms allow? | Ignores everything already overdue |
| Aging report | Which invoices are late, and by how much? | No single number to track over time |
| Collection effectiveness | What share of what was due did we actually collect? | Needs consistent period boundaries to compare |
Late payment is the normal condition, not the exception. The Atradius Payment Practices Barometer for North America, published in September 2025, found that 43% of credit-based B2B sales in the region are overdue. If nearly half your invoiced value routinely sits past its due date, a DSO well above your terms is not bad luck. It is the default outcome of doing nothing in particular.
Why the gap is almost never a credit problem
The instinct is to blame the credit decision: we sold to the wrong customers, we need stricter terms. Occasionally true. Far more often the credit call was fine and the follow-up is what slipped. An invoice goes a few days over, nobody notices until someone next runs the aging report, and by then it is a fortnight old and the conversation is awkward.
Chasing is a job somebody fits around their real work. It has no deadline of its own, it feels rude, and it competes with everything urgent. So it slides, quietly, every week. The gap is an attention problem before it is a finance one, and attention is exactly the thing that stops scaling as invoice volume grows.
| What people blame | What is usually happening | What actually fixes it |
|---|---|---|
| Customers pay late on purpose | Most pay when asked. Nobody asked. | Chasing on the day it slips, every time |
| We need stricter credit terms | The terms are fine. The follow-up is not. | Consistency, not severity |
| We need to hire a credit controller | Routine reminders are the bulk of the work | Automate the routine, escalate the exceptions |
| It is a cash flow problem | It is a process timing problem | Invoice sooner, chase on schedule |
What actually moves DSO
- Invoice the day the work is done. Every day between delivery and invoice is a day of DSO you created yourself, and it is the cheapest one to remove.
- Put the due date where it cannot be missed. Not "net 30" buried in a footer, an actual date near the amount.
- Chase on a schedule tied to the due date. Not when someone remembers, and not one blast to everybody on the same day of the month.
- Make paying frictionless. A payment link beats bank details in a PDF, every time.
- Escalate disputes immediately. A disputed invoice ages silently and is the single most common cause of a very old balance.
- Know who to chase gently. A key account and a serial late payer need different tones, and sending both the same email costs you one of them.
Every one of those is a small, repetitive job that has to happen on the right day, for every invoice, forever. That is precisely the shape of work that slips when a person is busy, and precisely the shape that does not slip when something is watching the aging in the background. It is the same reasoning behind the agents we build, and if you want to price the manual version first, the labor cost calculator will tell you what those hours cost you a year.
Frequently asked questions
The bottom line
DSO is a speed measure, and the number on its own changes nothing. The gap between it and your payment terms is the part that is available to fix, and it converts straight into cash without selling anything more.
If that gap is a few days, this is not worth a project. If it is weeks wide and drifting, the cause is almost never the credit decision. It is that nobody has time to chase every slip on the day it happens, and that is a fixable problem rather than a fact of business.
Is your DSO gap worth fixing?
Bring your invoicing and chasing process to a 30-minute call. If the gap is not worth building against, we will say so.
Book a 30-min callGet one sharp idea on shipping AI, no hype, no spam
The occasional deep-dive on what actually works when you put AI into a real business. Written for owners and operators, not engineers.



