GitHub
Accounting basics

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

Where Ledgeline helps

Several Ledgeline features put the ideas in this guide into practice: