title: rledger report description: Generate financial reports
rledger report
Generate standard financial reports from your ledger.
Usage
bash
rledger report [OPTIONS] [FILE] [COMMAND]A report subcommand (e.g. balances, journal) is required — running rledger report FILE with no subcommand errors. FILE precedes the subcommand.
Subcommands
| Command | Alias | Description |
|---|---|---|
balances | All account balances | |
balsheet | bal | Balance sheet (Assets, Liabilities, Equity) |
income | is | Income statement (Income, Expenses) |
journal | register | Transaction register |
holdings | Investment holdings with cost basis | |
networth | Net worth over time | |
accounts | List all accounts | |
commodities | List all currencies/commodities | |
prices | List price entries | |
stats | Ledger statistics |
Global Options
| Option | Description |
|---|---|
-P, --profile <PROFILE> | Use a profile from config |
-f, --format <FORMAT> | Output: text, csv, json |
-v, --verbose | Show verbose output |
--no-pager | Disable pager for output |
--no-cache | Disable the on-disk parse cache (always re-parse) |
Examples
Account Balances
bash
rledger report ledger.beancount balancesFilter by account:
bash
rledger report ledger.beancount balances -a Expenses
rledger report ledger.beancount balances -a Assets:BankBalance Sheet
bash
rledger report ledger.beancount balsheet
# or
rledger report ledger.beancount balOutput:
Assets
Bank:Checking 5,234.00 USD
Bank:Savings 12,000.00 USD
Investments 8,500.00 USD
───────────────────────────────────────
Total Assets 25,734.00 USD
Liabilities
CreditCard -450.00 USD
───────────────────────────────────────
Total Liabilities -450.00 USD
Net Worth 25,284.00 USDIncome Statement
bash
rledger report ledger.beancount income
# or
rledger report ledger.beancount isTransaction Journal
bash
# All transactions
rledger report ledger.beancount journal
# Filter by account
rledger report ledger.beancount journal -a Expenses:Food
# Limit entries
rledger report ledger.beancount journal -l 20Holdings
bash
rledger report ledger.beancount holdingsOutput:
Account Units Cost Basis Market Value Gain/Loss
─────────────────────────────────────────────────────────────────────────────
Assets:Brokerage:AAPL 10.00 1,500.00 USD 1,750.00 USD +250.00 USD
Assets:Brokerage:GOOGL 5.00 2,000.00 USD 2,100.00 USD +100.00 USDNet Worth Over Time
bash
rledger report ledger.beancount networthStatistics
bash
rledger report ledger.beancount statsOutput:
Ledger Statistics
─────────────────
Transactions: 1,234
Accounts: 45
Commodities: 3
Directives: 1,456
Date range: 2020-01-01 to 2024-03-15Output Formats
bash
# CSV for spreadsheets
rledger report -f csv ledger.beancount balances > balances.csv
# JSON for scripts
rledger report -f json ledger.beancount balances | jq '.'See Also
- query - Custom queries with BQL
- Common Queries - More report examples