The DPO calculator estimates how many days, on average, your company takes to pay suppliers. It calculates days payable outstanding from average accounts payable, purchases derived from inventory and cost of goods sold, and the length of your accounting period.
DPO is a historical payment-cycle estimate—not a forecast of when a specific invoice will be paid or a count of days overdue.

How to use the DPO calculator
Choose one accounting period and enter the following figures. Use the same currency and accounting basis throughout.
- Starting Inventory Value: the recorded value of inventory at the beginning of the period, not its expected selling price.
- Ending Inventory Value: the recorded value of inventory at the end of that same period.
- Cost of Goods Sold: the cost of goods sold during the period, not sales revenue.
- Starting Account Payable: supplier amounts owed at the beginning of the period.
- Ending Account Payable: supplier amounts owed at the end of the period.
- Days In Accounting Period: the number of days covered by your figures. For example, enter 365 for a 365-day year or 90 for a 90-day quarter.
Use supplier-related accounts payable balances that correspond to the purchases being measured. Including unrelated liabilities, such as loans or payroll accruals, would distort the result.
The calculator returns average accounts payable, estimated purchases, and DPO in days. Do not combine annual cost of goods sold with quarterly balances and a quarterly day count.
Days payable outstanding formula
This calculator uses a purchases-based DPO formula:
DPO = (Average accounts payable ÷ Purchases) × Days in accounting period
It calculates the two underlying amounts as follows:
- Average accounts payable = (Starting accounts payable + Ending accounts payable) ÷ 2
- Purchases = Ending inventory − Starting inventory + Cost of goods sold
Dividing purchases by the number of days gives average daily purchases. DPO therefore expresses the average payable balance as an equivalent number of purchasing days.
Worked DPO calculation example
Suppose a company reports these figures for a 365-day year:
| Input | Value |
|---|---|
| Starting inventory value | $100,000 |
| Ending inventory value | $125,000 |
| Cost of goods sold | $475,000 |
| Starting accounts payable | $60,000 |
| Ending accounts payable | $80,000 |
| Days in accounting period | 365 |
- Average accounts payable: ($60,000 + $80,000) ÷ 2 = $70,000.
- Purchases: $125,000 − $100,000 + $475,000 = $500,000.
- DPO: ($70,000 ÷ $500,000) × 365 = 51.1 days.
The company's average payable balance represents about 51 days of purchases. This does not mean every supplier invoice was paid exactly 51 days after issuance.
Why some DPO formulas use cost of goods sold
Another common approach is DPO = (Average accounts payable ÷ Cost of goods sold) × Days. This uses cost of goods sold as a proxy for purchases. The calculator above instead estimates purchases by adjusting cost of goods sold for the change in inventory.
The two approaches produce the same result when starting and ending inventory are equal. When inventory changes, they can differ. Use a consistent method when comparing periods or companies.
How to interpret your DPO result
A higher DPO means the company carries more supplier payables relative to its daily purchases. It may reflect longer negotiated payment terms, deliberate payment scheduling, or difficulty paying suppliers. DPO alone cannot distinguish between these explanations.
A lower DPO may reflect shorter payment terms, early-payment discounts, or faster invoice processing. It can also mean the business pays earlier than necessary and has less cash available for other needs.
There is no universally ideal DPO. Compare your result with:
- Agreed supplier terms: a DPO of 51 days has a different meaning when most invoices are due in 60 days rather than 30 days.
- Your own historical results: investigate changes alongside purchasing volumes, inventory movements, and payment policies.
- The accounts payable aging report: check whether a higher DPO comes from unpaid overdue invoices rather than negotiated terms.
A DPO longer than the accounting period is mathematically possible, particularly when opening payables are large relative to current purchases. Review the underlying balances rather than assuming the result is automatically an error.
Important calculation limitations
- Purchases must be positive. Zero purchases make the formula undefined. Negative estimated purchases do not produce a meaningful payment-days measure; check your data and inventory movements.
- Estimated purchases are not necessarily credit purchases. The formula does not separate cash purchases from purchases made on supplier credit. A substantial cash-purchase share can make the result lower than a credit-purchases-based measure.
- Two balances may miss seasonal swings. The calculator averages only beginning and ending accounts payable. Large changes within the period may not be captured.
- The inventory calculation is simplified. Write-offs, transfers, or production accounting adjustments can affect the relationship between inventory, cost of goods sold, and purchases. This method may be less suitable for service businesses without inventory.
Using DPO to improve supplier payment management

The goal is not simply to maximize or minimize DPO. It is to manage payments within agreed terms while balancing cash availability, discounts, and supplier relationships.
- Schedule payments deliberately: pay by contractual due dates rather than paying unnecessarily early or delaying without agreement.
- Investigate processing delays: review invoice approval bottlenecks, disputed invoices, and missing purchase-order information.
- Evaluate early-payment discounts: compare the discount benefit with the cost of using cash sooner.
- Negotiate before extending payment time: longer agreed terms are different from overdue payments and may affect supplier pricing.
Use DPO alongside free cash flow and working capital measures when planning payments. Retaining cash longer is not, by itself, evidence of better profitability or stronger financial health.
Connect DPO with the cash conversion cycle
DPO measures the supplier-payment side of the operating cycle. Two related metrics complete the picture:
- Days Inventory Outstanding estimates how long inventory is held before it is sold.
- Days Sales Outstanding estimates how long the company takes to collect customer payments.
Cash conversion cycle = Days inventory outstanding + Days sales outstanding − Days payable outstanding.
The Cash Conversion Cycle Calculator combines these measures to estimate the time between paying suppliers and collecting cash from customers. Use consistent periods and calculation methods across all three metrics.
For accounts payable software providers, a useful next step is to show prospective customers the processing costs they could reduce. With Calcopolis, you can build a customized payment-processing savings calculator based on invoice volume, staff time, and processing costs.