Quick answer. Under the Saudi Labor Law (Royal Decree M/51), you earn half a month's wage for each of the first five years of service and a full month's wage for every year after that, based on your last wage. The "wage" includes basic pay plus commissions and most regular allowances, not just basic. If you resign, you get a reduced amount on a sliding scale depending on how long you served. If your employer terminates you without a legitimate reason, or the contract ends naturally, you get the full amount. An ESB calculator KSA shortcut is useful — but garbage in, garbage out.
What the law actually says
The rules live in Articles 84–88 of the Saudi Labor Law. Article 84 sets the formula: half-month wage × first 5 years + full month wage × each additional year, calculated on the last wage, with partial years pro-rated.
Article 85 is where resignations get interesting. If you resign under a fixed-term or indefinite contract, you don't automatically get the full ESB. You get:
- Nothing if you served less than 2 years
- One-third of the calculated ESB for 2 to under 5 years
- Two-thirds for 5 to under 10 years
- The full amount if you served 10 years or more
Article 87 lists the cases where you walk away with the full ESB even if you resigned — force majeure, your spouse getting posted elsewhere, early marriage for women within 6 months of the contract (yes, that clause still exists), or if the employer breached a material obligation.
And Article 88 says the employer has to pay within one week of contract end if you were terminated, or within two weeks if you resigned. Miss that and you have a wage-protection complaint.
Honestly, most calculators online skip Article 85's sliding scale entirely. Check before you trust the output.
Which "wage" goes into the ESB calculator KSA formula
This is where most people get shortchanged. Article 2 of the Labor Law defines wage as basic pay plus any raises, allowances, commissions, and benefits paid in exchange for work. The Ministry of Human Resources (MHRSD) has repeatedly confirmed that housing allowance and transport allowance — if paid regularly as part of your package — count toward ESB.
What counts:
- Basic salary
- Housing allowance (if contractual and regular)
- Transport allowance (same test)
- Regular commissions (averaged over the last 12 months)
- Any fixed monthly allowance tied to the job
What usually doesn't count:
- One-off bonuses
- Overtime (unless it was effectively guaranteed and continuous)
- Reimbursements for actual expenses
- End-of-year gifts
If your contract says "basic SAR 8,000 + housing SAR 2,000 + transport SAR 800", your ESB wage is SAR 10,800 — not SAR 8,000. Plenty of employers quietly calculate on basic only. Push back.
Watch out: If your contract bundles everything as "total salary" without a basic/allowance split, the whole amount is your ESB wage. Some employers try to retroactively "split" it at exit. The signed contract wins.
Worked example: 7 years, resigned
Say you worked 7 years, resigned voluntarily, and your last total wage was SAR 15,000.
Step 1 — Full ESB calculation:
- First 5 years: 5 × (½ × 15,000) = SAR 37,500
- Next 2 years: 2 × 15,000 = SAR 30,000
- Full ESB total: SAR 67,500
Step 2 — Resignation reduction (Article 85): You served 7 years, which falls in the 5-to-under-10 band. You get two-thirds.
- 67,500 × 2/3 = SAR 45,000
If you'd been terminated without legitimate cause, you'd walk with the full SAR 67,500 plus potentially compensation under Article 77 (two months' wage per year for indefinite contracts, or the balance of the fixed-term contract — whichever applies).
That gap between SAR 45,000 and SAR 67,500 is why how you exit matters almost as much as how long you stayed.
Fixed-term vs indefinite contracts
Most private-sector contracts for expats in KSA are fixed-term (usually 1 or 2 years, aligned to the iqama). For Saudi nationals, indefinite contracts are more common.
For a fixed-term contract that ends naturally without renewal, you get the full ESB — this is not a resignation, it's expiry. Article 85's reduction doesn't apply.
For an indefinite contract, if you resign you're in the sliding scale. If the employer terminates you without a reason listed in Article 80 (gross misconduct, assault, forgery, etc.), it's full ESB plus Article 77 compensation.
A common misunderstanding: not renewing a fixed-term contract when the employer offered to renew is sometimes treated as resignation by employers. The Labor Courts have been inconsistent here, but the safer position is that non-renewal at natural expiry is not resignation. Get the non-renewal in writing.
Using an ESB calculator KSA tool properly
Any decent ESB calculator KSA should ask you five things:
- Start date and end date (to the day — partial years are pro-rated)
- Last total wage, with allowances itemised
- Contract type (fixed-term or indefinite)
- Reason for leaving (resignation, termination, expiry, Article 87 cause)
- Any unused annual leave (paid out separately at your daily wage rate)
If the tool only asks for basic salary and years, it's going to under-count. If it ignores the Article 85 resignation scale, it's going to over-count for resigners. Run two or three and compare — the MHRSD's own calculator on the Qiwa platform is the one your employer will likely use, so start there.
Don't forget unused annual leave. Article 109 entitles you to 21 days per year (30 after 5 years of service), and anything unused gets paid out at the end. That's on top of ESB.
Costs to remember at exit: ESB is tax-free in Saudi Arabia (no personal income tax). GOSI contributions stop at exit. If you're an expat, final exit visa processing and iqama cancellation are handled through Absher/Muqeem — budget a few days.
When the number is wrong — what to do
If your employer's ESB calculation looks short, don't sign the final settlement (mukhalasa) until you've worked through it. Once you sign a release, clawing money back is uphill.
Your options, in order:
- Ask HR for the calculation breakdown in writing. Wage used, years counted, reduction applied. Nine times out of ten the dispute is about which allowances were included.
- File on Qiwa. The platform has a labour dispute module. Mandatory amicable settlement first (around 21 days).
- Escalate to the Labor Court if settlement fails. Filing is free for employees. Cases typically resolve in 3–6 months.
Keep your signed contract, pay slips for the last 12 months, GOSI certificate, and any email where allowances were discussed. Those four documents win most ESB disputes.
For related exit issues, see employment answers for common questions on final settlements, notice periods, and non-compete clauses.
Sources
[1] Saudi Labor Law, Royal Decree No. M/51 (1426H), Articles 84–88 (end-of-service award) and Article 2 (definition of wage). Ministry of Human Resources and Social Development. [2] Saudi Labor Law, Article 77 (compensation for unlawful termination) and Article 80 (termination without ESB). [3] Saudi Labor Law, Article 109 (annual leave entitlement and payout). [4] Qiwa platform (qiwa.sa) — official ESB calculator and labour dispute filing portal, MHRSD.
Need this checked for your situation? Talk to a lawyer licensed in Saudi Arabia →