Free · No sign-up · Instant
Morocco End-of-Service Indemnity Calculator
Estimate your indemnité de fin de service (تعويض نهاية الخدمة) in Moroccan dirhams from your last gross monthly salary and your hire / exit dates, following Article 52 of the Code du Travail (Law 65-99).
- Hourly wage = salary ÷ 191 h
- 96 → 144 → 192 → 240 h per year
- Prorated partial year
- Auditable tranche table
Calculate your indemnity
Edit any field — the figure updates instantly. There is no submit button.
Advanced assumptions
Everything is computed in your browser. Nothing you type is uploaded or stored.
Enter your salary and dates to see the figure.
Reference estimate only. Your employer's final settlement (solde de tout compte) may include notice, leave balance and other items.
How the Moroccan end-of-service indemnity is calculated
Article 52 of Law 65-99 converts your last gross monthly wage into an hourly wage, then multiplies it by a number of hours that grows with each block of seniority. Longer service earns a higher rate per year, which is why the calculation is split into tranches.
Divide the last gross monthly salary by 191 statutory working hours per month — 5,000 MAD ÷ 191 = 26.178 MAD per hour.
Years 1–5 count 96 hours each year, years 6–10 count 144, years 11–15 count 192 and everything beyond 15 years counts 240 hours per year.
A final incomplete year is prorated by months at the rate of the tranche it falls in, then total hours × hourly wage gives the indemnity.
Statutory hours per year of service (Art. 52)
| Seniority tranche | Hours of wage per year | At 5,000 MAD/month (191 h) |
|---|---|---|
| Years 1 – 5 | 96 hours | 2,513.09 MAD |
| Years 6 – 10 | 144 hours | 3,769.63 MAD |
| Years 11 – 15 | 192 hours | 5,026.18 MAD |
| Beyond 15 years | 240 hours | 6,282.72 MAD |
Minimum eligibility: 6 months of continuous service. Unpaid leave without pay is deducted from the service duration.
Worked examples, hand-checked
All three use a last gross monthly salary of 5,000 MAD (hourly wage 26.178 MAD) and no unpaid leave.
3 × 96 hours = 288 hours. 288 × 26.178 = 7,539.27 MAD.
(5 × 96) + (3 × 144) = 912 hours. 912 × 26.178 = 23,874.35 MAD.
(5 × 96) + (5 × 144) + (2 × 192) = 1,584 hours → 41,465.97 MAD.
Why use this calculator
The maths runs in your browser as you type, so there is no waiting, no sign-up and no email to unlock your own figure.
Each row shows years, hours per year, accumulated hours and the MAD amount, so you can check the total line by line.
Compare the figure with your final settlement before you sign the solde de tout compte or discuss a resignation.
A final incomplete year is prorated by months at the rate of the tranche it falls in — no rounding shortcuts.
Deduct unpaid months from the service duration in the advanced panel, so long absences do not inflate the payout.
Salaries are sensitive. Nothing you enter leaves your device, and no figure is ever stored on a server.
FAQ
Which law sets the Moroccan end-of-service indemnity?
Article 52 of the Code du Travail, introduced by Law 65-99. It applies to employees on permanent contracts (CDI) whose contract is terminated after at least 6 months of continuous service.
Why divide the salary by 191 hours?
191 hours is the statutory monthly working time used to derive an hourly wage. You can change it in the advanced panel if your contract or a collective agreement uses a different baseline — the legal default stays 191.
Does resignation change the amount?
The Article 52 indemnity is the statutory reference used at the end of the contract. Whether it is fully payable, reduced or negotiated depends on the ground of termination, so treat this figure as the reference baseline for your settlement discussion.
What if I worked less than 6 months?
The calculator shows a below-minimum-service notice instead of a figure. Under Article 52, less than 6 months of continuous service does not open the right to an end-of-service indemnity.
Which salary should I enter?
Your last gross monthly salary before tax and CNSS/AMO deductions, including regular allowances that form part of the wage. Bonuses paid occasionally are usually excluded.
Is this legal advice?
No. It is a free estimate for orientation. For a binding number, check with your employer's payroll, an accountant or a labour-law adviser.