calcnook/calcnook.countries.sa.end_of_service_gratuity
πŸ‡ΈπŸ‡¦Kingdom of Saudi Arabia

Saudi Arabia End of Service Gratuity

Articles 84–87 of the Saudi Labour Law (Royal Decree M/51, as amended). Half-month per year for the first 5 years, one full month per year thereafter β€” with resignation tiers applied automatically.

Inputs

SAR

Basic salary only β€” excludes housing and transport allowances.

yrs

Fractional years allowed. Resignation tiers depend on this number.

Resignation pays 0 / 1/3 / 2/3 / full depending on tenure.

Result

Gratuity payable

SAR 35,000

Termination by employer β€” 100% entitlement

Computation

Full accrual (100% baseline)SAR 35,000
Entitlement factor1.00 (full)
Months of basic salary equivalent3.50

Gratuity accrues only on basic monthly salary (excluding housing/transport allowances). Termination by the employer always entitles the worker to 100% of accrued gratuity. Resignation entitlement: 0 (<2y) β†’ 1/3 (2-5y) β†’ 2/3 (5-10y) β†’ full (10+y).

Powered by the calcnook engine

Same deterministic math runs as a Python package, an MCP server for AI agents, and on this page. No API keys, no network β€” pure stdlib.

>>> from calcnook.countries.sa.end_of_service_gratuity import calculate
>>> r = calculate(10_000, 6, "termination")
>>> round(r.gratuity_sar, 2)
35000.0