Gratuity Calculation: The Formula, Eligibility Rules and a Worked Example
For HR and payroll teams paying gratuity on exit or retirement: who is eligible, how service is counted, how the amount and its tax treatment are worked out, and how to provide for it.
Gratuity calculation follows a short formula, but each input carries a rule: which wages count, how part years are rounded, when the minimum service applies and where the ceiling sits. Get one wrong and the payment is disputed.
Many SMEs work it out only when someone leaves. By then the salary history is in old sheets, the joining date is in a paper file, and nobody has provided for the cost in the books.
This guide covers the rules, works through an illustrative calculation, and shows how Apragya applies a configurable gratuity rule to every exit.
Gratuity rules and the formula
The Payment of Gratuity Act applied to establishments with 10 or more employees, and its rules now sit in the Code on Social Security, in force since November 2025. Gratuity is payable after five years of continuous service on resignation, retirement or termination, and without the minimum on death or disablement. The Code adds fixed-term employees after one year.
For covered employees the formula is 15 days' wages for each completed year: last drawn basic plus DA, times 15, divided by 26, times years of service. A part year of more than six months counts as a full year. The statutory ceiling is currently INR 20 lakh.
In the example, 32,000 times 15 over 26 is about 18,462 for each year, and 9 years give INR 1,66,154. Employers outside the Act use a slightly different tax formula. Check current limits before paying.
- Count service from joining date to last working day.
- Round up if the part year exceeds six months.
- Take last drawn basic plus DA.
- Multiply by 15, divide by 26, multiply by the years.
- Apply the ceiling and split exempt and taxable parts.
What getting gratuity wrong costs
Disputes
Wrong rounding or wages lead to claims before the controlling authority.
Interest
Late payment beyond the permitted period attracts interest.
Unplanned cost
A long-serving exit hits a month with no provision.
Tax errors
The exempt and taxable parts are not separated.
An example: a retirement at an Indore pharma distributor
Take an illustrative pharma distributor in Indore. Meena joined on 10 March 2018 and retires with a last working day of 25 October 2026. Her last drawn basic plus DA is INR 32,000.
Meena's gratuity, from dates to amount
Service counted
8 years and 7 months from joining to exit.
Rounded up
Over six months, so 9 years.
Wages taken
Basic plus DA of INR 32,000.
Formula applied
15 by 26 of 32,000, times 9.
Amount
INR 1,66,154, within the ceiling.
Meena's gratuity of INR 1,66,154 was fully within the exemption limit, so no tax was deducted on it. The calculation was saved with the rule used, and it went into her settlement the same week.
How Apragya handles gratuity calculation in payroll
Step 1 of 5
Gratuity rule
Minimum service, 15 and 26, rounding threshold, wage components and caps.
- Gratuity rule: Minimum service, 15 and 26, rounding threshold, wage components and caps.
- Service: Joining date and last working day from the employee record.
- Last drawn wages: Taken from the latest payslip for the components in your rule.
- Preview and save: The amount, exempt and taxable parts, saved with the rule used.
- Into the settlement: Added to the full and final settlement for the exit.
Gratuity formula and eligibility: sheet against rule
A gratuity sheet repeats the formula but not the judgement around it: the rounding, the waiver on death or disablement, which allowances count. A configured rule applies the same judgement every time and keeps a record of which rule was used.
Gratuity by hand, against Apragya
| Feature | Spreadsheet | Apragya Payroll |
|---|---|---|
| Service years | Counted by hand | From joining and exit dates |
| Rounding | Varies by person | Set in the rule |
| Wages used | Looked up | From the latest payslip |
| Ceilings | Remembered | Configured caps |
| History | Overwritten | Each calculation saved |
Checked against public information on 16 September 2026.
What sets Apragya apart for gratuity
One record
Dates, pay and exit on the same employee.
Several rules
Different rules can exist, with one set as default.
Saved calculations
Rules in use cannot be deleted, so history stays intact.
Monthly provision
A gratuity component at 4.81 percent of basic can be tracked in payroll.
Human review
Settlements are approved by a person.
AI you can put to work
An agent can list employees nearing five years of service.
Gratuity is paid as part of the full and final settlement, and the wider statutory setup is in payroll software for India.
Getting started
- Check that every employee has a joining date.
- Set up your gratuity rule and mark it as default.
- Decide which salary components count as wages.
- Preview the gratuity for a few long-serving employees.
- Use the rule for the next exit.
Previewing a few long-serving employees also tells finance what to provide for.
What it costs to start
Gratuity formula, answered
Who is eligible for gratuity?
Which wages count?
Is gratuity taxable?
Where does 4.81 percent come from?
What does it cost to start?
Apply one gratuity rule to every exit
Set up your rule and preview it for your longest-serving people.