What moves cash: the counter-account
Every projection line is balanced against a counter-account: the account
its money lands in or comes from. Salary lands in checking. Rent comes out of
checking. A legal bill you will pay in 60 days goes to liabilities:payable.
In the file, the counter-account is the rule’s last posting, written with no
amount, so hledger fills it in:
~ monthly projection
revenues:salary $-12000 ; growth: 3%/yr
expenses:rent $4200
assets:checking
Each month that rule is one balanced transaction: salary in, rent out, and
assets:checking up by the difference. Ledgeline expands a scenario into dated
transactions like this, the way hledger --forecast does, and every number on
the Projections tab is read off them. Cash is the balance of your cash
accounts; net worth is your assets less your liabilities.
When a line names no counter-account
Older scenario files, budget.journal rules and freshly seeded estimates have
no counter-account. Ledgeline picks a default for them, in this order:
- the account your history paired it with. Ledgeline looks at your real
transactions over the last twelve months that post the line’s account in
the line’s commodity, and asks where the other side of the money went: the
asset or liability account with the most money paired with it. Salary that
always landed in
assets:checkingprojects intoassets:checking. Depreciation booked againstassets:car:depreciationkeeps booking there, so it never touches cash.- A credit card is followed to the account that pays it. Groceries paid
on
liabilities:visawould never reduce cash in a projection, because the projection does not project the card payments. So when the pairing is a liability, and that liability is mostly paid down from a cash account, the cash account is the default. Ledgeline follows only one such hop. - Commodities are kept apart. A
$line is only paired with an account that took$; a EUR line with one that took EUR. Dollar groceries never land in your euro account. - Equity, revenue and expense accounts are not pairings. An opening balance says nothing about where next month’s money goes, and tax withheld from a payslip pairs the tax with the salary rather than with where the money sits. A line with no other pairing falls through to the steps below.
- A credit card is followed to the account that pays it. Groceries paid
on
- otherwise the scenario’s own default, a
; cash: <account>line in the file’s header; - otherwise the cash account with the largest balance;
- otherwise the first account you have declared
type: C, and failing thatassets:cash.
Steps 2 to 4 prefer a cash account that holds the line’s commodity, so a EUR
line with no history goes to your euro account even if your dollar account is
larger. A ; cash: header naming an account that only ever held another
commodity is passed over for that line. Only when no cash account holds the
commodity does the order run without that preference.
A cash account is one whose type is Cash: declared type: C, or inferred the
way hledger infers it. Ledgeline never guesses from account names.
The default only applies to the money a rule leaves unbalanced. A rule that already states its own cash leg balances, and Ledgeline adds nothing:
| the rule | what is posted | net cash |
|---|---|---|
(expenses:rent) $4200 | rent, and −4200 to the default cash account | −4200 |
…beside (assets:checking) $-4200 | as written; it balances | −4200 |
(expenses:rent) $4200 beside (assets:cash) $-2000 | as written, and the remaining −2200 to the default | −4200 |
When you save, Ledgeline writes the default it used into the file, so the
file becomes plain balanced hledger and the numbers do not move. It never
writes to budget.journal.
In the list
Each rule’s card ends with its counter-account, after a →. A counter-account
written in the file is shown plainly. Otherwise the card shows the default
Ledgeline will use, greyed, with “(default)” after it. To set one, open the
rule’s editor and type an account in Counter-account. Clear the box to go
back to the default. A one-off works the same way. Its counter-account takes
whatever its postings leave unbalanced.
A rule whose postings balance on their own has no → line, and its
Counter-account box says “None needed”. Nothing is left over, so nothing posts
to a counter-account.
The scenario’s own default, the ; cash: header, is the Default cash
account box above the list. It starts greyed with the account Ledgeline
falls back to (steps 3 and 4 above).

A rule has exactly one counter-account. It is the rule’s one posting with no amount, which is how hledger reads it. To balance one posting against a different account, give it a rule of its own: + Add a new rule, or Duplicate this one and keep only that posting in the copy.
Accruals and partial payments
To keep a bill off your cash until you pay it, give it a liability as its counter-account:
~ 2027-06-15 legal fees, net 60
expenses:legal $45000
liabilities:payable
~ 2027-08-15 legal fees paid
liabilities:payable $45000
assets:checking
June moves net worth by −45,000 and cash by nothing. August moves cash by −45,000 and net worth by nothing.
A partial payment states the cash part and lets the counter-account take the rest:
~ 2027-06-15 rent, half on account
expenses:rent $4200
assets:checking $-2000
liabilities:payable
An equity raise moves cash and net worth and leaves net income alone, because neither account is revenue or expense:
~ 2027-03-01 Series A
assets:checking $2000000
equity:preferred
What counts
- Runway counts cash only: the balance of your cash-typed accounts. Stock you could sell is not runway.
- Runway reads total cash, never one account. Every cash account is summed, commodity by commodity, and each period’s total is valued into your main commodity at that period’s end. The runway is the first period where that total closes below zero. One account going overdrawn while the rest cover it is not running out of cash, and neither is spending more euros than your euro account holds while your dollars cover it. A commodity no price converts cannot be netted against anything, so it is judged on its own: if it closes below zero, that is a runway.
- Net income is the income statement’s: revenue and expense postings only.
- Appreciation on an asset row is booked to a gains account
(
equity:unrealized gainsby default), so it moves net worth and not net income or cash. See Asset rows.
Where the projection starts
The projection starts at the first period that is not yet complete: the start of the period containing the earlier of today and the day after your latest real transaction. Everything before it is actuals; it and everything after are projected, and real transactions dated inside it are left out. If today is 23 October and you have entered October’s transactions, October is still projected, because it is not over. If your latest transaction is 15 October and today is in November, October is projected too. If your latest transaction is 31 October, October is complete.
The same view in hledger, for a monthly projection starting 2026-10-01 with the default two months of actuals before it:
$ hledger -f main.journal -f projection-x.journal bs --forecast=2026-10-01..2027-10-01 \
-M -b 2026-08-01 -e 2027-10-01 expr:"NOT (date:2026-10-01.. AND NOT tag:generated)"
--forecast= starts on the cutoff and -b on the first actual period. Both
end dates are exclusive, so they are the day after the last projected day. The
expr: leaves out real transactions dated on or after the cutoff and keeps the
forecast. Use -Q, -Y or -W instead of -M for other intervals, and is
or cf instead of bs for the other statements. If you hold other
commodities, add --value=end,$ to value each column at its own end, as the
tab does.
With Compare vs actuals ticked, the as-projected columns are the same
command with the first actual day in place of the cutoff and the cutoff as the
end: --forecast=2026-08-01..2026-10-01 -b 2026-08-01 -e 2026-10-01 expr:"NOT (date:2026-08-01.. AND NOT tag:generated)". Comparing with
actuals gives it in full, with the one
caveat about prices it adds.
Per account and per period, hledger then shows the same figures as the tab.
Two things differ, both because of growth: hledger shows growth: amounts at
their base, and it values a holding whose price a growth rate raises at its
last real price. hledger’s cf lists the change in each cash account. The
tab’s cash flow statement starts from net income instead, but its cash
balances agree with hledger’s account by account.
The Accounts and Journal tabs use the same window. Accounts is balance
with the tab’s tree and depth, and no --value, because the tab shows amounts
as written. Its equity, revenue and expense rows, and every row’s last column,
are:
$ hledger -f main.journal -f projection-x.journal balance --forecast=2026-10-01..2027-10-01 \
-M -b 2026-08-01 -e 2027-10-01 expr:"NOT (date:2026-10-01.. AND NOT tag:generated)" \
--tree --no-elide --depth 2 -T
Its asset and liability rows are the same command with -H instead of -T:
each period’s closing balance. The last column, their Δ, is the -T Total
above. For Show empty accounts, add
-E --declared. --tree --no-elide lists every parent as its own row, as the
tab does, and --depth is the depth slider. Journal is:
$ hledger -f main.journal -f projection-x.journal print --forecast=2026-10-01..2027-10-01 tag:generated
It lists the same transactions in the same order, with the same dates,
descriptions, postings and amounts. Each one’s generated-transaction tag is
the rule the tab’s badge shows. Three things differ:
- Growth. hledger prints a grown rule at its base amount. It prints an
asset row’s rule as a transaction of
$0postings and never books the appreciation, which the tab shows as separate growth transactions to the gains account. Accounts shows the same differences. A grown price is not a posting, so neither tab shows it. - Old
(account)lines. An older line written as(expenses:food)stays virtual in hledger, which prints the parentheses. The tab books it as an ordinary posting. The amounts are the same. - Show empty accounts. hledger’s
-Eadds an account only if it has a posting inside the report, or before it with-H. The tab also lists every account your journal has ever posted to. If every account is declared, the two lists are the same. Otherwise the tab can list a few more zero rows: an undeclared account last used before the first column (Change only), or one used only in real transactions after the projection starts.