What Is a General Ledger? One Month Posted Line by Line, and the IRS Rule for Automated Books
A general ledger is the master record of every transaction, sorted by account, each posted as an equal debit and credit. As of October 2026, IRS Publication 583 requires computerized records to reconcile with your books and trace to source documents, the test any automated or AI bookkeeping must pass.
What is a general ledger? The short answer
A general ledger (GL) is the master record of every financial transaction a business makes, sorted into accounts: cash, accounts receivable, accounts payable, revenue, each expense, equity. Every transaction is posted to at least two accounts, as a debit and a matching credit, so the ledger always balances. Your balance sheet and profit and loss statement are summaries of it. If a number on a financial report is wrong, the error is in the general ledger.
As of October 2026, most small businesses never see the ledger itself, because accounting software builds it in the background from bank feeds, invoices and bills. That is fine until the reports look wrong. This guide shows what the ledger actually holds, posts one month for a small service company line by line, and covers the IRS rule that matters most once software, or AI, is doing the posting.
General ledger, journal, chart of accounts, trial balance: what each one is
| Term | What it is | When you use it |
|---|---|---|
| Journal | The chronological diary: each transaction, in date order, with its debit and credit | Recording a transaction |
| General ledger | The same entries regrouped by account, with a running balance per account | Seeing what is in cash, what customers owe, what you have spent on supplies |
| Chart of accounts | The list of accounts the ledger is allowed to use, usually numbered (1000s assets, 2000s liabilities, 3000s equity, 4000s revenue, 5000s and up expenses) | Setting up the books; adding a new account |
| Subsidiary ledger | Detail behind one GL account, such as one line per customer behind accounts receivable | Chasing a specific customer or vendor |
| Trial balance | Every account's ending balance in two columns, debits and credits | Checking the ledger balances before you run reports |
The IRS describes the same flow in Publication 583: in a double-entry system, "transactions are first entered in a journal and then posted to ledger accounts," and after posting, "the total debits must equal the total credits." If they do not, "you have made an error and you must find and correct it."
Free calculator
What is manual work costing you?
Run the Manual-Work Tax Calculator — the annual cost of the data entry, invoicing, and reporting your team still does by hand.
Calculate my Manual-Work Tax →Free, no email required to run it.
One month in a general ledger, posted line by line
Here is October for a hypothetical three-person cleaning company. The owner opened the business account with $10,000. Payroll is simplified to one net figure so the example stays readable.
| Date | Transaction | Debit | Credit |
|---|---|---|---|
| Oct 1 | Pay October rent | Rent expense $2,400 | Cash $2,400 |
| Oct 3 | Invoice a property manager, net 30 | Accounts receivable $6,000 | Service revenue $6,000 |
| Oct 8 | Buy supplies on account | Supplies expense $900 | Accounts payable $900 |
| Oct 15 | Payroll by direct deposit | Wages expense $3,200 | Cash $3,200 |
| Oct 20 | Customer pays part of the invoice | Cash $4,000 | Accounts receivable $4,000 |
| Oct 28 | Pay the supply vendor | Accounts payable $900 | Cash $900 |
Regrouped by account, that is the general ledger. The cash account alone reads: $10,000 opening, minus $2,400, minus $3,200, plus $4,000, minus $900, for an ending balance of $7,500. Accounts receivable ends at $2,000, accounts payable at zero.
The trial balance checks the work:
| Account | Debit | Credit |
|---|---|---|
| Cash | $7,500 | |
| Accounts receivable | $2,000 | |
| Rent expense | $2,400 | |
| Supplies expense | $900 | |
| Wages expense | $3,200 | |
| Owner's equity | $10,000 | |
| Service revenue | $6,000 | |
| Total | $16,000 | $16,000 |
It balances. And the ledger tells the owner something the bank balance does not: the company billed $6,000 and spent $6,500, so it lost $500 in October, while cash fell $2,500 and another $2,000 is still sitting with a customer. How fast that $2,000 comes in is what the accounts receivable turnover ratio measures, computed straight from these ledger balances. That $500 loss is the bottom line of October's income statement, the report that sums the revenue and expense accounts for the month.
What a balanced ledger does not prove
A trial balance that ties only proves every entry had equal debits and credits. It does not catch:
- The wrong account. Supplies posted to rent still balances.
- A missed transaction. A bill that never got entered leaves both sides short by the same amount.
- A duplicate. The same invoice entered twice balances twice.
- The wrong amount on both sides. $900 keyed as $90 balances perfectly.
Those are caught upstream, by matching documents before they are posted (a vendor bill against its purchase order, for example) and by reconciling the cash account to the bank statement every month.
The rule that matters once software does the posting
Here is the part most general ledger explainers leave out. Publication 583 says software is fine, and then sets a condition: if you use a computerized system, "the machine-sensible records must reconcile with your books and return," and they "must provide enough detail to identify the underlying source documents."
That is the standard every bank-feed rule, auto-categorizer and AI bookkeeping tool has to meet. An entry in the ledger is only defensible if you can trace it back to the receipt, invoice or bill behind it. Auto-posting a bank line as "Supplies $412.18" with no document attached produces a ledger that balances and still fails the IRS's test. So before you trust any automation with the ledger, check one thing: when you click an entry, can you open the document it came from? Our look at AI bookkeeping compares how the main tools handle categorization and where they still need a person.
How long to keep the general ledger
The IRS ties retention to the period of limitations on the return the records support (read October 4, 2026):
- 3 years in the ordinary case.
- 6 years if you leave out income of more than 25% of the gross income on the return.
- 7 years for a loss from worthless securities or a bad-debt deduction.
- 4 years after the tax is due or paid for employment tax records.
- Indefinitely if no return or a fraudulent return was filed.
Records tied to property you own are kept until the limitations period runs out for the year you dispose of it, which for equipment or a building can be decades. Because the ledger supports every one of these, most businesses simply keep it permanently; in accounting software that costs nothing.
Who keeps the general ledger
In a small business, the bookkeeper posts and reconciles; the accountant or CPA reviews it, makes adjusting entries and builds the tax return from it. Our guide to bookkeeping vs accounting covers where that line falls and when you need each.
Keep the ledger traceable without the typing
Most ledger errors start as data entry: a bill keyed with the wrong amount, a receipt never attached, a payment matched to the wrong invoice. SuperDupr's AI workflow automation reads bills and receipts as they arrive, attaches each document to the entry it supports, and flags anything that does not match a bank line, so the ledger stays both balanced and traceable.
The bottom line
The general ledger is every transaction, sorted by account, with each one recorded as an equal debit and credit. A balanced ledger is necessary, not sufficient: it will not catch a wrong account or a missing bill. And whoever or whatever posts to it, the IRS's test is the same: every entry has to lead back to a source document.
Sources (read October 4, 2026): IRS Publication 583 (12/2024), "Starting a Business and Keeping Records," sections on journals and ledgers, double-entry bookkeeping and computerized systems (irs.gov); IRS, "How long should I keep records?" (irs.gov). The October example is a hypothetical with illustrative figures.
Frequently Asked Questions
-
It is the complete record of a business's transactions, organized by account (cash, receivables, payables, revenue, each expense, equity), with a running balance for each. Every transaction appears as a debit in one account and an equal credit in another, and the financial statements are built from it.
-
The journal records transactions in date order as they happen. The general ledger takes the same entries and groups them by account. IRS Publication 583 describes the flow: transactions are first entered in a journal and then posted to ledger accounts.
-
The chart of accounts is the list of accounts the business uses, usually numbered by type. The general ledger is those accounts filled in with every transaction and balance. The chart is the structure; the ledger is the data.
-
Not necessarily. A balanced trial balance only proves every entry had equal debits and credits. It will not catch an entry posted to the wrong account, a transaction that was never entered, a duplicate, or the same wrong amount on both sides. Document matching and monthly bank reconciliation catch those.
-
The IRS ties retention to the return the records support: generally 3 years, 6 years if more than 25% of gross income was left off, 7 years for worthless securities or bad-debt deductions, 4 years for employment tax records, and indefinitely if no return or a fraudulent return was filed. Because the ledger supports all of them, most businesses keep it permanently.
-
Yes, and most small businesses' ledgers are built by accounting software. The IRS condition in Publication 583 is that computerized records must reconcile with your books and return and include enough detail to identify the underlying source documents, so every automated entry should link back to the receipt, invoice or bill behind it.