How gratuity is calculated: the formula, eligibility and tax
Published
Gratuity is a lump sum your employer pays when you leave after a long period of service. The sum is simple, but the rules around it are not: who qualifies, how a part-year counts, which salary to use and how much is tax-free. This guide answers each with a worked example.
Try it now: Gratuity Calculator, PPF Calculator.
What is the gratuity formula?
For employees covered by the Act, gratuity is the last drawn monthly salary × 15 ÷ 26 × the years of service. The 15 stands for 15 days of pay for each year, and the 26 is the number of working days in a month. With a salary of 50,000 a month and 10 years of service, the gratuity is 50,000 × 15 ÷ 26 × 10 = 2,88,461.54. Here is how it grows at the same salary: The gratuity calculator applies the formula and checks eligibility.
| Years of service | Gratuity |
|---|---|
| 5 | 1,44,230.77 |
| 10 | 2,88,461.54 |
| 15 | 4,32,692.31 |
| 20 | 5,76,923.08 |
Who is eligible for gratuity?
A permanent employee is eligible after five years of continuous service with the same employer, on resignation, retirement or termination. No minimum applies if the employee dies or becomes disabled, and the gratuity is then payable in full. Under the new labour codes, in force since 21 November 2025, fixed-term employees are eligible after one year instead of five. Leaving at four years and eleven months, for example, means no gratuity, which is why timing a resignation matters.
How are the years of service counted?
For covered employees, a last part-year of more than six months counts as a full year, and six months or less is ignored. With a salary of 50,000, service of 7 years 7 months counts as 8 years and gives 2,30,769.23, while 7 years 6 months counts as 7 years and gives 2,01,923.08. The seventh month makes a difference of nearly 29,000.
What if the employer is not covered by the Act?
Then the formula uses a 30-day month, and only completed years count: salary × 15 ÷ 30 × years. At 50,000 and 10 years that is 2,50,000.00, which is 38,461.54 less than a covered employee would get. A part-year is not rounded up. The amount your employer actually pays is set by your contract and policy, so the formula is a guide.
Which salary counts?
The salary used for gratuity is the last drawn basic pay plus dearness allowance, and commission on sales if there is any. Allowances such as HRA are not included. The new labour codes define wages more widely, so the figure your employer uses may differ. Check your payslip or ask HR, because a higher figure raises the gratuity in proportion. To see where basic sits in your pay, read how CTC becomes in-hand salary.
Is there a limit, and is gratuity taxable?
The Act limits gratuity to 20 lakh. If the formula gives more, 20 lakh is payable. For a private-sector employee, the gratuity is tax-free under the present rules up to the lowest of the amount received, the formula amount and 20 lakh, and anything above is taxed as salary. A salary of 3,00,000 with 40 years of service gives a formula amount of 69,23,076.92, so only 20,00,000 is paid under the Act. Tax rules change, so check the current position. The income tax guide explains the slabs.
What salary gives a target gratuity?
Turn the formula around: salary = gratuity × 26 ÷ (15 × years). To receive 10 lakh after 20 years you would need a last drawn salary of 86,666.67 a month, which gives a gratuity of 10,00,000.04. Because salaries rise over a career, the final salary matters much more than the early ones.