The DSO Formula: How to Measure (and Fix) the Gap Between Sales and Cash
Your books say you had a record month. Your bank account says you can barely cover payroll. Welcome to the gap that crushes more profitable businesses than any recession: the days between when you bill a customer and when the money actually shows up.
That gap has a name. It is called Days Sales Outstanding, or DSO, and it is one of the few financial metrics that translates directly into how nervous you feel on any given Friday afternoon. Tracking it well is the difference between scaling on confidence and scaling on a credit line. Tracking it poorly is how good companies quietly run out of cash.
This guide walks through the DSO formula, what counts as a healthy number for your industry, the most common ways businesses miscalculate it, and the practical levers that actually move the needle.
What DSO Actually Measures
Days Sales Outstanding is the average number of days it takes to collect payment after you make a credit sale. If your DSO is 45, then on average each invoice you send takes about a month and a half to convert into cash in your bank account.
It is sometimes phrased differently — as "the days worth of sales currently sitting in your accounts receivable" — and that is a more precise way to think about it. DSO is a snapshot of how much working capital is parked in invoices instead of working for your business.
Lower is generally better. Lower DSO means cash arrives faster, you can fund operations from collections rather than loans, and your business is less exposed to a single late-paying customer derailing the month.
The DSO Formula
The standard formula is simple enough to scratch on a napkin:
DSO = (Accounts Receivable / Total Credit Sales) × Number of Days in Period
Three inputs:
- Accounts Receivable: the total amount your customers currently owe you on credit
- Total Credit Sales: revenue billed on credit during the period (cash sales should be excluded)
- Number of Days: the length of the period — usually 30, 90, or 365
A Worked Example
Imagine a consulting firm closes Q1 with the following:
- Accounts Receivable balance: $40,000
- Credit sales for the quarter: $100,000
- Period length: 90 days
DSO = ($40,000 / $100,000) × 90 = 36 days
That means, on average, the firm is waiting 36 days from invoice to cash. Whether that is good or bad depends on the industry and the firm's payment terms, which is where benchmarks come in.
The Annualized Version
If you prefer annual numbers, the formula adapts cleanly:
DSO = (Average Accounts Receivable / Net Credit Revenue) × 365
Using the average AR balance — typically (beginning AR + ending AR) / 2 — smooths out one-time spikes from a single large invoice that landed at the end of a period.
What Counts as a "Good" DSO
There is no universal target, and any blog that gives you one without asking about your industry is selling you something. That said, broad benchmarks exist:
- Across most industries: 30 to 45 days is generally considered healthy
- Anything below 40: typically reads as strong cash discipline
- Anything above 60: warrants a closer look at terms, processes, or customer mix
By industry, the picture sharpens:
- Retail and e-commerce: card payments settle in 1 to 3 days, so DSO should stay in the single digits. If your e-commerce DSO creeps past 25 days, suspect payment gateway failures, chargebacks, or fraud holds before you suspect customers.
- SaaS and subscription: monthly recurring billing combined with enterprise Net 30-45 contracts puts most companies in the 30-45 day range. Self-serve products tend toward the low end, enterprise toward the high end.
- Professional services: agencies, consultancies, and firms typically land between 35 and 60 days, depending on whether they bill on retainer or project completion.
- Manufacturing and wholesale: longer payment terms (Net 60 or even Net 90) are standard, so DSO of 60 to 75 days is normal — not necessarily a problem.
- Construction: progress billing and retention clauses push DSO higher still, often 70 to 90+ days.
The honest answer is: benchmark against your own past quarters first, against direct competitors second, and against industry averages last. A trend line in your own DSO tells you more than any external number.
Why DSO Matters More Than Most Founders Realize
Profit is an opinion. Cash is a fact. DSO is the metric that translates one into the other.
Three reasons it deserves a spot on your dashboard:
1. It tells you whether growth is funded by customers or by debt. A growing business with rising DSO is, in effect, lending money to its customers — at zero interest, with no collateral. That money has to come from somewhere. Usually it comes from a line of credit, a delayed payroll, or a founder's personal savings. None of those scale forever.
2. It exposes hidden customer concentration risk. If your DSO jumps 20% in a quarter, the cause is rarely "everyone started paying late." Almost always it is one or two large customers who slowed down. Watching DSO trend lines surfaces that risk before it becomes a crisis.
3. It is a leading indicator of operational health. Rising DSO often precedes other problems: invoicing errors, account management gaps, weak credit screening, broken payment infrastructure. When the number drifts up, something upstream is breaking.
The Five Most Common DSO Mistakes
Calculating DSO is easy. Calculating it correctly — and reading it accurately — is where most teams stumble.
1. Mixing Cash Sales with Credit Sales
The denominator should be credit sales only. Including cash sales (which have effectively zero collection time) artificially deflates DSO and gives you a falsely rosy picture. If you run a hybrid business, segment the calculation.
2. Mismatching Time Periods
Your AR balance and your credit sales must cover the same window. Comparing this quarter's AR to last quarter's sales produces a meaningless number. Always check that the periods align.
3. Reading a Single Snapshot
DSO is volatile. A big customer paying a day early at quarter-end can swing the number significantly. One reading is noise; a six-month trend is signal. Always look at DSO as a moving line, not a point.
4. Trusting Low DSO Without Context
A suspiciously low DSO can mean great collections — or it can mean your sales team is only closing customers who pay upfront because credit screening is too tight, leaving real revenue on the table. Low DSO without a healthy revenue trend can mask a growth problem.
5. Ignoring AR Aging Behind the Average
DSO is an average. An average can hide that 80% of your AR is current and 20% is 90+ days overdue and probably uncollectible. Always pair DSO with an aging report to see what is actually behind the number.
Seven Practical Ways to Reduce DSO
Knowing your DSO is one thing. Moving it is another. Here are the levers, ranked roughly by leverage and ease of implementation.
1. Send Invoices Faster — and Make Them Correct
Billing errors are the single largest cause of payment delay. A wrong PO number, a missing line item, an unclear due date — each one triggers a back-and-forth that adds days or weeks. Invoice the moment work is delivered, not at month-end. And run a quick QA pass: customer name, address, PO, terms, due date, total. Five seconds saves five days.
2. Tighten Payment Terms (Where You Can)
If your industry standard is Net 30 and you are quietly extending Net 60 because nobody pushed back, you are funding your customers' working capital out of yours. Default to the shortest reasonable terms for your industry. For new customers, run credit checks before offering anything beyond Net 15.
3. Offer Early Payment Discounts
The classic "2/10 Net 30" — pay within 10 days and take a 2% discount — works because for most B2B buyers, an effective ~36% annualized return on their cash is hard to refuse. Discounting 2% to collect 20 days earlier is almost always a better trade than waiting and paying for a line of credit.
4. Automate Reminders
A friendly automated email five days before the due date, on the due date, and at 15 and 30 days past due will collect more invoices than any human follow-up. Most late payments are not malicious — they are forgotten. Automated reminders solve forgetting at near-zero cost.
5. Make Paying Easier Than Not Paying
Every payment friction point costs you days. Offer ACH, credit card, wire, and digital wallets. Embed a "Pay Now" link in every invoice. Accept partial payments to keep the cycle moving. The customer who would happily pay today but cannot find your bank details often ends up paying in four weeks.
6. Triage Your Worst Accounts
Pull your AR aging report and identify the five customers responsible for the most overdue dollars. A single 30-minute conversation with each one — "Is there a problem with the invoice? Can we set up a payment plan?" — usually moves more cash than any other intervention. Often the answer is something fixable: a missed PO, a vacation, an internal approval delay.
7. Track and Share the Number
Teams optimize what they measure. If DSO sits in a quarterly board deck and nowhere else, no one acts on it. Put it on a weekly dashboard. Share it with the sales team, who often unintentionally extend long terms to close a deal. Visibility alone usually drops DSO by several days within a quarter.
DSO and the Bigger Picture: Cash Conversion Cycle
DSO is one leg of a three-legged stool called the cash conversion cycle:
- DSO — how long until customers pay you
- Days Inventory Outstanding (DIO) — how long inventory sits before being sold
- Days Payable Outstanding (DPO) — how long you take to pay your suppliers
Cash Conversion Cycle = DSO + DIO − DPO
A healthy business pays suppliers slowly, turns inventory quickly, and collects from customers fast. If DSO is your only lever, you can still improve cash flow significantly. But pulling all three together compounds the effect.
Keeping Honest Books Behind the Number
DSO is only as accurate as the data feeding it. That means your accounts receivable balance, your sales register, and your payment records all need to be reliable, current, and reconciled regularly. A DSO calculated from stale or sloppy books is just a number that looks sophisticated.
This is where good bookkeeping pays off in a way that is usually invisible — until you need to make a decision and realize you cannot trust your own numbers. Plain-text accounting systems make every transaction auditable, every reconciliation traceable, and every reported figure backed by source data you can read and verify yourself.
Get Clarity on the Cash Behind Your Sales
DSO is one of those metrics that quietly determines whether a business survives a slow quarter. The companies that track it carefully, calculate it honestly, and act on the trend are the ones that compound. The ones that wait until cash runs short to think about collections usually find themselves with fewer options than they would like.
Beancount.io provides plain-text accounting that gives you complete transparency over every accounts receivable entry, every payment, and every reconciliation behind your DSO number — no black boxes, no vendor lock-in, just the source data you can audit yourself. Get started for free and build the financial visibility your cash flow decisions deserve.
