Skip to content

BlogGuide

General ledger: Meaning, example, and how it works

19 min read

Key takeaways

  • A general ledger is the complete record of a company's accounts, with every posted transaction and a running balance for each account, and it's the source of the trial balance and the financial statements.
  • In the worked example, eight journal entries post to eight ledger accounts, and the trial balance totals $81,500 on each side, with $11,500 of net income for March 2026.
  • Subledgers hold the detail for receivables, payables, and fixed assets, while the general ledger holds one control account for each, so every subledger total should match its control account at month-end.

A general ledger (GL) is the master record of every account a company keeps, holding each posted journal entry and a running balance for each account. Those accounts are assets, liabilities, equity, revenue, and expenses. Keeping it accurate gives you financial statements you can trust, catches posting errors before they reach a report, and keeps your audit trail complete. This guide follows one small company's month from journal entries to a trial balance. It then covers account types, subledgers, account numbering, a GL template, and month-end controls.

General ledger example: One month from journal entries to trial balance

This general ledger example posts eight journal entries into eight accounts and ends with a trial balance of $81,500 on each side. Example: A small design agency opens on March 1, 2026. All amounts in this general ledger sample are illustrative, and the account numbers follow a common four-digit scheme.

Step 1: Record the journal entries

Every transaction is first recorded as a journal entry with equal debits and credits, in date order.

RefDateDescriptionDebit accountCredit accountAmount
JE-013/1/2026Owners invest cash for common stock1010 Cash3000 Common stock$50,000
JE-023/3/2026Buy design workstations on account1500 Equipment2000 Accounts payable$12,000
JE-033/5/2026Pay March office rent6000 Rent expense1010 Cash$4,000
JE-043/12/2026Invoice client for a brand project1200 Accounts receivable4000 Service revenue$18,000
JE-053/15/2026Client pays on completion of a website project1010 Cash4000 Service revenue$6,500
JE-063/20/2026Collect part of the brand project invoice1010 Cash1200 Accounts receivable$10,000
JE-073/25/2026Pay part of the equipment bill2000 Accounts payable1010 Cash$5,000
JE-083/31/2026Pay March salaries6100 Salaries expense1010 Cash$9,000

The eight entries total $114,500 of debits and $114,500 of credits. Each one has a reference number, so you can trace any ledger line back to it. JE-08 keeps payroll simple as one cash payment. A real payroll entry also splits out tax withholdings and the employer's taxes, as shown later in this guide.

Step 2: Post each entry to its ledger account

Posting copies each debit and credit to the account it names, with the date and reference, and updates that account's running balance. "Dr" marks a debit balance and "Cr" a credit balance.

1010 Cash

DateRefDescriptionDebitCreditBalance
3/1/2026JE-01Owner investment50,00050,000 Dr
3/5/2026JE-03March rent4,00046,000 Dr
3/15/2026JE-05Website project payment6,50052,500 Dr
3/20/2026JE-06Brand project collection10,00062,500 Dr
3/25/2026JE-07Payment to equipment vendor5,00057,500 Dr
3/31/2026JE-08March salaries9,00048,500 Dr
Total66,50018,00048,500 Dr

1200 Accounts receivable

DateRefDescriptionDebitCreditBalance
3/12/2026JE-04Brand project invoice18,00018,000 Dr
3/20/2026JE-06Brand project collection10,0008,000 Dr

2000 Accounts payable

DateRefDescriptionDebitCreditBalance
3/3/2026JE-02Workstations bought on account12,00012,000 Cr
3/25/2026JE-07Payment to equipment vendor5,0007,000 Cr

4000 Service revenue

DateRefDescriptionDebitCreditBalance
3/12/2026JE-04Brand project invoice18,00018,000 Cr
3/15/2026JE-05Website project payment6,50024,500 Cr

Accounts with one posting

AccountDateRefDebitCreditBalance
1500 Equipment3/3/2026JE-0212,00012,000 Dr
3000 Common stock3/1/2026JE-0150,00050,000 Cr
6000 Rent expense3/5/2026JE-034,0004,000 Dr
6100 Salaries expense3/31/2026JE-089,0009,000 Dr

Eight entries with two lines each make 16 postings. Cash has six, receivables, payables, and revenue have two each, and the other four accounts have one each.

Step 3: Pull the balances into a trial balance

The trial balance lists each account's ending balance in a debit or credit column, and the two columns must be equal.

Unadjusted trial balance, March 31, 2026

AccountDebitCredit
1010 Cash48,500
1200 Accounts receivable8,000
1500 Equipment12,000
2000 Accounts payable7,000
3000 Common stock50,000
4000 Service revenue24,500
6000 Rent expense4,000
6100 Salaries expense9,000
Total81,50081,500

What the balances tell you:

  • Net income: $24,500 revenue − ($4,000 rent + $9,000 salaries) = $11,500
  • Balance sheet: Assets of $48,500 + $8,000 + $12,000 = $68,500, which equals liabilities of $7,000 plus equity of $50,000 + $11,500 = $68,500
  • Cash: $66,500 received − $18,000 paid = $48,500, which should agree to the bank statement after reconciliation
  • What comes next: Month-end adjusting entries, such as depreciation on the workstations, then the adjusted trial balance and the statements

If the two totals differ, the cause is usually a one-sided posting, a transposed amount, or a balance placed in the wrong column. Recheck the postings for the account that's off before you go further.

What is a general ledger in accounting?

A general ledger is the full set of a company's accounts, each holding the dated debits and credits posted to it and a running balance. It's also called the book of final entry, and in the UK, the nominal ledger. These terms come up throughout this guide:

  • Ledger account: One account in the general ledger, such as 1010 Cash, with its own page or record of postings
  • Posting: Copying a journal entry's debit and credit lines to the ledger accounts they name
  • Control account: A general ledger account, such as accounts receivable, whose balance is supported by a detailed subledger

The general ledger definition is the same in a paper book, a spreadsheet, or accounting software. Only the way entries get posted changes.

What is ledger accounting?

Ledger accounting is the practice of sorting every transaction by account, so each account shows its full history and current balance. It's the step that turns a date-ordered list of journal entries into balances you can report.

What is the primary function of a general ledger?

A general ledger's primary function is to hold every account's balance in one place, so you can prove debits equal credits and build the financial statements. It does four jobs in general ledger accounting:

  • Classify: Group every transaction by account, so you see all cash or all revenue at once
  • Balance: Keep a running balance for each account, which feeds the trial balance
  • Report: Supply the balances behind the income statement, balance sheet, and cash flow statement
  • Trace: Link each balance back to its journal entries and source documents for review and audit

What are the five types of general ledger accounts?

The five types of general ledger accounts are assets, liabilities, equity, revenue, and expenses. Knowing each type's normal balance tells you whether a debit raises or lowers it.

Account typeNormal balanceIncreased byExamplesStatement
AssetsDebitDebit1010 Cash, 1200 Accounts receivable, 1500 Equipment, prepaid expensesBalance sheet
LiabilitiesCreditCredit2000 Accounts payable, accrued expenses, deferred revenue, loansBalance sheet
EquityCreditCredit3000 Common stock, retained earnings, owner's capitalBalance sheet
RevenueCreditCredit4000 Service revenue, product sales, interest incomeIncome statement
ExpensesDebitDebit6000 Rent expense, 6100 Salaries expense, software, depreciationIncome statement

Some charts list gains and losses as separate groups. Contra accounts, such as accumulated depreciation, carry the opposite balance of the group they sit in.

How does the general ledger fit into the accounting cycle?

The general ledger sits between the journal and the trial balance. Entries are journalized, posted to the ledger, summarized in a trial balance, and reported in the statements. Seeing the flow helps you find where an error entered.

StepWhere it happensWhat you doWhat it produces
1. JournalGeneral journal or a module such as AP or billingRecord each transaction's debits and credits in date orderJournal entries with references
2. General ledgerLedger accountsPost each line to its account and update the balanceAccount balances
3. Trial balanceReport run from the ledgerList every balance and confirm debits equal creditsUnadjusted trial balance
4. AdjustmentsJournal, then ledgerPost accruals, deferrals, depreciation, and correctionsAdjusted trial balance
5. Financial statementsReports from the adjusted trial balanceGroup balances into statement linesIncome statement, balance sheet, and cash flow statement

How do you prepare a general ledger?

To prepare a general ledger, set up your accounts and opening balances, then post each approved journal entry to its account and update that account's balance. The same steps apply on paper, in Excel, or in software.

  1. Set up the accounts: Create one ledger account for each line in your chart of accounts, with its number, name, and type
  2. Enter opening balances: A new business starts every account at zero, as in the example. Existing books bring in last period's closing balances, which must balance
  3. Check the entry: Confirm debits equal credits, the support is attached, and the entry is approved
  4. Find each account: Look up the account by its number, such as 1200 for accounts receivable
  5. Record the line: Enter the date, journal reference, description, and the debit or credit amount
  6. Update the balance: For asset and expense accounts, add debits and subtract credits. For liability, equity, and revenue accounts, add credits and subtract debits.
  7. Mark it posted: Note the posting on the journal entry, so it can't be posted twice
  8. Check the total: Confirm total debits posted equal total credits posted, $114,500 each in the example

In accounting software, posting happens when an approved entry is saved as posted. Your team's work moves to reviewing entries before they post and locking the period after close.

General ledger vs general journal: What's the difference?

The general journal records each transaction in date order, while the general ledger sorts the same lines by account to show each balance. The journal answers "what happened," and the ledger answers "what's the balance."

General journalGeneral ledger
OrderBy dateBy account
One record showsEvery account in one transactionEvery transaction in one account
Also calledBook of original entryBook of final entry
Place in the cycleFirstSecond, after posting
In the exampleJE-06: debit cash $10,000, credit receivables $10,000Cash rises to $62,500, and receivables fall to $8,000
Used forReviewing and approving entriesBalances, the trial balance, and the statements

A journal entry is one transaction's record, and the general ledger holds the result of every entry. The general ledger vs journal entry question comes down to detail versus totals. For the entries you post at month-end and how to review them, see month-end journal entries.

General ledger vs subledger: What's the difference?

A subledger holds the detail for one area, such as each customer invoice, while the general ledger holds one control account with the total. Splitting the detail out keeps the general ledger short enough to review.

General ledgerSubledger
ScopeEvery account in the businessOne area, such as receivables or payables
DetailPosted transactions and a running balance for each accountOne line per customer, vendor, or asset
Who works in itControllers and the reporting teamAR, AP, and fixed asset teams
How it connectsHolds the control accountPosts summary totals to the control account
What it feedsTrial balance and financial statementsThe control account, plus agings and registers

The three subledgers behind the example's control accounts:

SubledgerWhat it tracksGL control accountCheck against the example
Accounts receivableOpen invoices by customer1200 Accounts receivableThe AR aging shows one client owing $8,000 ($18,000 billed − $10,000 collected), equal to the GL
Accounts payableUnpaid bills by vendor2000 Accounts payableOpen bills show one vendor owed $7,000 ($12,000 billed − $5,000 paid), equal to the GL
Fixed assetsEach asset's cost, in-service date, useful life, and depreciation1500 Equipment and accumulated depreciationThe asset register shows $12,000 of workstations, equal to the GL

When a subledger total and its control account disagree, look for a manual entry posted straight to the control account. Also check for an item posted in one system but not the other. Matching the two every month is the job of a general ledger reconciliation, and for receivables and payables, an AP and AR reconciliation.

Accounts without a full subledger, such as prepaid expenses and accruals, are supported by a schedule instead. A prepaid expenses ledger lists each prepayment, its term, and the amount that moves to expense each month, and its total should equal the prepaid balance in the general ledger. See prepaid expenses for the schedule and its entries.

How does payroll post to the general ledger?

Payroll usually posts to the general ledger as one summary journal entry per pay run, while the payroll system keeps the detail for each employee. The entry splits gross pay into net pay, withholdings, and the employer's own taxes.

Example: If the agency's $9,000 of March salaries (JE-08) ran through a full payroll, the entry would look like this. Employee Social Security and Medicare tax is 6.2% plus 1.45%, or 7.65%, and the employer pays a matching 7.65% (IRS Tax Topic 751, updated November 9, 2026). Federal income tax withheld is an illustrative $1,000. This entry isn't part of the trial balance above.

AccountDebitCredit
6100 Salaries expense9,000.00
6110 Payroll tax expense688.50
1010 Cash (net pay)7,311.50
2100 Payroll taxes payable2,377.00
Total9,688.509,688.50
  • Employee and employer tax: 7.65% × $9,000 = $688.50 each
  • Net pay: $9,000 − $688.50 − $1,000 = $7,311.50
  • Payroll taxes payable: $1,000 + $688.50 + $688.50 = $2,377, which clears when you deposit the taxes

The example leaves out state taxes, unemployment taxes, and benefits, which add more payable lines. If payroll runs through a clearing account, that account should be back at zero once the pay run and the tax deposit both post.

General ledger vs trial balance: What's the difference?

The general ledger holds every transaction for each account, while a trial balance is a one-page report of each account's ending balance on one date. The trial balance proves debits equal credits, and the ledger shows why each balance is what it is.

General ledgerTrial balance
DetailEvery posting, with date, reference, and running balanceOne ending balance per account
PurposeRecord and classify transactionsProve debits equal credits before the statements
FormatOne page or report section per accountTwo columns, debits and credits, with totals
WhenUpdated with every postingRun at period-end, often three times
In the example16 postings across eight accountsEight lines totaling $81,500 on each side

A trial balance can be run three times in a cycle: unadjusted, adjusted, and after year-end closing entries, the post-closing trial balance. A trial balance that balances doesn't prove the ledger is right. An entry posted to the wrong account, or never posted at all, still leaves debits equal to credits.

General ledger vs chart of accounts: What's the difference?

The chart of accounts lists account numbers, names, and types with no amounts, while the general ledger holds the transactions and balances for those accounts. The chart sets the structure, and the ledger fills it.

Chart of accountsGeneral ledger
HoldsAccount number, name, type, and statusDated postings and balances
Changes whenYou add, rename, or retire an accountAny entry posts
Example1200 Accounts receivable, asset1200 Accounts receivable, $8,000 Dr on March 31, 2026

When you need a new account, add it to the chart first and then post to it, so every ledger account has an approved number, name, and type.

What are general ledger codes?

General ledger codes are the account numbers that identify each account in the general ledger, such as 6100 for salaries expense. In a numbering scheme like the one below, the first digit tells you the account type, and a general ledger codes list is the chart of accounts sorted by number.

RangeAccount typeExample
1000 to 1999Assets1010 Cash
2000 to 2999Liabilities2000 Accounts payable
3000 to 3999Equity3000 Common stock
4000 to 4999Revenue4000 Service revenue
5000 to 5999Cost of goods sold5000 Direct labor
6000 to 7999Operating expenses6100 Salaries expense
8000 to 8999Other income and expense8100 Interest expense

Companies with several departments or locations often add segments to the code for department, location, or entity, such as 6100-20-NY for salaries in department 20 in New York. Many ERPs keep these out of the account number with separate fields instead. NetSuite calls department, class, and location classifications and lets you add custom segments, and Sage Intacct calls them dimensions. Either way, the main account list stays short.

General ledger mapping links each account to the line where it appears on a report or in another system. You use it to build financial statement lines, to combine subsidiaries with different charts in a consolidation, and to move balances to a new system.

GL accountMaps to statement lineMaps to new system's account
6000 Rent expenseOccupancy61000 Rent and occupancy
6100 Salaries expensePayroll60000 Salaries and wages
1500 EquipmentProperty and equipment, net15000 Computer equipment

General ledger template and format

A general ledger template has a company and period header, then one section per account with date, reference, description, debit, credit, and balance columns. Using one fixed layout makes every account easy to review and roll forward.

Header: Company name, "General ledger," and the period, such as March 1 to 31, 2026.

Columns for each account section:

ColumnWhat goes in itExample (1200 Accounts receivable)
DatePosting date3/20/2026
RefJournal entry or source document numberJE-06
DescriptionWhat the transaction wasBrand project collection
DebitAmount added to a debit-normal accountBlank
CreditAmount added to a credit-normal account10,000
BalanceRunning balance after this line8,000 Dr

Sample account section:

DateRefDescriptionDebitCreditBalance
3/1/2026Opening balance0
3/12/2026JE-04Brand project invoice18,00018,000 Dr
3/20/2026JE-06Brand project collection10,0008,000 Dr
3/31/2026Closing balance18,00010,0008,000 Dr

To build a general ledger template in Excel or Google Sheets:

  1. Give each account its own tab: Put date, ref, description, debit, and credit in columns A to E, one row per posting, with the opening balance in F2
  2. Add a running balance: In F3, use =F2+D3-E3 for asset and expense accounts, or =F2-D3+E3 for liability, equity, and revenue accounts, and copy it down
  3. Add a summary tab: List each account's closing balance in a debit or credit column. That tab is your trial balance, and its two totals must match.
  4. Add a check cell: Total debits posted minus total credits posted across all tabs should equal zero
  5. Carry balances forward: Each month's opening balance is last month's closing balance. Revenue and expense accounts keep building year to date until year-end closing entries move them to retained earnings and reset them to zero

What is a general ledger report?

A general ledger report is the system's printout of the ledger for a date range, with each account's opening balance, postings, and closing balance. A general ledger detail report lists each transaction, and a summary report shows only totals by account.

How do you keep the general ledger clean at month-end?

Keep the general ledger clean by controlling what posts and when, and by proving each balance sheet account to outside support before you lock. These five controls catch the errors a balanced trial balance can't.

  1. Enforce cutoff: Post each transaction in the period it belongs to. Under the accrual method, that means recording expenses when incurred and revenue when (or as) you deliver what the customer paid for, as ASC 606-10-25-23 requires, whatever the payment date. Month-end accrued expenses and accrued revenue entries catch the items that haven't been billed yet.
  2. Require approvals: Every manual journal entry needs a preparer, a different approver, and attached support. No one approves their own entry.
  3. Reconcile balance sheet accounts: Tie cash to the bank statement with a bank reconciliation, control accounts to their subledgers, and accruals and prepaids to schedules. Each account reconciliation should have a preparer, a reviewer, and support for every reconciling item.
  4. Clear suspense and clearing accounts: Investigate and clear balances that should be zero at month-end, such as suspense and payroll clearing, and confirm intercompany balances agree between entities
  5. Review movements and lock: Compare each account with the prior month, explain changes above your threshold, then lock the period so nothing back-dates into it

These steps are the core of the month-end close. Running them in the same order each month keeps your ledger consistent across preparers and audit-ready at year-end.

How long should you keep general ledger records?

Keep general ledger records at least as long as the IRS can examine the returns they support, which is generally three years from filing. The IRS page "How long should I keep records?" (last reviewed June 30, 2026) sets these periods:

SituationKeep records for
Most returns3 years
You file a claim for credit or refund after you file3 years from filing or 2 years from paying the tax, whichever is later
You claim a loss from worthless securities or a bad debt deduction7 years
You fail to report income of more than 25% of the gross income on your return6 years
Employment tax recordsAt least 4 years after the tax is due or paid, whichever is later
You don't file a return, or file a fraudulent oneIndefinitely

Your auditors, lenders, or state rules may require longer, so set the period in a written retention policy.

What is the best general ledger software?

The best general ledger software is the one that fits your number of entities, your transaction volume, and the controls you need. Every option records journal entries and produces the trial balance and statements from the same data.

General ledger systems you'll often see include:

  • QuickBooks Online
  • Xero
  • NetSuite
  • Sage Intacct
  • Microsoft Dynamics 365 Business Central
  • SAP S/4HANA
  • Oracle Fusion Cloud ERP
  • Workday Financial Management

Whatever you choose, check for these capabilities:

  • Audit trail: Every entry shows who created, approved, and changed it, and when
  • Period locks: Closed months can't take new postings without a reopen
  • Approval workflow: Manual entries route to an approver before they post
  • Dimensions: Department, location, and entity tags without extra accounts
  • Integrations: Bank feeds and connections to billing, payroll, and AP tools

How do you find the general ledger in QuickBooks?

In QuickBooks Online, go to Reports, then Standard reports, and choose General Ledger from the report list. An Intuit help article updated August 3, 2026, shows how to add debit and credit columns and filter the report by account.

What are the benefits of a cloud-based general ledger?

A cloud-based general ledger lets your team work in one shared ledger from anywhere, with updates applied by the vendor instead of your IT team. It also makes bank feeds, integrations, and user permissions easier to set up and maintain than a desktop file.

Can general ledger software automate bank reconciliations?

Yes, if your general ledger software supports bank feeds: it imports bank transactions and suggests matches to ledger entries using rules you set. You still review the unmatched items, record what's missing, and sign off on the reconciliation before you close the month.

Should you replace your general ledger or add AI on top of it?

Replace the general ledger when the ledger itself is the limit, such as too few entities, dimensions, or currencies for how you operate. If the ledger works but the close around it is slow, adding tools on top keeps your system of record in place.

  • Replacing it: Map the chart of accounts, migrate opening balances and history, retrain the team, and usually run both systems in parallel for at least one close
  • Adding AI on top: Connect to the existing ledger, decide what a tool may read and what it may post, and keep your approval rules and period locks in charge

How we approach it

Our Close Agent works on top of your general ledger. It ties each balance sheet and control account to its bank, subledger, or schedule support. It prepares the workpaper and any proposed entries, then sends them to a named reviewer before the period locks. If you want that ledger review prepared before your team starts, explore the Close Agent or book a working session.

Share this article

See our agents work through a finance process that matters to your team.

Tell us where the work gets stuck. We’ll walk through how the agents could help.