Skip to content

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

Length of service

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

  1. 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.
  2. Say whether you are permanent or on a fixed-term contract, and how your employment ended.
  3. Enter your length of service, as years, months and days or as your joining date and last working day.
  4. Enter your last drawn basic pay plus dearness allowance a month. Under the new rules, add your other allowances too, for the 50% rule.
  5. 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.

Gratuity under the Payment of Gratuity Act and the Code on Social Security
RulePayment of Gratuity Act, 1972Code on Social Security, 2020
Applies when you leaveBefore 21 November 2025On or after 21 November 2025
Minimum service5 years5 years; fixed-term: 1 year
Death or disablementNo minimumNo minimum
Wages countedBasic + DABasic + DA + retaining allowance, plus allowances above 50% of pay
Formula15 ÷ 26 × wages × years15 ÷ 26 × wages × years
Part yearCounts if over 6 monthsCounts 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.

Tax on retirement (optional)

For non-government employees retiring or leaving service. Leave encashed while you are still in service has no such deduction.

Leave empty to use the figure above

From an earlier employer, if any

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.

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

Sumit Chavda

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.

LinkedIn Portfolio All articlesAbout the company

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.