The holdings: and valuation: tags
These two account tags change how the Holdings tab reads your accounts. holdings: decides which tab an account is on. valuation: decides what an account means once it is there.
The holdings tag
Tag an account declaration to override the default rule:
account assets:property:home ; type: A, holdings: other
account assets:crypto:cold ; type: A, holdings: stocks
account assets:receivable:petty ; type: A, holdings: none
| Value | Meaning |
|---|---|
other | Other tab, whatever it holds. Removed from Stocks. |
stocks | Stocks tab only. Never Other, even if it holds nothing but currency. |
none | Neither tab. Still on the balance sheet. The tag hides clutter, not money. |
The tag inherits to sub-accounts, like type: and bsgroup:, so
tagging assets:property covers assets:property:home:land without restating it.
Unlike bsgroup:, this is a closed vocabulary: those three words and nothing
else. A misspelling is refused with a message naming the alternatives, rather
than ignored. See below.
Two spaces before the
;. A comment on anaccountdirective needs at least two spaces in front of it, or hledger reads the whole line as the account NAME and none of these tags exist. Nothing warns you. See the balance sheet page.
When you need holdings: other
You need it mostly for an asset booked as its own commodity, which is the only way to make something revalue in a dollar journal:
account assets:property:home ; type: A, holdings: other, bsgroup: Property
commodity 1.0 HOME
P 2024-07-01 HOME $420,000.00
P 2026-06-30 HOME $468,000.00
2024-07-01 * Opening property position
assets:property:home 1 HOME @ $420,000.00
liabilities:mortgage $-336,000.00
equity:opening
HOME is not a currency, so without the tag the house would appear on Stocks
between your index funds. The bsgroup: tag beside it does a separate job. It
sets the same account’s line on the balance sheet, which otherwise groups it
under Investments for the same reason: it holds a non-base commodity.
One asset, several accounts
A common way to carry an asset’s cost/market split is in the account tree rather than in commodity costs:
account assets:home ; type: A, name: Family home
account assets:home:cost ; type: A
account assets:home:unrealized ; type: A, valuation: unrealized
Those three accounts are one house, and the Other tab reports them as one row. Two rules decide where a row begins:
- An explicit
holdings:tag wins. The nearest tagged ancestor owns the row. Tag the parent account when the shape below it is unusual. - Otherwise a purely-container parent is rolled up: one with no postings of
its own, whose posting-bearing descendants that could themselves be rows on
this tab are all direct children, with at least two of them.
A descendant that can never be an Other-tab row (a cash account, a
holdings: none/holdings: stockssubtree, anything rule 1 already claimed) does not count, so a lone qualifying child beside an excluded sibling keeps its own name and value.
Rule 2 is deliberately shallow. It applies once and never repeats, which keeps two funds apart:
assets:partnerships <- its child is not a leaf, so NOT a row
:angel-continuity <- children are leaves => ONE row
:contributed
:unrealized
:vintage-2021 <- its own row
:contributed
:unrealized
Two consequences follow:
- The row’s name comes from the root. Put
name:onassets:home, not onassets:home:cost. - A lone child is not rolled up.
assets:partnerships:second-fund:contributedwith no sibling stays its own row, because merging it would only trade a specific name for a vaguer one. If you would rather it read as…:second-fund, tag that accountholdings: otherand rule 1 takes over.
The valuation: tag
Within a holding, valuation: says what an account CONTRIBUTES:
| Value | Meaning |
|---|---|
cost | Money actually put in. The default, so you rarely write it. |
unrealized | A mark-to-market or NAV adjustment. |
depreciation | Accumulated depreciation. Same behaviour as unrealized. |
adjustment | Anything else that moves value without moving basis. |
The last three are one role under three names. They behave identically: each is counted in Value and excluded from Cost. They exist separately because a car’s accumulated depreciation is not “unrealized” and a house’s mark is not “depreciation”. With a single word, one of them would read as a mistake in the journal that declares it.
It inherits down the tree like every other tag here, and it is a closed vocabulary: an unrecognised value is refused by name rather than ignored.
This is a separate tag from holdings: on purpose. The rest of the app
makes the same split twice. type: decides which statement section an account
is in and bsgroup: decides its line within that section. issection: decides
the box and isgroup: the line inside it. Membership and role never share a
tag. holdings: says which tab; valuation: says what an account
means once it is on one.
Without the tag, a mark is just another dollar balance. It lands in Cost as
well as in Value, so the holding reports a change of exactly $0.00. That is
correct for a journal that never declared the account to be an adjustment, and
it is the situation the tag fixes:
Value Cost Change Change %
untagged 620,000.00 620,000.00 $0.00 —
tagged 620,000.00 500,000.00 120,000.00 +24.0%
A holding whose accounts are all marks has no cost side at all. Its Cost and Change read as em-dashes, meaning unknown, rather than as a zero basis and an infinite gain. The holding drops out of those two totals and still counts in Value.
Two things that are easy to get wrong
Book the purchase price, not the down payment
If a holding is leveraged, put the whole purchase price in the cost account and leave the loan as an ordinary liability:
2019-06-01 * buy the house
assets:home:cost $700,000.00 ; the PRICE
liabilities:mortgage $-550,000.00
assets:bank:checking $-150,000.00
Do not book only the cash you put in, even though that is what left your pocket. If you do, everything the lender funded can only show up in the adjustment account, so Change stops meaning appreciation and starts meaning “appreciation plus the mortgage”. On the house above, marked to $750,000:
booked at the price: cost $700,000 change +$50,000 +7.1% <- appreciation
booked at the down payment: cost $150,000 change +$600,000 +400% <- leverage
The balance sheet is the same either way, because the mortgage is a liability in both. This tab is the only place the error shows.
The Other tab reports gross value, not your equity in it. A house worth $750,000 with $530,000 still owed reads $750,000, and the debt against it appears under Liabilities as usual.
Depreciating assets need a contra-asset account
Posting depreciation straight at the asset moves cost and value together, so the
loss reads as $0.00. Split it into a contra-asset account, which is standard
bookkeeping:
account assets:vehicles:car ; type: A, name: Honda CR-V
account assets:vehicles:car:cost ; type: A
account assets:vehicles:car:depreciation ; type: A, valuation: depreciation
2026-06-30 * annual depreciation
expenses:depreciation $3,500.00
assets:vehicles:car:depreciation
The two roll into one row (they are a container parent’s only children), so you
get Honda CR-V — value $20,500.00, cost $28,000.00, change -$7,500.00, -26.8%
instead of a $20,500.00 asset that shows no loss.
Three ways a non-stock asset changes value
All three work, and the Other tab shows each of them:
- The price moves. Book the asset as its own commodity, as above, and write
a
Pdirective whenever you revalue it. Cost stays at what you paid; value follows the directives. - A mark account moves. Keep cost and market in sibling accounts and tag the
adjustment
valuation: unrealized, as above. This is the approach that needs no commodity, and the one most funds and property holdings use. - The balance moves. Book it in your own currency and write entries that adjust it, such as depreciation, improvements, or a partner’s capital contribution:
2026-06-30 * annual vehicle depreciation
expenses:depreciation $3,500.00
assets:vehicles:car
A dollar-booked asset’s cost and value are the same number by construction, so
its all-time change is exactly $0.00. This is correct, not a missing
feature. Nothing has revalued the asset, and its balance went down. Switch
the period to any bounded window (year to date, 12 months, …) and the
depreciation shows up as the loss it is.
A misspelt value is an error
account 'assets:property:home' declares `holdings: hous`, which is not one of
stocks, other, none
The Holdings tab shows that sentence and a Retry button; fix the journal and
retry. This follows issection: rather than type:. A tag that decides
membership must report an error. Otherwise the account would return to the tab
you were trying to move it off, with nothing on screen to say why. type: is
lenient because every account has a type whether or not anyone declared it.
holdings: exists only to change something, so Ledgeline tells you when a
holdings: value changes nothing.