1. Home
  2. Blog
  3. HR & Payroll

HR & Payroll

End-of-Service Gratuity: Let Software Do the Maths

End-of-service gratuity in the UAE is calculated from the employee's basic wage and completed service, with rules that depend on how the employment ended. Software that accrues it every month gives you an accurate liability and a dispute-free final settlement.

SZ
Sahil ZainiFounder & Developer
·08 Nov 2026·6 min read

End-of-service gratuity in the UAE is calculated from an employee's basic wage and their completed years of service, under rules set out in the Labour Law and its implementing resolutions published by the Ministry of Human Resources and Emiratisation. The arithmetic is not hard for one person, but across a workforce with different joining dates, salary changes, unpaid leave and contract endings it becomes error-prone, and errors turn into labour disputes. Software that accrues gratuity every month and generates the final settlement from existing records removes the guesswork. This article explains what goes into the calculation, where spreadsheets fail, and what to expect from a good system.

What the calculation depends on

Without quoting figures that may change, the structure of the UAE gratuity rule is stable and worth understanding:

  • Basic wage. Gratuity is based on the basic salary, not the full package. Allowances for housing, transport and similar are excluded.
  • Completed service. The entitlement grows with each year of service, and the law sets a different rate for the earlier years than for later ones. Partial years are usually treated pro-rata once a minimum qualifying period has been met.
  • How the contract ended. Resignation, termination, end of a limited contract and dismissal for cause can each affect the entitlement.
  • Unpaid days. Periods of unpaid leave are generally not counted as service.
  • A cap. The law places an upper limit on the total gratuity relative to wage.

The current parameters are on mohre.gov.ae. Some free zones with their own employment regulations apply variations, so confirm which regime covers your licence. Our point here is not to restate the law but to show why each of these inputs has to be captured as data, every month, rather than reconstructed from memory when someone resigns.

Where spreadsheet calculations go wrong

We see the same mistakes in most companies that move to a system:

  1. Using total salary instead of basic. Overpays every employee, sometimes by a large margin, and once paid is hard to recover.
  2. Ignoring salary history. The relevant wage is the one in force at the end of service, but a spreadsheet set up years ago may still hold the joining salary.
  3. Counting unpaid leave as service. Three months of unpaid leave in a five-year career changes the figure.
  4. Wrong rule for the ending type. Treating a resignation under an old contract type the same as a termination.
  5. No accrual at all. The owner only discovers the liability when a long-serving manager leaves, and the amount is larger than the month's cash position.
  6. No evidence. When the employee disputes the amount, nobody can show how it was derived.

Each mistake is a data problem. The fix is a system where basic wage, service dates, leave records and contract type live on the employee record and the calculation reads from them.

What good gratuity software does

Monthly accrual

Every pay run, the system calculates the gratuity earned to date for each employee and posts the movement as a provision in your accounts. Finance sees the total liability; the owner sees it on a dashboard. Nothing is a surprise.

Rule versioning

Labour rules change. The engine should store which version of the rule applied to each calculation and let you re-run a scenario under a different rule when the law is updated. Ask vendors how they handled the change from the previous Labour Law regime to the current one.

Final settlement in one document

When an employee leaves, HR enters the last working day and the ending type. The system pulls pending salary for days worked, unused annual leave, outstanding loans and advances, overtime or commission due, and gratuity, and produces a settlement statement the employee can read line by line. The statement is stored with the record and the payment flows through payroll like any other.

What-if calculator

Managers often need to know the cost of a planned restructuring or the entitlement of someone considering resignation. A calculator that uses live data answers in seconds without exposing the full payroll.

Audit trail

Who changed the basic wage, when, and on what authority. This matters for gratuity more than for almost any other HR field, because a change years ago affects a payout today. We explain why in audit trails in business software.

A worked example without numbers

InputWhere it comes fromCommon error
Basic wage at exitSalary structure on employee record, with historyUsing joining salary or total package
Service start and endContract dates, last working dayUsing visa date instead of contract date
Unpaid leave daysLeave moduleNot deducted from service
Contract type and endingHR record, exit formWrong rule applied
Leave balanceLeave moduleCalculated manually, disputed later
Loans and advancesPayroll deductions ledgerForgotten, written off

When all six inputs are maintained as part of normal monthly HR work, the final settlement is produced in minutes and both sides can see the basis for every line.

Fitting gratuity into the rest of payroll

Gratuity does not stand alone. It depends on the same employee master and leave data that drive the WPS file and payslips. With wages now due on the 1st of the following month under Ministerial Resolution No. 340 of 2026, and the WPS compliance threshold at 85%, the month-end process has less slack than before, and a final settlement that holds up the salary file for everyone else is a real risk. See HR and payroll software for UAE companies for how the modules fit together, and 8 payroll mistakes UAE SMEs make for the wider list of errors that software prevents.

Frequently asked questions

Is gratuity calculated on total salary or basic salary?

On the basic wage, not the total package. Housing, transport and other allowances are excluded, which is why the split between basic and allowances in the labour contract matters so much. If your HR records show a single salary figure with no breakdown, the system cannot calculate gratuity correctly and you should fix the master data first.

Why should gratuity be accrued monthly if it is paid at the end?

Because it is a real liability that grows every month, and an owner who does not see it will be surprised by a large payout when a long-serving employee leaves. Monthly accrual gives finance an accurate figure for the balance sheet, lets you plan cash, and means the final settlement is a confirmation rather than a calculation done under pressure.

What goes into a final settlement besides gratuity?

Typically the salary for days worked in the final month, payment for unused annual leave, any pending overtime or commissions, less any outstanding loans, advances or agreed deductions, plus gratuity. Some contracts also include repatriation arrangements. A good system pulls each of these from existing records so nothing is forgotten and the employee sees how every line was derived.

Can software handle the different rules for resignation and termination?

Yes, provided the rules are configured from the current law and kept up to date. The system should ask how the contract ended and for what service period, then apply the matching rule. Because labour rules change, choose a vendor who updates the engine and lets you see which rule version was applied to each calculation.

Where do I find the official gratuity rules?

The Ministry of Human Resources and Emiratisation publishes the Labour Law and its implementing resolutions at mohre.gov.ae. Free zones with their own employment regulations may have differences, so check the authority that governs your licence. When in doubt, have a labour adviser confirm the rule and then make sure your software reflects it.

How Zaini Developers can help

StaffManager Pro accrues gratuity monthly, versions the rules it applies, and produces a line-by-line final settlement from your existing salary, leave and loan records. We configure the rule set with your labour adviser, because we are the software team, not legal counsel, and we keep the engine updated as MoHRE resolutions change. It works alongside our ERP and accounting integrations so the provision reaches your books automatically. Contact us or explore the live demo.

Let's build together

Have a project in mind?
Let's build it together.

Every project is quoted to your exact requirements — no fixed price list, no surprises.

120+Projects delivered
100+Happy clients
5+Years experience
Chat with usReplies within the day