Accounting basics
This guide explains the bookkeeping ideas you meet when you keep your own books in hledger, in plain language and with a small journal example for each. It is written for an individual or a small-business owner, not for an accountant, and it assumes no accounting training.
Ledgeline’s assistant searches these pages, along with the hledger manual and the rest of this manual, so it can answer general bookkeeping questions without going online.
Not professional advice
This is general educational material. It is not accounting, tax, legal or investment advice, and it is not a summary of any official standard.
Formal rules come from bodies such as the FASB (US GAAP) and the IASB (IFRS), and from your country’s tax authority. Their details differ from each other and from the simplified picture here, and they change over time. Before you file taxes, issue financial statements to a lender or investor, or set up payroll, check with a qualified accountant or tax adviser in your jurisdiction.
How the examples work
Every example is a complete hledger journal that hledger check accepts. Copy one into a file and run hledger -f example.journal balance to see what it does. The account names are common conventions, not requirements. hledger and Ledgeline only use each account’s type, which you can declare (see Account types).
Amounts use $, but nothing here depends on the currency.
The pages in this guide
- Double entry, account types and signs: why every transaction has two sides, the five account types, debits and credits, normal balances, and why hledger shows some balances as negative.
- Cash and accrual basis: when income and expenses count, revenue recognition and the matching principle, and which basis suits you.
- Accruals and deferrals: prepaid expenses, deferred revenue, accrued expenses, accounts receivable and accounts payable.
- Fixed assets, depreciation and amortization: capitalizing versus expensing, straight-line depreciation, and amortizing intangibles.
- Reconciliation, opening balances and closing the year: matching your books to bank and card statements, starting balances, year-end close and retained earnings.
- Inventory and cost of goods sold: stock you sell, what it cost you, and gross margin.
- Owner’s equity, draws, contributions and loans: money between you and your business, and splitting loan payments into principal and interest.
- Sales tax, VAT and payroll: tax you collect for someone else, and the parts of a paycheck, at a conceptual level.
- Investments: cost basis, market value and gains: buying at cost, valuing at market prices, and realized versus unrealized gains.
- Glossary: short definitions of the terms used here.
Where Ledgeline helps
Several Ledgeline features put the ideas in this guide into practice:
- Revenue and expense recognition spreads prepaid revenue and expenses over the months they cover.
- Running balances and balance assertions help you reconcile against statements.
- Reviewing transactions works through uncategorized entries.
- Holdings and Prices and valuation show investments at cost and at market value.
- The balance sheet, income statement and cash flow reports are the standard financial statements.
- Budget and Projections look forward instead of back.