Built for Sri Lankan payroll: EPF, ETF and APIT done for you
NovaHR

Gratuity calculation in Sri Lanka, with an Excel formula you can copy

Half a month’s salary for each completed year: who qualifies, a worked example, an Excel formula for a whole staff list, and why Indian gratuity formulas do not apply.

Published 20 November 2026 · 2 min read · By the NovaHR team

The short answer

  • Gratuity = last monthly salary ÷ 2 × completed years of service.
  • It is owed to people with at least 5 completed years, by employers with 15 or more workers (many smaller firms pay it by policy).
  • Pay it within 30 days of the job ending.
  • Ignore formulas with “15/26”: they are from India’s gratuity law, not Sri Lanka’s.

The rule

Under the Payment of Gratuity Act No. 12 of 1983, monthly paid staff get half of their last monthly salary for each completed year of service. Daily paid staff get 14 days’ wages per completed year. Part years do not count. Read the full rules in our gratuity guide.

Worked example

Someone leaves after 8 years and 7 months on a last salary of Rs 120,000. Completed years: 8. Gratuity: 120,000 ÷ 2 × 8 = Rs 480,000.

An Excel formula for your staff list

Put the join date in column B, the last monthly salary in column C and the leaving date (or today) in column D. In column E, completed years: `=DATEDIF(B2, D2, "y")`. In column F, gratuity owed: `=IF(E2>=5, C2/2*E2, 0)`.

Copy both formulas down the list and total column F to see what the company would owe if everyone left today. That figure is your gratuity liability, and it grows every year people stay.

Check eligibility rules for your company, such as the 15-worker threshold and any company scheme that pays more than the Act. A scheme can be more generous, never less.

Tax on gratuity

Gratuity is a terminal benefit and has its own tax treatment under APIT. Check the current IRD rules for terminal benefits before you pay a large amount.

Sources

General information, not legal or tax advice. Laws and rates change, so check your own situation with the Department of Labour, the Central Bank EPF Department, the ETF Board or the Inland Revenue Department.

Keep reading