The formula is short and the arguments about it are long. Below is the rule as the labour law states it in 2026, the edge cases HR teams ask about, and what a payroll system should do with them. The monthly side of UAE payroll, the salary file to the bank, is in our WPS guide.
The rule behind the gratuity calculator, in three lines
For a full-time foreign employee who has completed at least one year of continuous service, the employer owes an end of service gratuity of:
- 21 days of basic wage for each of the first five years of service;
- 30 days of basic wage for each year after the fifth;
- pro-rated for any fraction of a year, and capped at two years of basic wage in total.
The basis is the last basic wage, without housing, transport or other allowances. The daily wage is the monthly basic divided by 30. That is the whole formula; everything else is about what counts as service and what may be deducted.
The daily wage
The law expresses gratuity in days of wage, and the executive regulations fix the day at one thirtieth of the monthly basic wage, whatever the calendar month. A basic salary of AED 12,000 gives a daily wage of AED 400; 21 days is AED 8,400 for each of the first five years, 30 days is AED 12,000 for each later year.
| Years of service | Days per year | Gratuity on AED 12,000 basic |
|---|---|---|
| Under 1 | 0 | Nothing |
| 1 to 5 | 21 | AED 8,400 per year |
| Above 5 | 30 | AED 12,000 per year |
| Any | Cap | AED 288,000 (24 months) |
Fractions of a year
Once the first year is complete, every further fraction of a year is paid pro rata. Seven years and 219 days, for example, is five years at 21 days, two years at 30 days, and 219/365 of a year at 30 days. Payroll systems differ in whether they count the fraction by days or by completed months; the law says the fraction of the year, and days is the fairer reading.
The two-year cap
The total gratuity may not exceed the wage of two years, that is 24 months of basic salary. On the 21-and-30-day scale the cap is reached after roughly 25 and a half years of service, so it rarely applies, but a payroll system has to test for it on every settlement.
Unpaid leave and deductions
- Unpaid absence is not counted as service. A month of unpaid leave moves the end date back by a month for the calculation.
- Amounts owed by the employee to the employer, such as an outstanding loan or the value of an unreturned asset, may be deducted from the gratuity, within the limits the law sets for deductions.
- Annual leave balance is paid separately, on the basic wage, and is not part of the gratuity.
- Notice period served or paid in lieu counts as service if it was worked, and is paid separately if it was not.
Resignation and termination
Under the law in force before 2022, an employee who resigned from an unlimited contract lost part of the gratuity: a third of it between one and three years of service, two thirds between three and five. That reduction is gone. Since February 2022 the full amount is due after one year of service whoever ends the contract, unless the employment was terminated for one of the specific gross-misconduct reasons the law lists, and even then the position should be taken with legal advice.
Who it applies to
| Employee | End of service |
|---|---|
| Foreign employee, mainland or most free zones | Gratuity as above |
| UAE and GCC nationals | Pension contributions to GPSSA or the home country's fund instead of gratuity |
| DIFC employees | The DEWS savings plan replaced gratuity in 2020; monthly contributions of 5.83% or 8.33% of basic |
| ADGM employees | ADGM's own employment regulations, with gratuity or an approved savings scheme |
| Employees enrolled in the voluntary savings scheme | Employer contributions to the fund replace the accrual from the date of enrolment; earlier service is settled under the formula |
| Part-time and job-share | Gratuity in proportion to the hours worked, per the executive regulations |
In the payroll run
A settlement is where a payroll system earns its keep. It should read the basic salary history rather than the current figure, count unpaid leave from the leave module, pro-rate the fraction by days, apply the cap, add the leave balance at the right rate, deduct the outstanding loans, and print a settlement the employee can check.
End of service by country, on the employee's own history
The HR & Payroll module computes the settlement from the file: the basic wage on the end date, the days of unpaid leave recorded, the leave balance from the same engine that counted it during service, the loans outstanding. The UAE formula, the Saudi half-and-full-month formula and the Egyptian rules are settings per country, and the settlement prints in Arabic and English.
Questions we are asked
Is gratuity calculated on basic or total salary?
On the basic wage stated in the contract. Allowances are excluded unless the contract promises a more generous basis.
Does the employee lose gratuity by resigning?
No. Since February 2022 the full amount is due after one year of service, whoever ends the contract.
What about an employee who worked eleven months?
Nothing is due; the first year must be completed. From the first day of the second year the fraction is pro-rated.
When must it be paid?
Within 14 days of the end date, with the other end-of-service entitlements.