FeaturesUse casesPayrollToolsPricingChangelogBlog
Blog/Payroll

Unpaid Leave Calculation Malaysia: Formula, Examples, and Payroll Mistakes to Avoid

A simple guide for founders and HR admins who need the number to be right the first time

Published: 11 April 2026•9 min read

One employee takes 2 days of unpaid leave. Another joins mid-month. Payroll day is tomorrow. Suddenly, what looked like a simple salary run turns into a string of questions: Which formula should I use? Do I divide by 26? By 30? Does EPF change too?

That is why unpaid leave calculation Malaysia is searched so often by SME owners. The risk is not just getting one deduction wrong. A bad calculation can lead to payslip disputes, wrong statutory deductions, and frustrated employees who no longer trust payroll.

The good news is that the logic is straightforward once you apply one method consistently and keep your leave records tied to payroll.

The biggest SME mistake is not the formula itself. It is having one version of leave records, another version in payroll, and a payslip that does not match either.

The practical unpaid leave formula Malaysian SMEs use

For monthly payroll, a practical formula is:

Unpaid leave deduction formula

Monthly salary / number of days in the wage period x unpaid leave days

Example: if an employee earns RM3,000 a month, and the wage period has 30 days, the daily rate is:

RM3,000 / 30 = RM100 per day

If they take 2 unpaid leave days, the deduction is:

RM100 x 2 = RM200

Their adjusted basic pay for that month becomes RM2,800 before you recalculate the statutory deductions that depend on wages paid.

Why unpaid leave gets confused with prorated salary

Founders often mix up unpaid leave deduction and prorated salary because both use a daily-rate concept.

  • Prorated salary usually applies when someone joins or leaves during the month.
  • Unpaid leave deduction applies when an employee is employed for the month but has approved unpaid days.
  • In both cases, consistency matters more than improvising a different divisor every month.

If your team is still checking formulas in WhatsApp threads at month-end, that is already a process problem, not just a maths problem.

Need a faster way to check leave-related payroll numbers?

Use HavaHR's free calculator to estimate leave proration before you finalise payroll.

Step-by-step: how to calculate unpaid leave correctly

1. Confirm the leave status

Start with the leave type. Is it genuinely unpaid leave, or should it have been deducted from annual leave, replacement leave, or another paid entitlement? Payroll should never guess this after the fact.

2. Use the wage period consistently

Pick the divisor based on the wage period you are paying for, and apply that same logic across payroll. This is where many spreadsheet-driven teams go wrong: one month they divide by 30, another month by 26, and nobody remembers why.

3. Calculate the daily rate

Divide the employee's monthly basic salary by the number of days in that wage period. Keep the method documented in your payroll SOP so finance, HR, and founders all use the same rule.

4. Multiply by the unpaid leave days

Once you have the daily rate, multiply it by the unpaid leave days approved for that payroll cycle. This becomes the unpaid leave deduction shown in the payroll working.

5. Recalculate statutory deductions

This step is where manual payroll becomes risky. Because wages paid have changed, your EPF, SOCSO, EIS, and PCB numbers may also change. If you only edit the net salary manually but forget the statutory side, your payroll run is no longer aligned.

6. Reflect it clearly on the payslip

Employees are much less likely to challenge a deduction when the payslip clearly shows the unpaid leave item and HR can point to the matching approved leave record.

Worked examples for SME payroll teams

Example 1: 1 day unpaid leave in a 31-day month

Monthly salary: RM4,650
Daily rate: RM4,650 / 31 = RM150
Unpaid leave days: 1
Deduction: RM150

Example 2: 3 days unpaid leave in a 30-day month

Monthly salary: RM2,400
Daily rate: RM2,400 / 30 = RM80
Unpaid leave days: 3
Deduction: RM240

Example 3: Mid-month joiner plus unpaid leave

This is where spreadsheets usually break. If an employee joins mid-month and also has unpaid leave in the same cycle, you are effectively handling both incomplete month salary and unpaid leave deduction together. The cleanest approach is to let one payroll workflow compute both adjustments instead of stacking manual overrides.

Common mistakes that trigger payroll disputes

  • Using a different divisor every month without a documented payroll policy.
  • Deducting unpaid leave before checking leave balance and later discovering the employee still had paid leave available.
  • Forgetting to update EPF, SOCSO, EIS, or PCB after adjusting monthly wages.
  • Applying the deduction in payroll but not in HR records, which creates mismatch during employee queries.
  • Failing to show the deduction clearly on the payslip, which makes the deduction look arbitrary.

What a cleaner workflow looks like

  • Leave is approved once, not re-keyed into another sheet later.
  • The payroll run shows the unpaid leave deduction explicitly.
  • Statutory deductions update automatically from the adjusted salary.

Why HavaHR is useful here

Unpaid leave feels like a tiny payroll detail until you are reconciling numbers across leave approvals, attendance, salary sheets, and statutory submissions. HavaHR is built for exactly this kind of Malaysian SME workflow.

Instead of manually checking formulas, HavaHR helps you:

  • track leave in one system,
  • sync approved unpaid leave into payroll,
  • recalculate EPF, SOCSO, EIS, and PCB together, and
  • issue payslips with a clear audit trail.

If you are still doing this in Excel, you are not just spending time. You are accepting a bigger error surface every single payroll cycle.

Final takeaway

The right unpaid leave calculation Malaysia workflow is not complicated. The formula is manageable. The real challenge is keeping leave, payroll, and statutory deductions aligned so one manual adjustment does not create three new compliance problems.

If your team wants to stop double-checking spreadsheets at month-end, HavaHR gives you one place to manage leave, payroll, employee records, and Malaysia-specific statutory calculations.

Automate unpaid leave deductions and payroll together

Run payroll with EPF, SOCSO, EIS, PCB, leave tracking, and payslips in one Malaysian SME workflow.