Envelope Budgeting Example — beancount.io
A Beancount ledger demonstrating envelope (zero-based) budgeting: giving every dollar a job before it is spent, and seeing immediately when a category runs dry. Ledger notes
Period data
| Period | Net Worth | Income | Expenses | Net Profit |
|---|---|---|---|---|
| 2026-01-31 | 12,825.74 USD | 4,100.00 USD | 2,474.26 USD | 1,625.74 USD |
| 2026-02-28 | 15,275.74 USD | 4,100.00 USD | 1,650.00 USD | 2,450.00 USD |
| 2026-03-31 | 18,775.74 USD | 4,100.00 USD | 600.00 USD | 3,500.00 USD |
Financial positionMar 31, 2026
Net Worth
18,775.74 USD18,775.74USD
Assets
18,775.74 USDLiabilities
—Nothing owed
Money movementMarch 2026
Money in
4,100.00 USD
2-month average4,100.00 USD
Money out
600.00 USD
2-month average2,062.13 USD71% below
Cash Flow
Loading account roles…
Recent activity
| Entry | Account | Amount | Postings |
|---|---|---|---|
2,087.50 USD Retire the Holiday envelope — trip cancelled · Holiday → Unallocated | Equity:Budget:HolidayEquity:Budget:Unallocated | 2,087.50 USD | |
300.00 USD Cover insurance shortfall from Holiday · Holiday → CarInsurance | Equity:Budget:HolidayEquity:Budget:CarInsurance | 300.00 USD | |
-600.00 USD Six-month car insurance premium · Checking → Car +2 | Assets:Bank:CheckingExpenses:Insurance:Car+2 | -600.00 USD | |
4,100.00 USD Assign March income · Unallocated → Rent +6 | Equity:Budget:UnallocatedEquity:Budget:Rent+6 | 4,100.00 USD | |
+4,100.00 USD March salary · Salary → Checking | Income:SalaryAssets:Bank:Checking | +4,100.00 USD | |
4,100.00 USD Assign February income · Unallocated → Rent +6 | Equity:Budget:UnallocatedEquity:Budget:Rent+6 | 4,100.00 USD | |
+4,100.00 USD February salary · Salary → Checking | Income:SalaryAssets:Bank:Checking | +4,100.00 USD | |
-1,650.00 USD February rent · Checking → Rent +2 | Assets:Bank:CheckingExpenses:Rent+2 | -1,650.00 USD | |
Envelope Budgeting Example — beancount.io
A Beancount ledger demonstrating envelope (zero-based) budgeting: giving every dollar a job before it is spent, and seeing immediately when a category runs dry.
The method rests on one idea — envelopes are equity, not assets. The money is already in the bank; budgeting only decides what it is promised to. So an allocation moves value between equity subaccounts and never touches Assets, which is why the overlay can never disturb your bank reconciliation.
The ledger also declares matching native custom "budget" targets for each expense account. The equity postings provide rollover envelope balances; the custom directives power beancount.io's Budget report and its budget-versus-actual charts. They are complementary views of the same monthly plan.
Quick Start
make install # Install beancount + fava via uv
make check # Verify the ledger has zero errors
make serve # Open Fava at http://localhost:4739File Guide
| File | What it demonstrates |
|---|---|
main.bean | Entry point — options and include directives |
accounts.bean | Commodity definitions, real accounts, and the envelope tree |
budgets.bean | Native monthly targets used by the beancount.io Budget report |
transactions/opening.bean | Starting balances, and what "to be budgeted" means |
transactions/funding.bean | Assigning income to envelopes — kept separate from income arriving |
transactions/spending.bean | The four-posting purchase: two for the money, two for the plan |
transactions/overspending.bean | An envelope going negative, and covering it deliberately |
transactions/sinking-funds.bean | Funding an irregular bill monthly instead of being surprised by it |
transactions/reset.bean | Retiring a category, and reconciling against the bank |
The one thing to copy
Spending is four postings, readable as two independent pairs:
2026-01-08 * "Whole Foods" "Weekly shop"
Assets:Bank:Checking -128.44 USD ; what your bank sees
Expenses:Groceries 128.44 USD
Equity:Budget:Groceries -128.44 USD ; what your budget sees
Equity:Budget:Unallocated 128.44 USDEach pair balances on its own, so the budget overlay is always safe to add, remove, or ignore.