Blog · Accounting basics

Double-entry accounting basics: debit, credit and the golden rules

Quick answer: Double-entry accounting records every transaction in at least two accounts: one is debited and another is credited with the same total. The golden rules tell you which side each account goes on. TallyBook will not save a voucher until total debit equals total credit.

Every accounting package used in India, from TallyPrime to TallyBook, is built on one idea that is more than five hundred years old: double entry. Once you understand it, ledgers, vouchers, the Trial Balance and the Balance Sheet all start to make sense. This guide explains it in plain words, with worked examples you can type into TallyBook.

The idea in one line

Every transaction has two sides. When you pay ₹8,000 rent from your bank, the rent account goes up and your bank balance goes down by the same ₹8,000. Accounting records both sides: one account is debited (Dr) and the other is credited (Cr). Because both sides are always equal, the books as a whole always balance.

One transaction, two equal sides Pay rent ₹8,000 by bank DEBIT (Dr) Rent (expense goes up) ₹8,000 CREDIT (Cr) Bank (asset goes down) ₹8,000 Dr = Cr TallyBook saves the voucher only when both totals match.

Debit and credit are sides, not good or bad

Many people think “credit” means money coming in. In accounting it simply means the right-hand side of an account. What a debit or credit does depends on the type of account:

Type of accountA debit…A credit…Examples in TallyBook
Assetsincreases itdecreases itCash, bank, debtors, stock, machinery
Expensesincreases itdecreases itPurchases, rent, salary, electricity
Liabilitiesdecreases itincreases itCreditors, loans, GST payable
Capitaldecreases itincreases itOwner's capital, reserves
Incomedecreases itincreases itSales, commission received, interest received

The three golden rules

Indian commerce textbooks teach the traditional golden rules. They classify accounts into three kinds and give one rule for each:

Kind of accountWhat it coversRule
PersonalPeople and organisations: customers, suppliers, banks, the ownerDebit the receiver, credit the giver
RealThings you own: cash, stock, furniture, buildingsDebit what comes in, credit what goes out
NominalExpenses, losses, incomes and gainsDebit all expenses and losses, credit all incomes and gains

The table in the previous section (the “modern” approach) and the golden rules always give the same answer. Use whichever you find easier.

Five worked examples

Take a new shop, Mehta Stores. GST is left out here to keep the numbers simple; a GST invoice just adds tax ledgers to the same idea.

#TransactionDebitCreditWhy
1Owner brings ₹1,00,000 cash into the businessCash ₹1,00,000Capital ₹1,00,000Cash comes in (real); the owner is the giver (personal)
2Buys goods on credit from Sharma Traders, ₹40,000Purchase ₹40,000Sharma Traders ₹40,000Purchase is an expense; Sharma Traders is the giver
3Sells goods for cash, ₹25,000Cash ₹25,000Sales ₹25,000Cash comes in; sales is income
4Pays shop rent by bank, ₹8,000Rent ₹8,000Bank ₹8,000Rent is an expense; money goes out of the bank
5Pays Sharma Traders by bank, ₹40,000Sharma Traders ₹40,000Bank ₹40,000Sharma Traders receives the money

Add up every debit (₹2,13,000) and every credit (₹2,13,000): they match. That equality is exactly what the Trial Balance checks for the whole year.

How TallyBook keeps every voucher balanced

In TallyBook you never write a debit or credit on its own. You record a voucher, and every voucher carries both sides. The checks are built into the core of the program, so they apply whether you type an entry, import one from Excel or bring it in from Tally XML:

  • Total debit must equal total credit. If they differ, TallyBook shows the message “Total debit must equal total credit” and does not save.
  • At least two ledger entries. A voucher with only one ledger is refused.
  • No zero amounts. Each line must carry an amount, stored in whole paise, so rounding cannot leave stray differences.
  • The date must fall inside your books period.
  • Contra vouchers accept only cash and bank ledgers.

On the Journal screen (F7) each line has a Dr or Cr side (type D or C), and a red “Difference” line under the entry shows how much is still unbalanced as you type. Payment (F5), Receipt (F6) and Contra (F4) use a simpler layout: you choose the cash or bank Account at the top and list the other ledgers below, and TallyBook fills in the other side for you.

TallyBook Journal voucher screen with lines marked Dr and Cr and the list of ledger accounts on the right
A Journal voucher (F7). Each line is marked Dr or Cr, and the voucher is saved with Ctrl+A only when both totals match.

Try example 4 yourself

  1. From the Gateway of Tally, press F5 to open a Payment voucher.
  2. In Account, choose your bank ledger. This is the credit side.
  3. Under Particulars, choose the Rent ledger. If it does not exist, press Alt+C in the list to create it under Indirect Expenses.
  4. Type 8,000 as the amount and add a narration such as “Shop rent for October”.
  5. Press Ctrl+A to accept. Rent is debited and the bank is credited with ₹8,000 each.
TallyBook Payment voucher with a bank account at the top and an expense ledger under Particulars
The Payment voucher (F5): pick the bank in Account, the expense under Particulars, then accept.

Next, read which voucher type to use for each transaction and how groups and ledgers are organised. If you are coming from TallyPrime, the keyboard shortcuts guide shows that the keys are the same.

Frequently asked questions

Is debit always good and credit always bad?

No. Debit and credit are only the two sides of an account. A debit increases assets and expenses; a credit increases liabilities, capital and income. A credit to your Sales account is good news.

Can a voucher have more than two ledgers?

Yes. A single voucher can debit one ledger and credit three, or any mix, as long as the debit total equals the credit total. A sales invoice with GST is a common example.

What happens if my entry does not balance in TallyBook?

The Journal screen shows the difference in red while you type. If you still try to accept, TallyBook shows the message “Total debit must equal total credit” and does not save the voucher.

Do I need to learn the golden rules if the software does the posting?

For invoices and simple payments the software picks the sides for you. For journals, adjustments and year-end entries you still decide the sides, so the rules are worth knowing.

Try it on your own books. TallyBook is free for Windows, macOS and Linux, with no registration. Download TallyBook and press F1 inside the app for the shortcut list.

TallyBook is not affiliated with Tally Solutions Pvt. Ltd. TallyPrime is a trademark of its owner.