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 is | Money owed to suppliers and vendors | Money owed by customers |
| Balance sheet | Current liability | Current asset, net of an allowance for credit losses |
| Created when | A supplier bills you for something you received | You bill a customer for something you delivered or that is due |
| Cleared when | You pay the supplier | The customer pays you |
| Normal balance | Credit | Debit |
| Cash flow effect of an increase | Adds to operating cash flow | Reduces operating cash flow |
| Speed metric | Days payable outstanding (DPO) | Days sales outstanding (DSO) |
| Process | Procure-to-pay | Order-to-cash |
| Main risk | Late fees, strained suppliers, duplicate payments | Late payment and bad debt |
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):| Date | Entry | Debit | Credit |
|---|---|---|---|
| Jan 1 | Invoice the annual subscription | Accounts receivable $24,000 | Deferred revenue $24,000 |
| Jan 25 | Customer pays | Cash $24,000 | Accounts receivable $24,000 |
| Jan 31 | Recognize one month of service | Deferred revenue $2,000 | Subscription revenue $2,000 |
| Date | Entry | Debit | Credit |
|---|---|---|---|
| Jan 1 | Record the supplier invoice | Prepaid expenses $24,000 | Accounts payable $24,000 |
| Jan 25 | Pay the supplier | Accounts payable $24,000 | Cash $24,000 |
| Jan 31 | Expense one month | Software expense $2,000 | Prepaid expenses $2,000 |
- 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:
| Line | Side | Created by | SaaS example |
|---|---|---|---|
| Accounts receivable | Asset | Invoices sent, not yet paid | Annual subscription invoices on 30-day terms |
| Deferred revenue | Liability | Billing ahead of delivery | The 11 months of service still owed on an annual contract |
| Accounts payable | Liability | Supplier invoices received, not yet paid | Agency, event and software vendor bills |
| Accrued expenses | Liability | Costs 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 year | 3,131.3 | 713,163 |
| Cost of revenue / cost of sales | 508.5 | 535,395 |
| Accounts receivable, net | 419.1 | 11,172 |
| Accounts payable | 24.8 | 63,061 |
| Accrued liabilities | 398.1 (compensation, commissions, other) | 31,187 |
| Deferred revenue, current | 1,004.9 | not a separate line |
| AR / AP | 16.9x | 0.18x (AP is 5.6x AR) |
| DSO (ending AR / revenue x 365) | 48.9 days | 5.7 days |
| DPO (ending AP / cost of revenue x 365) | 17.8 days | 43.0 days |
- 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
| Metric | Formula | What it tells you | ORM tool |
|---|---|---|---|
| Days sales outstanding (DSO) | AR / revenue (or credit sales) x days in period | How long customers take to pay | DSO calculator |
| AR turnover | Credit sales / average AR | How many times receivables turn into cash a year | AR turnover calculator |
| Days payable outstanding (DPO) | AP / cost of sales or purchases on credit x days | How long you take to pay suppliers | DPO |
| Cash conversion cycle | DIO + DSO - DPO | Days your own cash is tied up | Cash conversion cycle calculator |
| AR aging | Open invoices by days past due | Which customers are late, and by how much | AR aging report template |
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.
- HubSpot, Inc., Form 10-K for the year ended December 31, 2025 (SEC EDGAR): consolidated balance sheets, statements of operations and statements of cash flows; billing in advance. Ratios, DSO and DPO are ORM's arithmetic.
- Walmart Inc., Form 10-K for the fiscal year ended January 31, 2026 (SEC EDGAR): consolidated balance sheets and statements of income. Ratios, DIO, DSO, DPO and the cash conversion cycle are ORM's arithmetic.
- U.S. Securities and Exchange Commission, Regulation S-X Rule 5-02, Balance sheets (17 CFR 210.5-02), eCFR.
- The $24,000 subscription, the $3,000 hosting accrual and the $20,000,000 company are illustrative, with the arithmetic shown on this page.
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.
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

