Back to hub

End-of-Service Gratuity Calculation in Egypt

Financial Wellness Systems & Compliance November 21, 2026
End-of-Service Gratuity in Egypt: Free Calculator & Guide.

End-of-service payouts are a frequent source of labor disputes in Egypt—and many stem from calculation errors. A missed allowance, a miscounted tenure, or a payout based on the wrong regulation can turn a routine exit into a formal complaint.

The root cause is usually mixing up rules. Labor Law No. 14 of 2025, in force since September 1, 2025, sets several different end-of-service payments. Each is triggered by a different event, calculated with a different formula, and easy to confuse with a social insurance entitlement.

This guide breaks down exactly when each payment applies and how to calculate it, with worked examples you can adapt to your own payroll. Whether you run payroll, finance, or HR for a growing team, keep it handy whenever an employee’s end of service in Egypt comes up. Treat end-of-service gratuity in Egypt as a case-by-case calculation, not a flat rule of thumb. This guide reflects our reading of the law and published commentary as of November 2026. It is general information, not legal advice.

IN SHORT

End-of-service gratuity in Egypt is not one rule but three, all set by Labor Law No. 14 of 2025: Article 172 (work after 60 or before 18 without pension rights), Article 154 (an employer ends a fixed-term contract early), and Article 241 (economic closures and downsizing). Severance pay is separate: at least two months’ wages per year of service when an employer ends an indefinite contract for an unlawful reason (Article 165). This guide gives you the formulas, worked examples in EGP, a final settlement checklist, and a free Excel calculator you can download.

End-of-Service Gratuity vs. Severance Pay: What’s the Difference?

The simplest way to separate the two: gratuity is a statutory payment for specific situations, while severance pay is minimum compensation for unlawful dismissal. Labor Law No. 14 of 2025 treats them as different payments with different triggers.

End-of-service gratuity (مكافأة نهاية الخدمة) is set by three articles. Article 172 covers work after age 60 and service before 18 when the employee has no pension rights for that period. Article 154 covers a fixed-term contract ended early by the employer. Article 241 covers terminations for economic reasons. Each has its own rate.

Severance pay (تعويض الفصل التعسفي) comes from Article 165. When an employer ends an indefinite-term contract for an unlawful reason, the employee is entitled to compensation of at least two months’ wages for each year of service, on top of any other statutory dues.

Here is a brief comparison between gratuity and severance:

End-of-service gratuity (مكافأة نهاية الخدمة) Severance pay (تعويض الفصل التعسفي)
Legal basis Articles 172, 154, and 241 Article 165
What triggers it Art. 172: work after 60 or before 18 without pension rights for that period

Art. 154: employer ends a fixed-term contract

Art. 241: closure, downsizing, or amended terms for economic reasons

Employer ends an indefinite-term contract for an unlawful reason
Rate Art. 172: 0.5 month per year for the first 5 years, then 1 month

Art. 154: 1 month per year

Art. 241: 1 month per year for the first 5 years, then 1.5 months

At least 2 months’ wages per year of service
Nature Statutory amount Minimum compensation, decided by the labor court if disputed
Notice pay and leave Due separately Due separately

Many teams miss this: the popular rule of thumb (“one month per year for everyone”) is not what the law says. Gratuity depends on which of the three situations applies, and Article 165 compensation is a separate floor that sits alongside notice pay, leave, and other dues. Paying one and assuming it settles the other is how underpayments turn into disputes.

So before you open a spreadsheet, ask three questions for every departing employee:

  1. Was the contract fixed-term or indefinite?
  2. Who ended it, and was the reason lawful?
  3. Does the case involve an economic closure or downsizing, or service after 60 or before 18?

The answers point you to the right Labor Law article and the right formula.

Skip the guesswork

dopay tracks tenure and contract details from day one, so you know which payout applies long before an employee’s last day.

When Is End-of-Service Gratuity Owed?

End-of-service gratuity in Egypt is owed in three statutory situations. Gratuity eligibility depends on which one fits your case:

  • Article 154: the employer ends a fixed-term contract early. The employee is entitled to one month’s wage for each year of service. Practitioners read the scope two ways: only contracts concluded or renewed for more than five years, or every fixed-term contract the employer ends. Until the courts settle it, budget for the broader reading.
  • Article 241: economic closure, downsizing, or amended terms. Articles 236 to 241 govern full or partial closure, or a reduction in size or activity, for economic necessity. Article 241 says the gratuity is due “in all cases,” which practitioners also read two ways: only in these economic cases, or on every end of service. The cautious approach is to count it in any termination connected to a closure, downsizing, or change in terms.
  • Article 172: service after 60 or before 18 without pension rights. It applies to work after age 60 when the employee has no old-age, disability, and death insurance rights for that period. It also applies to years of service before 18, once the employee reaches that age.

Notice what is missing from this list: social insurance. A pension from the National Organization for Social Insurance (NOSI) is a different entitlement under Social Insurance Law No. 148 of 2019. Only Article 172 ties the gratuity to insurance rights. Nassef & Partners reads Articles 154 and 241 as independent of insurance, so paying out a NOSI balance does not discharge them.

Also check the contract and the work regulation. Under Article 6, any more generous terms in either document, or established by custom, still apply.

A quick audit before you calculate:

  1. Confirm the contract type (fixed-term or indefinite) and its end date.
  2. Record who ended the contract and why.
  3. Check for any closure, downsizing, or amended-terms file connected to the exit.
  4. Check the employee’s date of birth for service after 60 or before 18, and their pension rights for those periods.
  5. Review the contract and work regulation for gratuity terms more generous than the statute.

End-of-Service Gratuity Calculation Formula

To calculate end-of-service gratuity in Egypt, pick the article first, then apply its rate to the last monthly wage:

  • Article 172: (Last Monthly Wage × 0.5 × first 5 years) + (Last Monthly Wage × 1 × years beyond 5)
  • Article 154: Last Monthly Wage × 1 × years of service
  • Article 241: (Last Monthly Wage × 1 × first 5 years) + (Last Monthly Wage × 1.5 × years beyond 5)

What counts as the “last monthly wage”?

Article 1 defines wage as everything the employee receives for their work, in cash or in kind. That covers the basic wage plus variable elements such as commissions, grants, allowances, and benefits in kind. It is not the insurance wage used for NOSI contributions. Article 172 expressly uses the last wage. Articles 154 and 241 do not say which month to use, so the cautious approach is the last wage with all its elements.

Worked examples

Article Case Calculation Gratuity
172 8 years of service after 60 with no pension rights, wage EGP 12,000 (12,000 × 0.5 × 5) + (12,000 × 1 × 3) = 30,000 + 36,000 EGP 66,000
154 Fixed-term contract ended by the employer after 8 years, wage EGP 12,000 12,000 × 1 × 8 EGP 96,000
241 Economic termination after 3 years, wage EGP 12,000 12,000 × 1 × 3 EGP 36,000
241 Economic termination after 8 years, wage EGP 12,000 (12,000 × 1 × 5) + (12,000 × 1.5 × 3) = 60,000 + 54,000 EGP 114,000
241 Economic termination after 15 years, wage EGP 20,000 (20,000 × 1 × 5) + (20,000 × 1.5 × 10) = 100,000 + 300,000 EGP 400,000

Here is the 15-year Article 241 example step by step:

  1. Last monthly wage: EGP 20,000.
  2. First five years: 20,000 × 1 × 5 = EGP 100,000.
  3. Remaining ten years: 20,000 × 1.5 × 10 = EGP 300,000.
  4. Total gratuity: 100,000 + 300,000 = EGP 400,000.

How partial years work

None of the three articles says how part of a year is counted. The cautious approach is pro-rata: six months equals 0.5 year, and the rate applies to that fraction.

For example, an employee with 7 years and 6 months of service under Article 241 and a last monthly wage of EGP 16,000:

  • First five years: 16,000 × 1 × 5 = EGP 80,000
  • Remaining 2.5 years: 16,000 × 1.5 × 2.5 = EGP 60,000
  • Total: EGP 140,000

Severance Pay Calculation Formula

Severance pay in Egypt is calculated under Article 165, and it follows a different logic from gratuity. Never blend the two into one formula.

When it applies: the employer ends an indefinite-term contract for an unlawful reason. Commentary on Article 165 lists reasons such as union activity, filing a complaint against the employer, using leave, and discrimination.

Formula: at least 2 months’ wages × years of service.

Which wage: the wage as Article 1 defines it, meaning basic plus variable elements. The old law said “comprehensive wage” explicitly. The new text says “wage,” and practitioners apply all elements. Treat the figure as a floor, not an automatic payout: if the case is disputed, the labor court decides the amount. It does not reduce the employee’s other dues.

Notice period: indefinite contracts need three months’ written notice from either side (Article 156), and it cannot be waived or shortened. An employer who ends the contract without notice owes the wage for the notice period, or for the part of it that remains (Article 164).

When severance does not apply:

  • Resignation (it must be written and ratified by the competent authority)
  • A lawful termination
  • Expiry of a fixed-term contract on its end date

Indefinite vs. fixed-term contracts

Article 165 is about indefinite contracts. A fixed-term contract ends on its date, so no Article 165 compensation arises from expiry. If the employer ends a fixed-term contract early, Article 154 gratuity may apply (see the scope question above), but the law does not spell out compensation for an unlawful early termination. Get legal review before you finalize that payout.

Worked examples

Example 1: Unlawful termination of an indefinite contract, 4 years of service. Base salary EGP 10,000 + allowances EGP 2,500 + average commission EGP 1,500 = wage of EGP 14,000. Compensation floor: 14,000 × 2 × 4 = EGP 112,000. If no notice was given, add 3 × 14,000 = EGP 42,000 in lieu of notice, for a total of EGP 154,000 before leave and other dues.

Example 2: Resignation after 6 years. No Article 165 compensation. Wages, leave, and any other dues still apply.

Example 3: Fixed-term contract ended early by the employer after 3 years, wage EGP 15,000. Article 154 gratuity, on the broader reading: 15,000 × 1 × 3 = EGP 45,000.

Free End-of-Service Gratuity Calculator for Egypt

You now have every formula. Applying them correctly to each exit is where mistakes creep in, so we turned this guide into a free Excel calculator you can download and use whenever someone leaves.

What it does:

  • Picks the right article for you, based on the contract type and what ended the employment (Articles 154, 172, 241, and 165).
  • Calculates gratuity, the severance compensation floor, notice pay, unused leave, unpaid wages, and pending bonuses.
  • Applies the legal limits on deductions automatically.
  • Explains every line in plain English, with a clear “yes” or “no” and the reason.
  • Includes the final settlement checklist, nine worked examples, and a glossary of terms.

How to use it:

  1. Fill the yellow cells with the employee’s contract details and wage.
  2. Add any unpaid wages, leave days, bonuses, and deductions.
  3. Read your results, including the net amount to pay and the payment deadline.

Like this guide, the calculator gives an estimate, not legal advice. It uses the cautious readings of the law and tells you which one it applied, so have your legal counsel confirm the final figures before you pay.

Run your next final settlement in minutes: Download the free Excel calculator, with the checklist built in.

Common Calculation Mistakes to Avoid

Most final settlement mistakes in Egypt come from the same six slip-ups:

  1. Applying “one month per year” to every exit. Gratuity depends on the article that fits, and each has its own rate. Match the event first.
  2. Assuming social insurance cancels every gratuity. Only Article 172 ties the gratuity to insurance rights. Check which article applies before you pay or skip end-of-service gratuity in Egypt.
  3. Using basic salary instead of the full wage. Article 1 includes variable pay, allowances, and benefits in kind. A basic-only calculation underpays.
  4. Forgetting notice compensation. The notice period for indefinite contracts is three months under Article 156, regardless of years of service. If the employer skips it, the wage for that period is owed.
  5. Ignoring accrued but unused annual leave. Its cash value belongs in the settlement, calculated on the last wage.
  6. Deducting more than the law allows. Debts can be deducted from the wage only up to 25%, or up to 50% for alimony (Article 114). Repaying an employer’s loan from wages is capped at 10% (Article 113).

Most payroll calculation errors share one cause: a manual process. A single spreadsheet formula copied down a column can repeat the same mistake across every settlement you process.

Complete Final Settlement Checklist

A final settlement in Egypt is more than gratuity or compensation. Use this checklist to make sure nothing is missed:

  1. Outstanding wages through the last day. Include every day worked, plus earned variable pay.
  2. Accrued annual leave compensation. Convert unused leave days to cash at the last wage.
  3. Notice period (if applicable). Three months for indefinite contracts, or the wage in lieu if notice was not given.
  4. End-of-service gratuity in Egypt (if applicable). Under Article 172, 154, or 241, whichever fits.
  5. Severance compensation (if applicable). Article 165, for an unlawful termination of an indefinite contract.
  6. Pending bonuses or commissions. Anything earned but not yet paid.
  7. Return of company assets. Laptop, phone, ID badge, access cards, and any other equipment.
  8. Social insurance Form 6. Notify NOSI that employment has ended.
  9. Payment within seven days. Article 108 requires the employer to pay wages and dues within seven days of the employee’s claim.

Work through the list in order, tick each item off, and keep a copy in the employee’s file. If a dispute ever arises, a completed checklist is your first line of defense.

Make offboarding repeatable: The checklist is built into our free calculator, so every exit follows the same steps and the amounts fill in for you. Download the free end-of-service calculator →

How Digital Payroll Ensures Accurate Calculations

Manual spreadsheets are where most final settlement errors begin: tenure counted by hand, allowances missed, leave balances out of date. A digital payroll system closes those gaps.

  • Automated tenure tracking from day one. Start dates, contract type, and contract end dates are tracked automatically, so the right article is clear long before an exit.
  • Real-time comprehensive wage calculation. Base salary, allowances, and average variable pay update as payroll runs, so the wage behind every calculation is current.
  • Leave balance integration. Accrued annual leave flows straight into the settlement.
  • Compliance flags for missing documentation. Missing contracts or paperwork are flagged before they turn into disputes.
  • An audit trail for all calculations. Every figure can be traced, explained, and defended.

With dopay, you can generate a settlement report in one click, built on your employees’ real records, so accurate compliance becomes the default instead of a last-minute scramble.

Conclusion

Accurate calculations do three things at once: they help you stay compliant, build employee trust, and help you avoid disputes before they start. Remember the core logic. Match the event to the article, use the full wage, and count notice, leave, and gratuity or compensation as separate items.

Your next step: download the free calculator, run your next exit through it, and turn these formulas into a written end-of-service policy template your team can reuse for every exit. Once it is in place, explore how dopay’s automated final settlement tools can run it for you, with less manual work and no surprises.

Ready to retire the manual settlement spreadsheet?

dopay can help you automate payroll and end-of-service calculations and avoid the errors of manual work.

Frequently Asked Questions

It depends on the article. The Article 172 gratuity is due only when the employee has no old-age, disability, and death insurance rights for that period. Articles 154 and 241 do not mention insurance rights, so a NOSI pension does not automatically replace them.

Gratuity is a statutory payment set by Articles 172, 154, and 241, each with its own rate. Severance pay (Article 165) is compensation of at least two months’ wages per year of service for an unlawful termination of an indefinite contract.

Yes, within limits. Debts can be deducted from the wage only up to 25%, or up to 50% for alimony (Article 114). Repaying an employer’s loan is capped at 10% (Article 113). Confirm with legal counsel how the caps apply to a lump-sum settlement.

No. Article 165 compensation applies only when the employer ends an indefinite contract for an unlawful reason. A resignation must be written and ratified by the competent authority.

The law does not say, so the cautious approach is pro-rata. For example, six months equals 0.5 year, and the rate applies to that fraction.

Yes. Unused annual leave is paid at its cash value, calculated on the last wage, and added to the settlement.