Gratuity calculator
Work out your gratuity under the new Code on Social Security or the old Payment of Gratuity Act, for permanent and fixed-term jobs, with every step shown. Leave encashment is further down the page.
Which rules
The Code on Social Security applies if you left on or after 21 November 2025; the old Act if you left before.
Type of employment
How it ended
Basic pay plus dearness allowance, from your last salary slip
HRA, conveyance, special allowance and the like. Used for the new 50% rule; optional.
Gratuity under the Code on Social Security
Enter your service and last drawn basic + DA to see your gratuity.
For establishments with ten or more employees, and for factories, mines, plantations, ports and railway companies. Government employees under their own gratuity rules, seasonal and piece-rated staff, and working journalists (three years) have different rules. This is the amount the law sets; an award, agreement or your contract can give you more.
How to use the gratuity calculator
- Choose the rules. If your last working day was on or after 21 November 2025, it's the new Code; before that, the old Act. With dates, the calculator picks for you.
- Say whether you are permanent or on a fixed-term contract, and how your employment ended.
- Enter your length of service, as years, months and days or as your joining date and last working day.
- Enter your last drawn basic pay plus dearness allowance a month. Under the new rules, add your other allowances too, for the 50% rule.
- Read the amount, the working line by line, and the same facts under both sets of rules.
Nothing you type leaves your browser. This is arithmetic from the rules below, not legal advice; your employer's HR team or a labour lawyer can confirm how they apply to you.
How gratuity is calculated
Gratuity = last drawn monthly wages × 15 ÷ 26 × years of service
You get 15 days' wages for every completed year of service, and for a part year of more than six months. For a monthly-paid employee, the law works out 15 days' wages by dividing the monthly wages by 26, the working days in a month, and multiplying by 15. The total can't be more than ₹20,00,000.
Worked examples
- Seven years and eight months. Basic + DA of ₹40,000 a month. The eight months are more than six, so 8 years count: ₹40,000 × 15 ÷ 26 = ₹23,077 a year, × 8 = ₹1,84,615.
- Six years and four months. Same wages. Four months is not more than six, so 6 years count: ₹23,077 × 6 = ₹1,38,462.
- Fixed-term, one year and eight months. Basic + DA of ₹30,000. Eligible after one year, and the eight months round up, so 2 years count: ₹17,308 × 2 = ₹34,615.
These are illustrations, rounded to the rupee.
Old rules and new rules
The Code on Social Security, 2020 came into force on 21 November 2025 and replaced the Payment of Gratuity Act, 1972, along with eight other laws. The formula carried over. What changed is who qualifies and what counts as wages.
| Rule | Payment of Gratuity Act, 1972 | Code on Social Security, 2020 |
|---|---|---|
| Applies when you leave | Before 21 November 2025 | On or after 21 November 2025 |
| Minimum service | 5 years | 5 years; fixed-term: 1 year |
| Death or disablement | No minimum | No minimum |
| Wages counted | Basic + DA | Basic + DA + retaining allowance, plus allowances above 50% of pay |
| Formula | 15 ÷ 26 × wages × years | 15 ÷ 26 × wages × years |
| Part year | Counts if over 6 months | Counts if over 6 months |
| Ceiling | ₹20 lakh | ₹20 lakh (as notified) |
Fixed-term employees: one year instead of five
Under the Code, gratuity is paid to fixed-term employees pro rata, and the five-year condition doesn't apply when a fixed-term contract ends. Rule 33 of the Social Security (Central) Rules, 2026 makes a fixed-term employee eligible after at least one year of service under the contract, and rounds a later part year of more than six months up to a full year. A fixed-term employee is engaged on a written contract for a fixed period; if you are on a contract, check that your appointment letter calls it fixed-term employment.
The 50% rule for wages
Wages for gratuity are basic pay, dearness allowance and any retaining allowance. HRA, conveyance, overtime, commission, bonus, the employer's PF and similar items are left out. But under the Code, if those left-out items add up to more than half of your total pay, the amount above half is counted as wages.
Illustration, from the Labour Ministry's own example: total pay of ₹60,000 a month, of which basic + DA is ₹20,000 and allowances are ₹40,000. Half of ₹60,000 is ₹30,000, so the allowances are ₹10,000 over the line, and wages for gratuity become ₹30,000. After ten years, that is ₹1,73,077 under the Code, against ₹1,15,385 on basic + DA alone under the old Act.
Exactly which items in your pay count towards the half is something to confirm with HR. The Labour Ministry's FAQs say the new definition applies to your whole service if you leave on or after 21 November 2025.
Who is eligible, and who isn't
- You work in a factory, mine, oilfield, plantation, port or railway company, or in a shop or establishment that has ten or more employees, or had on any day in the last twelve months.
- You have five years of continuous service (one year if fixed-term) when you retire, resign or your contract ends. On death or disablement, no minimum applies, and gratuity goes to your nominee or heirs.
- A year counts as continuous with breaks for leave, sickness and the like. If there were longer breaks, a year still counts if you worked at least 240 days in it (190 below ground in a mine or where the week is under six days).
- Working journalists qualify after three years. Seasonal workers get seven days' wages a season; piece-rated workers' wages are averaged over the last three months. Government employees covered by their own gratuity rules are outside the Code.
- Gratuity can be forfeited to recover loss you caused by wilful damage or negligence, or if you were dismissed for violent or disorderly conduct or an offence involving moral turpitude at work.
Gratuity and income tax
For tax year 2026-27, the Income-tax Act, 2025 lists what can be deducted from salary in a table in section 19. For people who are not government employees, it has two entries for gratuity:
- Gratuity received under the Payment of Gratuity Act, 1972 (entry 5): deductible up to the amount worked out under that Act's formula and ceiling, so up to ₹20,00,000.
- Any other gratuity on retirement, incapacity or termination (entry 6): the least of the gratuity received, the limit the Government notifies (₹20,00,000 since March 2019), and half a month's average salary (basic + DA over the last ten months) for each completed year. Amounts exempted in earlier years reduce the limit.
The table still names the 1972 Act, which the Code has replaced, and the Act doesn't say how entry 5 reads for gratuity paid under the Code. Ask your employer's payroll team which entry they apply before you count on the tax-free amount. Death-cum-retirement gratuity under the Central Government's pension rules and similar government schemes is fully deductible under entry 3.
Leave encashment calculator
Leave encashment is the pay for earned or privilege leave you haven't taken, paid when you leave or, if your policy allows, during service.
Or the pay your leave policy uses for encashment
Earned or privilege leave at your credit
A day's pay is a month's pay
Your leave policy or appointment letter says which. Dividing by 26 gives a higher day rate.
Leave encashment
Enter your basic + DA and the leave days to see the amount.
How leave encashment is calculated
Leave encashment = (basic + DA) ÷ 30 × leave days
No law fixes the divisor for private employers: your company's leave policy or appointment letter does. Policies commonly divide a month's pay by 30, the calendar days in a month, or by 26, the working days. Illustration: ₹45,000 basic + DA and 40 days of leave is ₹45,000 ÷ 30 × 40 = ₹60,000, or ₹69,231 if your policy divides by 26.
The Labour Ministry's FAQs say a one-time leave encashment is not wages under the Labour Codes, so it isn't added in to work out gratuity, PF or other statutory benefits.
Tax on leave encashment
- While you are in service: taxed as salary.
- Central or state government employees, on retirement: fully deductible (section 19, entry 13).
- Everyone else, on retirement ("whether on superannuation or otherwise"): deductible up to the least of (a) the cash value of the leave at your credit, counting at most 30 days for each year of service, (b) ten times your average monthly salary over the last ten months, (c) ₹25,00,000, less anything exempted in earlier years, and (d) the amount received (entry 14). Salary here is basic plus DA, where your terms count DA, without other allowances.
The ₹25,00,000 limit was raised from ₹3 lakh by CBDT Notification 31/2023, from 1 April 2023, and section 536 of the 2025 Act keeps notifications made under the old Act in force. Illustration: you retire after 6 years with 240 days of leave, an average salary of ₹50,000, and receive ₹4,00,000. Only 180 days count for (a), worth ₹3,00,000; (b) is ₹5,00,000. So ₹3,00,000 is tax-free and ₹1,00,000 is taxed as salary. The calculator values (a) at the average salary ÷ 30 a day; your payroll may use your leave policy's rate. If you are resigning rather than retiring, ask payroll how they treat it.
To see how gratuity and PF sit inside your CTC, try the in-hand salary calculator; weighing an offer before you resign, the salary hike calculator.
Sources, checked on 23 November 2026
Each rule above comes from these official texts. This page isn't legal or tax advice; your employer, a labour lawyer or a tax adviser can confirm how the rules apply to you.
- PIB, Ministry of Labour and Employment, 21 November 2025: the four Labour Codes in force from 21 November 2025; gratuity for fixed-term employees after one year
- The Code on Social Security, 2020 (Act 36 of 2020), Gazette of India of 29 September 2020 (copy hosted by PRS Legislative Research): section 2(88) wages and the 50% proviso, sections 53, 54 and 164
- Social Security (Central) Rules, 2026, G.S.R. 344(E) of 8 May 2026, rule 33(1)(a): fixed-term employees after one year
- Ministry of Labour and Employment, Compilation of FAQs on Four Labour Codes and Central Rules (as on 25.10.2026): the ₹20 lakh ceiling, the 50% rule, past service and leave encashment
- Ministry of Labour and Employment, Compliance Handbook for Employers under the Four Labour Codes: gratuity (section 53) and the 50% rule
- The Payment of Gratuity Act, 1972 (Labour Department, Government of Haryana copy): section 2(s) wages, section 2A continuous service, section 4 payment of gratuity
- PIB, 30 March 2018: Payment of Gratuity (Amendment) Act, 2018 in force from 29 March 2018, so the ceiling of ₹10 lakh could be raised by notification
- PIB, 7 March 2019: gratuity ceiling ₹20 lakh from 29 March 2018, and the income-tax exemption for employees outside the Act raised to ₹20 lakh
- Income-tax Act, 2025, section 19: deductions from salaries, Table entries 5 and 6 (gratuity) and 14 (leave encashment on retirement)
- PIB, 25 May 2023: leave encashment exemption for non-government employees raised to ₹25 lakh (Notification 31/2023)
- Income-tax Act, 2025, section 536(2)(j): notifications under the 1961 Act continue under the 2025 Act
Questions about gratuity and leave encashment
How is gratuity calculated?+
Last drawn monthly wages × 15 ÷ 26 × years of service. Count each completed year, and a part year only if it is more than six months. For ₹40,000 a month and 7 years 8 months, that is 40,000 × 15 ÷ 26 × 8 = ₹1,84,615. The total can't exceed ₹20,00,000.
Which rules apply to me, the old Act or the new Code?+
It depends on when you leave. The Code on Social Security, 2020 came into force on 21 November 2025. The Labour Ministry's FAQs say that for anyone leaving on or after that date, gratuity is worked out under the Code, at the wages last drawn, using the new definition of wages for the whole service. If you left before it, the Payment of Gratuity Act, 1972 applied.
Do fixed-term employees get gratuity after one year?+
Yes, under the new rules. The Code pays fixed-term employees pro rata, and rule 33 of the Social Security (Central) Rules, 2026 makes them eligible after one year of service under the contract, with a later part year of more than six months rounded up to a year. The old Act had no such rule: five years were needed.
Is gratuity payable after 4 years and 240 days?+
The Code and the old Act both say not less than five years of continuous service, except on death or disablement. The 240-day figure is from the rule that decides whether a year counts as continuous service when there were breaks, not a rule that four years and 240 days make five. Don't plan a resignation around it without your employer's written confirmation.
What counts as wages for gratuity now?+
Basic pay, dearness allowance and retaining allowance. Under the Code, if the parts left out of wages, such as HRA, conveyance and other allowances, are more than half of your total pay, the excess is added back to wages. So a salary that is mostly allowances can give a higher gratuity than before.
What is the maximum gratuity?+
₹20,00,000. The Code leaves the ceiling to the Central Government; the Labour Ministry's FAQs (as on 25 October 2026) give it as ₹20 lakh, the figure in force since 29 March 2018. Your employer can pay more under your contract or an agreement.
How soon must my employer pay gratuity?+
Within 30 days of the date it becomes payable, under section 56 of the Code, as the Labour Ministry's handbook for employers sets out. Apply in Form IV if your employer doesn't process it with your full and final settlement.
Is leave encashment taxable?+
Leave you encash while still in service is taxed as salary. When a non-government employee retires, part of it is tax-free: the least of the leave at credit (at most 30 days for each year of service), ten months' average salary, ₹25,00,000, and the amount received. Central and state government employees get the whole amount free of tax.
For your job search
- Gratuity in India: Eligibility, Formula and a Worked Example (2026)
- CTC to In-Hand Salary: How to Calculate Your Take-Home Pay (FY 2026-27)
- Resignation Letter Format: 8 Samples for Every Situation (India)
- Notice Period and Notice Buyout in India: Rules, Calculation and How to Ask for Early Release
- Free tool: CGPA to percentage calculator
- Free tool: SGPA and CGPA calculator
- Free tool: Marks percentage calculator
- Free tool: Attendance calculator
- Free tool: Photo and signature resizer
- Free tool: PDF maker: photos to PDF, merge PDFs
- Free tool: In-hand salary calculator (CTC to take-home)
- Free tool: Salary hike calculator
- Free tool: HRA exemption calculator
- Free tool: PF calculator (EPF)
- Free tool: Notice period calculator
- Free tool: Biodata for job
- Free tool: Resignation letter generator
- Free tool: Rent receipt generator
- Free tool: ATS resume checker (honest)
- Free tool: Job offer scam checker

Made by
Founder, LeelaRam Technologies
Founded LeelaRam Technologies after building and running e-commerce technology for a live jewellery brand. Builds SellRank and Upfront, and writes here about Shopify, merchandising, careers and software that keeps working.
Upfront · by LeelaRam Technologies
Write your resume with Upfront
Upfront is LeelaRam Technologies' free, honest AI resume builder for Android, made by Sumit Chavda in Mumbai: one ATS-friendly page from your own words, then interview prep, a CTC calculator and a job-offer check.
