On this page
End of service is the last thing an HR system does for an employee and the first thing an auditor looks at. It is also the calculation where the gap between a configured system and a spreadsheet is widest — because the inputs span the entire employment relationship and half of them live outside the payroll module.
The statutory position
Under Article 172 of Labour Law No. 14 of 2025, a worker is owed an end-of-service gratuity for service after the age of sixty: half a month's wage for each of the first five years and a full month's wage for each following year, provided they have no rights for that period under the old-age, disability and death insurance of the social insurance law.
Those conditions are where most systems go wrong. The gratuity is not a flat function of total service length. The calculation needs the date the employee turned sixty and the insurance position for the period after it, not just the hire and termination dates.
The same article also grants the gratuity for years of service before the age of eighteen, payable to the apprentice or worker on reaching that age, and calculates it on the last wage. It does not describe a general reward for uninsured periods between eighteen and sixty, so treat any such gap as a question for your legal and social insurance advisors. A system that applies the rate to every year of service will overstate the liability.
The law also sets separate gratuities for specific cases. Article 154 grants one month's wage per year of service when the employer ends a fixed-term contract that has run beyond five years, and Article 241 sets its own scale where contract terms are changed for economic reasons. Model each of them separately.
The other settlement components
Gratuity is one possible line in a final settlement that has several. Under Article 125, if employment ends before the employee has used the annual leave balance, its cash equivalent is due. The employer must also settle leave balances at least every three years, and an employee who refuses in writing to take leave loses the right to payment for it.
That balance depends on the entitlement ladder — fifteen days in year one, twenty-one from year two, thirty after ten full years or past age fifty, and forty-five for persons with disabilities and persons of short stature. Seven further days apply to hazardous work and remote areas, which Ministerial Decree No. 49 of 2026 identifies. A leave balance error propagates straight into the settlement.
Then come salary for days worked in the final period, any retroactive amounts pending, outstanding loan or advance recovery, notice period pay or deduction depending on who terminated and how, and the tax treatment of the settlement itself, which may differ from that of ordinary monthly salary. Under Article 108, the employer must pay the wage and all sums due within seven days of the worker's claim.
Finally, the employer must report the end of service to the National Social Insurance Authority on Form 6 within one week, under Article 20 of the executive regulations of social insurance Law 148 of 2019. That form is not a formality — a late notification can leave the employee showing as insured and expose the employer to amounts that should never have arisen.
Why this is hard to do in a spreadsheet
Assemble the inputs and the problem becomes obvious. You need the full service history including any breaks. You need the insurance history segment by segment. You need the leave balance computed under the correct entitlement rule for every year of service, including years when the employee crossed the ten-year or age-fifty threshold. You need the applicable wage definition for the gratuity, which is not necessarily the same as gross pay. You need any pending retroactive adjustments. And you need the tax treatment of the total.
Any of those computed by hand is a source of error that surfaces months later, usually as a dispute — and now potentially before the specialised labour courts operating since October 2025.
The provision problem
There is a second reason this matters, and it belongs to finance rather than HR. End-of-service liability is a provision that must be carried on the balance sheet and updated as service accrues and salaries change. If it is calculated once a year from a spreadsheet, the figure between updates is an estimate that drifts.
A system that computes the provision from the same rules that compute the settlement produces a monthly figure that reconciles by construction. It also allows the provision to be posted to the accounting system by cost centre through the same integration that posts payroll — so the liability sits against the department that generated it.
What LoginHR holds
LoginHR treats end of service under Egyptian rules as a rules-engine calculation with access to the full employment record: service history with breaks, insurance coverage by period, leave entitlement computed under the service and age ladder, the applicable wage definition, pending retroactive amounts and the tax treatment of settlement payments.
Because the calculation is an expression rather than compiled logic, the wage definition used for gratuity, the accrual rates, and the treatment of insured periods are all parameters the HR team controls. When a ministerial decision or a court ruling refines the treatment — which is likely, given how recent Law 14 of 2025 is — the change is configuration.
The settlement outputs are generated from the same run: the final payslip, the accounting journal, the bank transfer, and the social insurance end-of-service form with the employee's data drawn from the record rather than retyped.
An evaluation checklist
Ask a vendor to demonstrate, on a real employee profile: a settlement for someone who worked past sixty, showing the insurance status of that period; a leave encashment for someone who crossed the ten-year entitlement threshold mid-service; a settlement in a month containing a pending retroactive raise; the monthly provision figure and how it posts to the ledger; and the social insurance Form 6 generated from the termination transaction.
If any of those five requires an export to Excel, the system is producing a report and someone in your team is producing the answer.
Note: the statutory provisions summarised here were reviewed on November 30, 2026 against published copies of the texts. They are general information, not legal, tax or actuarial advice.
- Who is entitled to an end-of-service gratuity under Law 14 of 2025?
- Article 172 grants it for work after the age of sixty where the worker has no rights for that period under old-age, disability and death insurance: half a month per year for the first five years and a month per year after that. It also covers service before eighteen. Separate rules apply to cases under Articles 154 and 241.
- Is unused annual leave paid when employment ends in Egypt?
- Yes. Under Article 125, if employment ends before the annual leave balance is used, its cash equivalent is due. Balances must also be settled at least every three years, and an employee who refuses in writing to take leave loses the right to payment for it.
- Which social insurance form reports the end of an employee’s service?
- Form 6. Article 20 of the executive regulations of social insurance Law 148 of 2019 requires a private-sector employer to send it to the National Social Insurance Authority within one week of the end of the insured person’s service.
- When must an employer pay final dues after the employment ends?
- Article 108 of Labour Law 14 of 2025 requires the employer to pay the wage and all sums due within seven days of the date on which the worker claims them, whatever the reason the relationship ended.
Regulatory context
- Jurisdiction
- Egypt
Legal requirements and LoginHR product capabilities are different things. This note records only what the editors confirmed.
References
- Labour Law No. 14 of 2025, Arabic text (PDF copy hosted by Sadany Khalifa) — Text copy of Articles 108, 124-125, 154, 171-172 and 241: final dues, leave balances and the gratuity provisions.
- Alhasswa Law Firm law library: Law No. 14 of 2025 — Second copy used to cross-check Article 172 (post-60 gratuity), Article 125 (leave balance) and Article 108.
- Prime Minister Decree No. 2437 of 2021, executive regulations of Law 148 of 2019 (reproduction) — Article 20: Form 6 due within one week of end of service. Article 18: Form 2 is the January update of employee and wage data.
- Youm7: hazardous work and remote areas with seven extra leave days (Decree 49 of 2026) · 2026-03-26 — Ministerial Decree 49 of 2026 identifies the jobs and areas that carry seven additional annual leave days.
- EY tax alert: Egypt new labour law effective 1 September 2025 — Effective date of Law 14 of 2025 and application to labour disputes from 1 October 2025.
