{
  "id": 19958435,
  "title": "Coding India's Gratuity Rules: 26, the Six-Month Trap and the 50% Wage Clause",
  "url": "https://urgent.news/2026/11/14/coding-indias-gratuity-rules-26-the-six-month-trap-and-the-50-wage",
  "topic": "business",
  "section": "Business",
  "published": "2026-11-14T09:52:28.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/monu_kumar/coding-indias-gratuity-rules-26-the-six-month-trap-and-the-50-wage-clause-5036"
  },
  "original_language": "en",
  "account": "India's gratuity rules can be tricky to navigate, with edge cases that require careful handling. Gratuity is calculated as 15 days' wage multiplied by the number of years of service, divided by 26. This calculation is based on a Supreme Court ruling from 1980 that treats a month as 26 working days. However, the divisor changes depending on the size of the employer. For companies with ten or more employees, the divisor is 26, while smaller employers calculate it as half a month's average salary per completed year, or 15/30.\n\nAnother edge case is when an employee has served more than six months. Section 53(2) of the Code on Social Security stipulates that gratuity is paid for every completed year of service, or part thereof in excess of six months. For example, an employee with 7 years and 7 months of service is eligible for 8 years' gratuity, while one with 7 years and 6 months is entitled to 7 years.\n\nThe salary used in gratuity calculations may not include all components of remuneration, such as HRA, conveyance allowance, overtime, commission, bonus, and employer's PF contribution. Under Section 2(88) of the Code on Social Security, wages for gratuity are calculated by excluding these items. However, if the excluded items exceed half of the total remuneration, the excess amount is added back to the wages before gratuity calculation.\n\nIn summary, India's gratuity rules involve careful consideration of various factors, including employer size, service duration, and the composition of an employee's salary. By understanding and implementing these rules, employers can ensure compliance and provide fair compensation to their employees.",
  "summary": "A few months ago I wrote about modelling India's tax slabs without cliff-edge bugs . Gratuity looked easier after that. It's one line of maths: const gratuity = ( wages * 15 * years ) / 26 ; That line is correct. The bugs live in its inputs. Below are the three edge cases I had to handle when building a gratuity calculator in Next.js, and the code that handles each one. Edge case 1: the divisor…",
  "key_points": [
    "Gratuity calculated as 15 days wage x years of service divided by 26",
    "Smaller employers use half-month average salary per completed year",
    "Gratuity paid for completed years + part thereof > 6 months"
  ],
  "editors_take": "The complexity of these calculation methods forces employers to navigate specific service thresholds and wage compositions to ensure legal compliance and avoid underpaying long-term staff.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}