The operating cash flow formula is net income plus non-cash expenses, such as depreciation, amortization and stock-based compensation, plus or minus the change in working capital. That is the indirect method most companies report. The direct method gives the same total: cash received from customers minus cash paid to employees, suppliers, lenders and tax authorities. Divide by revenue for the OCF margin.
Revenue and capital spending, same period for every input
Start at net income, add back non-cash items, then enter each working capital line as the change between two balance sheets. Enter an increase as a positive number and a decrease as a negative one; the calculator applies the sign.
List the actual cash in and out of operations. Under US GAAP, interest received and paid stay in operating activities. Enter every line as a positive number.
Start from operating income (EBIT), add back non-cash costs, subtract the tax actually paid, add net interest received, and add the cash effect of working capital: positive when deferred revenue and payables grew faster than receivables and prepaid costs.
Get The Forecast Brief
You just worked out your operating cash flow and OCF margin. The Forecast Brief is a short email from Pete Furseth, ORM's COO, built on what ORM sees in its customers' forecasts.
Operating cash flow formulas, with Excel and Google Sheets versions
Each result above comes from one of these formulas. The examples use the calculator's default numbers, which describe an illustrative B2B SaaS company with $20,000,000 of revenue that bills most contracts annually upfront. It is the same company as in the free cash flow calculator and the EBITDA calculator, so the three pages agree.
| Measure | Formula | Excel or Sheets | Example (illustrative) |
|---|---|---|---|
| OCF, indirect method | Net income + D&A + stock comp + other non-cash - AR increase - prepaid increase - deferred commission increase + payables increase + deferred revenue increase | =B2+B3+B4+B5-B6-B7-B8+B9+B10 | $480,000 + $600,000 + $1,400,000 + $0 - $300,000 - $50,000 - $250,000 + $100,000 + $900,000 = $2,880,000 |
| OCF, direct method | Cash from customers + interest received - cash paid to employees and suppliers - interest paid - taxes paid | =C2+C3-C4-C5-C6 | $20,600,000 + $350,000 - $17,800,000 - $150,000 - $120,000 = $2,880,000 |
| OCF from operating income | Operating income + D&A + stock comp - taxes paid + net interest received + working capital cash effect | =D2+B3+B4-C6+D3+D4 | $400,000 + $600,000 + $1,400,000 - $120,000 + $200,000 + $400,000 = $2,880,000 |
| OCF margin | Operating cash flow / revenue | =E2/B11 | $2,880,000 / $20,000,000 = 14.4% |
| OCF to net income | Operating cash flow / net income | =E2/B2 | $2,880,000 / $480,000 = 6.0x |
| OCF after stock-based compensation | Operating cash flow - stock comp | =E2-B4 | $2,880,000 - $1,400,000 = $1,480,000 (7.4% of revenue) |
| Free cash flow | Operating cash flow - capex - capitalized software | =E2-B12 | $2,880,000 - $1,080,000 = $1,800,000 |
| Operating cash flow ratio | Operating cash flow / current liabilities | =E2/B13 | Needs the balance sheet; see the HubSpot example below |
B2 is net income, B3 depreciation and amortization, B4 stock-based compensation, B5 other non-cash items, B6 the increase in accounts receivable, B7 the increase in prepaid and other assets, B8 the increase in deferred commissions, B9 the increase in payables and accrued expenses, B10 the increase in deferred revenue, B11 revenue, B12 capex plus capitalized software and B13 current liabilities. C2 to C6 are the direct-method cash lines. D2 is operating income, D3 net interest received and D4 the working capital cash effect. E2 is operating cash flow from any of the three rows. A decrease goes in as a negative number, and the formula turns it into the right sign.
How to calculate operating cash flow, step by step
- Pick the period. A full year or the trailing twelve months. A single quarter swings with annual billing.
- Start at net income from the income statement, after interest and tax.
- Add back non-cash expenses. Depreciation, amortization and stock-based compensation reduced net income but used no cash. Remove non-cash gains, such as a gain on an investment, because the cash from a sale shows up in investing activities.
- Work out each working capital change from two balance sheets: this period's ending balance minus last period's.
- Apply the signs. An increase in an operating asset (receivables, prepaid costs, deferred commissions) uses cash and is subtracted. An increase in an operating liability (payables, accrued expenses, deferred revenue) frees cash and is added.
- Add it up and check it against "net cash provided by operating activities" if you have a cash flow statement. Then divide by revenue for the margin.
Which way each working capital line moves cash
Most operating cash flow mistakes are sign mistakes. This table covers the lines that matter in a SaaS company.
| Balance sheet line | If it goes up | Why, in a SaaS company |
|---|---|---|
| Accounts receivable | Subtract | Invoices went out that customers have not paid. Long payment terms and quarter-end deals push it up |
| Deferred revenue | Add | Customers paid for months of service not yet delivered. Annual upfront billing makes this the largest positive line |
| Deferred (capitalized) commissions | Subtract | Commissions were paid in cash but expensed over the contract life, so the asset grows as bookings grow |
| Prepaid expenses | Subtract | Annual software subscriptions and insurance paid ahead |
| Accounts payable and accrued expenses | Add | Costs were expensed but not yet paid, including accrued commissions and bonuses |
| Inventory | Subtract | Rare in pure SaaS; matters for hardware and marketplace models |
The working capital calculator works out these balances and the change between two periods. Deferred revenue is why a SaaS company can show more cash than profit; the deferred revenue entry explains how it builds, and the statement of cash flows entry shows where operating cash flow sits next to investing and financing.
Direct vs indirect method
Both methods produce the same operating cash flow. They only present it differently. The indirect method reconciles net income to cash, line by line. The direct method lists the gross cash receipts and payments. OpenStax's accounting textbook notes that "the vast majority of financial statements are presented using the indirect method." Corporate Finance Institute adds that under US GAAP, interest paid and received are always treated as operating cash flows, while IFRS lets companies choose.
For internal planning the direct method is often more useful, because it is how a cash forecast is built: collections by billing term, then payroll, commissions and vendor payments. The cash flow forecast template works that way.
Operating cash flow vs net income, EBITDA and free cash flow
| Measure | What it counts | Default example |
|---|---|---|
| Net income | Profit after every expense, interest and tax, on an accrual basis | $480,000 |
| EBITDA | Operating profit before depreciation and amortization; still accrual, ignores working capital | $1,000,000 |
| Operating cash flow | Cash produced by running the business, after interest and tax paid | $2,880,000 |
| Free cash flow | Operating cash flow minus capital spending, including capitalized software | $1,800,000 |
In the default company, operating cash flow is six times net income. Two lines explain most of it: $1,400,000 of stock-based compensation, which is a real cost to shareholders but not cash, and $900,000 of new deferred revenue, which is cash collected before it is earned. The guide to operating income vs net income walks the income statement side of the same bridge.
A public SaaS example: HubSpot's operating cash flow in 2025
HubSpot's fiscal 2025 Form 10-K shows the SaaS pattern clearly. The company says subscriptions "are billed in advance on various schedules," and that sales commissions for new contracts "are deferred and amortized on a straight-line basis over a period of approximately two to four years" (HubSpot, Form 10-K for 2025).
| HubSpot, year ended December 31, 2025 | $ millions |
|---|---|
| Net income | 45.9 |
| Stock-based compensation | 528.2 |
| Depreciation and amortization | 136.3 |
| Other non-cash items, net (mainly bond discount accretion of -40.5) | -45.2 |
| Deferred revenue | 183.9 |
| Accrued expenses and other current liabilities | 118.0 |
| Deferred commission expense | -117.0 |
| Accounts receivable | -64.0 |
| Other working capital lines, net | -25.3 |
| Net cash provided by operating activities | 760.7 |
On our arithmetic from those lines, with $3,131.3 million of revenue:
- OCF margin was 24.3%, up from 22.8% in 2024 and 16.2% in 2023 (operating cash flow of $598.6 million and $351.0 million on revenue of $2,627.5 million and $2,170.2 million).
- Operating cash flow was 16.6 times net income. Non-cash items added $619.3 million and working capital added $95.5 million.
- Stock comp was 69% of operating cash flow. After subtracting it, OCF was $232.6 million, a 7.4% margin.
- Commissions used cash ahead of the expense. The $117.0 million deferred commission line is cash paid to the sales team and partners that the income statement will recognize over the next two to four years.
- The operating cash flow ratio was 0.52: $760.7 million of OCF against $1,467.5 million of current liabilities, of which $1,004.9 million was deferred revenue, a liability settled by delivering service, not by paying cash.
Subtract $53.2 million of property and equipment and $130.6 million of capitalized software and free cash flow was $576.9 million, the same figure the free cash flow calculator page works through.
What a change in operating cash flow tells a SaaS board
- OCF growing faster than revenue usually means costs are growing more slowly than revenue, more upfront billing, or both. Check the deferred revenue line before giving credit to cost control.
- OCF below net income for several periods means profit is not turning into cash. Look at receivables, days sales outstanding and payment terms. The DSO calculator shows how many days of revenue are sitting unpaid.
- A one-off jump can come from a large multi-year prepayment or a delay in paying suppliers. Neither repeats.
- Falling OCF with steady profit often follows a move from annual to monthly or quarterly billing. Revenue is unchanged; cash arrives later.
What Pete Furseth sees behind a SaaS operating cash flow number
- Quarters are not equal. Pete sees the fourth quarter as typically the largest across ORM's customers, followed by the second, third and first, and the third month of each quarter as always the largest. Annual invoices follow bookings, so quarterly operating cash flow swings with them. Compare a quarter with the same quarter last year, or use trailing twelve months.
- Payment terms are a cash decision made by sales. In his guide to billings vs cash collections, Pete notes that a rep three days from quarter end "will trade net 90 for a signature." The booking looks the same. The operating cash flow arrives a quarter later.
- One definition, every slide. "If you show one number on one slide, that number better show up on the next, or there should be a clear explanation for why it changed." Say whether the OCF on the board slide is before or after stock comp, and keep it that way.
Common operating cash flow mistakes
- Getting a working capital sign wrong. An increase in receivables uses cash. An increase in deferred revenue frees it.
- Calling operating cash flow "revenue minus operating expenses." That subtracts depreciation, which is not cash, and skips interest, tax and working capital.
- Leaving out deferred commissions. A SaaS company that capitalizes commissions pays them in cash today. Miss the line and OCF looks higher than it is.
- Counting a gain twice. A gain on selling an investment is in net income, and the sale proceeds are in investing activities. Remove the gain from operating cash flow.
- Mixing periods. Net income for the year and a working capital change for one quarter do not add up to anything.
- Treating financing as operating. A loan drawn or equity raised is financing cash flow. If operating cash flow is negative, the burn rate calculator turns it into months of runway.
This calculator is for planning and analysis. It is not accounting, tax or legal advice; your auditor decides how each cash flow is classified.
ORM's take on operating cash flow and the bookings forecast
In a SaaS company the biggest operating cash line is usually collections, and collections follow bookings: the booking sets the invoice, the payment terms set the date, and deferred revenue sets how far cash runs ahead of profit. If the bookings forecast is wrong, the operating cash flow plan is wrong by about the same amount, a quarter later.
ORM builds bookings and ARR forecasts from your own CRM data, with a low case, an on-target case and an upper bound, and with the week-by-week seasonality of your quarter built in. ORM targets 95% accuracy on the forecasts it builds.
Common questions
What is the operating cash flow formula?
Under the indirect method, operating cash flow = net income + non-cash expenses (depreciation, amortization, stock-based compensation) - increases in operating assets such as receivables + increases in operating liabilities such as payables and deferred revenue. Under the direct method it is cash received from customers minus cash paid to employees and suppliers, interest and taxes. Both methods give the same total.
How do you calculate operating cash flow from an income statement?
An income statement alone is not enough, because the working capital changes come from the balance sheet. Take net income, add back depreciation, amortization and stock-based compensation from the income statement or its notes, then compare two balance sheets: subtract the increase in receivables, prepaid costs and capitalized commissions, and add the increase in payables, accrued expenses and deferred revenue.
What is the difference between operating cash flow and free cash flow?
Operating cash flow is the cash the business produces from running itself, before any capital spending. Free cash flow is operating cash flow minus capital expenditures, which for a SaaS company should include capitalized software development. With $2,880,000 of operating cash flow and $1,080,000 of capital spending, free cash flow is $1,800,000.
Is operating cash flow the same as EBITDA?
No. EBITDA is a profit measure that ignores interest, tax, depreciation and amortization, but it still counts revenue when it is earned, not when it is collected. Operating cash flow subtracts the cash actually paid for interest and tax and includes working capital changes. In a SaaS company that bills annually upfront, operating cash flow is often well above EBITDA because customers pay before the revenue is earned.
Can operating cash flow be negative while net income is positive?
Yes. A company that sells on long payment terms can book revenue and profit while customers have not paid, so receivables rise and operating cash flow falls below net income. Fast growth with monthly-in-arrears billing, a large one-time gain in net income, or a big prepayment to a supplier can all do the same. A gap that persists for several years is a reason to look at how revenue is recognized.
What is a good operating cash flow margin?
There is no single benchmark, because the margin depends on growth, billing terms and how much of pay is in stock. Compare a company with its own history and with peers that bill the same way. HubSpot, a public SaaS company billing in advance, reported operating cash flow of 16.2% of revenue in 2023, 22.8% in 2024 and 24.3% in 2025 on our arithmetic from its 10-K.
Know which bookings will turn into cash this quarter
Operating cash flow in SaaS starts with a booking. ORM forecasts the bookings.
Schedule a Demo