Days Sales Outstanding (DSO): Formula and How to Improve It
Days sales outstanding (DSO) measures the average number of days it takes to collect payment after a sale. Here is the DSO formula, a worked example, what a good DSO looks like, and how to reduce it.


A sale is not really complete until the cash arrives. Days sales outstanding, or DSO, measures how long that takes, the average number of days between making a sale and collecting payment. It is one of the most watched metrics in finance because it directly affects cash flow and working capital: the lower the DSO, the faster a company turns sales into usable cash.
This guide explains what DSO is, the formula, a worked example, what a good DSO looks like, and how to reduce it.
What is days sales outstanding?
Days sales outstanding (DSO) is the average number of days it takes a company to collect payment after a credit sale. It measures how efficiently a business converts its accounts receivable into cash. A low DSO means customers pay quickly; a high DSO means cash is tied up in unpaid invoices.
DSO is really a measure of how long your cash sits in someone else's bank account. Every day of DSO is a day your money is working for your customer instead of for you, which is why finance teams watch it so closely.
The DSO formula
DSO is calculated over a period (often a month, quarter, or year):
DSO = (Accounts Receivable / Total Credit Sales) × Number of Days in the Period
For example, if a company has $500,000 in accounts receivable, $2,000,000 in credit sales for the quarter, and the quarter has 91 days:
- DSO = ($500,000 / $2,000,000) × 91
- DSO = 0.25 × 91 = 22.75 days
On average, it takes this company about 23 days to collect payment after a sale. Use only credit sales (not cash sales) in the denominator, since cash sales have no collection period.
What is a good DSO?
There is no universal "good" number, it varies by industry and by a company's standard payment terms. A common rule of thumb: a DSO under 45 days is generally considered healthy, and a DSO meaningfully higher than your payment terms (say, DSO of 60 on net-30 terms) signals a collection problem. The most useful comparison is against your own terms, your trend over time, and your industry peers.
How to reduce DSO
- Invoice promptly and accurately. The clock starts at invoicing, and errors cause disputes and delays.
- Make payment easy. Offer convenient payment methods and clear terms.
- Tighten credit policy. Vet customers and set appropriate credit limits.
- Follow up systematically. Proactive, consistent collections outreach on aging invoices.
- Offer early-payment incentives. Small discounts can pull cash in faster.
- Prioritize by risk. Focus collections effort on the largest and most overdue accounts first.
Why DSO matters
- Cash flow. Lower DSO means more cash on hand and less need for external financing.
- Working capital. DSO is a core component of the cash conversion cycle, see our guide to working capital management.
- Early warning. A rising DSO can signal deteriorating collections, customer financial stress, or billing problems.
How AI agents help with DSO
Reducing DSO is largely about consistent, prioritized collections, and that is exactly the kind of recurring work AI agents handle well. An agent can monitor the receivables aging, prioritize accounts by size and risk, draft and send follow-ups, and surface the exceptions that need a human, keeping collections proactive instead of reactive. It can also track DSO continuously so the trend is always visible.
That is the approach behind automating accounts receivable with AI agents: the agent works the receivables so DSO comes down, with a human owning the customer relationships.
Frequently asked questions
What is days sales outstanding (DSO)?
DSO is the average number of days it takes a company to collect payment after a credit sale. It measures how efficiently receivables are converted into cash, a lower DSO means faster collection and better cash flow.
How do you calculate DSO?
DSO = (Accounts Receivable / Total Credit Sales) × Number of Days in the Period. For example, $500,000 in receivables on $2,000,000 of quarterly credit sales over 91 days gives a DSO of about 23 days. Use only credit sales in the denominator.
What is a good DSO?
It depends on industry and payment terms, but a DSO under about 45 days is generally considered healthy. The most meaningful benchmarks are your own payment terms, your trend over time, and your industry peers. A DSO well above your terms signals a collection issue.
How can a company reduce its DSO?
Invoice promptly and accurately, make payment easy, tighten credit policy, follow up on overdue invoices consistently, offer early-payment incentives, and prioritize collections by account size and risk. Automating collections outreach helps keep it consistent.
The bottom line
Days sales outstanding measures how long it takes to turn sales into cash, and it is a direct lever on cash flow and working capital. Calculate it as receivables divided by credit sales times days in the period, benchmark it against your terms and peers, and reduce it through prompt invoicing and consistent, prioritized collections.
If you want AI agents to work your receivables and bring DSO down, prioritizing and following up automatically with a human in the loop, talk to our team.


