Skip to content
Tutorials Center
My learning

Topics

Lesson 4 of 38 ยท Getting Started

Accounting Fundamentals and Double Entry

Learn the accounting basics Tally Prime relies on: assets, liabilities, income and expenses, the golden rules of debit and credit, and a balanced trial balance.

Tally will not make you an accountant, and it does not need to: it needs you to tell it each transaction correctly. The only thing it will never accept is an unbalanced voucher. This lesson gives you the accounting vocabulary and the debit/credit rules so that every later lesson, from creating ledgers to reading a balance sheet, makes sense. If you already know double entry, skim the rules and try the stand-ins.

The five kinds of account

Every ledger in Tally ends up in one of five families:

  1. Assets: what the business owns or is owed (cash, bank, stock, furniture, money customers owe).
  2. Liabilities: what the business owes (loans, money owed to suppliers, taxes payable).
  3. Capital (equity): what the owner has put in, plus retained profit.
  4. Income: what the business earns (sales, interest received, commission).
  5. Expenses: what the business spends (purchases, rent, salaries, electricity).

The accounting equation ties them together: Assets = Liabilities + Capital. Income increases capital and expenses decrease it, which is why profit shows up in the balance sheet.

Debit and credit

Debit (Dr) means the left side of an account and credit (Cr) the right side. They are not "good" and "bad": they are just directions. What they do depends on the account family:

Family Increase with Decrease with Normal balance
Asset Debit Credit Debit
Expense Debit Credit Debit
Liability Credit Debit Credit
Capital Credit Debit Credit
Income Credit Debit Credit

Double entry means every transaction has at least one debit and at least one credit and their totals are equal. Pay 15,000 rent in cash: rent expense goes up (debit Rent) and cash goes down (credit Cash).

The golden rules

Traditional textbooks, and many Indian courses, express the same logic as three rules by account type:

Type Rule Example
Personal (people and organisations) Debit the receiver, credit the giver Sold goods on credit to Mehta: debit Mehta
Real (things you own) Debit what comes in, credit what goes out Cash comes in: debit Cash
Nominal (income and expenses) Debit expenses and losses, credit incomes and gains Rent paid: debit Rent

Use whichever method you find easier, but know both: Tally's own screens speak in terms of Dr and Cr on ledgers and groups, and the groups ("Sundry Debtors", "Direct Expenses") already carry the family.

Five account families

Assets Debit to increase.
Liabilities Credit to increase.
Capital Credit to increase.
Income Credit to increase.
1 / 2

Worked example

Let us follow a tiny business through four transactions. Each is a Tally voucher in its own right.

  1. The owner invests 100,000 in cash. Dr Cash 100,000, Cr Capital 100,000. (Receipt voucher.)
  2. The business buys goods worth 40,000 for cash. Dr Purchases 40,000, Cr Cash 40,000. (Payment voucher.)
  3. It sells goods worth 25,000 to Mehta on credit. Dr Mehta 25,000, Cr Sales 25,000. (Sales voucher.)
  4. Mehta pays 10,000. Dr Cash 10,000, Cr Mehta 10,000. (Receipt voucher.)

After these entries, Cash is 100,000 - 40,000 + 10,000 = 70,000 Dr, Mehta owes 15,000, Purchases are 40,000 Dr, Sales 25,000 Cr, Capital 100,000 Cr. The debits (70,000 + 15,000 + 40,000 = 125,000) equal the credits (25,000 + 100,000 = 125,000). That equality, listed by account, is the trial balance.

flowchart LR
    V1["Voucher 1<br/>Dr Cash, Cr Capital"] --> L["Ledger balances"]
    V2["Voucher 2<br/>Dr Purchases, Cr Cash"] --> L
    V3["Voucher 3<br/>Dr Mehta, Cr Sales"] --> L
    V4["Voucher 4<br/>Dr Cash, Cr Mehta"] --> L
    L --> T["Trial balance<br/>Dr total = Cr total"]

Each voucher posts its lines to ledgers; the trial balance lists every ledger's closing balance.

A stand-in: a tiny general ledger

Here is the worked example as code. It is a stand-in: the posting and the trial balance follow the same arithmetic as Tally's, nothing more.

Python Post vouchers and print a trial balance (stand-in)

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

A stand-in: classifying an entry

Beginners often debit the wrong side. This stand-in applies the family rules to tell you whether each line increases or decreases its account.

Python Does this line increase or decrease the account? (stand-in)

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Common mistakes

  • "Debit means money out." A debit to Cash means money comes in. Think "left side", not "decrease".
  • Treating a customer as income. Mehta is an asset (a receivable); Sales is the income.
  • Mixing up purchases and stock. In Tally's standard approach a purchase goes to a Purchase Accounts ledger and closing stock is brought in when the period is valued; see the inventory chapter.
  • Fixing errors by deleting numbers. Accountants correct with a new entry; Tally also lets you alter vouchers, which is discussed in Voucher Numbering, Editing and Controls.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. You pay rent in cash. Which entry is correct?

    Rent is an expense, which increases with a debit; cash is an asset that decreases with a credit.
  2. 2. Which family increases with a credit?

    Liabilities, capital and income increase with credits; assets and expenses with debits.
  3. 3. What must be true of every voucher?

    That equality is the heart of double entry, and Tally enforces it.
  4. 4. A customer who owes you money is recorded as what?

    The money owed to you is an asset; the sale that created it is the income.

Summary

  • Accounts fall into assets, liabilities, capital, income and expenses; assets = liabilities + capital.
  • Assets and expenses increase with debits; liabilities, capital and income increase with credits.
  • Every voucher has equal total debits and credits; the trial balance lists closing balances and also balances.
  • Personal, real and nominal golden rules are an alternative way to choose the side.

Next: Creating a Company