Back to all resources

LedgerUp Resources - Learning Materials

DSO Formula: How to Calculate Days Sales Outstanding

Days Sales Outstanding (DSO) measures how long it takes to collect payment after a sale. Here is the exact formula, step-by-step calculation examples, what a good DSO looks like, and proven strategies to reduce it.

LedgerUp Team··10 min read

The DSO Formula

DSO = (Accounts Receivable ÷ Total Credit Sales) × Number of Days

That is the standard DSO formula used across finance, accounting, and revenue operations. It tells you the average number of days your company takes to collect payment after making a sale on credit.

The inputs:

  • Accounts Receivable (AR): The total outstanding balance customers owe you at the end of the period.
  • Total Credit Sales: Revenue from sales made on credit during the period. Do not include cash sales or prepaid revenue.
  • Number of Days: The length of the period you are measuring — typically 30 (monthly), 90 (quarterly), or 365 (annually).

What Is Days Sales Outstanding (DSO)?

Days Sales Outstanding (DSO) is a financial metric that measures the average number of days it takes a company to collect payment after a sale is made. It is one of the most widely tracked accounts receivable metrics and a direct indicator of cash flow health.

A lower DSO means your company collects payments faster. A higher DSO means cash is tied up in receivables longer, which can strain working capital and limit growth.

DSO is used by:

  • CFOs and controllers to monitor cash conversion efficiency
  • Revenue operations teams to evaluate billing and collections performance
  • Investors and lenders to assess a company's liquidity and financial health
  • AR teams to benchmark their collections process against industry peers

DSO is closely related to the cash conversion cycle (CCC) and is often tracked alongside Days Payable Outstanding (DPO) and Days Inventory Outstanding (DIO) for a full picture of working capital efficiency.

Book a LedgerUp Demo

Stop chasing invoices manually. LedgerUp’s AI agent Ari automates collections, reduces DSO, and recovers revenue on autopilot.

Book a LedgerUp Demo

Step-by-Step DSO Calculation (With Examples)

Example 1: Monthly DSO

Suppose your company had the following numbers for March:

LedgerUp Insight: The workflow described above is one that LedgerUp automates end-to-end. Teams using LedgerUp typically cut manual effort by 80% and reduce errors across their billing pipeline.

  • Accounts Receivable at end of March: $450,000
  • Total credit sales in March: $600,000
  • Number of days: 31

DSO = ($450,000 ÷ $600,000) × 31 = 23.25 days

This means it took an average of 23.25 days to collect payment in March. That is strong performance for most industries.

Example 2: Quarterly DSO

For Q1 (January through March):

  • Accounts Receivable at end of Q1: $1,200,000
  • Total credit sales in Q1: $2,400,000
  • Number of days: 90

DSO = ($1,200,000 ÷ $2,400,000) × 90 = 45 days

A 45-day quarterly DSO is typical for B2B companies with Net 30 payment terms, since some invoices will still be within their payment window at any point in time.

Example 3: Annual DSO

For the full year:

  • Accounts Receivable at year end: $800,000
  • Total credit sales for the year: $4,800,000
  • Number of days: 365

DSO = ($800,000 ÷ $4,800,000) × 365 = 60.83 days

Annual DSO smooths out seasonal fluctuations and gives a more stable view of collection performance over time.

Alternate DSO Calculation Methods

The standard formula works well for most companies, but there are situations where alternate methods give a more accurate picture.

Countback Method (Days of Revenue Outstanding)

The countback method works backwards from the current AR balance, subtracting each month's revenue until the balance is exhausted. It accounts for revenue seasonality better than the standard formula.

How it works:

  1. Start with the ending AR balance.
  2. Subtract the most recent month's credit sales. If AR is now ≤ 0, stop.
  3. Count that full month (e.g., 31 days) and continue subtracting prior months.
  4. For the final partial month, calculate: (remaining AR ÷ that month's sales) × days in month.
  5. Sum all the days.

Example:

  • AR at end of March: $500,000
  • March sales: $300,000 → remaining AR: $200,000 → count 31 days
  • February sales: $250,000 → $200,000 < $250,000 → partial month: ($200,000 ÷ $250,000) × 28 = 22.4 days
  • Total DSO: 31 + 22.4 = 53.4 days

The countback method is more accurate when revenue varies significantly month to month, which is common in B2B SaaS companies with lumpy enterprise deals.

Best Possible DSO (BPDSO)

Best Possible DSO isolates the portion of AR that is still within payment terms (current receivables only). It shows what your DSO would be if every customer paid on time.

BPDSO = (Current Receivables ÷ Total Credit Sales) × Number of Days

The gap between your actual DSO and Best Possible DSO represents the impact of overdue invoices. This gap is what collections efforts should target.

Weighted Average DSO

If your business has multiple revenue streams with different payment terms (e.g., self-serve at Net 0, mid-market at Net 30, enterprise at Net 60), you can calculate DSO per segment and weight by revenue share for a more meaningful composite number.

What Is a Good DSO?

There is no single "good" DSO number. It depends on your industry, customer segment, and payment terms. Here are benchmarks:

Industry / Segment Typical DSO Range Top Quartile
B2B SaaS (SMB customers) 25–40 days <20 days
B2B SaaS (enterprise customers) 45–70 days <40 days
Professional services 40–55 days <35 days
Manufacturing 50–65 days <40 days
Wholesale / distribution 35–50 days <30 days
Healthcare 50–70 days <45 days

Rule of thumb: Your DSO should be within 10–15 days of your best payment terms. If you offer Net 30 and your DSO is 55, you have a 25-day collection gap that is costing you cash.

Compare your DSO against your own payment terms, not arbitrary benchmarks. A company with Net 60 terms and a 50-day DSO is outperforming a company with Net 15 terms and a 30-day DSO.

Common DSO Calculation Mistakes

Getting the formula right is easy. Getting the inputs right is where teams go wrong.

1. Including Cash and Prepaid Revenue in Credit Sales

The denominator should only include sales made on credit. If you include prepaid annual contracts or credit card payments in your credit sales figure, you will understate your DSO and miss collection problems.

2. Using the Wrong Time Period

Monthly DSO is volatile. One large invoice landing on the last day of the month can spike your number. Quarterly or trailing-twelve-month DSO gives a more stable trend. Use monthly for early warning signals, but make strategic decisions based on quarterly or annual DSO.

3. Ignoring Seasonality

If your revenue is heavily weighted toward Q4 (as many B2B SaaS companies are), your Q1 DSO will look artificially high because AR from Q4 deals is still being collected. The countback method handles this better than the standard formula.

4. Not Separating Current vs. Overdue AR

A 45-day DSO where all receivables are current (within payment terms) is fundamentally different from a 45-day DSO where 30% of AR is overdue. Always track your AR aging breakdown alongside DSO.

5. Mixing Billing Models

If you have a mix of annual prepaid, quarterly, and monthly billing, your DSO will be misleading unless you segment it. Annual prepaid customers who pay on signing will have a near-zero DSO, masking collection problems with your invoiced customers.

6. Forgetting Credit Notes and Refunds

Credit notes reduce your AR balance without representing a payment. If you do not adjust for credits and refunds, your DSO will appear lower than it actually is.

How to Reduce DSO

Reducing DSO comes down to two levers: getting invoices out faster and getting paid faster. Here are the most effective strategies, ordered by typical impact.

1. Send Invoices Immediately

Every day between a sale and the invoice is a free day you give the customer. If your team takes 5 days to generate and send an invoice after a deal closes, that is 5 days added to your DSO before the customer even starts their payment clock. Automating invoice generation and delivery is the single highest-impact change most companies can make.

2. Offer Early Payment Discounts

Terms like 2/10 Net 30 (2% discount for paying within 10 days) are effective at pulling payments forward. On a $100,000 invoice, the $2,000 discount costs less than the cash flow benefit of collecting 20 days earlier. Calculate the annualized cost of the discount versus your cost of capital to determine if this makes sense for your business.

3. Automate Payment Reminders

Structured dunning sequences — reminders before the due date, on the due date, and at escalating intervals after — significantly improve on-time payment rates. The key is consistency: every invoice should follow the same process without relying on someone to remember to follow up.

4. Reduce Billing Errors

Invoice disputes are the number one cause of payment delays in B2B. When a customer receives an inaccurate invoice, they do not pay it — they open a dispute, and the clock resets. Automating the invoice creation process from contract data eliminates the manual transcription errors that cause most disputes.

5. Make It Easy to Pay

Accept ACH, credit card, and wire transfer. Include a payment link directly in the invoice email. Every friction point in the payment process adds days to your DSO. Many companies have reduced DSO by 5–10 days simply by adding a one-click payment option to their invoices.

6. Negotiate Better Payment Terms

If your standard terms are Net 60, your minimum achievable DSO is already 60 days. Evaluate whether your payment terms match your cash flow needs. Many companies default to Net 30 without realizing they could negotiate Net 15 or even payment-on-receipt for certain customer segments.

7. Flag At-Risk Invoices Early

Instead of waiting for invoices to become overdue, use historical payment behavior to predict which invoices are likely to pay late. Proactive outreach to at-risk accounts before the due date prevents delays from compounding.

How LedgerUp Helps

LedgerUp automates the contract-to-cash lifecycle for B2B SaaS companies. Its AI agent Ari reads signed contracts, generates invoices in your billing system (Stripe, QuickBooks, or your ERP), sends automated follow-ups, and reconciles payments — all without manual intervention. LedgerUp customers typically see invoices go out the same day a deal closes and a 20–40% reduction in DSO within 90 days.

See How LedgerUp Reduces DSO →

Frequently Asked Questions

What is the DSO formula?

DSO = (Accounts Receivable ÷ Total Credit Sales) × Number of Days. Accounts Receivable is the outstanding balance at the end of the period. Total Credit Sales is revenue from sales made on credit during the period. Number of Days is the length of the measurement period (30, 90, or 365).

How do you calculate days sales outstanding?

To calculate DSO: (1) find your accounts receivable balance at the end of the period, (2) find your total credit sales for that period, (3) divide AR by credit sales, and (4) multiply by the number of days in the period. For example, $500,000 AR ÷ $1,000,000 credit sales × 30 days = 15 days DSO.

What is a good DSO?

A good DSO depends on your industry and payment terms. For B2B SaaS companies with SMB customers, under 35 days is strong. For enterprise-focused companies with Net 30–60 terms, under 55 days is above average. The best benchmark is your own payment terms: your DSO should be within 10–15 days of your standard terms.

What is the difference between DSO and average collection period?

They are the same metric. "Average collection period" and "days sales outstanding" both measure the average number of days to collect payment. Some industries and textbooks prefer one name over the other, but the formula is identical.

Should I calculate DSO monthly, quarterly, or annually?

Monthly DSO is useful for spotting short-term collection problems but can be volatile. Quarterly DSO is the most common cadence for operational tracking. Annual DSO gives the most stable long-term view. Most finance teams track all three: monthly for early warnings, quarterly for operational decisions, and annually for benchmarking.

What causes high DSO?

The most common causes are: (1) delayed invoicing after a sale closes, (2) billing errors that trigger disputes, (3) lenient or inconsistent payment terms, (4) lack of automated payment reminders, (5) limited payment options, and (6) no proactive collection process for at-risk accounts.

How is DSO different from DPO?

DSO measures how fast you collect from customers. DPO (Days Payable Outstanding) measures how long you take to pay your own suppliers. Together with DIO (Days Inventory Outstanding), they form the cash conversion cycle: CCC = DSO + DIO − DPO.

Can DSO be negative?

No. DSO cannot be negative because accounts receivable cannot be a negative number in standard accounting. If customers pay before invoices are issued (common with prepaid contracts), those payments are recorded as deferred revenue, not negative AR.

Book a LedgerUp Demo

See how LedgerUp connects your CRM, billing, and ERP systems to eliminate manual work and accelerate revenue.

Get Started with LedgerUp

Stop babysitting billing ops.

Let Ari run contract-to-cash for your team.

Book a demo →
DSO Formula: How to Calculate Days Sales Outstanding (With Examples)