5 minute read

What is a general ledger? Definition and how it works

Vintage general ledger book with cream pages on gray fabric with gold embroidered text and white feather accent.

Every transaction needs a home in your books. Here's how ledger accounts, GL codes, and monthly reconciliation keep your CPA from untangling your cash.

A general ledger is the complete record of every financial transaction in your business, organized by account. Each ledger account is one page of that record for a single account, holding the date, description, reference number, debit and credit columns, and a running balance.

Under double-entry bookkeeping, every transaction posts to at least two accounts. A debit sits on the left side of an entry and a credit on the right, and total debits always equal total credits.

Those balances roll into the trial balance, income statement, and balance sheet—the core financial reports your business, tax return, and any lender's review depend on.

There's no required format for the ledger itself—a spreadsheet qualifies, as long as it clearly separates income and expenses and tracks each account cleanly. The ledger also has to last: records tied to a tax return should generally be kept for at least 3 years, 6 years if unreported income is significant, and at least 4 years for employment tax records.

When your accountant asks for "the books," the general ledger is one of the core reports they mean, and a bank statement export won't cover it.

How does a general ledger work?

Posting means copying an entry into each account it affects. In accounting software, a synced bank transaction typically posts once you categorize and save it.

General ledger example: a $4,200 client invoice

A $4,200 client invoice shows how each step touches two accounts:

  1. You issue the invoice: accounts receivable rises $4,200 and revenue rises $4,200.

  2. The client pays: operating cash rises $4,200 and accounts receivable falls $4,200.

  3. Resulting balances: cash up $4,200, receivable back to $0, revenue up $4,200.

The ledger now shows the money's full path from invoice to deposit.

What types of accounts and general ledger (GL) codes does a general ledger use?

Your general ledger sorts every account into five types, so you can tell what a balance represents before tracing its transactions. If you code operating cash as 1010 and payroll cash as 1020, both sit under assets. In a common coding convention, the first digit of a GL code tells you which type it belongs to. The chart of accounts lists every account and its code; the ledger holds the transactions posted against them:

  1. Assets (1000s): what the business owns or is owed. Operating cash, payroll cash, tax reserve cash, accounts receivable.

  2. Liabilities (2000s): what the business owes. Accounts payable, payroll taxes owed, a truck loan.

  3. Equity (3000s): the owner's stake.

  4. Revenue (4000s): what the business earns. Service revenue.

  5. Expenses (5000s and up): what it costs to run. Payroll, rent, software. See our full list of 25 expense categories for ideas on how to break this group down.

The numbering follows a common convention rather than a strict requirement. Keeping the same codes year to year lets you compare years line by line.

Each bank account needs its own cash account in the ledger: operating, payroll, and tax reserve might be 1010, 1020, and 1030. At this stage, you may be feeding all three into a single ledger cash line. The arithmetic still works, but you have no way to prove your ledger's payroll cash matches the payroll statement when the ledger has no payroll cash account.

Relay gives businesses up to 20 individual checking accounts. That gives you enough room to map operating, payroll, tax reserve, and anything else you track separately in the ledger to its own account.

How do you reconcile a general ledger?

Reconcile a general ledger monthly by matching each ledger cash account to the statement for the one bank account it represents. With three checking accounts at month-end, that means three separate reconciliations. Account for timing differences and anything the bank recorded that the books missed:

  1. Confirm every bank transaction for the period has posted to its cash account.

  2. Compare the ledger's ending balance for that account to the statement's ending balance.

  3. List timing differences: outstanding checks, meaning checks you wrote that have not cleared, and deposits in transit, meaning deposits the bank has not posted yet.

  4. Add anything the bank recorded that the ledger missed, most often bank fees and interest.

  5. Investigate whatever remains, usually a duplicate posting, a transposed number, or a transaction coded to the wrong cash account.

When the adjusted figures match, that cash account's reconciliation is complete for the month and the next one starts. Investigating any remaining mismatch requires the full bank reconciliation steps.

A transfer between two of your own accounts moves money between two asset accounts, so it nets to zero on the income statement. Because each bank account has its own cash account, moving $630 from operating to the tax reserve lowers 1010 and raises 1030; coding it as "taxes" overstates expenses and understates the tax reserve's ledger balance. Relay's percentage- or dollar-based auto-transfer rules, available on every plan, handle the move itself so you only have to code both sides to the two cash accounts.

General ledger vs. trial balance vs. balance sheet

After you reconcile cash, you can use the same postings to produce the ledger, trial balance, and balance sheet. Each document answers a different question and appears at a different point in the month.

General ledger

Trial balance

Balance sheet

What it is

The full record of every transaction, organized by account

A list of every account's ending balance, with total debits and total credits

A statement of what the business owns, owes, and holds as equity on one date

When you produce it

Continuously; every posting updates it

At period end, before the financial statements

At period end, built from the trial balance figures

What it answers

What happened, and in which account?

Do total debits equal total credits?

Where does the business stand today?

Who reads it

Bookkeeper, auditor, anyone tracing a single transaction

Bookkeeper and CPA before closing the month

Owner, lender, CPA, prospective buyer

A balanced trial balance proves only that debits equal credits. A miscoded transaction still balances, so you need to reconcile each cash account against its bank statement first.

With Relay, each account's transactions reach QuickBooks Online or Xero through direct two-way sync, so the balances you reconcile against the statement are the same ones your CPA sees in the ledger.

How do you set up and manage ledger accounts without creating a mess?

Setting up a general ledger well is mostly a sequencing problem: get the chart of accounts right before transactions start flowing, catch structural problems early, and lock in a repeatable month-end routine.

Step 1: Build the chart of accounts before the first transaction

Set up ledger accounts before the first transaction posts by building a short chart of accounts with one ledger cash account per bank account. List the accounts you'll use this year (the fewest that still separate what you and the tax return need to see), assign codes by type, then lock the chart so adding an account takes a deliberate decision.

A spreadsheet starts to break down once payroll runs through it. The same thing happens when you open a second bank account, when someone besides you starts posting entries, or when monthly transactions outrun the time you have to enter and check each one.

Step 2: Fix the structural problems that break most ledgers

Many ledger problems trace to how the accounts are structured:

  • Several bank accounts feeding one ledger cash account: Add a separate ledger cash account for each bank account, then re-sort the historical transactions.

  • Internal transfers coded as income or expense: Code both sides to cash accounts.

  • Uncategorized transactions piling up: Categorize weekly and attach receipts as they arrive.

  • Near-duplicate expense accounts: Merge them, then lock the chart.

  • Cash accounts never reconciled: Reconcile monthly using the five steps above.

With a clean chart and reconciled cash accounts, your CPA can prepare the books for taxes without first untangling the cash balances.

Step 3: Run a repeatable month-end close

At month-end, you need each cash balance tied to a statement before you can trust the reports. Post everything and reconcile each cash account, then review the receivable and payable subledger totals (customer and vendor detail) and run the trial balance. Once those checks are complete, produce the income statement and balance sheet for the CPA.

Step 4: Capture receipts at the source

Attach receipts at purchase so your bookkeeper works from the same accounts you see. Relay's receipt capture with artificial intelligence (AI) categorization tags spending as receipts arrive. Through the Partner Portal, your accountant or bookkeeper can work in the same accounts you use.

Give each bank account its own line in the ledger

A ledger built on one cash account per bank account gives your CPA a clean balance to check at month-end, keeps internal transfers off the income statement, and leaves a close you can explain without reconstructing cash movements after the fact.

Relay lets you set up that structure with separate checking accounts for each cash purpose, two-way sync to QuickBooks Online or Xero, and percentage- or dollar-based auto-transfer rules on every plan. Start by opening a Relay account and mapping each account to its own ledger line.

Frequently asked questions

Moving from a spreadsheet to accounting software or handing the books to a CPA raises the same practical ledger questions.

Can I keep a general ledger in a spreadsheet (and is there a template)?

Yes. A general ledger template is just a spreadsheet with the right columns: give every row a date, description, account code, and debit and credit columns, then track each bank account through a separate cash account. Before switching to accounting software, confirm that debits equal credits, match each cash balance to its statement, and bring over the chart of accounts and opening balances.

What is the difference between a general ledger and a general journal?

The journal records entries by date, while the ledger sorts those entries into accounts. Accounting software creates both records when you save a transaction, and you can view either depending on the question you're answering.

What is a subledger?

A subledger holds the transaction-level detail behind a busy general ledger account. It might break receivables down by customer, payables by vendor, or payroll by employee. Its combined balance matches the related summary account in the main ledger.

Is the chart of accounts the same as the general ledger?

No. Your chart of accounts names and codes the categories available for posting. Your general ledger records the entries assigned to those categories. The chart changes when you add or combine an account; the ledger changes whenever you record a transaction.

How often should the general ledger be reconciled?

Reconcile it monthly after the bank statements arrive. Clearing uncategorized transactions each week reduces the work waiting at month-end.

BANKING FOR THE SELF-MADE

Get started in minutes.

More about the authorThe Relay Editorial Team produces practical, expert-backed content for small business owners navigating the financial side of running a company. Our work is informed by contributions from CPAs, advisors, and experienced operators, and held to rigorous editorial standards for accuracy and relevance. Relay is a banking platform built for small businesses—and our editorial mission reflects that focus.View more articles by Relay Editorial Team

Relay is a financial technology company and is not an FDIC-insured bank. Banking services provided by Thread Bank, Member FDIC.