Skip to main content
Apragya AIFree quotation builderQuotation builderQuote builderno signup
Payroll compliance guide

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.

A retiring employee holding marigolds in a pharma warehouse aisle

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.

  1. Count service from joining date to last working day.
  2. Round up if the part year exceeds six months.
  3. Take last drawn basic plus DA.
  4. Multiply by 15, divide by 26, multiply by the years.
  5. 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

  1. Service counted

    8 years and 7 months from joining to exit.

  2. Rounded up

    Over six months, so 9 years.

  3. Wages taken

    Basic plus DA of INR 32,000.

  4. Formula applied

    15 by 26 of 32,000, times 9.

  5. Amount

    INR 1,66,154, within the ceiling.

The seven extra months added a full year's gratuity to Meena's payment.

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.

A wall of nine bricks, the last one lighter, beside a pot of coins
Meena's seven extra months became a ninth year of gratuity.

How Apragya handles gratuity calculation in payroll

Step 1 of 5

Gratuity rule

Minimum service, 15 and 26, rounding threshold, wage components and caps.

  1. Gratuity rule: Minimum service, 15 and 26, rounding threshold, wage components and caps.
  2. Service: Joining date and last working day from the employee record.
  3. Last drawn wages: Taken from the latest payslip for the components in your rule.
  4. Preview and save: The amount, exempt and taxable parts, saved with the rule used.
  5. 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

FeatureSpreadsheetApragya Payroll
Service yearsCounted by handFrom joining and exit dates
RoundingVaries by personSet in the rule
Wages usedLooked upFrom the latest payslip
CeilingsRememberedConfigured caps
HistoryOverwrittenEach 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

  1. Check that every employee has a joining date.
  2. Set up your gratuity rule and mark it as default.
  3. Decide which salary components count as wages.
  4. Preview the gratuity for a few long-serving employees.
  5. 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

INR 3,999
Starter, a month
Up to 10 users, CRM and HR plus Payroll
2,000
AI Credits a month
Included on Starter
Free
Up to 3 users
CRM, HR and Vendor Onboarding

Gratuity formula, answered

Who is eligible for gratuity?
Employees with at least five years of continuous service, and earlier on death or disablement. The Code on Social Security also covers fixed-term employees after one year. Check your case.
Which wages count?
Basic and dearness allowance for the formula. The labour codes' wage definition may bring back part of large allowances, so review structures with an adviser.
Is gratuity taxable?
For non-government employees it is exempt up to a limit, currently INR 20 lakh, and the rest is taxable.
Where does 4.81 percent come from?
It is 15 divided by 26, spread over 12 months: a common way to provide for gratuity monthly.
What does it cost to start?
Payroll is available from the Starter plan, INR 3,999 a month for up to 10 users, which includes CRM and HR plus a choice of enterprise apps and 2,000 AI Credits a month. Pro, at INR 7,999 a month, covers 25 users and every enterprise app.

Apply one gratuity rule to every exit

Set up your rule and preview it for your longest-serving people.