The formula
How to calculate days payable outstanding
Days payable outstanding is the average time a business takes to pay its suppliers. Within agreed terms it is free finance; beyond them it is a relationship problem waiting to surface.
Cost of goods sold is the right denominator because payables arise from purchases, not from sales. Using revenue understates DPO by the whole gross margin.
Fill in the following:
- Accounts payable
- Cost of goods sold
- Days in the period (days)
No submit button: type and the answer moves. Your inputs end up in the link, so the page can be shared already filled in.
Some of the fields above will accept figures that seem unusual for your own situation, and that is deliberate: the formula behind days payable outstanding works the same way regardless of scale, so the calculator does not stop you testing a hypothetical scenario a long way from your actual numbers — often the fastest way to see which input the result is most sensitive to.
Why days payable outstanding matters
Most people who look up a days payable outstanding calculation already have a specific number in mind — a quote, an offer, a target — and want to check it rather than learn the theory behind it. This page is built for that: enter your own figures, see the result immediately, and change any field to see how the answer moves without redoing the arithmetic from scratch each time.
This tends to come up when comparing two concrete alternatives — two lenders, two savings products, two ways of structuring the same decision — rather than in the abstract. Run both scenarios through the same calculator with the same assumptions and the comparison becomes fair, because the only thing changing between the two results is the number you are actually trying to test.
It is also worth being clear about what a single figure like this can and cannot settle on its own. It answers the specific question the formula was built to answer, and nothing more — a favourable days payable outstanding result does not automatically mean a decision is a good one overall, since plenty of other factors that a formula cannot capture, from personal circumstances to how comfortable a commitment feels, usually matter just as much as the arithmetic. Use the number as one solid input among several rather than the whole of the decision.
Where the same calculation needs to be run for several different scenarios side by side — three loan offers, two savings plans — the fastest approach is usually to open the calculator in a second browser tab for each one, so that the results can be compared directly rather than overwriting each other in a single set of fields.
Worked example
Take the figures the calculator starts with:
- Accounts payable: 139,000
- Cost of goods sold: 1,450,000
- Days in the period: 365 days
That gives:
- Days payable outstanding: 35 days
- Free finance per extra day: 3,972.6
- Supplier credit currently funding the business: 139,000
These figures are only the calculator's own starting values, included so the working is visible rather than hidden inside the tool above. Replace them with your own numbers and the same arithmetic applies — nothing about the method changes, only the inputs feeding it.
Reading the result
A DPO close to your agreed terms is optimal: you are using the credit you were given without abusing it. Materially below terms means paying early for no benefit unless a settlement discount is on offer.
Where this goes wrong. Treating a rising DPO as a win. It is also what cash difficulties look like from the outside, and credit reference agencies track payment performance — suppliers and lenders both notice.
A useful check on any unfamiliar result is to compare it against a rough mental estimate first — round the inputs to convenient numbers and see whether the calculator's answer lands in roughly the same territory. A wildly different figure usually means one of the fields was entered in the wrong unit, most often a percentage typed as a whole number where a decimal was expected, or the reverse.
Good if it reflects negotiated terms, bad if it reflects late payment. The ratio cannot tell the two apart, which is why it should be read alongside the aged creditors report.
Often yes. A 2% discount for paying 20 days early is an annualised return above 40% — far better than almost any other use of the cash.
The answer it gives you is days payable outstanding. With 139,000 accounts payable, 1,450,000 cost of goods sold and 365 days days in the period, that comes to 35 days. Change any field and the figure moves with it.
Whenever one of the underlying figures changes — a new interest rate, a different balance, an updated term — since the result only reflects what is currently in the fields. There is no need to keep a separate record of past results; the web address for a filled-in version already carries the figures used to produce it.
Not unless a tax rate or a fee is explicitly one of the inputs above. Where it is not, the figure shown is a gross calculation, and any tax due depends on your personal circumstances and current tax rules, which are worth checking separately.
The arithmetic itself is exact — the calculator applies the formula shown above precisely, with no rounding until the final figure is displayed. The uncertainty, where it exists, is entirely in the inputs: an estimated rate or an approximate balance carries that same approximation through to the result.