📊 Accounting guide

How to Calculate Accounts Payable

Accounts payable (AP) is the total amount a business owes to its suppliers for goods and services received but not yet paid. This guide covers the closing AP formula, the roll-forward calculation used in financial modelling, where AP sits on the balance sheet, AP turnover ratio, days payable outstanding (DPO), how AP compares to accounts receivable, and four worked examples across different business types.

Last updated: March 26, 2026

What is accounts payable?

Accounts payable represents money a business owes to vendors, suppliers, and creditors for purchases made on credit — goods received, services rendered, or expenses incurred but not yet paid in cash. It is a current liability on the balance sheet because it is expected to be settled within the normal operating cycle (typically within 30–90 days).

Three things AP is not:

  • Not debt — AP arises from trade credit, not borrowing. There is no interest unless payment terms are breached.
  • Not an accrual — AP is a confirmed obligation with an invoice. Accrued liabilities are estimates of obligations not yet invoiced.
  • Not accounts receivable (AR) — AP is what you owe others. AR is what others owe you. They are mirror images from opposite sides of the same transaction.

Managing AP well means taking full advantage of supplier payment terms without damaging relationships or incurring late fees — maximising the free cash float that trade credit provides.

Accounts payable formula — the roll-forward method

The most important AP formula used in accounting and financial modelling is the roll-forward — it tracks how AP changes across a period:

Closing AP = Opening AP + Purchases on credit − Cash payments to suppliers

Here is a concrete monthly example — a retail supplier relationship:

Opening AP (beginning of month) $38,000
+ Purchases on credit (new invoices received) $52,000
Cash payments made to suppliers $47,000
= Closing AP (end of month) $43,000

AP increased by $5,000 this month — the business received more new invoices than it paid out. This is normal during a growth phase or when taking on new supplier relationships.

Deriving AP from balance sheet data

If you have comparative balance sheets, AP is already calculated and disclosed directly. The change in AP from one period to the next appears in the cash flow statement under operating activities:

ΔAP = Closing AP − Opening AP
Positive ΔAP = AP increased = cash inflow to operations (paid less than incurred)
Negative ΔAP = AP decreased = cash outflow (paid more than incurred)

Where accounts payable sits on the balance sheet

AP is always a current liability — it sits under liabilities, not assets. It is typically the largest single line item in current liabilities for product-based and manufacturing businesses.

Assets
Cash & equivalentsCurrent
Accounts receivableCurrent
InventoryCurrent
Property & equipmentNon-current
Liabilities & Equity
Accounts payable ← here Current
Accrued liabilitiesCurrent
Short-term debtCurrent
Long-term debtNon-current
Shareholders' equityEquity

Note the relationship between AP (a liability) and inventory or COGS (expenses/assets). When a business buys inventory on credit: Inventory ↑ on assets side, AP ↑ on liabilities side. When it pays the supplier: Cash ↓, AP ↓. The balance sheet always stays balanced.

Step-by-step calculation

1
Start with the opening AP balance. This is the AP balance at the start of the period — taken from last period's closing balance sheet. For a new business, opening AP is zero.
2
Add all credit purchases during the period. Every invoice received from a supplier for goods or services delivered on credit increases AP. Do not include cash purchases — those settle immediately and never enter AP.
3
Subtract all payments made to suppliers. Every check, bank transfer, or card payment to a supplier reduces AP. Also subtract any credit notes or returns that reduce the outstanding balance.
4
The result is closing AP. Closing AP = Opening AP + Credit purchases − Payments. This is the amount owed to all suppliers at the end of the period. It should match the AP sub-ledger if your bookkeeping is reconciled.
5
Optional: calculate AP turnover and DPO. Divide net credit purchases by average AP to get AP turnover. Divide 365 by AP turnover to get days payable outstanding — the average number of days you take to pay suppliers.

AP turnover ratio and days payable outstanding (DPO)

Knowing the closing AP balance is useful, but converting it into a ratio makes it comparable across periods and companies of different sizes. Two ratios matter most:

AP Turnover Ratio
Net credit purchases ÷ Average AP
Average AP = (Opening AP + Closing AP) ÷ 2
Example: 8.2×/yr
$420K purchases ÷ (($38K + $65K) ÷ 2) = 8.2×
Higher = paying suppliers faster
Days Payable Outstanding
365 ÷ AP Turnover Ratio
or: Average AP ÷ (COGS ÷ 365)
Example: 44.5 days
365 ÷ 8.2 = 44.5 days
Average days taken to pay each invoice

What is a healthy DPO?

There is no universal "good" DPO — it depends heavily on industry, business model, and supplier terms. The most useful benchmark is comparing your DPO against the payment terms you have negotiated:

Retail / FMCG
20–45 days
Manufacturing
45–75 days
Construction
60–90 days
Large enterprises
90–120+ days

A DPO significantly below your payment terms means you are paying early — potentially forgoing interest-free cash float. A DPO significantly above terms means you are paying late — risking supplier relationship damage or early payment discount forfeiture. The optimal DPO sits just inside the credit terms you have negotiated.

Accounts payable vs accounts receivable

AP and AR are mirror images of each other — the same trade credit transaction creates AP for the buyer and AR for the seller:

📤 You owe — liability
Accounts Payable (AP)

Money owed by the business to suppliers. Current liability on your balance sheet. Created when you buy on credit. Settled when you pay the invoice. Managing AP well = maximising free cash float within payment terms.

📥 Owed to you — asset
Accounts Receivable (AR)

Money owed to the business by customers. Current asset on your balance sheet. Created when you sell on credit. Settled when the customer pays. Managing AR well = collecting quickly to maintain cash flow.

The cash conversion cycle (CCC) connects both: CCC = Days Inventory Outstanding + Days Sales Outstanding − Days Payable Outstanding. A shorter CCC means faster conversion of operations to cash. Increasing DPO (paying later) directly shortens the CCC and improves working capital — which is why large businesses negotiate extended payment terms aggressively.

Worked examples

Small business — monthly

Retail shop — month-end AP

Opening AP $12,000 · Purchases $28,500 · Payments $25,200

$12,000 + $28,500 − $25,200 = $15,300
ΔAP = +$3,300 (AP grew this month)

✅ Closing AP = $15,300 · AP sub-ledger should match

Manufacturer — quarterly DPO

Factory — AP turnover & DPO

Q1 COGS $480,000 · Opening AP $52,000 · Closing AP $68,000

Avg AP = ($52K + $68K) ÷ 2 = $60,000
AP Turnover = $480K ÷ $60K = 8.0×
DPO = 365 ÷ 8.0 = 45.6 days

🔵 45.6-day DPO — within 45-day net terms

Cash flow statement

AP change in operating cash flow

Opening AP $38,000 · Closing AP $43,000

ΔAP = $43,000 − $38,000 = +$5,000
In cash flow statement: +$5,000 (source of cash)
Paid less than incurred → cash preserved

✅ AP increase = operating cash inflow

AP with credit notes

Returns reduce AP balance

Opening AP $22,000 · Purchases $35,000 · Returns $4,200 · Payments $31,000

$22,000 + $35,000 − $4,200 − $31,000
= $21,800

🟡 Returns reduce AP like payments do

Common mistakes to avoid

  • Mixing cash purchases with credit purchases. Only invoices on credit terms create AP. A cash purchase paid immediately at point of delivery never enters the AP balance — it goes directly to cash and expense or inventory.
  • Confusing AP with accrued liabilities. AP requires a specific invoice from a supplier. Accrued liabilities are estimated obligations where no invoice has yet been received — for example, estimated wages payable or accrued utilities. They sit on separate balance sheet lines.
  • Forgetting credit notes and purchase returns. When goods are returned or a supplier issues a credit note, AP decreases. These must be recorded in the same way as payments — as deductions from the AP balance.
  • Using COGS instead of purchases in AP turnover. Technically, AP turnover should use net credit purchases in the numerator, not COGS. COGS excludes beginning inventory and includes ending inventory, making it an imperfect proxy. Where only COGS is available (as in many financial analysis contexts), it is an acceptable approximation.
  • Treating a rising AP as always negative. Increasing AP can mean the business is growing — buying more inventory to meet demand — or it can signal cash flow problems. Always read AP movement alongside revenue growth, DPO trends, and cash balance before drawing conclusions.

Frequently asked questions

What is the formula for accounts payable?

Closing AP = Opening AP + Credit purchases during the period − Cash payments to suppliers during the period. This is the roll-forward method used in accounting, financial modelling, and AP sub-ledger reconciliation.

Is accounts payable a debit or credit?

AP has a normal credit balance. When AP is created (goods received on credit), you credit AP. When AP is paid (cash goes to supplier), you debit AP. This is consistent with the accounting rule that liabilities carry credit balances.

What is the difference between accounts payable and accrued expenses?

Accounts payable represents confirmed obligations backed by a specific supplier invoice. Accrued expenses (or accrued liabilities) are estimated obligations for goods or services received but for which no invoice has been received yet — for example, wages earned but not yet paid, or utilities used but not yet billed. Both are current liabilities, but they sit on separate lines.

Does an increase in accounts payable mean the company is in trouble?

Not necessarily. Rising AP can mean the business is growing and purchasing more on credit — which is normal and healthy during expansion. It becomes a concern if AP is rising faster than revenue, DPO is significantly exceeding supplier terms, or the business is showing declining cash balances alongside rising AP — which can signal inability to pay suppliers.

How does accounts payable affect cash flow?

In the cash flow statement under operating activities, an increase in AP is added back (it is a source of cash — you incurred expenses but kept the cash). A decrease in AP is subtracted (you paid out more than you incurred — a use of cash). AP is one of the key working capital items that bridges net income and operating cash flow.