Indirect and direct method · account mapping · non-cash disclosure · reconciles or shows what to fix

Cash Flow Statement Generator

Load an opening and closing balance sheet and an income statement, check how each account is mapped, and get a statement of cash flows that reconciles to the change in cash, or a list of what stops it from doing so.

1. Data

Balance sheet: CSV or XLSX

account, code (optional), opening, closing, category (optional)

Income statement: CSV or XLSX

account, amount, kind (optional)

Balance sheet amounts are natural-sign: assets positive, accumulated depreciation negative, liabilities and equity positive. Income statement amounts are positive, and each line's kind says whether it adds to or reduces profit. The example is a made-up print shop that buys equipment on a loan, sells an old press at a gain and pays a dividend.

Cash Flow Statement Generator

Operator: Abdulla Al Fahad. How tools are built and checked

Profit is not cash. A business can report a profit and still run short because customers have not paid, stock has piled up, or a loan fell due, and the statement of cash flows is the page that shows where the money actually went. Most small businesses never produce one, because their books give them a balance sheet and a profit and loss account instead.

The two can be turned into the third. Every change in a balance sheet account between two dates has a cash effect, and the changes, together with net income, explain the change in cash. The mapping is done here step by step, with a check that it adds up.

When it does not add up, the page says by how much and lists the accounts or inputs most likely to be responsible, rather than leaving you to hunt through a spreadsheet.

Key features

  • Indirect method from net income, with depreciation, gains and losses on disposal, other non-cash items and every working-capital change shown as its own line
  • Optional direct presentation of operating cash flow, with receipts from customers, payments to suppliers and employees, interest and tax
  • Account mapping suggested from names and account codes, and editable per account, including what kind of working-capital account each one is
  • A reconciliation to the change in cash, a list of what to check if it fails, and a disclosure of non-cash investing and financing items

How each balance sheet movement becomes a cash flow line

Operating cash flow starts with net income. Depreciation and amortisation are added back because they reduced profit without using cash, gains on disposal are removed and losses added back because the whole sale proceeds belong to investing, and each change in a current asset or liability account is applied with the sign that its effect on cash requires: an increase in receivables or inventory uses cash, an increase in payables provides it.

Investing activities come from the property, equipment and investment accounts. Purchases are the change in cost plus the cost of anything sold, less property acquired without cash; sale proceeds are an input because the balance sheet records only the net result. Financing comes from borrowings, share capital and dividends, with dividends paid derived as net income plus opening retained earnings less closing retained earnings unless you enter the declared amount.

How it works

Each account's movement is routed once according to its category, so nothing is counted twice and every non-cash account is either routed or flagged. The total of the three sections is compared with the movement in the cash accounts; any gap is attributed by checks on balance sheet balance, accumulated depreciation against depreciation expense and disposals, gains against proceeds and book value, retained earnings against net income and dividends, and unmapped accounts that moved.

Under IAS 7 as it stands today the statement can classify interest paid as operating or financing, interest received as operating or investing, and dividends paid as financing or operating. Under US GAAP interest and taxes are operating and dividends paid are financing. The policy menus apply those choices by moving the cash amount between sections after the operating total is built.

IFRS 18, which applies from periods beginning on 1 January 2027, amends IAS 7: the indirect method then starts from operating profit rather than profit or loss, and most companies must show interest paid and dividends paid in financing and interest and dividends received in investing. The menus here reflect IAS 7 before IFRS 18, so a company reporting under IFRS 18 should choose financing for interest and dividends paid, investing for interest received, and start its own presentation from operating profit.

Typical uses

  • A bakery owner has December balance sheets for two years and a profit and loss account showing 61,000 of profit but only 8,000 more cash. The statement shows where the rest went: 31,000 into a new oven and 22,000 into inventory and receivables.
  • A bookkeeper preparing year-end accounts for an IFRS client switches interest paid to financing, and sees operating cash flow rise by the interest while the total change in cash stays the same.
  • An accounting student checks homework by entering a textbook's balance sheets and seeing whether each section lands on the printed total.

Building one

  1. Open the opening and closing balance sheet and the income statement, or load the print-shop example.
  2. Check that each account is mapped to the right category and each income statement line to the right kind.
  3. Enter what the balance sheet cannot show: sale proceeds, cost and accumulated depreciation of assets sold, and anything bought or issued without cash.
  4. Read the reconciliation. If it fails, work through the list under it from the top.

Example

The print-shop example: two balance sheets (cash 18,400 to 14,100), net income 26,300, an old press sold for 4,800, equipment bought partly on a loan

Bank loan 40,000 to 33,000. Equipment sold: cost 12,000, accumulated depreciation 9,000, proceeds 4,800 (a 1,800 gain). Equipment of 8,000 acquired on the loan with no cash. 2,500 of shares issued to staff, assumed to sit inside wages expense. Dividend of 8,000 derived from retained earnings.

Lines of the statement

Operating 39,900: net income 26,300, depreciation 13,500, gain on sale (1,800), share awards 2,500, receivables (5,700), inventory 2,700, prepaid rent (600), payables 2,500, wages payable 500. Investing (31,200): sale proceeds 4,800, purchase of equipment (36,000). Financing (13,000): repayment of borrowings (15,000), shares issued for cash 10,000, dividends paid (8,000). Net change (4,300), so 18,400 becomes 14,100 and the difference is 0. The 8,000 loan-financed equipment and the 2,500 of shares are listed as non-cash items, and the direct method gives the same 39,900. A profitable year ends with less cash because 36,000 went into equipment.

Tips for best results

  • Give each current account its kind, such as receivables or payables, even if you only want the indirect statement. The direct presentation uses the kind, and a wrong one shows up there as a mismatch.
  • Enter disposals before worrying about a gap: an asset sold during the year is the most common reason for a statement that is out of balance.
  • Leave dividends declared blank unless you know the figure. The page then derives it, and warns if the derived value is negative.

Things to check before you rely on it

Reconciling to cash proves the arithmetic, not the classification. Mapping a loan to a working-capital account balances just as well and puts the cash in the wrong section.

A stock bonus or impairment that sits inside an expense line must be entered as a non-cash item, or operating cash flow is understated while financing is overstated. The print-shop example does this for its 2,500 of share awards, which it assumes are part of wages expense.

Interest receivable and dividends received are not tracked separately: interest received is taken as the interest income line, which assumes it was collected in the year.

Foreign currency effects, discontinued operations and acquisitions of businesses are not handled.

Common errors and how to fix them

"The closing balance sheet does not balance: assets 284,000.00 against liabilities and equity 283,500.00."
A balance sheet that does not balance cannot produce a statement that reconciles. Check for a missing account, or a contra account entered with the wrong sign.
""Prepaid insurance" is not mapped and moved by 700.00."
Choose a category for the account in the mapping table. An account left as Not mapped is not part of any section, so its cash effect is missing.
"Accumulated depreciation moved by -14,400.00, but depreciation expense of 20,000.00 less 0.00 removed on disposals implies -20,000.00."
Either the depreciation line includes something that is not in accumulated depreciation, or assets were sold and the accumulated depreciation removed is missing from the inputs.
"Retained earnings rose by more than net income."
Derived dividends are negative, which usually means a prior-period adjustment or an account in the wrong category. Fix the cause, or enter the dividends declared if you know them.

Best practices

  • Keep a column of account codes in the balance sheet file; the mapping falls back to the code ranges when a name is unclear.
  • Save the XLSX, whose subtotals and reconciliation are formulas, with the year-end working papers.

How the page compares with a published case

The page reproduces the figures of the OpenStax Propensity Company case in Principles of Accounting, Volume 1, section 16.3: a 23,200 rise in cash and 47,500 closing cash. OpenStax content is licensed CC BY-NC-SA 4.0, so the example built into the page is a made-up company and does not reuse the textbook's statements. The chapter text, as published in November 2026, has some slips of its own: it lists a 48,900 change in equity where the balances give 68,900, gives 50,000 for plant purchases in one place and 60,000 in another, and shows the note as a 10,000 inflow in the statement and a repayment in the discussion. The textbook shows notes payable as a 10,000 financing inflow and omits the share bonus, which offset each other; this page treats a note for property as non-cash and adds a share bonus back in operating.

Frequently asked questions

Why do I need to enter disposals separately?

A balance sheet shows only the net change in an asset account. If equipment costing 10,000 was sold and 30,000 bought, the account moved by 20,000, and nothing in the balance sheet says that 30,000 left the bank and 10,000 came back in, so the proceeds and the cost sold have to come from you.

Which presentation is better, direct or indirect?

Both give the same operating total. The indirect method is what most companies publish because it starts from the profit figure everyone already has, while the direct method reads more naturally for a reader who wants to see what was received and paid. This page gives both.

Where do I get the income statement if I only have a transaction list?

The profit-and-loss page on this site builds one from a list of transactions; bring its result here together with the two balance sheets.

What happens to leases and conversions of debt into shares?

They are non-cash. Enter property acquired by a note or lease in the no-cash field, and shares issued for services or other consideration in the shares field. They are removed from the cash lines and listed as a non-cash disclosure below the statement.