Contents
In short

Accounts payable (AP) is money a company owes to suppliers for goods or services it has received. Accounts receivable (AR) is money customers owe the company for goods or services it has delivered. AP is a current liability and AR is a current asset, and the same invoice is AP for the buyer and AR for the seller.

Accounts payable (AP) is money a company owes to suppliers for goods or services it has received. Accounts receivable (AR) is money customers owe the company for goods or services it has delivered. AP is a current liability and AR is a current asset, and the same invoice is AP for the buyer and AR for the seller.

Most guides stop at that definition and a list of best practices. This one follows a single invoice through both companies' books, shows where AP ends and accrued expenses begin, works out DSO and DPO, and compares the real balance sheets of a SaaS company and a retailer. The two look nothing alike, and the reason says a lot about how software companies manage cash.

What is the difference between accounts payable and accounts receivable?

Accounts payable is what you owe. Accounts receivable is what you are owed. Both are short-term balances created by selling or buying on credit, and both sit in the current section of the balance sheet.
Accounts payable (AP)Accounts receivable (AR)
What it isMoney owed to suppliers and vendorsMoney owed by customers
Balance sheetCurrent liabilityCurrent asset, net of an allowance for credit losses
Created whenA supplier bills you for something you receivedYou bill a customer for something you delivered or that is due
Cleared whenYou pay the supplierThe customer pays you
Normal balanceCreditDebit
Cash flow effect of an increaseAdds to operating cash flowReduces operating cash flow
Speed metricDays payable outstanding (DPO)Days sales outstanding (DSO)
ProcessProcure-to-payOrder-to-cash
Main riskLate fees, strained suppliers, duplicate paymentsLate payment and bad debt
The SEC's rules for public company balance sheets keep the two apart: Regulation S-X asks for receivables from customers to be stated separately from other receivables, and for amounts payable to trade creditors to be stated separately from bank borrowings and other payables (17 CFR 210.5-02).
Put this to work on your numbers
Run your own numbers with the free Commission Calculator, then see how ORM builds it into a custom model.

One invoice, both sides of the books

The same invoice is a receivable for the company that sends it and a payable for the company that gets it. Take an illustrative case: a SaaS vendor sells a $24,000 one-year subscription, invoiced upfront on January 1 with 30-day terms. The customer pays on January 25. The seller's books (accounts receivable):
DateEntryDebitCredit
Jan 1Invoice the annual subscriptionAccounts receivable $24,000Deferred revenue $24,000
Jan 25Customer paysCash $24,000Accounts receivable $24,000
Jan 31Recognize one month of serviceDeferred revenue $2,000Subscription revenue $2,000
The buyer's books (accounts payable):
DateEntryDebitCredit
Jan 1Record the supplier invoicePrepaid expenses $24,000Accounts payable $24,000
Jan 25Pay the supplierAccounts payable $24,000Cash $24,000
Jan 31Expense one monthSoftware expense $2,000Prepaid expenses $2,000
Two things most explanations miss show up here:

- The seller's receivable is not revenue. On January 1 the vendor has delivered nothing, so the other side of the receivable is deferred revenue, a liability. Revenue arrives $2,000 a month. Under ASC 606 the exact date to record the receivable and the contract liability depends on when payment is unconditionally due; many SaaS companies book both at the invoice date for non-cancellable contracts. - The buyer's payable is not an expense. A year of service paid in advance is a prepaid asset, expensed month by month. Accounts payable only records that a bill is owed.

The 25 days between invoice and payment are what DSO measures on the seller's side and DPO measures on the buyer's side.

AP vs accrued expenses, and AR vs deferred revenue

Accounts payable needs an invoice. An accrued expense is a cost you owe before the invoice arrives. If the buyer above used $3,000 of cloud hosting in January and the bill comes in February, it records an accrued expense at January 31. When the invoice arrives, the amount moves to AP, or straight to cash if it is paid at once.

The same split exists on the other side. Accounts receivable is money billed and due. Deferred revenue is money billed or collected before the service is delivered. A SaaS balance sheet often carries all four:

LineSideCreated bySaaS example
Accounts receivableAssetInvoices sent, not yet paidAnnual subscription invoices on 30-day terms
Deferred revenueLiabilityBilling ahead of deliveryThe 11 months of service still owed on an annual contract
Accounts payableLiabilitySupplier invoices received, not yet paidAgency, event and software vendor bills
Accrued expensesLiabilityCosts incurred, invoice not yet received (or, for items like payroll, not yet payable)Commissions, bonuses, hosting usage, payroll

Real balance sheets: a SaaS company and a retailer

In SaaS, receivables dwarf payables. In retail, it is the other way round. Here are HubSpot at December 31, 2025 and Walmart at January 31, 2026, from their 10-K filings (HubSpot, Form 10-K for 2025; Walmart, Form 10-K for fiscal 2026). Figures in millions of dollars; ratios and days are our arithmetic from the filings.
HubSpot (SaaS)Walmart (retail)
Revenue for the year3,131.3713,163
Cost of revenue / cost of sales508.5535,395
Accounts receivable, net419.111,172
Accounts payable24.863,061
Accrued liabilities398.1 (compensation, commissions, other)31,187
Deferred revenue, current1,004.9not a separate line
AR / AP16.9x0.18x (AP is 5.6x AR)
DSO (ending AR / revenue x 365)48.9 days5.7 days
DPO (ending AP / cost of revenue x 365)17.8 days43.0 days
Why the gap is so wide:

- Who pays whom, and how. HubSpot invoices businesses on credit terms, so its customers owe it about seven weeks of revenue. Most Walmart shoppers pay at the register. Its filing lists pharmacy insurers, advertisers and banks settling card payments as the customers behind its receivables, alongside suppliers' marketing programs and governments, and $4.9 billion of the $11.2 billion came from transactions with customers. - What the company buys. Walmart's cost of sales was $535 billion, and its year-end payables equal about 43 days of it. HubSpot's cost of revenue is mostly hosting and people, and its biggest unpaid costs are not supplier invoices at all: accrued compensation, accrued commissions and other accruals were 16 times its accounts payable. - Deferred revenue. HubSpot's current deferred revenue was 2.4 times its receivables. Its filing says "subscriptions are billed in advance on various schedules," so much of the cash arrives before the revenue.

Walmart's DPO is longer than the 40.1 days it holds inventory (inventories of $58,851 million over cost of sales), so on our arithmetic its cash conversion cycle, DIO plus DSO minus DPO, was about 2.8 days. HubSpot has no inventory, so DSO minus DPO, about 31 days, is a rough cash cycle. That overstates its cash need, because deferred revenue funds part of it.

One caution on SaaS DPO: payables in a software company include marketing, software and contractor bills that sit in operating expenses, not cost of revenue. Dividing them by cost of revenue alone overstates DPO. ORM's entry on days payable outstanding explains which denominator to use.

The metrics: DSO, DPO, AR turnover and the cash cycle

MetricFormulaWhat it tells youORM tool
Days sales outstanding (DSO)AR / revenue (or credit sales) x days in periodHow long customers take to payDSO calculator
AR turnoverCredit sales / average ARHow many times receivables turn into cash a yearAR turnover calculator
Days payable outstanding (DPO)AP / cost of sales or purchases on credit x daysHow long you take to pay suppliersDPO
Cash conversion cycleDIO + DSO - DPODays your own cash is tied upCash conversion cycle calculator
AR agingOpen invoices by days past dueWhich customers are late, and by how muchAR aging report template
Each day matters in dollars. For an illustrative company with $20,000,000 of annual revenue, one day of DSO is $20,000,000 / 365 = $54,795 of cash sitting with customers. Cutting DSO by 10 days frees about $547,945. On the payables side, each day of DPO on $10,000,000 a year of supplier bills keeps $27,397 in the bank a little longer.

How each one is managed

Accounts payable runs on procure-to-pay. A purchase is approved, goods or services are received, the supplier's invoice is matched to the order and the receipt, the bill is approved and it is paid on its due date in a scheduled payment run. The aim is to pay on time, not early, and never twice. Early payment makes sense when a supplier offers a discount worth more than the cash. Accounts receivable runs on order-to-cash. A signed contract becomes an invoice, the invoice is sent with clear terms, payments are applied to the right invoices, and overdue accounts get reminders and calls. In SaaS, most of this starts in the CRM: the closed deal sets the amount, the billing schedule and the payment terms. ORM's guide to order to cash covers each step, and billings vs cash collections covers the gap between invoicing and getting paid.

How AP and AR show up on the cash flow statement

A rise in receivables uses cash. A rise in payables provides it. HubSpot's 2025 statement of cash flows shows both in operating activities: the increase in accounts receivable reduced operating cash flow by $64.0 million, the increase in accounts payable added $19.0 million, accrued expenses and other current liabilities added $118.0 million and deferred revenue added $183.9 million. Net cash from operating activities was $760.7 million. The statement of cash flows entry walks through the rest of that statement, and the working capital calculator shows how the same balances move working capital.

Common mistakes

- Treating a receivable as revenue. An invoice for a year of service is mostly deferred revenue until the service is delivered. - Treating a payable as an expense. The expense depends on what was bought and when it is used. - Leaving out accruals. A company with few supplier invoices can still owe a lot. In SaaS, accrued commissions and bonuses are often far larger than AP. - Netting AR against AP. They are separate balances with different counterparties, shown separately on the balance sheet. - Judging AR without an aging. A total receivables number hides whether one large customer is 90 days late. - Paying suppliers early by default. Unless there is a discount, paying on the due date keeps cash longer at no cost.

Where ORM fits

The payables side of a SaaS company is mostly known in advance: payroll, hosting commitments, software contracts. The receivables side depends on what sales closes, when it is invoiced and on what terms. That makes the bookings forecast the starting point of the collections forecast. ORM builds bookings and ARR forecasts from your own CRM data, so finance can see the invoices, and the cash behind them, before the quarter ends. ORM targets 95% forecast accuracy. For a weekly view of cash in and out, use the 13-week cash flow template, and for how both balances sit next to the rest of the balance sheet, see income statement vs balance sheet.

Sources

All checked on November 17, 2026. This page explains how these balances are recorded and measured for planning and analysis; it is not accounting, tax or legal advice.

Frequently Asked Questions

What is the difference between accounts payable and accounts receivable?

Accounts payable is money your company owes suppliers for goods and services it has received and been billed for. Accounts receivable is money customers owe your company for goods and services you have delivered or billed. Payables are a current liability on the balance sheet; receivables are a current asset. The same invoice is a payable for the buyer and a receivable for the seller.

Is accounts payable an asset or a liability?

Accounts payable is a liability, usually a current one, because the company must pay it, normally within the supplier's payment terms, such as 30 days. Accounts receivable is an asset, because it will turn into cash when customers pay. Receivables are shown net of an allowance for credit losses, the part the company does not expect to collect.

Is accounts payable an expense?

Not by itself. Accounts payable records the obligation to pay a bill. The cost behind it is an expense, an asset or inventory depending on what was bought. A year of software paid upfront goes to prepaid expenses and is expensed monthly; office supplies are expensed at once; a laptop becomes equipment. Paying the bill reduces cash and accounts payable and does not create a new expense.

Should accounts receivable be higher than accounts payable?

It depends on the business model, not on a rule. A software company with low cost of revenue usually has far more receivables than payables: HubSpot's receivables were about 17 times its payables at the end of 2025. A large retailer is the opposite: Walmart owed suppliers about 5.6 times what customers owed it. Compare each with your own revenue and costs through DSO and DPO.

How do accounts payable and receivable affect cash flow?

An increase in receivables means revenue was earned but not yet collected, so it reduces operating cash flow. An increase in payables means costs were incurred but not yet paid, so it adds to operating cash flow. In 2025, HubSpot's growing receivables used $64.0 million of cash, while higher payables added $19.0 million.

Who manages accounts payable and accounts receivable?

Both sit in the finance or accounting team. Accounts payable runs procure-to-pay: purchase orders, matching invoices to what was received, approvals and payment runs. Accounts receivable runs order-to-cash: invoicing, collections, applying cash to invoices and chasing overdue accounts. In a SaaS company, sales operations and billing systems feed the receivables side, so revenue operations often works closely with AR.

ORM Technologies
Pete has built custom revenue forecast models for B2B SaaS companies for over a decade.

See how ORM turns these insights into action

ORM builds custom revenue forecast models for B2B SaaS companies. Not dashboards. Prescriptive analytics that tell you what to do next.

Schedule a Demo