Last Updated: November 26, 2026
Quick Summary
You calculate end of service gratuity by multiplying your daily basic wage by 21 days for each of your first five years of service, then by 30 days for every year after that, and adding the two figures together. A gratuity calculator applies this formula, and the result is capped at two years' total wage under UAE rules.
- Only your basic salary counts toward gratuity; housing, transport and other allowances are excluded.
- Your daily wage is your monthly basic salary divided by 30.
- Service up to five completed years earns 21 days' basic wage per year; every year after earns 30 days.
- Unpaid leave days are excluded from continuous service, reducing the service length used in the calculation.
- The maximum gratuity cap is two years' wage, meaning 24 months of basic salary.
Table of Contents
- How do I calculate end of service gratuity?
- UAE gratuity calculation formula explained
- UAE gratuity calculation examples for common scenarios
- Gratuity after resignation UAE: what changes
- MOHRE gratuity calculator and official tools
- Partial years, unpaid leave, and the maximum gratuity cap
- Final settlement beyond gratuity: what else is owed
- Download a ready-made gratuity calculator template
- Frequently Asked Questions
How do I calculate end of service gratuity?
You calculate end of service gratuity by multiplying your daily basic wage by 21 days for each of your first five years of service, then by 30 days for every year after that, and adding the two figures together. The result is capped at two years' total wage, per UAE rules. This guide walks you through the end of service gratuity calculation step by step, so you can estimate your payout before you sign anything.
The formula itself is simple. The trouble starts when salary components, partial years, or unpaid leave enter the picture. Below, we show you exactly how to work through each one.

What you need before you start
Gather four things before you touch any gratuity calculator: your basic salary, your employment start date, your employment end date, and any unpaid leave days. Basic salary is the figure that counts, not your full package.
Most people reach for their total salary first. That is the single most common error we see. Keep your employment contract nearby so you can confirm the basic wage figure in writing.
UAE gratuity calculation formula explained
The UAE gratuity calculation formula is: (21 × daily basic wage × years of service up to five) + (30 × daily basic wage × years of service beyond five). Your daily wage is your monthly basic salary divided by 30. The total cannot exceed two years' wage, as set out in Gulf News gratuity calculator guidance.
Worked through, a monthly basic salary of AED 10,000 gives a daily wage of AED 333.33. Five years at that rate produces AED 35,000. Three further years at 30 days each adds AED 30,000, for a total of AED 65,000.
First five years vs service beyond five years
The rate changes at the five-year mark, and that change is where most manual calculations go wrong. Service up to five completed years earns 21 days' basic wage per year. Every year after that earns 30 days.
A partial year counts proportionally. If you leave after three years and 157 days, the extra days are converted into a fraction of a year and added to the completed years.
Basic salary vs total salary: which one counts
Only basic salary counts toward gratuity. Housing, transport, phone, and other allowances are excluded from the eligible wage, even though they appear on your payslip every month.
This is the distinction that separates an accurate estimate from an inflated one. If your contract lists AED 6,000 basic and AED 4,000 allowances, you calculate on AED 6,000.
UAE gratuity calculation examples for common scenarios
Three scenarios cover most real cases. Each one uses the same formula but a different service length, which is where the numbers diverge.
| Scenario | Basic salary | Service | Calculation | Estimated gratuity |
|---|---|---|---|---|
| Short service | AED 8,000 | 2 years | 21 days × 2 | AED 11,200 |
| Mid service | AED 12,000 | 5 years | 21 days × 5 | AED 42,000 |
| Long service | AED 15,000 | 8 years | 21 days × 5 + 30 days × 3 | AED 97,500 |
Service
For a partial year, prorate the final period. A full-time employee who works three years and 157 days at AED 10,000 basic earns roughly AED 24,700. If you need to prorate a partial-year salary first, use the pro rata salary calculator to get the monthly figure right before you apply the formula.
Gratuity after resignation UAE: what changes
Gratuity after resignation UAE rules depend on how long you have served. Under the federal labour law, a private-sector employee who resigns after completing one year of continuous service is entitled to gratuity. The calculation formula stays the same.
What changes is the practical detail. Your employment end date must reflect your last working day, not the date you handed in notice. Notice pay sits separately from gratuity and belongs in the final settlement, not the gratuity line.
Termination follows the same formula for a standard exit. Where dismissal is for cause under the labour law, entitlement can be affected, so check the specific circumstances with MOHRE or an HR adviser.
MOHRE gratuity calculator and official tools
The MOHRE gratuity calculator is the official reference point for checking an estimate, and it is a useful tool for a first sanity check. It applies the prevailing federal private-sector rules: 21 days' basic wage per year for the first five completed years, 30 days per year thereafter, capped at two years' total wage. Several government and news portals publish calculators that apply the same rules, including Dubai Development Authority's gratuity calculator.
What official tools typically ask for is narrow: basic salary, start date, end date, and contract type. That narrowness is the point. It keeps the output consistent with the statutory formula and reduces the chance of an inflated estimate. What they do not do is reconcile your payslip, handle multiple employees, or account for every final-settlement line.
A common pattern is to use the official calculator as a cross-check and a spreadsheet as the working record. Run the official tool once for the employee, then compare its figure against your own calculation. If the two differ by more than a small rounding margin, the cause is usually one of four things: total salary entered instead of basic salary, an end date that reflects the notice period rather than the last working day, unpaid leave that was not excluded from service, or a partial year that was rounded rather than prorated.
Watch out: an online calculator that asks for total salary rather than basic salary will overstate your gratuity every time. Check the input field before you trust the output, and treat any result that cannot show its formula as indicative only.
Official tools are also less useful for running a full payroll, because they handle one employee at a time. For a team, you need a sheet that holds every employee's dates and basic salary side by side, with the formula visible so each line can be audited. That is the difference between an estimate you can defend and a black-box number you cannot.
Partial years, unpaid leave, and the maximum gratuity cap
Partial years and unpaid leave are the two adjustments that change a final figure most often, and they are where most manual calculations and online estimates diverge. The maximum gratuity cap is two years' wage, per Khaleej Times calculator guidance, and it only becomes relevant for long service on a high basic salary, but when it applies, it overrides the formula entirely.
Start with the mechanism for a partial year. Completed years are counted first, then the remaining days are converted into a fraction of a year and added. If an employee leaves after three years and 157 days on a basic salary of AED 10,000, the daily wage is AED 333.33. The three completed years earn 21 days each: 63 days × AED 333.33 = AED 21,000. The remaining 157 days are prorated at the same 21-day rate: 157 ÷ 365 × 21 × AED 333.33 ≈ AED 3,010. The total is roughly AED 24,010. Rounding the 157 days up to a full year would overstate the figure by thousands, which is why the proration step matters.
Unpaid leave works differently. Unpaid leave days are excluded from continuous service, so they reduce the length of service used in the calculation rather than the salary. If an employee takes 30 days of unpaid leave across a four-year period, the eligible service is four years minus 30 days, and the partial-year proration is applied to the reduced figure. The same logic applies to any extended absence that the contract or the labour law treats as non-continuous.
Date boundaries matter too. Your start date is the first day of employment, and your end date is the last working day, not the date the settlement is paid and not the date notice was handed in. A one-day error at either end shifts a partial year slightly, and across a large payroll those small shifts add up. Keep the contract, the resignation or termination letter, and the final payslip together so the dates can be reconciled.
Now the cap. Two years' wage means 24 months of basic salary, not 24 months of total package. For an employee on AED 15,000 basic with 12 years of service, the uncapped formula gives 21 days × 5 years plus 30 days × 7 years, which is 105 days plus 210 days, or 315 days of basic wage, well above the 24-month cap, so the payout is limited to 24 months of basic salary, or AED 360,000. The cap is the reason long-service, high-salary cases should always be checked against the 24-month ceiling before the figure is finalised.
If unpaid leave is on your record, work through the deduction with the unpaid leave calculator before you finalise the service length, and keep a note of the excluded days so the calculation can be explained if the employer's figure differs.
Final settlement beyond gratuity: what else is owed
Gratuity is only one line in a final settlement. A leaver is typically also owed salary up to the last working day, payment for untaken leave, and notice pay where applicable, less any loans or advances.
Leave encashment is the item most often missed. Untaken annual leave is paid out at the basic wage rate, and it can add a meaningful sum on top of gratuity. Calculate it with the leave encashment calculator so it appears as a separate, visible line.
For the full picture, the final settlement calculator totals gratuity, unpaid salary, leave encashment, notice pay, and deductions into one net figure.
Download a ready-made gratuity calculator template
Building the formula from scratch in a blank spreadsheet takes an afternoon and invites formula errors. A ready-made file skips that step. Download the gratuity calculator Excel template and enter your basic salary and service dates to get an automatic estimate.
The template applies 21 days' basic pay per year for the first five years and 30 days after, and it calculates years of service, daily basic wage, and total gratuity for you. It includes example rows and a step-by-step "How to Use" sheet. It downloads instantly as an .xlsx file and works in Excel 2010+, Excel online, Google Sheets, Numbers, and LibreOffice, in any currency.
The Template Desk offers a 7-day money-back guarantee on purchases.
Estimating gratuity by hand is where small errors become expensive ones, especially across a full team. The Template Desk gives you working files that handle the calculation for you, with UAE-specific logic already built in. Get started with The Template Desk and turn a manual formula into a repeatable, auditable process.
Frequently Asked Questions
Is gratuity calculated on basic salary or total salary?
Gratuity is calculated on the basic salary, not the total package. The formula uses 21 days of basic wage for each of the first five years and 30 days for each additional year. Allowances such as housing, transport, and mobile are excluded from the eligible wage. If your contract states a basic salary of AED 10,000 and total salary of AED 18,000, only the AED 10,000 basic feeds into the gratuity calculator.
How much gratuity do I get after one year of service?
After one completed year, the gratuity is 21 days of basic wage. For a basic salary of AED 10,000, the daily wage is roughly AED 333, so one year of service produces about AED 7,000. Partial years are usually calculated on a pro-rata basis, so the exact figure depends on the number of days worked in the final year. Use a gratuity calculator to enter your start and end dates for a precise estimate.
Can I calculate gratuity if I resign?
Yes. Resignation does not remove your right to end-of-service benefits, but the amount depends on how long you have served. Under current federal private-sector rules, an expatriate employee who resigns after completing one year of continuous service is entitled to gratuity calculated on the same 21-day and 30-day formula. The resignation date becomes your employment end date in the gratuity calculator.
Is there a maximum limit on end-of-service gratuity?
Yes. Total gratuity must not exceed two years' total wage, under the rules in force; check the current official text for the version that applies. That cap applies regardless of how many years you have served. For long-serving employees, the cap often becomes the binding figure, so the gratuity calculator should show both the formula result and the two-year cap so you can see which one applies.


