October 23, 2026

What is double-entry accounting? Definition, rules, and examples

Explore this topicOpen ChatGPT

Double-entry accounting is a bookkeeping method that records every transaction in at least two accounts, with equal debits and credits, so total debits always equal total credits. You'll also hear it called double-entry bookkeeping or double-ledger accounting, and it rests on the accounting equation: Assets = Liabilities + Equity.

Once you know which accounts a debit increases and which a credit increases, you can record almost any transaction.

What is double-entry accounting?

Double-entry accounting records each transaction twice, once as a debit and once as a credit of the same amount. In double-entry accounting, each transaction affects at least two accounts. Most entries touch exactly two, and compound entries touch three or more.

Every entry has a debit side and a credit side of equal value. Debits sit on the left of the ledger and credits on the right, and neither one means good or bad. Double-entry bookkeeping is the standard method under generally accepted accounting principles (GAAP), and virtually all accounting software is built on it.

What is the main purpose of double-entry accounting?

The main purpose is to keep your books accurate and complete by recording both sides of every transaction, so errors show up when debits and credits don't match. Accountants call this two-sided view the dual-aspect concept.

Double entries do four jobs for you:

  • Accuracy: Recording both sides keeps the accounting equation in balance after every transaction.
  • Error and fraud detection: A mismatch between total debits and total credits flags a mistake, and unexplained entries are easier to trace to their source.
  • Complete financial statements: The ledger produces the data you need for a balance sheet and an income statement.
  • A full picture of assets and liabilities: You see what you own and what you owe, not just the cash moving through your bank account.

Without that second side, you'd have a record of cash and no way to check it.

The accounting equation behind double-entry accounting

Every double-entry transaction keeps the accounting equation balanced:

Assets = Liabilities + Equity

Each entry changes at least one side, and the amounts always offset. Say you borrow $10,000 from a bank. Cash, an asset, rises by $10,000, and loans payable, a liability, rises by $10,000, so both sides of the equation grow by the same amount.

The accountancy double-entry system uses this balance as its error check. When you run a trial balance and total debits don't equal total credits, an entry was recorded incorrectly somewhere. Find the gap before you close the period, because it only gets harder to trace later.

Debit-and-credit cheat table

Each account type has a normal balance, and a debit increases some account types while it decreases others. This runs opposite to personal banking, where a "credit" on your bank statement means money coming in. From your bank's side, your deposit is a liability it owes you, which is why the language flips.

The DEALER memory aid keeps the rules straight. Dividends, expenses, and assets increase with debits. Liabilities, equity, and revenue increase with credits.

Account typeIncreases withDecreases withNormal balanceExamples
Dividends or owner's drawsDebitCreditDebitShareholder dividends, owner withdrawals
ExpensesDebitCreditDebitRent, salaries, cost of goods sold
AssetsDebitCreditDebitCash, inventory, equipment
LiabilitiesCreditDebitCreditAccounts payable, loans payable
EquityCreditDebitCreditOwner's capital, retained earnings
RevenueCreditDebitCreditSales, service revenue

Learn the DEALER split once, and you can work out the debit and credit for most entries in your double-entry book without looking them up.

Double-entry vs. single-entry accounting

Single-entry accounting records each transaction once, like a checkbook register, and mostly tracks cash in and cash out. Double-entry bookkeeping tracks assets, liabilities, and equity alongside cash, supports full financial statements, and gives you a built-in error check.

Single-entry still fits a very small sole proprietor with simple cash activity, such as a freelancer with a few clients and no inventory. Switch to double-entry once you carry inventory, take on debt, hire employees, bring in investors, or a lender asks for a balance sheet.

FeatureSingle-entryDouble-entry
How transactions are recordedOnce, as a single lineTwice, as an equal debit and credit
Accounts trackedCash, income, and expensesAssets, liabilities, equity, revenue, and expenses
Financial statements supportedBasic income summaryBalance sheet, income statement, and cash flow statement
Error detectionNone built inDebits must equal credits on the trial balance
GAAP complianceNoYes
Best fitSole proprietors with simple cash activityAny business with inventory, debt, employees, or investors

If anyone outside your business will read your financials, double-entry is the method they'll expect.

Types of accounts used in double-entry accounting

Every transaction moves value between accounts listed in your chart of accounts. Double-ledger bookkeeping groups those accounts into five types.

Asset accounts

Asset accounts track what your business owns. They increase with debits and carry a debit balance.

  • Cash
  • Accounts receivable
  • Inventory
  • Equipment

Liability accounts

Liability accounts track what your business owes to others. They increase with credits and carry a credit balance.

  • Accounts payable
  • Loans payable
  • Accrued expenses
  • Credit card payable

Equity accounts

Equity accounts track the owner's stake in the business. Capital and retained earnings increase with credits, while draws and dividends reduce equity and carry debit balances.

  • Owner's capital
  • Retained earnings
  • Draws or dividends

Revenue accounts

Revenue accounts track what your business earns. They increase with credits, and their balances flow into equity at period end.

  • Sales
  • Service revenue
  • Interest income

Expense accounts

Expense accounts track what it costs to operate. They increase with debits and reduce equity at period end.

  • Rent
  • Salaries
  • Utilities
  • Cost of goods sold

A clean chart of accounts makes every later step faster, so set up these five groups before you post your first entry.

How double-entry accounting works

Double-entry accounting moves each transaction through five stages, from the original event to the statements you hand a lender or investor.

  1. Transaction: A business event happens, such as a sale, a purchase, or a loan payment.
  2. Journal entry: You record the transaction with the date, the accounts affected, the debit and credit amounts, and a short description.
  3. General ledger: Each journal line posts to its account in the general ledger, which keeps a running balance for every account.
  4. Trial balance: At period end, you list every ledger balance and confirm total debits equal total credits.
  5. Financial statements: The balanced ledger feeds your balance sheet, income statement, and cash flow statement.

Most accounting software runs this posting automatically behind a simpler interface. You might enter a bill once, and the software writes both sides to the ledger. The underlying double-entry accounting bookkeeping rules don't change, so knowing them helps you catch it when the software codes something incorrectly.

Double-entry accounting examples

These four journal entries follow one small business through its first month. Each one balances, and each keeps the accounting equation intact.

Example 1: An owner invests cash in the business

The owner deposits $20,000 of personal savings into the business account. Cash increases, so you debit it, and owner's capital increases, so you credit it.

AccountDebitCredit
Cash$20,000
Owner's capital$20,000
Total$20,000$20,000

Assets and equity each rise by $20,000, so the equation stays balanced.

Example 2: Buying inventory on credit

The business buys $10,000 of inventory from a supplier on 30-day terms. Inventory increases, so you debit it, and the amount you owe in accounts payable increases, so you credit it.

AccountDebitCredit
Inventory$10,000
Accounts payable$10,000
Total$10,000$10,000

Assets and liabilities each rise by $10,000, so the equation stays balanced.

Example 3: Selling inventory for cash

This is a compound entry. You sell goods that cost $3,000 for $5,000 cash, so you record the sale and the cost of the inventory that left the shelf.

AccountDebitCredit
Cash$5,000
Sales revenue$5,000
Cost of goods sold$3,000
Inventory$3,000
Total$8,000$8,000

Inventory is credited because it decreases, while cash and cost of goods sold are debited because they increase. The net effect: assets rise $2,000 and equity rises $2,000 through profit.

Example 4: Paying monthly rent

The business pays $2,000 in rent for the month. Rent expense increases, so you debit it, and cash decreases, so you credit it.

AccountDebitCredit
Rent expense$2,000
Cash$2,000
Total$2,000$2,000

Cash falls $2,000 and the expense reduces equity by $2,000, so both sides drop by the same amount.

Every entry you'll write follows the same pattern: Identify the accounts, apply the DEALER rules, and check that the totals match before you post.

Advantages and limitations of double-entry accounting

Double bookkeeping gives you accurate, auditable books, and it asks for more effort per transaction in return.

Advantages:

  • Accuracy: Two-sided entries keep the accounting equation in balance after every transaction.
  • Built-in error detection: A trial balance that doesn't match tells you a mistake exists before it reaches your statements.
  • Complete financial statements: You can produce a balance sheet, income statement, and cash flow statement from one ledger.
  • Credibility with lenders and investors: Banks and investors expect double-entry books when they review your financials.
  • GAAP alignment: It's the method GAAP requires, so your books are ready for an audit or a sale.

Limitations:

  • More work per transaction: Every entry needs at least two lines, which adds time when you record by hand.
  • A learning curve: New bookkeepers need practice to learn which accounts increase with debits and which with credits.
  • Balanced books can still be wrong: A correct-looking entry posted to the wrong account balances fine. A transaction left out entirely doesn't trip the check either.

Treat a balanced trial balance as a first check, and review account-level detail before you trust the numbers.

Ramp's Accounting Agent: Spend less time coding entries as volume grows

Once you're recording hundreds of transactions a month by hand, the debits and credits stop being the hard part. Coding each transaction to the right account and closing the books on time become the bottleneck, and month-end turns into cleanup.

Ramp Accounting Automation auto-codes your card and bill transactions to your chart of accounts the moment they post. Ramp's Accounting Agent fills in GL, department, class, and location fields with no rules to build, then surfaces only the exceptions that need your review. You keep post-to-ERP authority the whole time.

With Ramp's Accounting Agent, double-entry bookkeeping at volume looks like this:

  • Code more transactions automatically: Auto-code 3.5x more transactions than rules-only tools, so your team spends its time on judgment calls.
  • Close your books 3x faster: Routine, in-policy spend moves from swipe to ERP without a manual handoff.
  • Review only what needs you: Smart Review and Suggested Actions flag the exceptions instead of every line.
  • Keep a full audit trail: Every coding decision shows a confidence level and rationale, and you can override it.
  • Sync to your ERP in real time: Coded transactions flow into your general ledger as they're marked ready.

Try an interactive demo to see why more than 85,000 businesses use Ramp to save a year’s worth of work every hour.

Try Ramp for free
Share with
Richard Moy•Finance Writer, Ramp
Richard Moy has written extensively about procurement and vendor management topics for companies like BetterCloud, Stack Overflow, and Ramp. His writing has also appeared in The Muse, Business Insider, Fast Company, Mashable, Lifehacker, and more.
Ramp is dedicated to helping businesses of all sizes make informed decisions. We adhere to strict editorial guidelines to ensure that our content meets and maintains our high standards.

FAQs

Every debit must have an equal credit. Under the traditional approach, the golden rules are: Debit what comes in and credit what goes out (real accounts), debit the receiver and credit the giver (personal accounts), and debit expenses and losses while crediting income and gains (nominal accounts).

Not once you learn which accounts increase with debits and which with credits. The DEALER cheat table covers most transactions, and accounting software handles the posting.

Single-entry records each transaction once and mainly tracks cash. Double-entry records it in at least two accounts, tracks assets and liabilities, and supports full financial statements.

Yes. QuickBooks and other mainstream accounting software use double-entry accounting behind the scenes, even when you enter a transaction once.

No single person. Italian merchants used it by the late 13th century, and Luca Pacioli first published a detailed description in 1494, which is why he's often called the father of accounting.

“I assumed I would have to choose between speed and control. What I found is that you can have both. A well-designed system takes friction out, for the finance function and for everyone else.”

Justin Webster

CFO, Denver Broncos

What it takes to pay for an NFL season: inside the Denver Broncos’ finance rebuild

“A well-run district should not have to choose between getting work done at the school site and keeping control of the dollars behind it. We're not hiring more people to do more jobs, so we have to be smarter about the process. With Ramp, the purchase, the receipt, and the record stay together from the start. ”

Nick Brizeno

Director of Purchasing, San Marcos Unified School District

San Marcos Unified gives maintenance teams room to act — and finance a clear record of their spend across 19 schools

“In senior living, scale only works if the communities still feel personal. We needed the back office to carry more of the complexity, not the people serving residents. Ramp helped us build that infrastructure, so the experience in the community could stay human.”

Ryan Cole

CFO, Agemark Senior Living

How the family-owned business behind 28 senior living communities rebuilt finance to close 19 days faster

“AI is moving faster than the finance context around it. Prices change, models change, and the value is not always obvious from an invoice. We needed enough detail to know which bets deserved more investment — and which ones did not.”

Greg Cooley

Controller, AngelList

From purchase requests to 409 API keys: How AngelList puts spend under owner-level control

“Invoices, cards, tokens. The categories change but the principle doesn't: know where the money is going, remove the work around it, and make sure the spend is worth it.”

Maciej Mylik. Finance

ElevenLabs

ElevenLabs speaks more than 70 languages but its money speaks the same one

“We weren’t trying to retrofit an old finance system. We had a blank canvas, and Ramp gave us the foundation to build a global finance function of the future.”

Justin Dourado

Director of Finance, Othership

How Othership’s first finance hires built one operation across Canada and the U.S.

“There's just no surprises anymore. No more waiting two months to find out how a job did. We know how it's doing as it's happening.”

Erich Kuss

Financial Systems Manager, Infinity Home Services

Infinity Home Services prevents the margin leak nobody can see from the ground, so its 20+ local companies build what they bid

“More token spend isn’t proof that AI is working. Less isn’t proof that it isn’t. What matters is whether we’re buying the right level of intelligence for the work. Ramp lets us make that judgment in the same place we manage every other type of spend.”

Cody Nutt

Senior Director of Business Systems, Daxko

How Daxko put every AI token on the same operating system as every dollar