---
title: "What is a general ledger, and how does double-entry bookkeeping work?"
description: "How double entry works: journal entries, debits and credits, normal balances, running balances, the trial balance, and why posted entries are reversed."
canonical: "https://lopifi.com/startups/general-ledger-and-double-entry"
---

# What is a general ledger, and how does double-entry bookkeeping work?

> How double entry works: journal entries, debits and credits, normal balances, running balances, the trial balance, and why posted entries are reversed.

Source: https://lopifi.com/startups/general-ledger-and-double-entry
Part of: Lopifi — Your VC tech stack partner (https://lopifi.com)

---

- **Topic:** The ledger
- **Reading time:** 6 min
- **Updated:** October 13, 2026

Every number on your financial statements comes from one place: the general ledger, a list of every account the company keeps, each with every entry posted to it and a running balance. Double entry fills it. Each transaction is recorded at least twice, debits on one side and credits on the other, and the two sides always total the same. That constraint keeps the balance sheet in balance and lets anyone trace a figure back to the transactions behind it. Double entry is a bookkeeping mechanic, not a GAAP rule, and it has worked the same way for five centuries.

## Journal entries: two sides, equal totals

A journal entry records one transaction: a date, a memo, and at least one debit and one credit. The debits are written in the left column and the credits in the right, and the two columns must total the same amount. An entry that does not balance cannot be posted.

Some illustrative examples. A customer pays an open invoice: debit Cash $5,000; credit Accounts receivable $5,000. You receive a bill for the month’s hosting: debit Hosting expense $8,000; credit Accounts payable $8,000. You pay it: debit Accounts payable $8,000; credit Cash $8,000. An investor wires a SAFE: debit Cash $500,000; credit SAFE liability $500,000. Each entry keeps assets equal to liabilities plus equity, which is why the balance sheet holds.

An entry can have more than two lines. A payroll run has one debit for wages and credits for net pay, each tax withheld and each benefit deduction. What matters is that the total of the debit column equals the total of the credit column.

## Normal balances

Each type of account increases on one side, its normal balance, and decreases on the other:

Chase any balance on the wrong side. Accounts payable with a debit balance means a bill was paid twice or a payment was never matched to its bill. Cash with a credit balance means the books show an overdraft the bank may not.

- Assets: debit. Cash, receivables, prepaids, equipment.
- Expenses: debit. Payroll, software, rent, hosting.
- Liabilities: credit. Payables, accruals, deferred revenue, SAFEs, loans.
- Equity: credit. Common and preferred stock, paid-in capital, retained earnings.
- Revenue: credit. Subscriptions, services, interest income.
- Contra accounts run the other way: accumulated depreciation is a credit against an asset; refunds and discounts are debits against revenue.

## The ledger and its running balance

The general ledger sorts every posted entry by account. Each account page lists, in date order, the date, the memo, the debit, the credit and the running balance after each line. The running balance is computed, never typed: the opening balance, plus debits less credits for a debit-normal account, or plus credits less debits for a credit-normal one.

Take an illustrative accounts receivable account with an opening balance of $18,500. An invoice for $6,400 is a debit and takes it to $24,900. A $3,200 payment is a credit and brings it to $21,700. A $450 credit memo is a credit and brings it to $21,250. At month end the balance should equal the total of open invoices on the aging report. If it does not, one of the lines above it is wrong, and the ledger tells you exactly which entries to check.

## The trial balance

A trial balance lists every account with its closing balance in a debit column or a credit column, on one date. The two columns must total the same. It is the first report pulled at month end, and the source from which the balance sheet and income statement are built.

A balanced trial balance proves only that every posted entry balanced. It does not catch an expense posted to the wrong account, a transaction recorded twice on both sides, or one never recorded at all. Those are found by reconciling each balance to something outside the books: the bank statement, the payroll provider, the Stripe balance, the contract.

## Posted entries are reversed, never edited

Once an entry is posted and the month is reported, it is part of the record. If it was wrong, you do not change it. You post a new entry that reverses it, the exact mirror with debits and credits swapped, and then post the correct one. Or, for a misclassification, you post a reclassification that moves the amount from the wrong account to the right one.

An illustrative case. In August a $1,200 software subscription was posted as rent, in a month already closed and sent to investors. In September, the open month, post: debit Software $1,200; credit Rent $1,200, with a memo naming the original entry. August still says what it said when it was reported. September carries the correction, with a date and an author. Under US GAAP, a material error in issued statements is corrected and disclosed under ASC 250 rather than overwritten; at a small company, most errors are immaterial and are fixed this way in the current period.

A figure that was $40,000 in the board deck and is $38,800 in the ledger, with no entry to explain the difference, is exactly what diligence finds. It costs more to explain than it would have cost to do right.

## Period locks

A closed month is locked so nothing can be posted into it by accident. QuickBooks Online calls this a closing date; Xero calls it a lock date. Once the month is reviewed and reported, set the lock, and from then on every correction lands in the open period as a dated entry.

Locks also stop a bank rule, an integration or a teammate from re-categorizing a transaction in a prior month and changing a number you already sent. If a closed month needs reopening, someone should decide to do it, write down why, and lock it again.

## What to check in your own ledger

Five checks that take minutes and catch most of what goes wrong:

- Every balance-sheet account ties to an outside source at month end.
- No account has a balance on the wrong side without a known reason.
- Manual journal entries carry a memo saying what and why, and someone other than the author reviewed them.
- Corrections to closed months are dated in the open month, not edits to the original.
- The closing date or lock date is set to the last reviewed month.

## Common questions

### Is a debit good or bad?

Neither. Debit means left and credit means right; they are positions, not judgments. A debit raises an asset or an expense and lowers a liability, equity or revenue. A credit does the opposite. Your bank calls a deposit a credit because, on the bank’s own books, your balance is a liability it owes you.

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

The journal is the record of entries in date order, each with its debits and credits. The general ledger is the same entries sorted by account, with a running balance for each. In QuickBooks Online and Xero you post to the journal and the ledger is built from it automatically.

### If the trial balance balances, are the books right?

No. It proves every entry balanced, nothing more. Reconciling each balance to the bank, the payroll provider and the contracts is what proves the books.

### How do I fix a mistake in a month that is already closed?

Post the correction in the open month, reversing or reclassifying the original, with a memo naming it. Don’t unlock the closed month to edit it.

### Why show debits and credits in two columns instead of one signed number?

Debit on the left, credit on the right, each in its own column. A single signed column hides which side an entry was posted to, and a reversal can look like a new transaction. Every ledger and trial balance in accounting software shows two columns for that reason.

Deciding who keeps your books? [Digits accounting: price and ledger](https://lopifi.com/md/compare/digits) · [Puzzle accounting: price and ledger](https://lopifi.com/md/compare/puzzle)

## Terms in this guide

Each one has its own page in the founder glossary. Hover for the short version, or open the full entry.

- [Balance sheet](https://lopifi.com/md/accounting/balance-sheet) — US GAAP · ASC 210
- [Journal entry](https://lopifi.com/md/accounting/journal-entry) — Convention
- [Accounts receivable](https://lopifi.com/md/accounting/accounts-receivable) — US GAAP · ASC 310
- [Accounts payable](https://lopifi.com/md/accounting/accounts-payable) — US GAAP · ASC 405
- [Prepaid expenses](https://lopifi.com/md/accounting/prepaids) — US GAAP · ASC 340-10
- [Deferred revenue](https://lopifi.com/md/accounting/deferred-revenue) — US GAAP · ASC 606
- [SAFE](https://lopifi.com/md/accounting/safe) — Equity · Y Combinator
- [Priced round](https://lopifi.com/md/accounting/priced-round) — Equity · ASC 505
- [Retained earnings](https://lopifi.com/md/accounting/retained-earnings) — US GAAP · ASC 505
- [Trial balance](https://lopifi.com/md/accounting/trial-balance) — Convention
- [Debits and credits](https://lopifi.com/md/accounting/double-entry) — Convention
- [US GAAP](https://lopifi.com/md/accounting/us-gaap) — US GAAP · ASC 105-10

## Keep going

From here: the difference in one sentence, a free tool to try it on your own numbers and the software it names.

- [Journal vs general ledger](https://lopifi.com/md/differences/journal-vs-general-ledger) (In one sentence): The journal records each transaction as a complete entry, in date order. The general ledger regroups the same lines by account so each account shows a running balance.
- [Journal entry balancer](https://lopifi.com/md/tools/journal) (Free tool): Paste an entry, see what it's out by, and copy the lines back out.
- [Trial balance checker](https://lopifi.com/md/tools/tb) (Free tool): Check a trial balance ties, flag wrong-side balances and see what it rolls up to.
- [The books, in one lesson](https://lopifi.com/md/learn/how-startup-books-work) (Core · Lesson 4 · 8 min): Startup books are accrual books, closed every month. Profit, operating cash and the bank balance are three different numbers, and the books show all three.
- [QuickBooks in your books](https://lopifi.com/md/integrations/quickbooks) (In your books): Intuit's cloud accounting system, and the general ledger many US startups use.
- [Xero in your books](https://lopifi.com/md/integrations/xero) (In your books): A cloud accounting system that plenty of startups and their accountants prefer.

## More founder guides

- [Chart of accounts for startups: a starting template](https://lopifi.com/md/startups/chart-of-accounts-for-startups) (Setup): A starting chart of accounts for a US startup: number ranges, the expense accounts you need, and when to add an account versus a class or tracking tag.
- [Balance sheet explained for startups](https://lopifi.com/md/startups/balance-sheet-explained) (Statements): Assets equal liabilities plus equity. What each startup line means, from deferred revenue to the SAFE and the accumulated deficit, and why it must balance.
- [Cash flow statement explained: why profit isn’t cash](https://lopifi.com/md/startups/cash-flow-statement-explained) (Statements): How the cash flow statement starts at net income, adds back non-cash costs and working capital, splits three activities and ties to the balance sheet.
- [Bank reconciliation step by step](https://lopifi.com/md/startups/bank-reconciliation-step-by-step) (Cash): Match the bank statement to the books, clear deposits in transit and outstanding checks, book the fees, and reach a $0.00 difference every month.

*General information, not tax, legal or accounting advice. Check with a CPA before you act on it.*
