Accounting Basics

This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.

Every company has to answer two questions at any moment: what does it own and owe, and did it earn money or lose money over the last month or year? Accounting is the discipline that keeps the records needed to answer them, and bookkeeping is its daily routine of writing every business event down in a fixed way. This page teaches that routine from zero, with no SAP knowledge and no accounting background assumed, because every SAP Finance page of this site builds on it. The rules here are general accounting rules and are the same on any release of any system; the last section shows how SAP S/4HANA 2025 FPS02 (on premise and Private Edition) and Cloud Public Edition 2608 apply them. The money amounts are made up (Example Trading Co., company code EX01, leading ledger 0L) and rounded so that you can check every sum by hand.

Before you read

Key terms

  • Double-entry bookkeeping: recording every business event in at least two accounts so that the books always balance.

  • Debit: the left side of an account.

  • Credit: the right side of an account.

  • T-account: a drawing of one account as a letter T, debits on the left and credits on the right.

  • Asset: something the company owns or controls that is expected to bring future benefit, such as cash, stock or equipment.

  • Liability: something the company owes, such as a loan or an unpaid supplier invoice.

  • Equity: what is left for the owners after the liabilities are subtracted from the assets.

  • Revenue: the value of goods and services sold in a period.

  • Expense: the cost used up to earn the revenue of a period.

  • Balance sheet: the statement of assets, liabilities and equity at one date.

  • Profit and loss statement: the statement of revenue and expenses over a period, also called the income statement.

  • Accrual: recording a cost or a revenue in the period it belongs to, whether or not money has moved yet.

  • Journal entry: one posting that records one business event, with equal debits and credits.

  • General ledger: the collection of all accounts of a company.

  • Trial balance: a list of all account balances used to check that total debits equal total credits.

Why companies keep books

A company keeps books for four reasons. Owners and managers need to know whether the business makes money. Banks and investors want a reliable picture before they lend or invest. Tax authorities require records of income and costs. And in most countries the law requires a company to prepare financial statements by fixed rules; for example, the IFRS Conceptual Framework sets out definitions of an asset, a liability, equity, income and expenses. Because many readers depend on the books, they must be complete, consistent and easy to check. Double-entry bookkeeping, described next, was designed to make mistakes visible.

The five kinds of account

All business events are recorded in accounts, and every account belongs to one of five kinds. Two ways of looking at the company use them.

Kind What it is Example for Example Trading Co.

Asset

Something owned that has future benefit

Bank balance, receivables from customers, goods in the warehouse, equipment

Liability

Something owed

Bank loan, unpaid supplier invoices (payables), salaries earned but not yet paid

Equity

The owners' claim: what they put in plus profit kept in the business

Share capital, retained earnings

Revenue

Value earned by selling

Sales of goods

Expense

Cost used up in the period

Cost of goods sold, rent, salaries, depreciation

The first three kinds describe the company at one moment, like a photograph, and make up the balance sheet. The last two describe what happened between two moments, like a film, and make up the profit and loss statement. The difference between revenue and expenses is the profit (or loss) of the period, and that profit flows into equity, which is what joins the two statements.

The accounting equation

Think of a house bought for 300,000 with a mortgage of 200,000. The house is an asset worth 300,000. The mortgage is a liability of 200,000. What is left for the owner, 100,000, is equity. Every company has the same structure: assets equal what is owed to outsiders plus what is owed to the owners.

Equity grows when owners invest and when the company earns profit, so equity can be split further:

Putting both together gives the expanded equation, which the worked month below uses to check the books:

Every business event changes the two sides in a way that keeps the equation true. If the company buys equipment for cash, one asset (equipment) rises and another asset (cash) falls by the same amount, so both sides are unchanged. If it borrows 20,000 from the bank, assets rise by 20,000 (cash) and liabilities rise by 20,000 (loan).

Debit and credit

Debit and credit are the two sides of an account, nothing more. Debit is the left side and credit is the right side. Despite everyday speech, a credit is not good and a debit is not bad. The meaning comes from the kind of account.

  • Assets and expenses increase on the debit side and decrease on the credit side.

  • Liabilities, equity and revenue increase on the credit side and decrease on the debit side.

Kind of account Debit means Credit means

Asset

increase

decrease

Expense

increase

decrease

Liability

decrease

increase

Equity

decrease

increase

Revenue

decrease

increase

The rule that makes the books self-checking is the one of double entry. Every event is a journal entry of at least two lines, and the debits of the entry equal its credits. If you debit an asset account and the entry is complete, a credit must exist somewhere else. This is also why the equation holds: a debit to an asset on the left side of the equation is always matched by a credit to another asset (left side), a liability, equity or revenue (right side).

T-accounts

A T-account draws an account as the letter T: the account name on top, debits on the left, credits on the right. The balance is the difference between the two sides. Here is the first event of the example, the owners paying 50,000 into the company bank account, as two T-accounts:

Bank (asset) Share capital (equity)

Debit

Credit

Debit

Credit

50,000

50,000

Bank is debited because an asset increases; share capital is credited because equity increases. Debit 50,000 equals credit 50,000. When the company later pays 9,600 for equipment, bank receives a credit of 9,600 on the right, and the bank balance becomes 50,000 - 9,600 = 40,400 on the debit side. An account that has more on the debit side has a debit balance (typical for assets and expenses); more on the credit side gives a credit balance (typical for liabilities, equity and revenue).

The path from event to statement

A business event reaches the financial statements in the same steps in every company, on paper or in SAP:

flowchart LR A[Business event: invoice, payment, payroll] --> B[Journal entry: debits = credits] B --> C[General ledger: accounts with balances] C --> D[Trial balance: total debits = total credits] D --> E[Balance sheet] D --> F[Profit and loss statement]

The journal entry records the event with its date and its lines. The general ledger collects all entries by account. The trial balance lists the balance of every account at a date and proves that debits equal credits. The two statements are then built from the same balances: asset, liability and equity accounts feed the balance sheet and revenue and expense accounts feed the profit and loss statement.

Accruals and depreciation

Cash is not the same as profit. Under the accrual principle, a revenue is recorded when it is earned and a cost when it is incurred, whatever the date of the payment. Three situations show the difference, and all appear in the worked month.

  • Sale on credit. The company delivers goods worth 15,000 and the customer pays later. The revenue belongs to this month, so a receivable (an asset) is booked instead of cash.

  • Cost incurred, not yet paid. Employees worked all month but are paid next month. The salary expense belongs to this month, so a liability for the unpaid amount is booked (an accrued liability).

  • Cost spread over time. Equipment bought for 9,600 is used for years, not for one month. Instead of charging the whole price at once, the company charges a share each period; this is depreciation. With straight-line depreciation over 4 years (48 months) the monthly charge is 9,600 / 48 = 200. The depreciation expense is debited, and the credit goes to accumulated depreciation, an account that reduces the equipment asset without changing its purchase cost.

In formula form, the straight-line monthly charge is the cost divided by the useful life in months:

The opposite situation, paying for something that belongs to later periods, such as a year of insurance paid in advance, is a prepayment: an asset first, an expense gradually. The month below has no prepayment, so it is only described here.

Worked month: Example Trading Co.

Example Trading Co. (company code EX01, leading ledger 0L) starts its first month with no balances. All amounts are in EUR. Ten events follow, each with its journal entry. The account names are descriptive; a real chart of accounts gives each one a number.

# Event Account Debit Credit

1

The owners invest cash in the company

Bank

50,000

Share capital

50,000

2

The company takes a bank loan

Bank

20,000

Bank loan

20,000

3

Goods are bought on credit from a supplier

Inventory

12,000

Accounts payable

12,000

4

Equipment is bought for cash

Equipment

9,600

Bank

9,600

5

Goods are sold on credit to a customer

Accounts receivable

15,000

Sales revenue

15,000

6

The goods sold, bought for 9,000, leave the warehouse

Cost of goods sold

9,000

Inventory

9,000

7

The supplier invoice of event 3 is paid

Accounts payable

12,000

Bank

12,000

8

The customer pays 10,000 of the 15,000

Bank

10,000

Accounts receivable

10,000

9

Rent is paid in cash

Rent expense

2,000

Bank

2,000

10

Month end: salaries of 3,000 are earned but unpaid, and the equipment depreciates by 200

Salaries expense

3,000

Depreciation expense

200

Accrued liabilities, accumulated depreciation

3,000 + 200

Event 10 combines two entries for brevity. As separate entries they are: debit salaries expense 3,000 and credit accrued liabilities 3,000; and debit depreciation expense 200 and credit accumulated depreciation 200. Each entry is balanced and the total of the debit column (all events) equals the total of the credit column.

Events 5 and 6 are two entries for one sale. The first records the revenue at the selling price, the second the cost of the goods at the purchase price. The difference, 15,000 - 9,000 = 6,000, is the gross margin.

The ledger as T-accounts

Posting every line to its account gives the T-accounts below. Each number carries the event number in front. The balance is shown under each pair.

Bank (asset) Accounts receivable (asset)

Debit

Credit

Debit

Credit

1: 50,000

4: 9,600

5: 15,000

8: 10,000

2: 20,000

7: 12,000

8: 10,000

9: 2,000

80,000

23,600

15,000

10,000

Balance 56,400 debit

Balance 5,000 debit

Inventory (asset) Accounts payable (liability)

Debit

Credit

Debit

Credit

3: 12,000

6: 9,000

7: 12,000

3: 12,000

12,000

9,000

12,000

12,000

Balance 3,000 debit

Balance 0

The remaining accounts have only one line each, or only one side, so their balances are the amounts themselves:

Account Debit Credit Balance

Equipment (asset)

9,600

9,600 debit

Accumulated depreciation (asset, reduces equipment)

200

200 credit

Bank loan (liability)

20,000

20,000 credit

Accrued liabilities (liability)

3,000

3,000 credit

Share capital (equity)

50,000

50,000 credit

Sales revenue

15,000

15,000 credit

Cost of goods sold (expense)

9,000

9,000 debit

Rent expense

2,000

2,000 debit

Salaries expense

3,000

3,000 debit

Depreciation expense

200

200 debit

The trial balance

The trial balance lists every account with its final balance on the side where it stands:

Account Debit Credit

Bank

56,400

Accounts receivable

5,000

Inventory

3,000

Equipment

9,600

Accumulated depreciation

200

Accounts payable

0

Bank loan

20,000

Accrued liabilities

3,000

Share capital

50,000

Sales revenue

15,000

Cost of goods sold

9,000

Rent expense

2,000

Salaries expense

3,000

Depreciation expense

200

Total

88,200

88,200

The debit total is 56,400 + 5,000 + 3,000 + 9,600 + 9,000 + 2,000 + 3,000 + 200 = 88,200. The credit total is 200 + 20,000 + 3,000 + 50,000 + 15,000 = 88,200. They agree, so no event was posted one-sided. A trial balance does not prove that every entry went to the right account, only that debits and credits match.

The profit and loss statement

Revenue and expense accounts give the result of the month:

Item EUR

Sales revenue

15,000

Cost of goods sold

-9,000

Rent expense

-2,000

Salaries expense

-3,000

Depreciation expense

-200

Profit of the month

800

Expenses total 9,000 + 2,000 + 3,000 + 200 = 14,200, and 15,000 - 14,200 = 800. Note that Example Trading Co. has earned a profit of 800 although its customer has paid only 10,000 of the 15,000: the revenue was recorded when it was earned.

The balance sheet

The profit of 800 is added to equity (as retained earnings), and the asset, liability and equity accounts form the balance sheet at the end of the month:

Assets EUR Liabilities and equity EUR

Bank

56,400

Bank loan

20,000

Accounts receivable

5,000

Accrued liabilities

3,000

Inventory

3,000

Share capital

50,000

Equipment, net (9,600 - 200)

9,400

Retained earnings (profit of the month)

800

Total assets

73,800

Total liabilities and equity

73,800

Total assets are 56,400 + 5,000 + 3,000 + 9,400 = 73,800. Liabilities are 20,000 + 3,000 = 23,000 and equity is 50,000 + 800 = 50,800, together 73,800. The same check in the notation of the expanded equation, with the numbers filled in:

Both sides are 73,800. The profit and loss statement is therefore not separate from the balance sheet: its result is the part of equity that the month added.

The same rules in SAP

SAP S/4HANA does not change any of the rules above. The general ledger is the set of all G/L accounts of a company code, and every posting is a journal entry with a header, which holds information valid for all items, and items, each with an account, an amount and a debit or credit assignment. The system accepts the entry only when total debits equal total credits; the SAP Fiori app Post General Journal Entries shows a balance indicator while you enter lines. A journal entry is posted at company code level, and only G/L accounts of the operating chart of accounts assigned to that company code are available. Most postings are not typed by hand: a goods receipt, a vendor invoice or a customer payment creates its journal entry automatically, and manual entries are used for operational adjustments such as an accrual or depreciation correction. The later Finance pages of this site (Finance Overview, Organizational Units in Finance, General Ledger Accounting) show how SAP stores these entries in the Universal Journal and how its accounts, ledgers and company codes are set up. Posting itself needs an SAP system and is not run here.

Common mistakes

  • Reading debit as decrease and credit as increase. The effect depends on the kind of account: debit increases an asset and an expense, and decreases a liability, equity and revenue.

  • Treating cash as profit. In the worked month the bank balance is 56,400 largely because of the owners' capital and the loan, while the profit is only 800.

  • Charging a long-lived asset to expense at once. Equipment is depreciated over its useful life, 200 a month in the example.

  • Believing a balanced trial balance proves the books are right. It only proves that debits equal credits.

  • Forgetting the accrual. Leaving out the unpaid salaries of 3,000 would raise the profit to 3,800 and understate liabilities.

Summary

  • Companies keep books to know their result, to inform lenders and investors, to pay tax and to meet legal reporting duties.

  • There are five kinds of account: assets, liabilities, equity, revenue and expenses. The first three form the balance sheet, the last two the profit and loss statement.

  • The accounting equation holds after every event, and equity includes profit.

  • Debit is the left side and credit the right side. Debit increases assets and expenses, credit increases liabilities, equity and revenue.

  • Double entry means every journal entry has equal debits and credits, and the trial balance checks the total.

  • Accruals record a revenue or cost in the period it belongs to; depreciation spreads the cost of equipment over its life.

  • In the worked month Example Trading Co. earns 800, with total assets of 73,800.

  • SAP applies the same rules: balanced journal entries on G/L accounts of a company code, mostly posted automatically.

Try it

To do this by hand, follow the guide Post Balanced Journal Entries in a Teaching Ledger: it posts balanced journal entries in a teaching ledger.