Skip to content

Double-entry bookkeeping

Each transaction changes at least two accounts. Pay CHF 1,500 of rent by bank transfer, and your rent expense goes up while your bank balance goes down by the same amount.

Each entry has a debit side and a credit side, and both always add up to the same total. Add up every entry of the year and the debits equal the credits. From there, the balance sheet and the income statement follow.

The Code of Obligations doesn't use the word "double-entry". It requires legal entities such as an AG or a GmbH, and sole proprietorships or partnerships with at least CHF 500,000 in revenue in the last fiscal year, to keep full accounts and prepare a balance sheet and an income statement (Art. 957, Art. 959a and Art. 959b CO). Double-entry is how you get there.

Below CHF 500,000, a sole proprietorship or partnership only needs to record its income, expenses and assets. It can still choose double-entry, and the principles of proper bookkeeping apply either way.

Debit is the left side of an account, credit the right. Debit shows where an amount goes, credit where it comes from. Which side increases an account follows from the balance sheet: assets sit on the left, liabilities and equity on the right.

Account typeIncreases inDecreases inExamples
AssetsDebitCreditBank, debtors, IT equipment
LiabilitiesCreditDebitCreditors, VAT due, loans
EquityCreditDebitShare capital, retained earnings
ExpensesDebitCreditRent, salaries, depreciation
IncomeCreditDebitSales of goods and services

A booking entry describes a transaction in one line: which accounts it changes, and by how much.

Example: a client pays an invoice of CHF 2,162. The money goes to the bank (debit) and comes from the open invoice, the debtors (credit). The entry reads "Bank to debtors, 2,162": debit first, then credit.

The entries of a typical month, with 8.1 % VAT:

TransactionDebitCreditCHF
Invoice of CHF 2,000 + VATDebtorsSales2,000.00
DebtorsVAT due162.00
The client paysBankDebtors2,162.00
Rent paidRentBank1,500.00
Laptop bought for CHF 1,500 + VATIT equipmentBank1,500.00
Input taxBank121.50

The invoice is a compound entry: one transaction, several lines. Debits and credits still match, at CHF 2,162.

After these entries, the bank is down CHF 959.50 (2,162 in, 3,121.50 out), the company owns a laptop worth CHF 1,500, owes CHF 162 of VAT and can deduct CHF 121.50 of input tax.

The same entries appear in two places:

  • Journal: every entry, in date order. It's where you book.
  • Ledger: the same entries, sorted by account. It shows how each account's balance came to be. At the end of the year, asset, liability and equity accounts carry over to the next year. Income and expense accounts start from zero again: their balance is the profit or loss, which goes to equity.

The Code of Obligations sets the principles of proper bookkeeping (Art. 957a CO):

  • Transactions are recorded completely, truthfully and systematically.
  • Every entry is backed by a voucher: an invoice, a receipt, a bank statement, on paper or electronic.
  • Accounts are clear, suited to the size of the business, and verifiable.
  • Accounts are kept in Swiss francs or the currency that matters for the business, in a national language or English.

Accounting records, vouchers and the annual report are kept for ten years (Art. 958f CO).

Most entries book themselves:

The rest you book in the journal: pick a VAT rate and nullish adds the VAT lines. An entry can only be saved when debit and credit match. Your chart of accounts is ready from day one, and the account ledger shows every account entry by entry.

Your accounts stay verifiable, as Art. 957a asks. Entries are numbered one after the other, and each one links to the invoice or bank movement behind it. Entries booked by an invoice, a reconciliation or a closing are locked, and a closed year can't be reopened. Your auditor gets read-only access: everything visible, nothing changeable.

Why does the balance sheet always balance?

Section titled “Why does the balance sheet always balance?”

Every entry adds the same amount in debit and in credit. However many entries you book, the totals stay equal, and so do assets on one side and liabilities plus equity on the other.

Can I keep double-entry accounts in Excel?

Section titled “Can I keep double-entry accounts in Excel?”

The law doesn't forbid it, as long as the principles above are met. In practice, a spreadsheet won't stop an unbalanced entry or keep the ledger in sync with the journal.

Can I keep my accounts with an AI tool I built myself?

Section titled “Can I keep my accounts with an AI tool I built myself?”

You can vibe-code it: the law doesn't prescribe a tool. But your tool has to follow the principles above: every entry complete and backed by a voucher, everything verifiable, and the data readable for ten years. You should also ask yourself questions like: where's the data? Who has access? Are there backups? Is the data encrypted? Where does it go, for example to an AI?

Want to work with your AI? Connect it to nullish through the MCP server: the AI does the work, nullish keeps the rules. Your data is stored in Switzerland, with nightly encrypted backups. What your own agent reads does go to its provider, though. If everything should stay in the country, use the built-in assistant: its model runs in Switzerland too.

My sole proprietorship is under CHF 500,000. Should I bother?

Section titled “My sole proprietorship is under CHF 500,000. Should I bother?”

You don't have to. But double-entry gives you a real balance sheet and income statement, which help when you apply for a loan, grow past the threshold, or switch to a GmbH.

Not only your auditor. The tax administration during a VAT audit, the AHV compensation office during an employer audit, or the tax office may also want to see entries and vouchers. That's why every entry has to be traceable and backed by a voucher. In nullish, give them read-only access: everything visible, nothing changeable.