To calculate cash received from customers, take net sales from the income statement, adjust for the change in accounts receivable, add or subtract the change in unearned revenue, and subtract any bad debt write-offs. The result is the cash-from-customers line that appears on a direct-method statement of cash flows, and it almost always differs from revenue because accrual accounting records sales when earned, not when the money arrives.
The Formula
Cash Received from Customers = Net Sales − Increase in Accounts Receivable + Increase in Unearned Revenue − Bad Debt Write-Offs
The signs flip when the balances move the other way. If accounts receivable decreased during the period, add the decrease. If unearned revenue decreased, subtract it. Net sales is the starting point because it already strips out returns, allowances, and discounts, so you’re bridging from what the company billed to what it actually collected.
Where Each Number Comes From
Every input sits in one of two standard financial statements prepared under Generally Accepted Accounting Principles.1Financial Accounting Foundation. What is GAAP?
- Net sales appears on the income statement, already net of returns, allowances, and discounts.
- Beginning and ending accounts receivable come from the comparative balance sheet. Beginning AR is last year’s ending balance.
- Beginning and ending unearned revenue also sit on the comparative balance sheet, listed as a current liability.
- Bad debt write-offs usually don’t appear on the face of the balance sheet. You’ll find them in the general ledger under bad debt expense or in the allowance for doubtful accounts, and sometimes in the notes.
The comparative balance sheet does the subtraction work for you on receivables and unearned revenue. The general ledger is where you go for the write-off detail.
How the Change in Accounts Receivable Moves the Answer
The accounts receivable adjustment does most of the work. If a company reports $400,000 in net sales and AR drops by $30,000 during the year, customers paid $30,000 more than the company billed in new credit sales. Cash received is $430,000.
Reverse it. If AR grew by $30,000, the company billed $30,000 more than it collected. Cash received is $370,000. Growing receivables aren’t automatically a problem, and often mean the business is expanding, but collections aren’t keeping up with revenue, and that gap is what a cash flow statement is designed to expose.
A two-variable version of the formula (net sales plus or minus the AR change) gets you close for a quick estimate. It overstates cash whenever the period included write-offs, and it misses cash entirely when customers prepay, which is why the full formula carries two more adjustments.
Adjusting for Unearned Revenue
When customers pay before the company delivers, the payment sits on the balance sheet as unearned revenue rather than flowing through the income statement. Subscriptions, annual maintenance contracts, and prepaid licenses all work this way.
An increase in unearned revenue means cash arrived during the period for work not yet performed. That cash is real, so add the increase. A software company that collects a $10,000 annual subscription in December has $10,000 in the bank even though only one month shows up on that year’s revenue line.
A decrease in unearned revenue means the opposite: the company delivered on obligations customers had prepaid in a prior period, so revenue got recognized without a matching cash inflow this period. Subtract the decrease.
Why Bad Debt Write-Offs Need Their Own Line
Write-offs are where a fast calculation goes wrong. When a company writes off an uncollectible invoice, the entry reduces accounts receivable without any cash changing hands. Look only at beginning and ending AR balances and that reduction looks identical to a collection.
Consider a company that starts the year with $200,000 in AR and ends with $170,000. The apparent story is that customers paid $30,000 more than new credit sales. If $8,000 of that decrease came from writing off invoices that were never going to be paid, only $22,000 represents actual net cash collection beyond current sales. Skipping the write-off adjustment inflates the cash figure by the exact amount written off.
Under the direct write-off method, the entry debits bad debt expense and credits accounts receivable. Under the allowance method, which GAAP generally requires for larger companies, the company estimates bad debts first by debiting bad debt expense and crediting the allowance account, then later writes off specific invoices by debiting the allowance and crediting AR. Both paths shrink the AR balance without cash arriving, and both call for the same correction: subtract total write-offs from your running total.
A Worked Example
Take a company with the following figures for the year:
- Net sales: $750,000
- Beginning accounts receivable: $120,000
- Ending accounts receivable: $95,000 (a $25,000 decrease)
- Bad debt write-offs: $5,000
- Beginning unearned revenue: $40,000
- Ending unearned revenue: $55,000 (a $15,000 increase)
Start with net sales of $750,000. AR decreased by $25,000, so add it: $775,000. Of that decrease, $5,000 was write-offs rather than collections, so subtract it: $770,000. Unearned revenue increased by $15,000, meaning new prepayments came in, so add it: $785,000.
Cash received from customers for the period is $785,000, or $35,000 above what the income statement reports as revenue. Drop the unearned revenue adjustment and you understate by $15,000. Drop the write-off correction and you overstate by $5,000. The two errors move in opposite directions, so they don’t cancel out reliably, and on a real financial statement the numbers involved can be much larger.
What About Sales Tax Collected at the Register
Sales tax collected from customers physically arrives in the company’s bank account, so it’s fair to wonder whether it belongs in this figure. Under ASC 606, most companies elect to present revenue net of sales tax, so the tax never flows through net sales. It sits in a separate liability account payable to the government.
For the cash-received-from-customers line on a statement of cash flows, that treatment means the formula above already excludes sales tax and no further adjustment is needed. If you’re calculating total cash physically received from customers for internal liquidity purposes rather than for the cash flow statement, add the net increase in sales tax payable to the result.
When You’ll Actually Need to Do This Calculation
The formula produces cash received from customers as it appears under the direct method of cash flow reporting, which shows actual cash inflows and outflows line by line. FASB has long encouraged the direct method.2FASB. Summary of Statement No. 95
In practice, roughly 90% of public companies use the indirect method, which starts with net income and adjusts for non-cash items and working capital changes to arrive at total operating cash flow in a single figure. The indirect method never breaks out cash from customers on its own. If you’re analyzing a company that publishes only an indirect-method statement, this formula is how you reconstruct the number yourself.