
Web Scripts & Software
DEV3 Gratuity and Leave Encashment Calculator — Source Code (React + Tailwind)
from $29
Live demoBusiness tool
Free, no sign-up. Runs in your browser; nothing is uploaded. Buy the source code: $29 Regular / $69 Extended
Service: 10 years, 7 months, 0 days (3,867 days)
To estimate tax on the taxable part. 30% for most high earners.
Include commission on sales if fixed % of turnover.
Leave blank to use the formula.
Need Gratuity and Leave Encashment Calculator as a full app for your business? Your own branding, your own data, your own users. Built in about a week, from $99. Send your requirements or SOW; you get a fixed quote and a delivery date.
The gratuity and leave encashment calculator stays free to use online. If you want the code to run, edit and ship in your own project, get the full source from the DEV3 Marketplace. Instant download, 6 months of support.
Run the whole business in one ready-made app. Buy once, own the source, and try each one live first.

Web Scripts & Software
from $29
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Web Scripts & Software
from $99
Live demo
Web Scripts & Software Mobile app
from $99
Live demo
Web Scripts & Software
from $99
Live demo
Web Scripts & Software Mobile app
from $99
Live demo
Web Scripts & Software
from $99
Live demoWhen you retire or resign you may receive two lump sums that are partly or fully tax-free in India: gratuity and leave encashment. This calculator works out both and splits each into an exempt and a taxable amount, using the rules for FY 2026-27 (caps unchanged from FY 2025-26).
Government employees are exempt in full. Others get the lowest of Rs 25 lakh, cash value of eligible earned leave (30 days a year maximum), 10 months of average salary and the amount received. Leave encashed during service is fully taxable and is not covered here.
This is a planning tool, not tax advice. Confirm with your employer or a chartered accountant.
For employees covered by the Payment of Gratuity Act: last drawn monthly (basic + DA) x 15 / 26 x completed years of service. A part year of more than six months counts as a full year. For employees not covered, the formula is basic + DA x 15 / 30 x completed years.
An employee who completes five years of continuous service when they resign, retire or are terminated. The five-year rule does not apply on death or disablement. The Code on Social Security, 2020 allows fixed-term employees gratuity after one year; confirm how your employer applies it.
For non-government employees, the least of the formula amount, Rs 20 lakh, and the amount actually received. Government employees get a full exemption. Any gratuity above the exemption is taxed as salary at your slab rate.
Government employees are fully exempt. For others the exemption is the least of Rs 25 lakh, the cash value of unused earned leave (up to 30 days per year of service), 10 times the average monthly salary of the last 10 months, and the amount received.
Basic pay plus dearness allowance, and commission on sales if it is a fixed percentage of turnover. HRA, bonus and other allowances are left out. Use the last drawn figure for gratuity and the 10-month average for leave encashment.
No. Everything is calculated in your browser and nothing is saved.