Chart of accounts: how to build one for a trading business (levels, numbering, sample codes)

A practical way to design a flexible chart of accounts for a trading business: the number of levels, the numbering logic, and a ready table of codes to build on.

7 min read · Beginner · Last reviewed: October 2026

Why the chart of accounts deserves your time

The chart of accounts is the ordered list of every account in which the business's transactions will be recorded. If it is designed well, the financial statements, management reports and VAT return come out easily. If it is designed in a hurry, a year later the accountant faces duplicate accounts such as “Miscellaneous expenses”, “Other expenses” and “Sundries”, and nobody knows what is inside them.

The goal is for the chart to answer management's questions: How much do we spend on transport? What is the balance of each bank? How much profit did each branch make? And, at the same time, to meet the requirements for preparing statements under the international standards endorsed by the Saudi Organization for Chartered and Professional Accountants (SOCPA).

Levels: from general to detailed

Four levels are common in small and medium-sized trading businesses:

  1. Level 1 (main): the major groups: assets, liabilities, equity, revenue, costs and expenses.
  2. Level 2 (sub-group): such as current and non-current assets.
  3. Level 3 (summary): such as cash and cash equivalents, inventory, accounts receivable.
  4. Level 4 (detail): the account in which entries are actually recorded, such as “Al Rajhi Bank - current account” or “Jeddah branch cash”.

The key rule: entries are recorded at the lowest level only, and the higher levels add up the balances beneath them.

Numbering logic

Hierarchical numbering makes the code show where the account sits. We suggest the following layout:

  • One digit for level 1: 1 assets, 2 liabilities, 3 equity, 4 revenue, 5 cost of sales, 6 operating expenses.
  • One additional digit for level 2, two digits for level 3, and two digits for level 4.

This makes a detail account code six digits long, such as 110101. Leaving two digits for each lower level allows 99 accounts under each group, which is more than enough for most businesses. Leave gaps in the numbering (such as 10, 20, 30) if you expect to add accounts between them later.

Sample codes for a trading business

CodeAccount nameLevel
1Assets1
11Current assets2
1101Cash and cash equivalents3
110101Main cash box4
110102Cash advance - purchasing4
110111Bank (A) - current account4
1102Accounts receivable3
1103Inventory3
1104VAT - input3
12Non-current assets2
1201Property and equipment3
1202Accumulated depreciation3
2Liabilities1
2101Accounts payable3
2102VAT - output3
2103Accrued expenses3
2201End-of-service benefit provision3
3Equity1
3101Capital3
3102Retained earnings3
4Revenue1
4101Sales3
4102Sales returns and discounts3
5Cost of sales1
6Operating expenses1
6101Salaries and wages3
6102Rent3
6103Electricity, water and telecommunications3

Example of use: a cash sale of 4,600 SAR including VAT is recorded as a debit to 110101 of 4,600, a credit to a detail account under 4101 of 4,000, and a credit to a detail account under 2102 of 600.

Recurring mistakes and how to avoid them

  • Opening an account for each customer in the chart: it is better to have one control account for customers, with each customer's details in a subsidiary ledger. The same applies to suppliers.
  • Mixing the branch or department into the account: instead of “Riyadh branch salaries” and “Dammam branch salaries”, use one salaries account with a cost center for each branch.
  • A large “Miscellaneous” account: set a limit; if its balance exceeds a small percentage of expenses, that is a sign you need a new account.
  • Separate tax accounts: give output VAT and input VAT their own accounts so you can reconcile them with the return easily.
Before approval: test the chart on a full month of actual transactions, then print the income statement and the statement of financial position. If you need manual adjustments to produce the statements, the chart needs to be reorganized.

Linking the chart to reports and cost centers

A good chart does not serve the financial statements alone; it is built together with a clear map of what will appear in each report. For every account at the summary level, define three things:

  • Its place in the statements: Does it appear in the statement of financial position or the income statement? And under which line item? For example, “Freight-out to customers” appears under selling and distribution expenses, while “Freight-in from suppliers” is added to the cost of inventory.
  • Its nature: normally a debit or a credit balance, so that any opposite balance alerts you to a possible error.
  • Whether it needs a cost center: operating expenses usually need the branch or department specified, while bank accounts do not.

A practical example: a business has three branches, and the monthly rent expense is 15,000 SAR for Riyadh, 9,000 for Jeddah and 6,000 for Dammam. Instead of three accounts, the whole amount is recorded in rent account 6102 with the cost center selected for each branch. The result: the income statement shows rent of 30,000 SAR on a single line, and the branch report shows each branch's share separately. When a fourth branch opens, creating a new cost center is enough, without touching the chart.

Also put in place a written policy on who may add a new account and what information is required when adding one, so that the chart does not turn into a random list after a few years.

Frequently asked questions

How many levels do I need for a small business?
Three to four levels are usually enough. Adding levels without need complicates data entry and reporting.
Can the chart be changed after go-live?
Accounts can be added easily. Changing codes or merging accounts that have transactions is best done at the start of a financial year, with the mapping between old and new documented.
Where do I put cost of sales?
In a separate group before operating expenses, so that gross profit appears directly in the income statement.
General information for guidance only. Regulations and rates may change; the final reference is the official authority and your accounting advisor.

Apply what you read: Financial statements from the trial balance

Upload the trial balance and get the income statement, financial position, cash flows and changes in equity, with a KPI dashboard, recommendations and estimated Zakat.

Related articles