- Payroll is recorded in three stages: recognising the expense (6171, 6174), paying net pay to employees (4432), and remitting amounts due to social security bodies (4441) and withheld income tax (IR) (4452).
- Gross salary is an expense; employee deductions (CNSS social security, AMO mandatory health insurance, IR) are liabilities owed to those bodies and the State, not income.
- Employer social contributions are an additional expense (6174) payable to CNSS.
- A balanced payroll entry is verified by checking: total debits in the payroll journal = gross pay + employer contributions.
Payroll is one of the largest and most sensitive cost items in a business: an accounting error means an error in payroll costs, in CNSS (social security) filings, and in withheld income tax (IR). Below is the complete accounting entry framework under the CGNC (Moroccan chart of accounts), applied to a worked example.
The accounts
| Account | Title | Nature |
|---|---|---|
| 61711 | Salaries and wages | Expense |
| 61712 | Bonuses and gratuities | Expense |
| 61713 | Allowances and miscellaneous benefits | Expense |
| 6174 | Social security charges (61741 social security contributions, 61742 pension contributions, 61743 mutual insurance, 61744 family benefits…) | Expense |
| 6176 | Miscellaneous social charges (group insurance, staff welfare) | Expense |
| 4432 | Remuneration payable to staff | Liability |
| 4441 | Caisse Nationale de la Sécurité Sociale (CNSS) | Liability |
| 4443 | Pension funds | Liability |
| 4452 | State — taxes, duties and similar charges (withheld IR) | Liability |
Worked example: one month’s payroll
An employee earns a gross monthly salary of MAD 12,000. Employee deductions: CNSS 268.80; AMO (mandatory health insurance) 271.20; IR 971.40. Employer contributions: CNSS 538.80; AMO 493.20; family allowances 768; vocational training tax 192 (totalling 1,992). Net pay: 12,000 − 268.80 − 271.20 − 971.40 = 10,488.60.
Entry 1: recording payroll (month-end)
| Account | Debit | Credit |
|---|---|---|
| 61711 Salaries and wages | 12,000.00 | |
| 61741 Social security contributions (employer share: CNSS, AMO, family allowances) | 1,800.00 | |
| 6174x Vocational training tax (per internal chart) | 192.00 | |
| 4432 Remuneration payable to staff | 10,488.60 | |
| 4441 CNSS (employee deductions 540.00 + employer share 1,800.00 + vocational training tax 192.00) | 2,532.00 | |
| 4452 State — IR withheld at source | 971.40 |
Check: debits 12,000 + 1,800 + 192 = 13,992; credits 10,488.60 + 2,532 + 971.40 = 13,992 ✔.
Entry 2: payment of net salary
| Account | Debit | Credit |
|---|---|---|
| 4432 Remuneration payable to staff | 10,488.60 | |
| 5141 Banks | 10,488.60 |
Entry 3: payment to CNSS (before the end of the following month)
| Account | Debit | Credit |
|---|---|---|
| 4441 Caisse Nationale de la Sécurité Sociale | 2,532.00 | |
| 5141 Banks | 2,532.00 |
Entry 4: payment of withheld IR
Remitted to the tax authorities in the month following the withholding (General Tax Code (CGI), art. 156 and 80):
| Account | Debit | Credit |
|---|---|---|
| 4452 State — taxes, duties and similar charges | 971.40 | |
| 5141 Banks | 971.40 |
Specific items
Bonuses, 13th-month pay, paid leave
- A year-end bonus granted to staff is an expense of that financial year (61712). If paid in the following year, it is accrued or recorded as a liability (account 4432 or another accrued staff expenses account) at year-end depending on the commitment.
- Unused accrued paid leave at year-end constitutes a social liability recognised as an accrued expense (tax deductibility follows the rules on provisions and accrued expenses; see the tax doctrine on paid leave).
Advances and prepayments
A salary advance is recorded as a receivable from staff, then deducted from the following payroll:
| Account | Debit | Credit |
|---|---|---|
| 3431 Advances and prepayments to staff | 2,000 | |
| 5141 Banks | 2,000 |
On the next payroll run, the deduction line reduces net pay payable by crediting the advances account.
Severance pay
Recorded as an expense in account 61765 “Notice and severance pay” (or a non-current expense account depending on its nature). Exempt from IR up to MAD 1 million (see tax-exempt allowances).
Company directors
The remuneration of non-shareholder managers is a deductible expense (61715); that of a sole trader is not a deductible expense (6177 outside corporate tax regimes).
At year-end: earned paid leave and bonuses not yet paid
Paid leave entitlements earned by staff at year-end represent a liability of that financial year. The Moroccan chart of accounts provides account 4437 “Personnel expenses payable” for this purpose, opened to allocate upcoming liabilities to the financial year. To avoid double counting the expense, the year-end entry is reversed in the following financial year, preferably at opening.
Worked example
Twenty employees have an average of 8 days of earned, unused paid leave at 31 December. The average daily wage is MAD 250 (6,500 ÷ 26). Employer contributions in the example above represent 16.6% of gross pay (1,992 ÷ 12,000).
| Item | Calculation | Amount (MAD) |
|---|---|---|
| Earned unused paid leave | 20 × 8 × 250 | 40,000 |
| Related employer contributions | 40,000 × 16.6% | 6,640 |
| Expense to allocate to the financial year | 46,640 |
| Timing | Account | Debit | Credit |
|---|---|---|---|
| 31 December (year-end entry) | 61711 Salaries and wages | 40,000 | |
| 6174 Social security charges | 6,640 | ||
| 4437 Personnel expenses payable | 46,640 | ||
| 1 January (reversal) | 4437 Personnel expenses payable | 46,640 | |
| 61711 Salaries and wages | 40,000 | ||
| 6174 Social security charges | 6,640 |
When leave is taken during the following financial year, the corresponding salaries are recorded in monthly payroll as expenses, while the 1 January reversal offsets the charge from the previous period: each financial year bears only the entitlements generated during that year. The same mechanism applies to a bonus earned in respect of the financial year but paid the following year (year-end bonus, profit-sharing, pro-rata 13th-month pay).
For tax purposes, the deductibility of these accrued expenses follows the rules governing expenses and provisions: a liability that is certain in principle and quantifiable in amount at year-end (see the article on tax-deductible provisions).
Reconciling payroll accounts at 31 December
| Account | Expected balance | Supporting reconciliation document |
|---|---|---|
| 4432 Remuneration payable to staff | Nil if all December salaries are paid before year-end | Salary bank transfer schedule |
| 4441 CNSS | December contributions only (filing due the following month) | December CNSS return schedule |
| 4443 Pension funds | December contributions | Contribution notice |
| 4452 State — withheld IR | December withheld IR payable the following month | Withholding tax on salaries return |
| 4437 Personnel expenses payable | Earned leave and bonuses | Detailed calculation per employee |
| 3431 Advances and prepayments to staff | Advances not yet deducted | Schedule of advances by employee |
An aged balance in any of these accounts indicates a cut-off error or an omitted payment; it must be resolved before year-end closing.
A three-employee payroll: the consolidated journal
For a small team, the accounting system records a single summary entry from the payroll journal. Consider three unmarried employees with no dependants, using the parameters from the article on calculating IR:
| Employee | Gross | Employee CNSS | Employee AMO | IR | Net pay |
|---|---|---|---|---|---|
| A | 10,000.00 | 268.80 | 226.00 | 601.56 | 8,903.64 |
| B | 8,000.00 | 268.80 | 180.80 | 276.75 | 7,273.65 |
| C | 6,000.00 | 268.80 | 135.60 | 16.23 | 5,579.37 |
| Total | 24,000.00 | 806.40 | 542.40 | 894.54 | 21,756.66 |
Employer contributions on the same payroll: CNSS (social benefits, 8.98% of salary capped at 6,000) 1,616.40; AMO (4.11%) 986.40; family allowances (6.40%) 1,536.00; vocational training tax (1.60%) 384.00. Total: 4,522.80.
| Account | Debit | Credit |
|---|---|---|
| 61711 Salaries and wages | 24,000.00 | |
| 61741 Social security contributions (employer share: CNSS, AMO, family allowances) | 4,138.80 | |
| Vocational training tax account | 384.00 | |
| 4432 Remuneration payable to staff | 21,756.66 | |
| 4441 CNSS (806.40 + 542.40 employee + 4,138.80 employer + 384.00 vocational training tax) | 5,871.60 | |
| 4452 State, IR withheld at source | 894.54 | |
| Totals | 28,522.80 | 28,522.80 |
The total cost to the employer is 24,000 + 4,522.80 = MAD 28,522.80, or 1.19 times gross pay. Credits to third-party payable accounts (4432, 4441, 4452) must be cleared on time: salaries on bank transfer, CNSS before the end of the following month, and IR in the month following withholding.
Allocating the expense by department
For management accounting, the payroll cost is allocated by department or activity (cost centres). If A works in sales, B in production and C in administration:
| Department | Gross | Employer contributions | Total cost |
|---|---|---|---|
| Sales (A) | 10,000 | 1,600 | 11,600 |
| Production (B) | 8,000 | 1,570 | 9,570 |
| Administration (C) | 6,000 | 1,353 | 7,353 |
| Total | 24,000 | 4,523 | 28,523 |
The employer contribution rate for A is proportionally lower because CNSS social benefits are capped at MAD 6,000. These figures feed into cost price calculations (see the article on cost price calculation) and staff cost management.
Reconciling payroll, accounting and tax/social filings
| Source | Total to verify |
|---|---|
| Payroll journal | Gross 24,000; net 21,756.66 |
| General ledger, account 61711 | 24,000 |
| CNSS return schedule | Employee contributions 1,348.80 + employer contributions 4,138.80, plus vocational training tax per schedule |
| Salary withholding tax return | Withheld IR 894.54 |
| Bank statement | Salary transfers 21,756.66; CNSS payment; IR payment |
A monthly reconciliation across these five sources ensures that the payroll register, the general ledger, and tax and social security filings tell the same story. The most frequent discrepancy stems from a CNSS adjustment or a late amendment to a payslip.
Employee departure: items to record
When an employee leaves, the final settlement covers several items that must be recorded:
| Item | Nature | Treatment |
|---|---|---|
| Final month’s salary, pro rata | Personnel expense | Standard payroll |
| Compensatory allowance for unused paid leave | Personnel expense | Subject to social contributions and IR |
| Pay in lieu of unworked notice | Personnel expense | According to nature (taxable/contributory) |
| Statutory severance or termination indemnity | Operating or non-current expense | Exempt from IR up to MAD 1,000,000 |
| Advances and loans to recover | Receivable from staff | Deducted from final settlement within statutory limits |
Severance pay is calculated under the Labour Code (see the article on severance pay calculation). The signed final settlement receipt (reçu pour solde de tout compte) is filed alongside the payslips. Any provision required is recognised in the financial year in which the departure is decided and notified (see the article on tax-deductible provisions).
Analytical payroll controls
| Control | Calculation | Alert threshold |
|---|---|---|
| Monthly payroll variation | Current month gross ÷ prior month gross − 1 | More than 3% without explanation |
| Employer contribution rate consistency | Employer contributions ÷ gross | Variance exceeding 1 percentage point from average |
| Paid headcount ÷ registered headcount | Number of payslips ÷ registered employees | Must equal 1 |
| Average net pay per employee | Total net ÷ headcount | Unexplained variation |
| Overtime | Share of total payroll | Above 5% |
| Exceptional bonuses | List with supporting rationale | Every item must be documented |
These checks, performed by someone who did not prepare the payroll, detect ghost employees, setup errors and unauthorised bonuses (see the article on segregation of duties).
Month-end controls
- Reconcile the payroll journal to the general ledger: gross pay, deductions, net pay.
- Verify the CNSS return schedule: bases, rates, ceiling.
- Check withheld IR against the tax filing.
- Reconcile account 4432: must have a nil balance after payment.
- Review monthly payroll consistency (all variations explained).
- Archive payslips, bank transfer lists and payment receipts.
Common errors
- Recording net pay as the expense instead of gross pay: understates personnel costs and omits social and tax liabilities.
- Omitting employer contributions from the month’s expense.
- Netting deductions against salaries: makes reconciliations impossible.
- Leaving an open balance in 4432 (unpaid wages or forgotten adjustments).
- Failing to remit withheld IR on time: 20% penalty (see tax penalties).
Key takeaways
Payroll generates four main entries: recognition (expenses, social and tax liabilities), payment of net wages, payment to CNSS, and payment of withheld IR. Total employer cost exceeds gross pay by around 19% in the examples above. Accounts 4432, 4441 and 4452 must be cleared within statutory deadlines and reconciled every month.
Frequently asked questions
Is net salary an accounting expense?
No. The personnel expense is the gross salary, plus employer social contributions. Net pay is the liability owed to the employee after deductions. In accounting terms, gross pay is debited to account 6171, and net pay due is credited to account 4432.
Where should AMO be recorded?
Both the employee and employer shares of AMO (mandatory health insurance) are remitted to CNSS alongside social security contributions: they are generally tracked in account 4441 “Caisse Nationale de la Sécurité Sociale” (CNSS), using sub-accounts to distinguish between bodies or types of contribution.
On what date should the payroll entry be posted?
At month-end, in respect of the month worked, even if salaries are paid at the start of the following month. Accrued salaries at year-end are allocated to the financial year using the same entry.
How is a salary advance treated?
Through account 3431 “Avances et acomptes au personnel” (Advances and prepayments to staff): debited when paid out, and credited when deducted from the following payroll.
- General Chart of Accounts for Businesses (PCGE / CGNC, Moroccan chart of accounts), accounts 4432, 4441, 4452, 6171 and 6174
- General Tax Code (CGI) 2026, art. 156 — withholding at source by employers
This article presents general rules as at the date shown; it does not replace an analysis of your situation. The French version of the texts prevails.
Article written from the official texts and the firm’s engagement practice. It shows its publication date and, where applicable, its last review.