The formula
The law counts a month as 30 days, so your daily wage is your last basic monthly salary divided by 30. You are owed 21 days of wage for each of your first five years of service and 30 days for each year after the fifth. Part years are paid in proportion, measured in days out of 365. The total gratuity may not exceed two years' wage.
Basic wage, not total wage
The amount is based on your last basic wage, which is the wage in your contract without allowances or benefits in kind. Your total wage, which is the basic wage plus allowances, only matters for the upper limit.
Resigning does not reduce gratuity
Under Federal Decree-Law No. 33 of 2021 the amount depends only on your basic wage and your length of service. The old reductions for resigning under the 1980 law no longer apply. You must still have completed at least one year of continuous service.
Less than a year: no gratuity
Article 51 pays gratuity only to a worker who has completed one or more years of continuous service. Once you pass one year, the extra days are paid in proportion.
Unpaid leave reduces service days
Article 51(4) says days of absence from work without pay are not counted in your length of service, so they reduce the days used in the calculation.
The two-year cap
Article 51(6) says the total gratuity may not exceed "two years' wage". Article 1 defines "Wage" as the basic wage plus cash allowances and benefits in kind, while "Basic Wage" excludes allowances. The law does not say directly which one the cap uses, so calculators differ. If you enter your total wage, ours caps at 24 times the total wage; otherwise it uses the stricter 24 times the basic salary. For long service the two can differ, so check with MOHRE or your employer if the cap applies to you.
Who this does not cover, and when you must be paid
UAE nationals receive end-of-service benefits under the pensions and social security law. Free zones with their own employment law (such as DIFC and ADGM), part-time work, piece-rate pay and the voluntary savings scheme follow different rules. The labour law requires the employer to pay a worker's dues within 14 days of the end of the contract. If it does not, you can file a complaint with MOHRE.