Asset rows: a balance, a rate, and contributions
Every other posting in a scenario is a per-period flow. An asset row states a stock: what you hold, the rate it compounds at, and what you add to it. One line is enough to model a brokerage account, a 401k or a house.
~ monthly investing
assets:brokerage $0 ; growth: 7%/yr
assets:savings $2000 ; growth: 4%/yr
assets:house $0 ; growth: 3%/yr, opening: 640000
assets:checking
A posting is an asset row when it carries a growth: tag AND its account is
typed as an asset. Both conditions must hold. growth: alone is not enough.
expenses:rent $4200 ; growth: 2%/yr is a growing flow, and it is in the
file format example. An asset account alone is not enough either: a posting with no
growth: is a flow line whatever its account, so a transfer into
assets:savings, or a one-off purchase booked to assets:cash, means what it
always did. The type is the one the journal declares
(account assets:brokerage ; type: A), falling back to hledger’s own name
inference. Ledgeline does not guess from the word “assets”.
Four rules
1. The row never contributes its opening balance. Your net worth already contains it. The projection’s opening figure is a real net-worth report over your real journal, and your brokerage account is in there. An asset row adds its appreciation and its contributions and nothing else. A row with a zero rate and no contribution changes no number on the page. That is the correct behaviour, and the engine’s regression test asserts it.
2. Appreciation moves net worth and only net worth. On an account held in
your own currency (a house, a private stake) each growth step is a posting from
the asset to the row’s gains account, equity:unrealized gains unless you name
another with gains:. Equity is neither income nor cash, so paper gains do not
reach net income or the runway. Point gains: at an income account if you
want them counted as income. On an account holding priced commodities (a
brokerage of stocks or funds), the rate grows those commodities’ prices
instead, starting from each one’s latest price, and the holding is revalued.
Those prices exist only in memory. Nothing is written to your journal or the
scenario file, so hledger values the holding at its last real price. If two
rows grow the same commodity at different rates, Ledgeline uses the first row’s
rate and warns you, because a price belongs to the commodity, not the account.
There is one exception to “never cash”. A growing row on an account that is
cash (a savings account declared type: C) is interest in that account, and the
runway counts it. As a result, a growing asset cannot hide a burn. The cash
chart and the runway date are the same as they would be with the asset row
deleted.
3. A contribution is net-worth neutral, and it pays for itself. $2,000 a
month into a brokerage is a posting like any other, balanced against the row’s
counter-account: cash −2,000, asset +2,000, net worth unchanged.
There is no separate “funding” setting. (If the destination is itself a cash
account, such as a savings account you have declared type: C, then neither
series moves. That is also correct, because the money did not leave your cash.)
4. Growth applies to the balance at the START of each growth period, before
that period’s contributions. The engine needs some convention, and this is the
conservative one. A contribution dated on a step’s anniversary does not earn
that step. It earns the next one. When the contribution and the growth share a
period, such as a yearly contribution on a yearly rate, this matches the
textbook balance × (1 + rate) + contribution.
This rule is the most likely reason your spreadsheet disagrees with Ledgeline: a contribution earns nothing until the next growth boundary.
Growth is stepwise, so a balance changes only on the anniversaries of the row’s anchor. A contribution made at any other moment sits in the balance earning nothing until the next anniversary. With a yearly rate and monthly contributions, January’s deposit and November’s deposit both earn nothing that year, and both take the full increase on the same January. A deposit can wait up to a full year before it earns anything.
Nothing here is time-weighted, by design. The error is conservative: it understates growth on contributions rather than inflating a retirement or runway figure. It is also one rule rather than two, and it keeps a single balance per row, so the balance the list shows is the figure the engine used.
For finer granularity, quote the rate per month rather than per year (
0.5%/morather than6%/yr). With twelve boundaries a year, a contribution waits at most a month. The two are not the same rate: stepwise0.5%/mocompounds to about 6.17% a year.
Anniversaries are counted the same way a flow line’s are: from the row’s from
date when it has one, from the start of the projection otherwise, and clamped
into short months (a row anchored on the 31st steps on Feb 28). The balance is
rounded back to the row’s own display precision at every step, for the same
reason a flow’s amount is.
One row per account, and the first one in the file wins. Each asset row seeds its own running balance from the journal, so two rows naming the same account would each start from the whole balance and each compound it. The growth would be counted twice, and Ledgeline prevents that. It projects the first such row in the file and leaves every later one out entirely, both its growth and its contribution. A warning above the chart names the account and says so.
The same applies when one row’s account sits under another’s, such as
assets:broker and assets:broker:roth, because a row’s balance is the account
and everything under it. The two rows share the roth’s money, so the second one
is left out in the same way. Give each row an account that holds money no other
row’s does.
This is why an asset rule’s menu has no Add a step change…. A rate that changes over time is a single rate covering the span, not one row split into two dated segments naming one account.
In the list and the editor
An asset rule’s card shows each asset posting with its contribution, its growth
rate, and the balance it compounds: bal $468,000.00 (journal) for the
journal’s own figure, or bal $700,000.00 (override), in the warning colour,
for one you typed. A gains account other than the default is shown as
gains → ….

In the editor, each posting has an asset switch. Turn it on and the posting gets two more fields:
| Field | What it is |
|---|---|
| Balance | empty, with the journal’s own figure beside it, until you type over it |
| gains account | where the growth is booked; equity:unrealized gains, greyed, until you name another |
The posting’s amount is the contribution: what you add each period. The growth rate and its unit, and the rule’s Repeats, From and To, are the same fields a flow has. + Add → Asset starts a new asset rule.
A posting is an asset row only when you mark it as one. The switch, written
to the file as the growth: tag on an asset account, decides it. A recurring
transfer to assets:savings with the switch off stays a flow. An asset row
compounds, and a flow moves a fixed amount each period.
A contribution of 0 is the normal case, not an unfinished row. It means
the balance only compounds, as with a house or a brokerage account you are not
paying into. The file writes it as a $0 posting.
Growth here is unrealised. It moves net worth and nothing else: not cash, not net income, not your runway date. On the Balance sheet tab it is visible as equity: the gains account’s line for an unpriced asset, and the valuation adjustment for priced holdings, whose grown prices revalue them.
The opening tag restates the balance
By default the row compounds the balance your journal shows for that account
and everything under it. assets:broker means the whole subtree, valued
into the same commodity the net-worth report uses. When you type over it, the
tag records your figure:
assets:house $0 ; growth: 3%/yr, opening: 640000
Only the difference between your figure and the journal’s reaches the chart, applied once in the first period, and the projection warns about it by name. Ledgeline never restates your balance sheet without telling you. Cash is never adjusted. An override says what an asset is worth, not what is in the bank, so a house valuation can never move your runway.
The app also marks an overridden balance. In the editor the Balance box turns the warning colour, and ✕ use the journal’s beside it names the ledger’s own figure and puts it back (as does clearing the box). On the card the balance reads “(override)”, in the warning colour. This keeps a valuation you typed six months ago distinct from what your ledger says today.
The journal’s figure shown is the one the projection used, so it appears once a projection has run. Until then the card says “bal from the journal” and the editor’s Balance box shows a dash. You also see these for a row the engine declined to model. Ledgeline never shows a zero in place of an unknown figure.
What hledger makes of an asset row
hledger reads everything except the growth. Verified against hledger 1.52:
$ hledger -f projection-investing.journal balance --budget -M --layout=bare
|| Commodity Jan Feb
================++===============================
assets:savings || $ 0 [2000] 0 [2000]
expenses:rent || $ 0 [4200] 0 [4200]
assets:brokerage is absent, and that is correct. Its contribution is
$0, and a growth rate is not a goal, so hledger has no way to express it.
assets:savings shows its contribution and only its contribution.
print --forecast round-trips the $0 posting with its tags intact, and
tag:growth matches all of them.
The $0 is deliberate. A posting needs an amount, the contribution is the
amount, and zero is what “no contribution” is worth.
What is not modelled, by design
- Liabilities. An asset row’s shape would extend to them, but a mortgage needs principal-versus-interest, which the journal cannot supply. A row whose account is not an asset is warned about rather than modelled.
- Per-holding or per-lot growth. A row is one account, not a portfolio, and one rate covers the subtree.
- Tax on gains, and rebalancing.
- Inferring a rate from price history, which would make a projection
depend on whether
Pdirectives happen to exist. - Liability amortisation. A mortgage payment cannot be split into principal and interest from anything the journal says, and guessing the split would invent a net-worth curve.
- Retirement modelling, per-account balance projection, and any distribution over outcomes (Monte Carlo and similar).
The engine tells you when it could not do something: a period it cannot enumerate, a growth rate that overflows, or a commodity no price converts into the one your opening balances are valued in. Every one of those appears in the warnings above the charts, so the projection never drops a line without saying so.