Quick answer
Days payable outstanding (DPO) = accounts payable ÷ cost of goods sold × days in the period. $45,000 of payables on $300,000 of COGS over 365 days is 54.75 days.
Enter accounts payable, COGS and the days in the period. The calculator returns how many days, on average, a company takes to pay suppliers.
Related tools: Accounts Receivable Days Calculator: Days sales outstanding. Return on Equity Calculator: Net income relative to average shareholders' equity. Cash Conversion Cycle Calculator: Days to turn inventory into cash.
How to use the Accounts Payable Days Calculator
- Enter accounts payable ($) (0 or more).
- Enter cost of goods sold ($) (above 0).
- Enter days in period (between 0 and 366). It starts at 365.
- Press Calculate to see the result, and use Reset to start again.
| Input | What to enter | Allowed values |
|---|---|---|
| Accounts payable | A number, in $ | ≥ 0 |
| Cost of goods sold | A number, in $ | > 0 |
| Days in period | A number | > 0, ≤ 366, starts at 365 |
Formula and method
Formula
DPO = accounts payable ÷ COGS × days
IEEE-754 double precision; shown to the decimals indicated.
Use the average payable balance if you have it.
Worked examples
These examples are verified: each one is an automated test case that the live calculator must reproduce exactly.
Example 1
Inputs: Accounts payable = 45000; Cost of goods sold = 300000; Days in period = 365.
| Result | Value |
|---|---|
| Days payable | 54.75 days |
Example 2
Inputs: Accounts payable = 12000; Cost of goods sold = 90000; Days in period = 360.
| Result | Value |
|---|---|
| Days payable | 48 days |
The first line is the headline result (days payable). IEEE-754 double precision; shown to the decimals indicated.
What it shows
A higher DPO means the company holds on to cash longer before paying suppliers, which helps cash flow. But a very high figure may mean late payment, strained supplier relationships or lost early-payment discounts.
Comparing fairly
DPO varies by industry, so compare with peers and with the company's own history. Use COGS for the same period as the payables balance, and use an average payables balance if the balance changed a lot during the period.
How the result changes with accounts payable
Holding every other input at the first worked example, this table changes only accounts payable. It shows how sensitive the answer is to that one value; each row was produced by running this calculator.
| Accounts payable | Days payable |
|---|---|
| 22500 | 27.38 days |
| 45000 | 54.75 days |
| 90000 | 109.5 days |
| 180000 | 219 days |
What happens with invalid input
These messages are produced by the calculator itself, so you know what to fix.
- Cost of goods sold: entering "0" shows "Cost of goods sold must be greater than 0." beside that field and no result.
- Accounts payable: left empty shows "Enter accounts payable." beside that field and no result.
Choosing between the Accounts Payable Days Calculator and similar calculators
Each row shows what a related calculator on this site asks for and what it returns, so you can pick the one that matches your question.
| Calculator | You enter | It returns |
|---|---|---|
| [Accounts Receivable Days Calculator](/business/accounts-receivable-days-calculator/) | accounts receivable, revenue and days in period | Days sales outstanding |
| [Return on Equity Calculator](/business/return-on-equity-calculator/) | net income, equity at start and equity at end | Return on equity |
| [Cash Conversion Cycle Calculator](/business/cash-conversion-cycle-calculator/) | days inventory outstanding, days sales outstanding and days payable outstanding | Cash conversion cycle |
| [Current Ratio Calculator](/business/current-ratio-calculator/) | current assets and current liabilities | Current ratio |
| [Employee Turnover Calculator](/business/employee-turnover-calculator/) | separations and average number of employees | Turnover rate |
Background: business metrics
Business ratios depend on exactly which costs and revenues you include, so read each page's definition. Two common checks: break-even units = fixed costs ÷ (price − variable cost per unit), so $50,000 of fixed costs with a $10 price and $5 variable cost breaks even at 10,000 units; and net profit margin = net profit ÷ revenue, so $20,000 profit on $100,000 revenue is 20%.
Return on investment ignores time: 20% over five years is far less impressive than 20% in one, so compare returns over the same period.
Assumptions and limitations
- COGS must be positive
If a required value is empty, not a number, or outside its allowed range, the form marks that field with a message and shows no result instead of a misleading number. The automated checks deliberately try invalid entries for cost of goods sold and accounts payable to confirm this.
Frequently asked questions
What is a good DPO?
It depends on the industry and on supplier terms; 30 to 60 days is common.
How does DPO relate to the cash conversion cycle?
The cycle is DIO plus DSO minus DPO.
Can I use revenue instead of COGS?
COGS is the standard denominator because payables relate to purchases.
What does the Accounts Payable Days Calculator calculate?
Days payable outstanding. It returns Days payable.
What formula does the Accounts Payable Days Calculator use?
DPO = accounts payable ÷ COGS × days. Use the average payable balance if you have it.
What do I need to enter in the accounts Payable Days Calculator?
You enter Accounts payable ($), Cost of goods sold ($) and Days in period.
How is the result rounded or limited?
IEEE-754 double precision; shown to the decimals indicated. COGS must be positive.
What is an example of a accounts Payable Days result?
With accounts payable 45000, cost of goods sold 300000 and days in period 365, the days payable is 54.75 days.
Related calculators
- Accounts Receivable Days Calculator — Days sales outstanding.
- Return on Equity Calculator — Net income relative to average shareholders' equity.
- Cash Conversion Cycle Calculator — Days to turn inventory into cash.
- Current Ratio Calculator — Current ratio from current assets and current liabilities.
- Employee Turnover Calculator — Turnover rate from separations and average number of employees.
- Market Share Calculator — Market share from your sales and total market sales.
- Payment Processing Fee Calculator — Fee on a payment from a percentage and fixed charge you enter.
- Working Capital Calculator — Current assets minus current liabilities.
- Sales Quota Attainment Calculator — Percent of quota achieved.
Sources
- Common definition used on this page. No single authoritative standard defines it, so the exact formula is stated in the formula section above
Content last reviewed 2026-11-04. Formulas and worked examples are checked by automated tests against independently computed values.