# The original plain-text ledger — and its modern successor

Ledger proved plain-text accounting works back in 2003; Beancount tightened the model with strict validation and grew a hosted ecosystem around it. Both keep your books in plain text you can read, diff, and version with Git — the question is which workflow fits you.

[Try Demo](https://beancount.io/ledger/open_ledger/example/overview) [Start Free→](https://beancount.io/sign-up/?next=%2Fledger%2F)

- Free & open source — both
- Plain text + Git
- Two decades of shared philosophy

[Compare features](https://beancount.io/compare/beancount-vs-ledger-cli#comparison)

![beancount.io ledger dashboard showing a net worth trend chart and account balances](https://beancount.io/img/ledger/overview-example.webp)

**Beancount mobile app home screen with net worth chart and recent transactions**

![Beancount mobile app home screen with net worth chart and recent transactions](https://beancount.io/img/mobile/home.webp)

- Open source — both projects

  100%

- Ledger first proved plain-text accounting works

  2003

- Beancount enforces balancing at parse time

  Strict

- beancount.io adds hosting, sync & AI

  Anywhere

## The full comparison

Feature by feature, no marketing spin.

| Area           | Beancount                                                                        | Ledger CLI                                                          |
| -------------- | -------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| Data model     | Strict and explicit — declared accounts, enforced balancing, lots and cost basis | Flexible journal — implicit accounts, report-time expressions       |
| Main interface | Fava web UI, CLI validation, editor tooling                                      | The \`ledger\` CLI; editor integrations and community frontends     |
| Performance    | Python-based; fast enough for most personal and small-business files             | Compiled C++ — the raw-speed benchmark, even on very large journals |
| Reporting      | Interactive Fava charts plus SQL-like BQL queries                                | Extremely capable report expressions, filters, and formatting       |
| Imports        | Python importer framework; hosted bank sync on beancount.io                      | External scripts, converters, and command pipelines                 |
| Investments    | Explicit lots, cost basis, and multi-currency                                    | Compact lot syntax with powerful valuation expressions              |
| Setup          | Requires Python; explicit account declarations                                   | Single compiled binary; minimal syntax to start                     |
| Mobile         | Native beancount.io apps; Fava's responsive web UI                               | Community frontends and exported reports                            |

## Same philosophy, different ecosystems

Ledger and Beancount are family: double-entry books in plain text, versioned with Git. The difference is fit — Beancount's strict model and web ecosystem, or Ledger's original fast, flexible command line.

Beancount

### The strict successor

Accounts are declared explicitly, every transaction must balance, and lots and cost basis are first-class. Errors surface at parse time — before they reach your reports.

Ledger CLI

### The flexible original

Ledger's compact journal creates accounts implicitly and can infer balancing amounts. Minimal ceremony to start, with discipline left to your conventions.

Beancount

### Fava, a full web UI

Explore your books in Fava's polished dashboards — interactive charts, statements, holdings, and a BQL query console — with bean-check validating every edit.

Ledger CLI

### The original command line

The \`ledger\` command shapes balance, register, and custom-formatted reports with expressive flags and value expressions — plus editor support led by Emacs ledger-mode.

Beancount

### Python, plugins & BQL

Write importers and plugins in Python, and query entries with SQL-like BQL. Automation lives in reviewable, testable code.

Ledger CLI

### Unix composability

Automated transactions, periodic entries, and report-time expressions pair naturally with shell scripts and pipelines — output is designed to be composed.

Beancount

### Rigorous lots & cost basis

Every currency or security carries units, cost, and price in the open — precise capital-gains and multi-currency tracking, auditable line by line.

Ledger CLI

### Compact lot syntax

Ledger tracks costs and prices with terse annotations and powerful valuation expressions — flexible, with each report shaped by its evaluation rules.

Beancount

### Your books, anywhere

Self-host Fava, or let beancount.io handle hosting with bank sync, native mobile apps, and an AI assistant that helps categorize and draft entries.

Ledger CLI

### Fully local, CLI first

A compiled C++ binary on your machine is the whole stack. Community interfaces exist, but nothing depends on a cloud account.

Beancount

### Free core, optional hosting

Beancount and Fava cost nothing, forever. Optional beancount.io plans add hosting, sync, mobile, and AI — the ledger stays portable either way.

Ledger CLI

### Free since 2003

Every Ledger feature — parsing, reports, expressions, checks — ships free, as it has for over two decades. No paid tier exists; none is needed.

## Where Ledger CLI still wins

Same family, honest comparison: Ledger remains the better fit when you want the fastest, most expressive terminal reporting in plain-text accounting.

### Blazing-fast CLI

Ledger's compiled C++ engine parses and reports on very large journals with low startup overhead — the raw-speed benchmark of the ecosystem.

### Legendary reporting flexibility

Value expressions, predicates, and custom formatting let experienced users answer sophisticated questions without leaving the command line.

### Two decades of heritage

The original plain-text accounting tool, with decades of stable habits, extensive editor support — led by Emacs ledger-mode — and a huge body of examples.

### Minimal required structure

No account declarations, no required directives — accounts appear with their first posting and balancing amounts can be inferred. Start with an empty file.

## Which should you choose?

### Choose Beancount if…

…you prioritize explicit validation, structured investment and commodity tracking, Python extensibility, importer workflows, and Fava's web interface — with optional hosted bank sync, mobile apps, and AI on beancount.io.

### Choose Ledger CLI if…

…you prioritize raw speed, compact syntax, and mature terminal reporting, and want accounting to stay inside a Unix workflow — especially if you already speak its expression language.

Ledger proved plain-text accounting works; Beancount tightened the model and grew an ecosystem around it. Both are free, both keep your data portable — try a small sample of your own transactions in each and keep the one that makes both normal work and failure recovery clearer.

## Both $0 — pick your ecosystem

Ledger and Beancount both cost nothing and keep your books in plain text. The choice is workflow, not wallet.

### Beancount

Free

open source, forever

- Beancount + Fava: $0, self-hosted
- Optional beancount.io plans for hosting, bank sync, mobile, and AI
- Your plain-text ledger keeps working no matter what you cancel

### Ledger CLI

Free

open source since 2003

- The complete C++ toolkit — parser, reports, checks: $0
- Legendary reporting flexibility built in, nothing extra to add
- One binary and a text file — no account, no server

## See your whole financial picture

Web dashboards, BQL queries, and native mobile apps — one plain-text ledger behind all of it.

**Net worth dashboard**

![Net worth dashboard](https://beancount.io/img/ledger/overview-example.webp)

**Income statement**

![Income statement](https://beancount.io/img/ledger/income-statement-apple.webp)

**Journal — every entry, in plain text**

![Journal — every entry, in plain text](https://beancount.io/img/ledger/journal-example.webp)

**BQL query console**

![BQL query console](https://beancount.io/img/ledger/query-bql-example.webp)

![Home — net worth at a glance](https://beancount.io/img/mobile/home.webp)

Home — net worth at a glance

![Accounts](https://beancount.io/img/mobile/accounts.webp)

Accounts

![Transactions](https://beancount.io/img/mobile/transactions.webp)

Transactions

![Reports — income, expenses, profit](https://beancount.io/img/mobile/reports.webp)

Reports — income, expenses, profit

![Add a transaction in seconds](https://beancount.io/img/mobile/add-transaction.webp)

Add a transaction in seconds

![Receipt capture](https://beancount.io/img/mobile/receipt-capture.webp)

Receipt capture

## Try both — or migrate carefully

Both ledgers are plain text, so your data is never trapped. Sample each with the same transactions; if you move, ledger2beancount plus balance checks do the heavy lifting.

1. ### Start with one real month

   Enter the same recent transactions in both tools: import a statement, reconcile it, and reproduce your most important reports in each.

2. ### Convert with ledger2beancount

   The community converter handles much of a Ledger journal. Add Beancount \`open\` directives, and review costs, prices, virtual postings, and automated transactions manually.

3. ### Verify before you switch

   Compare balances by account, commodity, and date between the two systems, add statement-date balance assertions, and run bean-check. Keep the source journal and conversion script under version control.

## Ready to switch?

### [Convert your Ledger journal to Beancount](https://beancount.io/tools/ledger-to-beancount)

Paste your journal and get valid Beancount back in your browser, with every line that needs a human decision listed by number. Nothing is uploaded.

### [Beancount's technical edge: performance and Python API](https://beancount.io/blog/2025/07/22/beancounts-technical-edge-a-deep-dive-on-performance-python-api-and-data-integrity-vs-ledger-hledger-and-gnucash)

Engineering benchmarks and architecture notes across Ledger, hledger, and GnuCash — not a product switcher page.

## Frequently Asked Questions

**What is the main difference between Ledger and Beancount?**

Ledger emphasizes a compact, flexible journal and powerful command-line reports. Beancount uses a more formal directive model with explicit account and commodity lifecycles, stronger validation primitives, and a Python ecosystem designed around parsing and extending the ledger.

**Can I convert a Ledger journal to Beancount?**

Yes. The ledger2beancount project can convert much of a Ledger journal, but complex automated transactions, expressions, virtual postings, lot syntax, and custom conventions need manual review. Reconcile converted balances and investments before treating the result as authoritative.

**Which is faster, Ledger or Beancount?**

Ledger's compiled C++ engine is generally the stronger choice for raw command-line speed on very large journals. Beancount is fast enough for many personal and small-business files, and its tradeoff is a richer validation and Python integration model rather than maximum report throughput.

**Do Ledger and Beancount use the same syntax?**

No. They share double-entry ideas and readable journals, but dates, transaction flags, account declarations, costs, prices, metadata, and automated features differ. Simple entries are easy to translate; a complete ledger is not always drop-in compatible.

**Which tool has a better graphical interface?**

Beancount has the stronger widely used web interface through Fava, with journals, statements, charts, holdings, and queries. Ledger is primarily a command-line program and typically relies on community interfaces or exported reports for visualization.

## Ready to own your books in plain text?

Start free in minutes — no credit card, no lock-in, and your plain-text ledger is always yours to keep.

[Try Demo](https://beancount.io/ledger/open_ledger/example/overview) [Start Free→](https://beancount.io/sign-up/?next=%2Fledger%2F)

## Where to look next

- [Sitemap](https://beancount.io/sitemap.xml) - all pages with hreflang alternates
- [LLMs index](https://beancount.io/llms.txt) - curated links for AI agents (also /llms-full.txt for full docs)
- [Documentation](https://beancount.io/docs) - every doc is also available as text/markdown via .md suffix or Accept negotiation
- [REST API reference](https://beancount.io/docs/api-reference) - interactive endpoints, schemas, authentication, and code samples
- [OpenAPI spec](https://beancount.io/openapi.json) - OpenAPI 3.1 spec for this website's public content endpoints; the product contract for ledger operations is at https://beancount.io/api-gateway/v1/openapi.json
- [GraphQL](https://beancount.io/graphql) - public, read-only content API over the blog and research logs (no credentials, no ledger data): 12 query fields over 23 types
- [MCP server](https://beancount.io/mcp) - Model Context Protocol at https://beancount.io/api-gateway/mcp
