Calculating cash flow: formulas, methods & examples
Being able to calculate cash flow is one of the most valuable skills in business management: only when you know how much money is actually coming in and going out can you reliably plan investments, negotiate financing, and manage growth. A look at the economic situation shows why this effort is worthwhile: the number of corporate insolvencies in Germany rose to around 23,900 cases in 2025, an increase of 8.3% compared to the previous year (Creditreform, 2025). Liquidity bottlenecks often play a central role in this. Those who calculate their cash flow regularly identify financial bottlenecks earlier and can take countermeasures in time. In this guide, we will show you step-by-step the direct and indirect methods, operating and free cash flow, discounted cash flow, and real estate calculation, each with a worked-through example.

Key takeaways
- Basic cash flow formula: Cash flow = cash inflows minus cash outflows. This lets you see how much money is actually flowing in or out during a period.
- Cash flow can be calculated directly via actual cash inflows and outflows or indirectly from the net income. The indirect method adjusts for non-cash items and changes in working capital.
- The operating cash flow (OCF) shows whether the core business is self-sustaining. The free cash flow (FCF) is simply calculated as operating cash flow minus investments.
- The discounted cash flow (DCF) is not a type of cash flow itself, but a valuation method. It shows what expected future cash flows are worth today.
- For real estate, the simplified rule is: cash flow = rental income minus non-recoverable operating costs minus debt service. If you have multiple accounts, scenarios, or real-time data, software is better than Excel.
Why should you calculate cash flow?
Because revenue is not the same as money in the bank. A full order book is of little use if invoices are paid weeks later. Cash flow makes exactly this gap visible. Current data shows how relevant this is: 61% of small businesses worldwide struggle with cash flow problems (QuickBooks, 2019). At the same time, the payment gap in European B2B business has continued to widen: in 2026, invoices were paid on average about 20 days later than agreed (Intrum, 2026).
When you calculate cash flow, you answer three central questions: Is the core business self-sustaining? How much money remains for investments and debt repayment? And when is a bottleneck likely to occur? We explain exactly what cash flow is and which cash flow areas exist in detail in our pillar article Cash Flow: Definition, Importance, and Types. Here, we focus on the actual calculation.
The cash flow formula at a glance
The basic cash flow formula is simple: you subtract all cash outflows of a period from all cash inflows. In practice, there are two ways to do this: the direct and the indirect method. Both can determine operating cash flow, but they use different source data.
Basic cash flow formula
Cash flow = Total cash inflows − Total cash outflows
Direct method: Operating cash flow = Cash inflows from sales − Cash outflows to suppliers, employees, and other operating expenses.
Indirect method: Operating cash flow = Net income + non-cash expenses/income ± changes in working capital.
Which method you choose depends primarily on the data you have available. If you only have the annual financial statements, you usually use the indirect method. If you have access to real-time payment data, the direct method is more accurate and practical. We will now look at both in detail.
Calculating cash flow using the indirect method
The indirect method is frequently used in the cash flow statement, especially for cash flow from operating activities. According to DRS 21, operating cash flow can be presented directly or indirectly; however, cash flows from investing and financing activities are generally reported directly (DRSC, 2023).
With the indirect method, you start with the net income and adjust it for items that influenced profit without actual money changing hands. You also account for changes in working capital, such as receivables, inventory, and operating liabilities. This is how you get from the accounting result to the actual cash flow from ongoing business.
Indirect method: step by step
- Take the net income or net result as the starting value.
- Add depreciation and other non-cash expenses, as they reduce profit but do not cause a cash outflow.
- Subtract non-cash income, as it increases profit but does not trigger a cash inflow.
- Add increases in provisions, subtract decreases in provisions.
- Subtract increases in receivables and inventory, as this ties up cash. Decreases are added.
- Add increases in operating liabilities, as this provides short-term liquidity. Decreases are subtracted.
Example: calculating the indirect method
A company reports an annual net income of €150,000. Added to this are depreciation charges of €50,000. At the same time, accounts receivable have increased by €20,000 because customers paid later.
The operating cash flow is therefore €180,000. Depreciation is added back because, while it reduces profit, it does not result in an outflow of cash. The increase in receivables is deducted because that money is still with the customer. This example shows why cash flow and profit can diverge.
Calculating cash flow using the direct method
The direct method compares the actual cash inflows and outflows of a period directly, without taking the detour through net income. The result is particularly transparent, but it requires clean, up-to-date payment data. For this reason, it is primarily used internally for ongoing management.
Typical inflows and outflows:
- Inflows: Revenue from product and service sales as well as the settlement of outstanding receivables.
- Outflows: Wages and salaries, supplier invoices, rent, taxes, and other ongoing operating costs.
Example: calculating with the direct method
A company receives €500,000 from sales in one month and pays €300,000 for materials, wages, and ongoing costs.
The operating cash flow is €200,000. The advantage: You can see immediately which payment flows are driving the result. The disadvantage: The method is only as good as the data quality in your accounting.
Direct vs. indirect method compared
Calculating operating cash flow
Operating cash flow (OCF) is the cash flow from ongoing core business operations and is one of the most important cash flow metrics. It shows whether the business model is self-sustaining. It can often be calculated indirectly from net income by accounting for non-cash items and changes in working capital.
Formula: operating cash flow (indirect)
OCF = Net income + Depreciation + Increase in provisions − Increase in receivables − Increase in inventory + Increase in operating liabilities
A worked example with several adjustment items:
The operating cash flow is therefore €130,000. Depreciation and the increase in provisions are added back because they reduce profit but do not initially cause a direct cash outflow. Rising receivables and inventory are deducted because they tie up capital.
Gross and net cash flow: before or after taxes?
Whether cash flow is viewed before or after taxes depends on the chosen definition and calculation. For liquidity planning, it is crucial to know which taxes were actually paid, as these are real cash outflows. Therefore, in practice, you should always check whether your cash flow calculation already accounts for income taxes paid or if you need to deduct them separately.
If you want to include income taxes paid of €30,000 in the example, the simplified result is:
Operating cash flow after taxes = €130,000 − €30,000 = €100,000
This is not an additional type of cash flow, but rather a perspective on the same figure before or after tax payments.
Calculating Free Cash Flow
The free cash flow (FCF) shows how much money remains freely available after operating activities and the deduction of capital expenditures. It can be used to pay off debt, pay dividends, build reserves, or finance further growth. This makes it an important indicator of financial flexibility and a central foundation for company valuation.
Formula: free cash flow
Free Cash Flow = Operating Cash Flow − Capital Expenditures (CapEx)
Example: The operating cash flow is €130,000. In the same period, the company invests €50,000 in a new machine.
This leaves €80,000 freely available. A stable or growing FCF is considered a sign of healthy corporate management. A negative FCF is normal during growth phases but should be planned for intentionally. For young companies, the metrics burn rate and cash runway are also relevant in this context.
Calculating Discounted Cash Flow (DCF)
The discounted cash flow (DCF) is not a specific type of cash flow, but rather a valuation method. The discounted cash flow method is used to determine the present value of future cash flows. In other words, it answers the question of what expected cash flows are worth today.
The basic idea: money that will only be received in a few years is worth less today than money that is available immediately. Therefore, future cash flows are discounted to their present value using an interest rate.
Formula: discounted cash flow
DCF = Σ [ Free Cash Flow in year t / (1 + i)^t ]
i = discount rate or cost of capital
t = year
Σ = sum over all years
DCF example: is a new production facility worth it?
A medium-sized household appliance manufacturer is evaluating a new production facility. The investment costs €5 million and has a lifespan of 10 years. An annual free cash flow of €1.8 million is expected, for example through additional cash-effective earnings and cost savings. The discount rate is 8%.
Each future cash flow is now discounted to its present value. The first few years illustrate the principle:
Over 10 years, the discounted cash flows add up to around €12.08 million (present value annuity factor 6.71 × €1.8 million). Since this present value is significantly higher than the investment costs of €5 million, the net present value is positive:
Net Present Value = €12.08 million − €5 million = €7.08 million
The investment is therefore financially attractive.

Other DCF use cases
The same logic can be applied to very different types of investments. It is always about discounting future cash flows and comparing them with the investment costs:
- E-commerce, new warehouse and logistics center: expected cash flows from lower shipping costs, higher revenue due to shorter delivery times, and fewer returns. Discounting shows whether the expansion pays off. Learn more in our solutions for e-commerce. Marketing agency, automation software: expected cash flows from less time spent per project, potential new clients, and better customer retention. The DCF makes profitability visible. See our matching solutions for agencies.
Calculating cash flow for real estate
In real estate, cash flow measures how much money a rented property actually generates after operating costs and debt service. It is a key metric for determining whether a property pays for itself through current income or whether you need to contribute money every month.
Formula: Real estate cash flow (pre-tax)
Cash flow = Rental income − non-recoverable operating costs − debt service (interest + principal repayment)
Example for a rented condominium, annual figures:
The property generates a positive cash flow of €7,000 per year. A positive value means that the property is self-sustaining from a cash flow perspective. A negative value—often referred to as a subsidized property—can still be worthwhile if value appreciation or tax effects compensate for it. However, it must be financed consciously.
Cash flow calculation in Excel
For individual properties or simple structures, a spreadsheet is often sufficient. In Excel, you create a line item for each entry, such as receipts and disbursements, and sum them up at the end. A ready-made Excel template for liquidity planning saves you the setup time.
Excel is cost-effective and flexible, but it reaches its limits as soon as multiple accounts, scenarios, or real-time data come into play. At that point, the manual maintenance effort increases significantly, and errors creep in more easily.
Calculating cash flow with software
As your company grows, manual calculation becomes a burden. Nevertheless, 72% of treasury managers still create their cash flow forecasts manually (PYMNTS, 2022), which is time-consuming and error-prone. Software automates the calculation, connects bank accounts, and provides a real-time picture rather than just a look into the past.
Practical tip from everyday finance
"Knowing the formula is one thing. In practice, it usually fails due to the ongoing maintenance of figures across multiple accounts." A tool like Tidely connects your bank accounts, automatically categorizes payments, and delivers your first cash flow forecast in about 15 minutes, including a 13-week plan with a single click. This turns a one-time calculation into ongoing management.
The greatest added value lies in scenario analysis: you can immediately see how an investment, a drop in sales, or a late payment affects your cash flow. We show how this works methodically in our article on scenario planning and forecasting.
Automation is also gaining importance in cash management: the PYMNTS Intelligence Time-to-Cash Report 2025 shows that digital workflows, automation, and AI-supported forecasts noticeably accelerate cash flow processes; 71% of the companies surveyed report cash flow improvements (PYMNTS Intelligence, 2025).
Cash flow calculator: calculate it yourself quickly
For an initial assessment, a simple calculator is sufficient. Enter your receipts and disbursements, and you will get the cash flow for the period. For operating cash flow, use the indirect formula: net income plus non-cash items, adjusted for changes in working capital. For free cash flow, subtract the investments.
Quick formulas for calculating it yourself
- Simple cash flow: Cash inflows − Cash outflows
- Operating cash flow: Net income + Depreciation ± Changes in working capital
- Free cash flow: Operating cash flow − Capital expenditures
Conclusion: Calculate and actively manage your cash flow
Calculating cash flow isn't about complex math; it's about using the right formula and clean data. The indirect method is best for deriving figures from financial statements, while the direct method is ideal for day-to-day management. Free cash flow can be derived from operating cash flow; for investment decisions, future free cash flows can also be evaluated using the discounted cash flow method.
The key is to turn a one-off calculation into an ongoing practice. By regularly calculating your cash flow and planning for the future, you can identify bottlenecks early and make investment decisions on a solid foundation. For a deeper understanding of these concepts, check out our pillar article on cash flow as well as our guide to liquidity planning.
Frequently asked questions about calculating cash flow (FAQ)
How do you calculate cash flow?
The basic rule is: Cash flow = Cash inflows − Cash outflows. In practice, you calculate cash flow either directly from actual payment streams or indirectly from net income, adjusted for non-cash items and changes in working capital.
What is the difference between direct and indirect cash flow calculation?
The direct method compares actual cash inflows and outflows. The indirect method starts with net income and adjusts it for depreciation, provisions, and changes in receivables, inventory, and operating liabilities.
How do you calculate operating cash flow?
In simple terms: Operating cash flow = Net income + Depreciation + Increase in provisions − Increase in receivables − Increase in inventory + Increase in operating liabilities. It shows the cash generated from your core business operations.
What is free cash flow and how do you calculate it?
Free cash flow (FCF) shows how much money remains available after investments. In simple terms: FCF = Operating cash flow − Capital expenditures. It is important for debt repayment, distributions, reserves, and growth.
What is discounted cash flow (DCF)?
Discounted cash flow is not a type of cash flow itself, but a valuation method. It involves discounting expected future cash flows to their present value using a discount rate.
How do you calculate the cash flow of a property?
In simple terms: Cash flow = Rental income − Non-recoverable operating costs − Debt service (interest and principal). A positive value means the property is self-sustaining from a cash flow perspective and generates a surplus.
Can I calculate cash flow using Excel?
Yes, Excel is often sufficient for individual companies, simple structures, or real estate. As soon as you have multiple accounts, scenarios, or need real-time data, cash flow software is usually more efficient and less prone to errors.
Sources
- Creditreform Economic Research: Insolvencies in Germany, 2025
- Intuit QuickBooks: The State of Small Business Cash Flow, 2019
- Intrum: European Payment Report 2026
- Intrum: European Payment Report 2026 – Late payments are holding back European growth
- Accounting Standards Committee of Germany (ASCG): DRS 21 Cash Flow Statement, last revised 2023
- Gabler Business Dictionary: Discounted Cash Flow Method
- PYMNTS: 72% of Treasurers Still Do Cash Flow Forecasts Manually, 2022
- PYMNTS Intelligence: Time to Cashâ„¢: A New Measure of Business Resilience, 2025
About the author
Niclas Storz is the founder and CEO of Tidely, a software solution for cash flow management for small and medium-sized enterprises. Previously, he spent over 20 years working as a management consultant, most recently as a Senior Partner & Managing Director at BCG.
.jpg)
.png)

