SOGESTIO

Net salary calculator for Morocco: from gross pay to net pay and employer cost

This free calculator, with no sign-up, converts a monthly gross salary into net pay in Morocco. It adds the seniority bonus, deducts the employee's CNSS and AMO contributions and professional expenses, applies the income tax (IR) scale and the family deduction, then shows the total employer cost. Everything is computed in your browser.

  • Free
  • No sign-up
  • Runs in your browser

How to calculate a net salary with this calculator

  1. Enter the base salary

    Type the employee's monthly base gross salary in MAD (DH), excluding any seniority bonus.

  2. Add seniority and bonuses

    Enter the completed years of service and, if any, the other taxable bonuses paid that month.

  3. Set the family situation

    Say whether the employee is married and how many dependent children they have: together they set the family deduction from income tax.

  4. Read and share the result

    The calculator breaks the payslip down, line by line, to net salary and employer cost. Your inputs stay in the page address, so copying the link shares the simulation.

How does the calculator work out net salary?

It follows the order of a Moroccan payslip, with exactly the same rules as SOGESTIO's payroll module. The professional expenses allowance (frais professionnels) is never withheld from pay: it only reduces the base for income tax (IR, impôt sur le revenu).

  • Gross = base salary + seniority bonus + other taxable bonuses.
  • Net taxable income = gross − CNSS − AMO − professional expenses.
  • Net salary = gross − CNSS − AMO − (tax from the scale − family deduction).
  • Employer cost = gross + employer contributions.

Which rates and tax scale does the calculator apply?

Rates applied at the calculator's last update; they change with Morocco's finance laws and CNSS circulars, so have them confirmed by your expert-comptable (chartered accountant). The annual income tax scale (table below) is applied monthly, with brackets and amounts to deduct divided by 12.

  • Employee CNSS (social benefits): 4.48 % on a monthly base capped at 6,000 MAD (DH); employee AMO (health insurance): 2.26 %, uncapped.
  • Professional expenses: 35 % of gross up to a monthly gross of 6,500 MAD (DH), 25 % above, within an annual cap of 35,000 MAD (DH), i.e. a monthly cap of 2,916.67 MAD (DH).
  • Family deduction: an annual 500 MAD (DH) per dependent (spouse, children), within an annual cap of 3,000 MAD (DH), i.e. a monthly 41.67 MAD (DH) per person and 250 MAD (DH) at most.
  • Seniority bonus: 5 % of the base salary after 2 years, 10 % after 5, 15 % after 12, 20 % after 20 and 25 % after 25.
Annual income tax (IR) scale applied by the calculator at its last update (it changes with the finance laws: check it)
Annual net taxable income (MAD)RateAnnual amount to deduct (MAD)Monthly amount to deduct (MAD)
0 to 40,0000 %00.00
40,001 to 60,00010 %4,000333.33
60,001 to 80,00020 %10,000833.33
80,001 to 100,00030 %18,0001,500.00
100,001 to 180,00034 %22,0001,833.33
Above 180,00037 %27,4002,283.33

Worked example: 10,000 MAD (DH) base salary, married, two children

A married employee with two children, under two years of service and no other bonus, earns a monthly base gross salary of 10,000.00 MAD (DH): gross pay is 10,000.00 MAD (DH), with three dependents.

  • CNSS: 4.48 % × 6,000.00 (cap) = 268.80; AMO: 2.26 % × 10,000.00 = 226.00 MAD (DH).
  • Professional expenses: 25 % × 10,000.00 = 2,500.00 MAD (DH).
  • Net taxable income: 10,000.00 − 268.80 − 226.00 − 2,500.00 = 7,005.20 MAD (DH).
  • Income tax: 7,005.20 × 30 % − 1,500.00 = 601.56, minus a family deduction of 125.00 (3 × 500 ÷ 12), i.e. 476.56 MAD (DH).
  • Net salary: 10,000.00 − 268.80 − 226.00 − 476.56 = 9,028.64 MAD (DH).

With a seniority bonus: what does an employee cost the employer?

Second case: a single employee with no children, a monthly base gross salary of 8,000.00 MAD (DH) and 6 years of service. The 10 % seniority bonus (800.00) brings gross pay to 8,800.00 MAD (DH); net taxable income is 6,132.32, income tax 393.13 and net salary 7,939.19 MAD (DH).

On top of gross pay, the employer pays CNSS for social benefits (8.98 %, same capped base), AMO (4.11 %), family allowances (6.40 %) and the vocational training tax (1.60 %), the last three uncapped.

  • First example: 538.80 + 411.00 + 640.00 + 160.00 = 1,749.80 of employer contributions, i.e. a total employer cost of 11,749.80 MAD (DH).
  • Second example: 538.80 + 361.68 + 563.20 + 140.80 = 1,604.48 of employer contributions, i.e. a total employer cost of 10,404.48 MAD (DH).

Which mistakes should you avoid when calculating net pay?

Gaps between a hand-made estimate and the real payslip almost always come from the same oversights.

  • Mixing up gross and net in a job offer.
  • Applying CNSS to the whole salary: it is capped, AMO is not.
  • Forgetting professional expenses before income tax.
  • Applying the annual tax scale to a monthly amount.
  • Leaving out the family deduction or the seniority bonus.
  • Assuming employer cost equals gross pay.

Calculator limits, and complete payroll with SOGESTIO

Every result is flagged as an indicative simulation, to be validated with your expert-comptable. Not handled: overtime, benefits in kind, exempt allowances, CIMR or other complementary pensions, mutual insurance, loans and advances, absences, incomplete months and the annual income tax adjustment.

In SOGESTIO, the same rules produce payslips with CNSS, AMO, IR and seniority, an automatic payroll accounting entry, a preparatory DAMANCOM file and a preparatory état 9421 in XML, to be transposed into SIMPL-IR. The Pro and Groupe packs add employment contracts and leave balances. Declarations are still validated by the business or its accountant.

Free, indicative tool: it does not replace advice from your accountant. Rates and rules change with the finance laws. Updated .

Frequently asked questions

How do I convert a gross salary to net in Morocco?

Deduct CNSS (on a capped base), AMO and net income tax from gross pay. Income tax is computed on net taxable income, i.e. gross minus CNSS, AMO and professional expenses, with the scale brought down to a monthly basis, less the family deduction.

Why does CNSS stop rising once gross pay passes 6,000 MAD (DH)?

The social benefits contribution is computed on a monthly salary capped at 6,000 MAD (DH), so it stays at 268.80 MAD (DH) for the employee and 538.80 MAD (DH) for the employer. AMO applies to the whole gross.

Does the calculator account for a spouse and children?

Yes: an annual income tax deduction of 500 MAD (DH) per dependent, i.e. a monthly 41.67 MAD (DH), within an annual cap of 3,000 MAD (DH). Net income tax never goes below zero.

Is the calculator's result official?

No: it is an indicative simulation, to be validated with your expert-comptable. Rates and the tax scale change with the finance laws and CNSS circulars.

Can SOGESTIO run payroll and prepare the declarations?

Yes, with the payroll module in the Pro and Groupe packs: payslips with CNSS, AMO, IR and seniority, an automatic payroll entry, the DAMANCOM file and a preparatory état 9421 to transpose into SIMPL-IR.

Read next

Other free tools

All tools

From simulation to complete payroll

SOGESTIO applies the same rules to real payslips, posts the payroll entry and prepares the DAMANCOM file and a preparatory état 9421. Try it free for 14 days, no card and no commitment.