Skip to main content

How do I calculate days sales outstanding?

Divide ending accounts receivable by total credit sales for the period, then multiply by the number of days in that period. Use credit sales only, not total revenue, and be consistent about the period length (30, 90, or 365 days) so DSO trends over time are actually comparable to each other.

Zuny FesterBy Zuny Fester, Head of Operations and Marketing
Reviewed by Zuny Fester
Published Last reviewed Editorial policy

Part of the accounts receivable and collections guide.

Formula(Accounts receivable / Credit sales) × Number of days
UseCredit sales only, not total revenue including cash sales
Common period lengths30 (monthly), 90 (quarterly), or 365 (annual) days
Consistency requirementUse the same period length each time to compare trends fairly

Step by step

Take the ending accounts receivable balance for the period being measured. Divide it by total credit sales for that same period — excluding cash sales, since they don't generate a receivable. Multiply the result by the number of days in the period (30 for a month, 90 for a quarter, 365 for a year) to get DSO expressed in days.

Common mistakes that distort the number

Using total revenue instead of credit sales inflates or deflates DSO depending on how much of revenue is cash-based. Switching period lengths between calculations (comparing a 30-day DSO to a 90-day one without adjusting) makes trend comparisons meaningless. Using an average AR balance instead of the ending balance is also common and defensible, but should be applied consistently, not switched between periods.

Prefer to plug in your own numbers? Use the free DSO calculator — it runs this exact formula.

Next step

Map the finance workflow with the most exposure and prove the automation path.

Bring the invoice, contract, payment reconciliation, or customer finance workflow you have to defend at audit. Loopfour can map the trigger, controls, integrations, and approval loop.

Book a workflow review

Worked example

The calculation with real numbers

Ending AR: $450,000. Credit sales for the quarter: $2,700,000. Period length: 90 days. DSO = ($450,000 / $2,700,000) × 90 = 15 days. If the same company had instead used total revenue of $3,000,000 (including $300,000 of cash sales), DSO would incorrectly calculate as ($450,000 / $3,000,000) × 90 = 13.5 days — understating the true collection period by excluding the fact that only credit sales generate the receivable being measured.

Frequently Asked Questions

Either is defensible — average AR smooths out timing spikes, ending AR is simpler — but pick one method and use it consistently so period-to-period comparisons stay meaningful.

The formula is the same, but seasonal businesses should be cautious comparing DSO across periods with very different sales volumes, since the denominator itself swings seasonally.

Yes — the same formula applied to one customer's AR balance and credit sales gives a useful, more targeted view for account-level credit decisions.

Sources

Related