Short answer: Gratuity calculation under the Code on Social Security is last-drawn monthly wages × 15 ÷ 26 × years of service, with a part year over six months counted as a full year. Wages means basic, DA and retaining allowance, topped up to half of total pay where allowances are more than half. It is capped at ₹20 lakh and due within 30 days.
Since 21 November 2025 gratuity falls under the Code on Social Security, 2020, which replaced the Payment of Gratuity Act 1972. The base is now the Code's definition of wages, often higher than basic, and it applies to the whole service of anyone leaving after that date. Fixed-term staff qualify sooner, and the provision for tax year 2026-27 (FY 2026-27) has to be redone on the new base.
This post follows a recent Hindi tutorial for eligibility and the Excel calculation, updates three points in it, and adds the provision, the accounting and the tax rule. Then it explains how an AI agent would build the gratuity schedule, and what stays with you.
The tutorial this is based on
Gratuity Calculation in Hindi | New Labour Codes 2025, Eligibility, Salary & Live Calculation by HR with Rajat Sir, published 22 November 2026 (in Hindi). He explains who qualifies, how a part year is rounded and the 15 × years ÷ 26 formula, then works one employee's gratuity in Excel with DATEDIF and ROUND. Three points need updating, and the steps give the current rule for each: the video uses basic pay alone as the base, quotes 6% interest for late payment, and says gratuity is paid in the full and final within 2 days. It doesn't cover the year-end provision, so we added it.
How do you do the gratuity calculation and the year-end provision?
- Check that the employer must pay: every factory, mine, oilfield, plantation, port and railway company, and any shop or establishment with 10 or more employees on any day of the preceding 12 months.
- Check eligibility: five years' continuous service before superannuation, retirement or resignation; no minimum on death or disablement. Under the central rules, a fixed-term employee qualifies after one year under the contract; check your state's rules if your state is the appropriate government. That covers staff engaged directly. Workers supplied by a contractor are paid by the contractor, after five years.
- Work out the wages. The video uses basic pay alone, but the Code's base is wages under section 2(88): basic, DA and retaining allowance. HRA, conveyance, overtime, commission, bonus and employer PF are left out. We follow the labour ministry's FAQ: wages are basic + DA, topped up to half of total pay where allowances are more than half. Some advisers read the Code more strictly and count allowances like special allowance in full, which gives a higher gratuity. Check with your adviser and the latest ministry FAQ.
- Count the years with DATEDIF, as the video does: completed years, plus one if the part year is more than six months. So 8 years 7 months counts as 9. The rounding sets the amount; it doesn't turn 4 years 7 months into the five years needed to qualify.
- Apply the formula: last-drawn monthly wages × 15 ÷ 26 × years. The video's ₹42,000 for five years gives ₹1,21,154; redo it on Code wages if ₹42,000 is basic alone. For anyone leaving on or after 21 November 2025, the ministry applies last-drawn Code wages to every year of service. Cap the payout at ₹20 lakh.
- Pay within 30 days of the date gratuity becomes payable. The video says it goes into a full and final within 2 days; the legal limit is 30 days. Under the central rules the employee applies in Form IV and the employer replies with a Form V notice within 15 days. Pay after 30 days and simple interest runs from the date it became payable, at the rate the government notifies; the video's 6% is not a rate we found notified under the Code, so check the current notice.
- At 31 March, provide for the liability. Under Ind AS 19, and AS 15 for companies, an actuary values it by the projected unit credit method; small and medium companies still need that figure. A non-company MSME (unlisted, turnover up to ₹250 crore, borrowings up to ₹50 crore, not a bank, insurer or part of a larger group) may use another rational method, for example treating the benefits as "payable to all employees at the end of the accounting year", and must disclose that it is an MSME.
- If the plan is funded through a group gratuity policy or an approved trust, show the obligation net of the fund value on the insurer's or trust's statement.
- For tax, add back the provision: section 29(2)(a) of the Income-tax Act 2025 (it was 40A(7)) disallows it. Deduct gratuity in the year it becomes payable (section 29(1)(d)), and contributions to an approved gratuity fund only when actually paid, by the return due date at the latest (section 37, it was 43B).
Gratuity under the Code on Social Security: the rules at a glance
| Item | Rule |
|---|---|
| Who must pay | Factories, mines, plantations, ports, railway companies, and shops or establishments with 10 or more employees |
| Qualifying service | 5 years; none on death or disablement; fixed-term staff 1 year (central rules) |
| Formula | Last-drawn monthly wages × 15 ÷ 26 × years; a part year over six months counts as one |
| Wages | Basic + DA + retaining allowance, topped up to half of total pay if allowances exceed half |
| Maximum | ₹20 lakh (ministry FAQ) |
| Payment | Within 30 days of becoming payable; Form V within 15 days of the Form IV application |
| Year-end | Actuarial valuation, or for a non-company MSME, as if all staff left at the year-end |
| Tax (employer) | Provision added back; deduct when payable, or when paid into an approved fund |
A worked example: the 31 March 2027 schedule
A made-up Indore garment wholesaler, a partnership that qualifies as a non-company MSME, has an unfunded plan and treats gratuity as payable to everyone at the year-end. Its accounts lead earns ₹36,600 a month, with basic and DA of ₹15,000. Half of pay is ₹18,300, so allowances of ₹21,600 are ₹3,300 over the line and wages are ₹18,300. With 5 years 2 months of service, gratuity is 18,300 × 15 ÷ 26 × 5 = ₹52,788. On basic alone it would be ₹43,269; on the stricter reading, which puts wages at ₹27,500, ₹79,327.
The operations director, with 10 years 9 months on wages of ₹3,20,000, comes to ₹20,30,769 and is capped at ₹20,00,000. A sales executive at 4 years 7 months (₹63,462) and a storekeeper at 1 year 11 months (₹16,154) haven't qualified yet. A fixed-term engineer at 1 year 8 months has qualified under the central rules: ₹46,154 on ₹40,000 for two years. Vested gratuity is ₹20,98,942 and the provision for all five is ₹21,78,558.
The opening provision was ₹22,40,000, and a leaver was paid ₹1,45,385 from it (₹21,000 × 15 ÷ 26 × 12), leaving ₹20,94,615. The charge is ₹83,943: Dr Gratuity expense, Cr Provision for gratuity. If a group gratuity fund held ₹18,60,000, the net liability would be ₹3,18,558. For tax, the ₹83,943 is added back and the ₹1,45,385 deducted, so taxable profit is ₹61,442 below book profit.
Where it usually goes wrong
- Gratuity on basic alone, which understates it, or on gross, which overstates it.
- Rounding 4 years 7 months up to five to qualify. Check borderline cases against the continuous-service rules in section 54.
- Treating workers supplied by a contractor as fixed-term staff. They stay on the five-year rule, paid by the contractor.
- Settling leavers since 21 November 2025 on the old basic-only figure.
- Holding gratuity until a long full and final closes, so the 30 days run out.
- A small or medium company using the "all staff leave at year-end" method. That relief is for non-company MSMEs only.
How an AI agent does it
Each person on the team gets their own AI agent, used from Slack, WhatsApp or a web app. It reads the payroll exports and ledgers you give it, writes its working in Excel, asks before it changes or posts anything, and logs every step. Here is how it would build the year-end gratuity schedule. It can be wrong, so the last sections say what you still check.
What you give it
- The March payroll register in Excel or CSV, with every pay head
- The employee master: joining dates, employment type (permanent, fixed-term or contractor-supplied) and nominees
- Last year's schedule or actuary's report, and the Provision for gratuity ledger
- Leavers' full and final sheets, and the fund statement if the plan is funded
What it does
- Maps each pay head to included, excluded or add-back under section 2(88), on the reading of the 50% rule you choose, and works out wages.
- Works out service to 31 March, rounds part years, applies the fixed-term rule, and separates vested from not yet vested.
- Computes 15 ÷ 26 per employee with the ₹20 lakh cap, showing the working in each row.
- Rolls the provision forward to the year-end charge, and nets a funded plan against the fund statement.
- Checks leavers since 21 November 2025 for old-base settlements, late payment and a missing Form V.
- Drafts the entry as import-ready Excel or XML for Tally, with the tax add-back and deduction lines, and keeps the pay-head mapping in the firm's shared memory.
What it hands back
- A per-employee schedule: wages, service, years used, gratuity, cap and vesting
- The provision roll-forward and a draft journal entry
- The tax computation lines for the add-back and the deduction
- A flag list: near five years, near the cap, leaver shortfalls, contract labour tagged as fixed-term
What it leaves to you
- Choose the reading of the 50% rule. You decide that with your adviser.
- Stand in for the actuary where Ind AS 19 or AS 15 needs a valuation, or decide whether the MSME relief applies.
- Pay a leaver, issue a Form V notice, or post the entry into Tally.
- Settle disputed service, such as breaks and borderline continuity.
Today vs with an AI agent
| Step | Today | With an AI agent |
|---|---|---|
| Gathering the inputs | You collect the register, joining dates and last year's schedule from payroll and HR. | You give it the register, employee master and last year's schedule once. |
| The working | Basic pay or wages, years and 15/26 per person. | Code wages per pay head, years and gratuity, with the working shown. |
| The cross-checks | The total compared with last year's. | It ties the roll-forward to the ledger and rechecks leavers' settlements. |
| Exceptions | Found when a leaver or an auditor asks. | It lists staff near five years or the cap, and tagging errors. |
| The output | A provision passed in Tally. | A schedule, draft entry and tax lines. Your team imports the entry. |
| The review | A senior checks the total. | You check the mapping, the 50% reading and its flags. |
| Who signs off | The finance head, with the actuary where needed. | The same. It doesn't post, pay or issue notices. |
What you still check
- The pay-head mapping and the reading of the 50% rule, signed off first.
- A few employees' service dates, checked by hand.
- Whether the entity qualifies for the non-company MSME relief, and the disclosure it needs.
- The increase from the new wage base: ICAI treats it as past service cost, shown as an exceptional item if material.
- The register total against the salary cost in the books, as in payroll reconciliation.
Questions accountants ask
What is the gratuity formula under the new labour code?
Last-drawn monthly wages × 15 ÷ 26 × years of service, counting a part year over six months as a full year.
Is gratuity calculated on basic salary or gross?
On neither. It is on Code wages: basic, DA and retaining allowance, topped up where allowances are more than half of pay. The same definition drives ESI under the Code.
Do fixed-term employees get gratuity after one year?
Yes, under the central rules, after one year under the contract. Check your state's rules if your state is the appropriate government.
Under which section is a gratuity provision disallowed?
Section 29(2)(a) of the Income-tax Act 2025 (it was 40A(7)). Gratuity is deductible when it becomes payable, or when paid into an approved fund.
Is gratuity taxable, and what is the maximum?
The payout is capped at ₹20 lakh. Gratuity is generally tax-free up to ₹20 lakh in a lifetime, but the Income-tax Act 2025 still refers to the old Gratuity Act; check the treatment with your tax adviser.
Hand this job to an agent
Bring one of your own files to a 30-minute call and watch an agent do this job.
Book a 30-min demo