Gratuity Calculator — Payout under the Code on Social Security, 2020

Enter your last monthly basic pay plus DA, your years and months of service, whether you are covered by the Code on Social Security and why you are leaving, to estimate your gratuity and the part that is tax-exempt.

Live demo · real result from this tool
Basic pay plus dearness allowance (and retaining allowance, if any).
HRA, conveyance, special and other allowances. If they are more than half of your total pay, the Code adds the excess to wages. Leave 0 to skip.
Gratuity₹2,88,461.54
By formula (before ceiling)
₹2,88,461.54
Years counted
10
Tax-exempt (up to ₹20 lakh)
₹2,88,461.54
Taxable
₹0.00

Code on Social Security, 2020, s.53: 15 days' wages (monthly wages ÷ 26 × 15) for every completed year or part above six months, capped at ₹20 lakh. Fixed-term and deceased employees are paid pro rata, on exact service.

Processed on your device — nothing is uploaded.

How to use the gratuity calculator

  1. Enter your Last drawn monthly wages (basic + DA), plus any retaining allowance.
  2. If you are covered by the Code, you can also enter your Other monthly pay outside basic + DA, such as HRA, conveyance and special allowances. The calculator uses it only for the 50% rule explained below. Leave it at 0 to skip.
  3. Enter your Completed years of service and any Additional months.
  4. Under Employment, choose Covered by the Code on Social Security (15/26 formula) or Not covered (half-month salary per completed year).
  5. Under Leaving because of, choose resignation, retirement or termination; death of the employee; disablement due to accident or disease; or the end of a fixed-term contract.
  6. Read the gratuity, the amount by formula before the ceiling, the years counted, and the tax-exempt and taxable parts. A warning appears if you do not meet the service condition.

What it does and when to use it

Gratuity is a lump sum an employer pays when you leave after long service, retire, or when employment ends because of death or disablement. Since 21 November 2025 the rules for most employees are in the Code on Social Security, 2020, which replaced the Payment of Gratuity Act, 1972.

Use the calculator to:

  • Estimate your payout before you resign or retire.
  • Check the five-year rule, so you do not leave a few months short.
  • See the effect of the ceiling if you have long service and a high salary.
  • See whether the 50% rule raises your wages if most of your pay is allowances.
  • Understand the gratuity line in your CTC, which is not the same thing as what you will be paid.

For the rest of your pay, the CTC to In-hand Salary Calculator includes a gratuity provision in its breakdown. If you will invest the payout, the FD Calculator and the PPF Calculator show how it could grow.

The rules in the Code on Social Security

Rule What the Code says
When it is paid On leaving after at least five years of continuous service: superannuation, retirement, resignation, death or disablement, end of a fixed-term contract, or another notified event (s.53(1))
Five-year exception Not needed for death, disablement or the end of a fixed-term contract (three years for working journalists)
Fixed-term employees Eligible after one year of service under the contract (Industrial Relations Code, s.2(o))
Rate 15 days’ wages for each completed year, or part above six months (s.53(2))
Wages used The rate of wages last drawn; a day’s wage is the monthly rate ÷ 26 (Explanation 3)
What counts as wages Basic pay, dearness allowance and retaining allowance; if excluded payments are more than half of all pay, the excess is added back (s.2(88))
Fixed-term and deceased employees Paid on a pro rata basis (s.53(2))
Seasonal establishments Seven days’ wages for each season
Ceiling As notified by the Central Government; currently ₹20 lakh (s.53(3))
Better terms An award, agreement or contract can give more (s.53(5))

How it works

Covered employees (the default)

  • Wages = basic + DA. If your other pay is more than half of your total pay, the part above half is added to wages. For example, ₹20,000 basic + DA and ₹40,000 of allowances make ₹60,000 in total; half is ₹30,000, so ₹10,000 is added and wages become ₹30,000.
  • Years counted = completed years, plus one if the extra months are more than six
  • For death, or the end of a fixed-term contract, the calculator uses your exact service in years and months instead (pro rata)
  • Gratuity by formula = monthly wages × 15 × years counted ÷ 26
  • Gratuity = the formula amount, capped at ₹20,00,000
  • Gratuity is shown as nil with a warning if you resign with less than five years of service, or a fixed-term contract ends before one year

Employees not covered

  • What you are paid depends on your employer’s scheme. The calculator shows half a month’s salary × completed years (part years are ignored), the formula the Income-tax Act uses for the exempt part
  • No statutory ceiling is applied to the amount, but the tax-exempt part is capped at ₹20 lakh

Tax-exempt part = the smaller of the gratuity and ₹20,00,000; the rest is shown as taxable. Everything runs in your browser.

Worked examples

All figures are from the calculator, for covered employees unless stated.

1. Ten years on ₹50,000. ₹50,000 × 15 × 10 ÷ 26 = ₹2,88,461.54, so Gratuity: ₹2,88,461.54, all within the exempt limit.

2. Twenty years and seven months on ₹50,000. Seven months is more than six, so Years counted: 21. Gratuity is ₹6,05,769.23. With six months or less, it would count only 20 years.

3. Twenty-five years on ₹2,00,000. The By formula (before ceiling): ₹28,84,615.38, but statutory gratuity is capped, so the gratuity shown is ₹20,00,000.00. The calculator notes that an employer may pay more voluntarily and that any amount above ₹20 lakh is taxable.

4. A fixed-term contract of two years and six months on ₹40,000. The five-year rule does not apply when a fixed-term contract ends, and gratuity is pro rata: ₹40,000 × 15 × 2.5 ÷ 26, so Gratuity: ₹57,692.31.

5. Resigning after four years and five months on ₹40,000. The formula would give ₹92,307.69, but you have not completed five years, so the calculator shows: Gratuity on resignation needs at least 5 years of continuous service and a gratuity of nil.

6. An employee not covered by the Code, twelve years on ₹60,000. Half a month’s salary for each completed year: ₹30,000 × 12, so Gratuity: ₹3,60,000.00, all within the ₹20 lakh exempt limit.

7. An employee who dies after three years and four months on ₹40,000. No five-year condition, and gratuity is pro rata on 3.33 years: ₹40,000 × 15 × 3.33 ÷ 26, so Gratuity: ₹76,923.08, paid to the nominee or heirs.

8. Ten years on ₹20,000 basic + DA with ₹40,000 of allowances. The allowances are more than half of the ₹60,000 total, so ₹10,000 is added: Wages used (after the 50% rule): ₹30,000.00, and gratuity is ₹1,73,076.92 instead of ₹1,15,384.62.

9. A fixed-term contract that ends after ten months on ₹30,000. Under one year, so the calculator shows: A fixed-term employee is eligible for gratuity after one year of service under the contract and a gratuity of nil.

Example Wages Service Years used Gratuity
1. Resignation ₹50,000 10 y 10 ₹2,88,461.54
2. Resignation ₹50,000 20 y 7 m 21 ₹6,05,769.23
3. Retirement, capped ₹2,00,000 25 y 25 ₹20,00,000.00
4. Fixed term ends ₹40,000 2 y 6 m 2.5 ₹57,692.31
5. Resignation, under 5 years ₹40,000 4 y 5 m — Nil
6. Not covered ₹60,000 12 y 12 ₹3,60,000.00
7. Death ₹40,000 3 y 4 m 3.33 ₹76,923.08
8. 50% rule ₹30,000 (after rule) 10 y 10 ₹1,73,076.92
9. Fixed term under 1 year ₹30,000 10 m — Nil

Tax on gratuity (tax year 2026-27)

The Income-tax Act 2025 deals with gratuity in the table in section 19:

  • Statutory gratuity (Sl. 5): exempt up to the amount worked out under section 4(2) and (3) of the Payment of Gratuity Act, 1972. That Act has been replaced by the Code, which uses the same 15-days-per-year formula with a notified ceiling of ₹20 lakh. The entry has not yet been updated to name the Code, and the old Act had no pro rata rule for deaths or fixed-term contracts, so in those cases ask a tax adviser how the exempt amount is worked out.
  • Other gratuity (Sl. 6): exempt up to the least of the gratuity received, half a month’s salary (averaged over the ten months before the event) for each completed year, and an amount notified by the Central Government. Salary here means basic pay and DA only. Under section 19(2)(a) the limit applies to all such gratuity you receive over your career, less what was exempt before.
  • The notified amounts: the Income Tax Department’s FAQs say the limit is ₹20,00,000 for covered employees (notification S.O. 1420(E) of 29 March 2018) and for employees not covered (S.O. 1213(E) of 8 March 2019). Section 536(2)(j) of the 2025 Act keeps notifications made under the old Act in force where they are consistent with the new one.

Some government and defence gratuity is fully exempt under separate entries, which the calculator does not handle.

Limits and tips

  • What counts as total pay. The 50% rule compares excluded payments with all your pay. The Ministry’s FAQs say performance incentives, ESOPs, variable pay and reimbursements are not part of wages; whether your employer counts them in the total can vary. Use fixed monthly allowances for the estimate.
  • Disablement and reduced wages. If you kept working on reduced wages after a disablement, the Code uses your earlier wages for the earlier period (s.53(4)). The calculator uses one wage for all years.
  • Not covered: average salary. For the tax exemption, the Act uses your average salary over the last ten months. If your pay changed in that time, enter that average instead of your last salary.
  • Seasonal work at seven days’ wages per season, and the three-year rule for working journalists, are not modelled.
  • Forfeiture. Gratuity can be reduced or withheld if you are dismissed for certain misconduct (s.53(6)). The calculator assumes none.
  • Your employer’s figure is final. Your service record, wage definition and any better terms in your contract decide what you are paid. This is an estimate, not legal or tax advice.

Frequently asked questions

What is the gratuity formula?
Under section 53 of the Code on Social Security, 2020, gratuity is 15 days' wages for every completed year of service, or part of a year above six months, based on the wages you last drew. A day's wage is the monthly rate divided by 26. So gratuity = last monthly wages × 15 ÷ 26 × years counted.
Which wages count?
The Code defines wages as basic pay, dearness allowance and any retaining allowance. HRA, conveyance and most other allowances are left out, but only up to a point. If the left-out payments are more than half of your total pay, the excess is added back to wages. Enter those other payments in the optional field and the calculator applies this 50% rule for you.
Do I need five years of service?
For resignation, retirement or superannuation, yes, five years of continuous service. Section 53 says five years are not needed when employment ends because of death or disablement, or when a fixed-term contract ends. A fixed-term employee still needs one year of service under the contract, under section 2(o) of the Industrial Relations Code. For working journalists the Code uses three years instead of five; the calculator does not have a separate option for that.
What is the maximum gratuity?
The Code lets the Central Government notify a ceiling. The Ministry of Labour and Employment's FAQs on the Labour Codes say it is currently ₹20 lakh. An employer can pay more under a contract or award, but the extra is not statutory gratuity.
Is gratuity taxable?
For employees not covered by the statutory gratuity law, the exempt amount is the least of the gratuity received, half a month's average salary for each completed year, and ₹20 lakh. That limit was notified in 2019 and continues under the Income-tax Act 2025. It applies across your whole career, not per job. For covered employees, the exemption is the amount worked out under the statutory formula, up to ₹20 lakh. Check your own case with a tax adviser.
Does 4 years and 8 months count as 5 years?
For counting years in the formula, a part year above six months counts as a full year. The calculator therefore counts 4 years and 8 months as 5 years in the formula. Whether you meet the five-year condition for resignation is a separate test, and the calculator applies it to your actual service of 4.67 years, so it shows no gratuity. If this applies to you, ask your employer or a labour law adviser how your service is counted.
How is gratuity worked out when an employee dies?
The five-year condition does not apply, and section 53 says gratuity for a deceased employee is paid on a pro rata basis. The calculator therefore uses the exact service in years and months, without rounding the part year up or down. The gratuity goes to the nominee or, if there is none, to the heirs.
Is my CTC's gratuity line the same as my gratuity?
No. Many employers set aside about 4.81% of basic pay each year in CTC, which is 15 ÷ 26 of a month's basic spread over 12 months. You receive gratuity only when you leave and qualify, and it is worked out on your last wages, not on what was set aside.

Sources

  1. The Code on Social Security, 2020 (No. 36 of 2020) — section 53 (payment of gratuity, including the pro rata proviso and Explanation 3, monthly rate ÷ 26 × 15) and section 2(88) (wages and the 50% proviso) — Ministry of Labour and Employment, accessed 2026-10-08
  2. The Industrial Relations Code, 2020 (No. 35 of 2020) — section 2(o), proviso (c) (fixed-term worker eligible for gratuity after one year under the contract) — Ministry of Labour and Employment, accessed 2026-10-08
  3. FAQs on Labour Codes — gratuity applicable from 21 Nov 2025, the 50% rule for allowances, and maximum gratuity currently ₹20 lakh — Ministry of Labour and Employment, accessed 2026-10-08
  4. Compliance Handbook for Employers under the Four Labour Codes (February 2026), section 6.3 Gratuity — Ministry of Labour and Employment, accessed 2026-10-08
  5. The Income-tax Act, 2025 (No. 30 of 2025) — s.19 Table Sl.5 and Sl.6 and s.19(2)(a)–(b) (gratuity exemption), s.536(2)(j) (notifications under the 1961 Act continue) — Ministry of Law and Justice, Government of India, accessed 2026-10-08
  6. FAQs on Salary Income — gratuity exemption limit ₹20,00,000 for covered employees (S.O. 1420(E), 29-03-2018) and for employees not covered (S.O. 1213(E), 08-03-2019) — Income Tax Department, Government of India, accessed 2026-10-08

Written by the ToolsRift team · Last updated · Figures last verified

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Guides

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close