The balance sheet, and the bsgroup: / bsterm: tags
The balance sheet has three boxes: Assets, Liabilities and Equity. Their lines are groups rather than raw accounts, valued into a single currency so every line is one number. Under the boxes is a spreadsheet tie-out that checks the statement balances. There is no separate net-worth line. Net worth is assets minus liabilities, which is Total Equity, so it would print the same number twice. The Net Worth tab shows it over time.

This page covers how lines are chosen, how to control them with bsgroup:, how
bsterm: splits each box into current and non-current, what the equity lines
mean, and why the balance check has a tolerance.
Design notes and the reasoning behind each decision are in
plans/12-balance-sheet-redesign.md.
Why groups instead of accounts
A chart of accounts is organised for bookkeeping, and a balance sheet is organised for reading. You usually want to know how much you hold in cash and in investments, not how much is in bank account A versus bank account B or how many shares of each ticker you own. So each line is a group, collapsed by default. Expand one to see the accounts behind it, at full depth, laid out as on the P&L. Two banks with a checking and a savings account each read as two bank headings with Checking and Savings under each, and a heading prints no amount of its own. Hover a label for its full account path. An account that is zero in every shown column, such as one you’ve closed, isn’t listed.
There is no depth control on this tab. A group’s roots are shown whatever their depth, and the drill-down shows everything below them, so a depth setting would change nothing.
One date, or one column per period
The sheet opens on a single date: As of, with the Interval set to Single date. That is one Amount column, the balances at the end of that day.
Set the Interval to Monthly, Quarterly or Yearly and the sheet gets one column per period. A From date appears before As of, and it defaults to the first of the month eleven months back, so Monthly shows twelve months. Each column is the sheet at the end of its period. The last column ends at the As of date, so with As of 2026-07-08 and Quarterly, the columns end 2025-09-30, 2025-12-31, 2026-03-31, 2026-06-30 and 2026-07-08. Every column is exactly the single-date sheet as of that day, valued with the prices in effect on that day. Balances at two dates don’t sum to anything, so nothing is added up across columns and there is no Total column.

The multi-period sheet keeps everything else the single-date one has. Groups open and close across all the columns. j/k and Enter work the same. Each column has its own current and non-current subtotals. The ✓/✗ verdict covers every column, and if one doesn’t balance, the warning names the first column that fails. A long run of months scrolls sideways.
The URL records the mode. A single date is ?tab=bs&asof=2026-07-08, the same
as before multi-period sheets existed, so old links still open a single date.
Multi-period adds from and interval:
?tab=bs&asof=2026-07-08&from=2025-08-01&interval=quarterly. Switching to
another tab and back returns to Single date, the way the P&L returns to Total.
The hledger equivalent, for a From on a period boundary, is
hledger bs -V -Q -b 2025-07-01 -e 2026-07-09. -e is exclusive, so it is As
of plus one day. hledger heads its last column with the period’s end
(2026-09-30), but the figures are as of 2026-07-08 and agree with ours. With a
From in the middle of a period, hledger starts its periods at -b, while
Ledgeline keeps calendar periods and clamps only the first one.
The bsgroup: tag
Tag any account declaration with bsgroup: and it becomes a line on the balance
sheet:
account assets:property:house ; type: A, bsgroup: Property
account assets:broker:ira ; type: A, bsgroup: Long-term investments
account liabilities:mortgage ; type: L, bsgroup: Long-term debt
account liabilities:card:visa ; type: L, bsgroup: Short-term debt
account assets:invoices ; type: A, bsgroup: Accounts receivable
The tag inherits to sub-accounts, exactly like type: does, so tagging
assets:property puts every account beneath it on the Property line unless one of
them overrides with its own bsgroup:.
Group names are free text, so use whatever line items your books call for
(Inventory, Deferred revenue, Paid-in capital, Intangible assets,
Accumulated depreciation, …). Accounts that share a name share a line.
Three gotchas inherited from hledger syntax
A comment on an account directive needs TWO spaces before the ;. An
account name may contain single spaces, so a single space cannot end one. With
only one space, hledger reads the whole rest of the line as the account’s NAME
and there is no comment left to carry your tags:
account assets:art ; type: A, bsgroup: Art ; ✗ declares an account literally
; named "assets:art ; type: A, bsgroup: Art"
account assets:art ; type: A, bsgroup: Art ; ✓ two spaces
Nothing reports this mistake. The journal parses, the declaration is about an
account no posting will ever mention, and the real assets:art has no type and
no group. If a tag you wrote seems to have no effect, count the spaces first.
Only account is affected. commodity and payee values cannot contain
spaces, so one space is enough there.
A tag value ends at the next comma. This is how hledger parses all tags, and it matters here because group names are often several words:
account assets:art ; type: A, bsgroup: Art, antiques ; ✗ group is "Art"
account assets:art ; type: A, bsgroup: Art and antiques ; ✓ group is "Art and antiques"
The tag name is the last word before the colon, so don’t put a space inside
it. ; balance sheet group: Cash declares a tag called group, not bsgroup.
Revenue and expense accounts never appear here, so a bsgroup: or bsterm:
on one is ignored, and
Problems warns about it.
Current vs non-current (bsterm:)
Tag an account bsterm: noncurrent and the Assets and Liabilities boxes split
into the standard subheadings, each with its own subtotal:
account assets:property:home ; type: A, bsterm: noncurrent
account assets:vehicles:car ; type: A, bsterm: noncurrent
account liabilities:mortgage ; type: L, bsterm: noncurrent
ASSETS
CURRENT
Cash and cash equivalents 48,435.99
Total current assets 48,435.99
NON-CURRENT
Investments 10,552.63
Property 468,000.00
Vehicles 20,500.00
Total non-current assets 499,052.63
Total Assets 547,488.62
A subheading opens a band and its subtotal closes it, both a step to the left of the group lines between them. The subheading carries no figure of its own. The band’s total is the subtotal, and printing it at both ends would make you look for a difference between them. The subtotal has a thin rule, and the section total below it has a double rule and a fill, because one is a part and the other is the whole.
The split only appears when you ask for it. A journal that declares no
bsterm: anywhere gets the same balance sheet as before bsterm: existed, with
no subheadings and no subtotals. The split appears as soon as one account has
the tag. The income statement’s GAAP ladder follows the same rule.
Defaults, once it is on. You tag the long-term accounts and leave the rest:
| Group | Default |
|---|---|
Investments (the built-in) | non-current |
| everything else untagged | current |
So the brokerage above needed no tag. Only three accounts in that example carry one.
bsterm: inherits to sub-accounts like every other tag here. It has a fixed
list of values, and a misspelt value is refused by name, because a term that
fell back to a default without a warning would put a balance in the wrong
subtotal while the statement still looked fine. The canonical spellings are
current and noncurrent, which are the two the error message names. These
synonyms are also accepted, matched case-insensitively:
| Term | Accepted spellings |
|---|---|
| current | current, short, shortterm, short-term |
| non-current | noncurrent, non-current, long, longterm, long-term |
Equity is never split. The split asks when an asset becomes cash or when a liability comes due, and neither question applies to capital.
One other screen reads this tag. The Journal tab’s insights box has a
Balances view showing cash and short-term liabilities as of today, and it
drops anything resolving to non-current. So bsterm: noncurrent on a mortgage
keeps it out of both that view’s short-term figures and this statement’s current
half.
That view differs from this statement in one way, and it is the only place in
Ledgeline where an account NAME affects a total. When no bsterm: is declared
anywhere in an account’s ancestry, Balances guesses “long-term” from a short
list of words: mortgage, heloc, student, pension, and the tag’s own
vocabulary written into the name (long-term, noncurrent). The balance sheet
does not, so an untagged liabilities:mortgage is out of Balances and still
under Current here. Tagging it settles both. The list is short on purpose,
the guess never overrides a tag in either direction, and the view names every
account it excluded that way instead of removing it without notice. See
plans/19-account-balances.md for the word
list, the evidence behind it, and the words that were rejected. That plan also
records the other case where the two screens can disagree: an account moved onto
or off the Cash line by an explicit bsgroup: rather than by its type:.
Why bsterm: is a separate tag
bsterm: is a third tag rather than a value of bsgroup: because each tag
answers a different question, and one tag cannot answer two:
| Tag | Question |
|---|---|
type: | Which box? |
bsterm: | Which half of the box? |
bsgroup: | Which line within that half? |
A group is keyed by (term, line), so a single bsgroup: whose accounts straddle
the halves prints as two lines under two subheadings. This is intended. A
receivable due this year and one due in five years are two lines on a real
statement too.
How a line is chosen when there is no tag
Untagged accounts still get sensible lines. Resolution stops at the first match:
| # | Rule | Line | source |
|---|---|---|---|
| 1 | bsgroup: on the account itself | the tag’s value | tag |
| 2 | bsgroup: on the nearest declared ancestor | the tag’s value | tag |
| 3 | Effective account type is C (cash) | Cash and cash equivalents | type |
| 4 | An asset holding a non-base commodity | Investments | commodity |
| 5 | Otherwise: the account’s second path segment | e.g. assets:bank:… → Bank | segment |
Step 5 makes an untagged journal readable without any configuration.
assets:bank:chase and assets:bank:ally both land on one Bank line
instead of appearing as separate bank accounts. A single-segment account falls
back to its root, so a bare equity posting still gets a line.
Three conventional abbreviations get longer labels at step 5: cc becomes
Credit cards, ar becomes Accounts receivable, and ap becomes Accounts
payable.
Why grouping never matches account names
Steps 3 and 4 use the declared type: and the commodities an account actually
holds. Step 5 uses the account’s position in the tree. None of them matches
English words, because a chart of accounts may be in any language and may use
roots like cogs:. When name-matching classification goes wrong, the report
reads zero instead of just looking odd.
The abbreviation table above is the one exception, and it only changes labels. It runs after membership is decided and can only rename a line, never move an account onto a different one.
Ordering
Known lines come first in balance-sheet order: Cash and cash equivalents, Accounts receivable, Investments, Credit cards, Accounts payable. Everything else follows alphabetically. The two computed equity lines always sort last.
Valuation
Lines are valued at market in your base currency by default, so a portfolio
reads as money rather than as a column of share counts. Prices come from the
journal’s P directives only, matching hledger bs -V. Ledgeline does not
infer prices from costs.
A commodity with no usable P directive on or before the report date is not
dropped. It stays on its line as a secondary figure and a warning banner above
the report names it. If your stocks show as share counts, add P directives.
?value=cost and ?value=none are available on the API for the cost basis and
for raw, unvalued commodities.
The equity box
Equity holds your declared equity accounts plus up to two computed lines. The
computed lines are what make assets = liabilities + equity hold:
- Retained earnings is all revenues minus all expenses through the report date, at cost. It is the same quantity the income statement calls net income.
- Valuation adjustment is the sheet on the display basis minus the same
accounts at cost. At
value=costit is zero and disappears. At market it is the unbooked revaluation.
The second line is deliberately not called “unrealized gains”. The same subtraction also absorbs currency revaluation and unpriced holdings, so it can carry several commodities at once, and a line reading “933,25 EUR of unrealized gains” would be wrong.
Declared equity includes hledger’s conversion subtype. An account declared
type: V (conventionally account equity:conversion ; type: V) is an equity
account here, exactly as hledger’s type:E query treats it, so the residue of a
currency-conversion pair sits on its own line inside the box. It never enters
retained earnings, which is revenues minus expenses only.
The balance check
Under the boxes, Liabilities + Equity is set against Total Assets. When they
agree, the statement is marked balanced. When they don’t, you get a warning with
the exact residual, because that means the journal itself has a problem.
It catches two things:
- a transaction whose postings don’t sum to zero at cost, and
- an account whose type can’t be resolved. Such an account lands in no section at all, which is how a report ends up reading zero.
Why there is a tolerance
The check has a tolerance because a priced posting can have more decimal places than the cash paying for it can be written to:
26.2690 VTI @ $289.7713 = $7,612.00227970 settled with $-7,612.00
hledger 1.52 accepts that entry without complaint, yet it leaves $0.00227970
behind. Over a real journal these fractions accumulate, and holding the sum to
exact zero would flag journals that no ledger could ever satisfy. There is no
way to write $0.0022797 into a bank account.
A residual is ignored when, for every commodity, it is strictly smaller than that commodity’s tolerance. The tolerance is the wider of two things:
tolerance = max(one unit of the precision you write that commodity at, 0.01)
The first term is why the tolerance is not simply a cent. Share quantities
aren’t denominated in cents, so a book that writes 5 GLD in whole shares gets
a whole share of tolerance, and not every currency has two decimal places.
The second term is a one-cent floor. It is a policy choice, not something
derived: the balance sheet ignores imbalances below one cent. Without it, the
tolerance depended on the most finely written posting anywhere in your journal,
which has nothing to do with how large a rounding residue can get. One line of
brokerage interest written as $0.0327 dropped the threshold to $0.0001, and
the residue above was flagged again. The floor can only loosen the rule. A
commodity written in whole units keeps its tolerance of one unit.
What the floor still catches, and what it gives up
An account whose type can’t be resolved contributes its whole balance to the
residual, so the check still catches a report reading zero unless the account is
worth less than a cent. It also catches any unbalanced transaction large enough
to matter. Being out by $10.00 is a thousand times the floor.
What the floor gives up is this report noticing a sub-cent transaction imbalance in a journal that writes finer than cents. Problems still catches it. Ledgeline checks every entry against hledger’s own much tighter rule, which is half a unit at the precision that entry was written at, and reports failures as unbalanced transactions. The balance sheet is a second check there, never the only one.
The floor is one hundredth of the commodity, not of a dollar. On a book denominated in something with a high unit value, 0.01 units is not a negligible sum. The exact residual is always reported, whatever the verdict, so you can check the number yourself.
Export
The XLSX export matches the screen: filled section headers, bold group rows, indented accounts (each label’s full account path as a cell note), ruled subtotals, then the tie-out and its verdict. Because every line is valued into one commodity, the amount column holds real numbers with a number format rather than text, so you can do arithmetic on them in the workbook. Anything unpriced goes in its own column rather than being dropped. Groups are written expanded whatever is collapsed on screen, so the export doesn’t depend on which groups you had open.
A multi-period sheet exports one figure column per period. The unpriced column
holds the last column’s leftovers (as of the As of date), the way the P&L’s
monthly export holds its Total’s. The file name includes the range and the
interval, for example balance-sheet-2025-08-01-to-2026-07-08-quarterly.xlsx.
API
GET /api/reports/balancesheet/grouped
?asOf=YYYY-MM-DD (default: today)
&depth=N (optional; omit for full depth, 0 for totals only)
&value=market|cost|none (default: market)
&valueIn=$ (default: the journal's base commodity)
GET /api/reports/balancesheet/columns
?from=YYYY-MM-DD (default: the 1st of the month 11 months before `to`)
&to=YYYY-MM-DD (default: today; the last column's end, the tab's As of)
&interval=total|monthly|quarterly|yearly (default: monthly; total = one column at `to`)
&depth, &value, &valueIn (as above, applied to every column)
Group rows are outline rows {kind, label, level, account, amount}, with
kind one of heading, account or other. amount is one figure on
/grouped and one per column on /columns. A heading’s figure is its
subtree’s total, and the app doesn’t print it. With depth, deeper accounts are
summed into their ancestor before the outline is built.
/columns returns one tree with a figure per column, the same shape the
projection run returns for its balance sheet. It
has columns: [{key, label, from, to}], and each column is the sheet as of
its to. A valueIn that prices nothing the sheet shows in any column is a
400, the same refusal the single-date endpoint gives. A backwards range is a
400, and so is one that splits into more than 1,200 columns.
The older GET /api/reports/balancesheet returns the flat, unvalued,
hledger bs-shaped report and is unchanged. The hledger parity golden test
uses it.