Skip to content
Guide · Xero

Xero payroll in Malaysia: how to run payroll and track payroll cost by project

Xero doesn't calculate Malaysian payroll on its own. This guide explains the setup most Malaysian Xero users end up with, the accounts to create, a worked RM journal, and how to see staff cost per project.

Updated · 10 min read ·

If you keep your books in Xero, sooner or later you'll ask the same question every Malaysian Xero user asks: where does payroll go? Xero's own payroll product is available in countries such as Australia, New Zealand, the UK and the US, but not for Malaysia. Xero points Malaysian businesses to connected payroll apps in the Xero App Store instead.

Used Xero's Global Pay Run?

Some Malaysian Xero users produced basic payslips with Xero's Global Pay Run. Xero made it read-only on 23 July 2025 and scheduled it for full retirement after April 2026, so it can no longer be used to run payroll. If that's you, you'll need a Malaysian payroll app — and it's a good moment to set up EPF, SOCSO, EIS and PCB properly rather than recreate the old workaround.

That's not a bad thing. Malaysian payroll has its own rules — EPF, SOCSO, EIS, PCB, HRDF, Form EA, CP8D — and they're better handled by software built for them. The question is how to connect that software to Xero so your accounts stay right without double entry.

How Malaysian payroll and Xero fit together

A typical setup has three layers:

Layer What it does Where it lives
Payroll and HR Salaries, allowances, overtime, unpaid leave, EPF, SOCSO, EIS, PCB, HRDF, payslips, bank files, Form EA Malaysian payroll software (e.g. altomateHR)
Expense claims Employee claims, receipts, approvals, reimbursement Payroll/HR software or a claims app
Accounting Salary expense, statutory liabilities, bank payments, project P&L Xero

Each month, the payroll software produces a payroll journal (or bills) that posts the month's costs and liabilities into Xero. You don't re-type payslips into Xero; you post one clean, summarised entry per run.

What to post to Xero every month

A Malaysian payroll journal usually contains:

  • Expenses (debits): gross salaries and wages, allowances, overtime, bonuses, employer EPF, employer SOCSO, employer EIS, HRDF levy, and any PCB the company bears on the employee's behalf.
  • Liabilities (credits): EPF payable (employee + employer), SOCSO payable, EIS payable, PCB payable to LHDN, HRDF payable, other deductions (loans, zakat, CP38) and net wages payable.
  • Reimbursed claims: approved expense claims paid through payroll, coded to the right expense accounts.

When you pay salaries and statutory bodies from the bank, those payments clear the liabilities in Xero.

Accounts to set up in Xero

Create these once in your chart of accounts (names are suggestions — use your accountant's):

Account Type Used for
Salaries and Wages Expense Gross pay: basic, allowances, overtime, commission, bonus
Employer EPF Expense Employer's EPF share
Employer SOCSO and EIS Expense Employer's SOCSO and EIS shares (split them if you prefer)
HRDF Levy Expense HRD Corp levy, if registered
EPF Payable Current liability Employee + employer EPF, cleared when paid to KWSP
SOCSO Payable Current liability Employee + employer SOCSO, plus Lindung 24 Jam (SKBBK) where deducted
EIS Payable Current liability Employee + employer EIS
PCB Payable Current liability PCB and CP38 owed to LHDN
Zakat Payable Current liability Zakat deducted through payroll, if any, owed to the state zakat body
HRDF Payable Current liability Levy owed to HRD Corp
Net Wages Payable Current liability Net pay owed to staff until payday

Worked example: one month's payroll journal

A company pays two Malaysian employees under 60 for October 2026: Aina earns RM 3,000 and Ravi RM 5,000, both basic salary only. The company has fewer than 10 staff and isn't registered for HRDF, and neither employee contributes to Lindung 24 Jam.

Per employee Aina (RM 3,000) Ravi (RM 5,000)
EPF employee (11%) 330.00 550.00
EPF employer (13%) 390.00 650.00
SOCSO employee / employer 14.75 / 51.65 24.75 / 86.65
EIS employee / employer 5.90 / 5.90 9.90 / 9.90
PCB 0.00 110.00
Net pay 2,649.35 4,305.35

EPF, SOCSO and EIS follow the official schedules for these wage bands. PCB is for a single employee paid the same all year, with no reliefs other than the individual relief and EPF, under the 2026 rules; your system calculates each person's PCB from their own TP1 and family details.

The payroll journal posted to Xero:

Account Debit (RM) Credit (RM)
Salaries and Wages 8,000.00
Employer EPF 1,040.00
Employer SOCSO and EIS 154.10
EPF Payable (880 + 1,040) 1,920.00
SOCSO Payable (39.50 + 138.30) 177.80
EIS Payable (15.80 + 15.80) 31.60
PCB Payable 110.00
Net Wages Payable 6,954.70
Total 9,194.10 9,194.10

The company's real payroll cost for the month is RM 9,194.10, not the RM 8,000 on the payslips — the difference is employer EPF, SOCSO and EIS. That's why posting only net pay, or only gross pay, understates staff cost in Xero.

Then, in the bank:

  • Payday: pay RM 6,954.70 to staff and code it to Net Wages Payable.
  • By 15 November: pay KWSP RM 1,920.00, PERKESO RM 209.40 (SOCSO and EIS together) and LHDN RM 110.00, each coded to its payable account.

After those payments every payable account for October is back to zero — the quickest month-end check there is.

Bills or a journal?

Malaysian payroll apps post to Xero in one of two ways:

Payroll journal Bills
What appears in Xero One balanced entry per pay run A bill for each payee: staff net pay, KWSP, PERKESO, LHDN
Paying Code bank payments to the payable accounts Pay the bills, singly or in a batch
Project and department cost Lines can carry tracking categories and be split across accounts Possible, but spread across many bills
Best for Accountants who want clean general-ledger entries and project costing Teams who manage payments from Bills to pay

Either works if the accounts are right. altomateHR posts a payroll journal for each approved run, with tracking categories and the optional AI split, while approved claims go to Xero as bills or spend money with their receipts attached.

altomateHR tip

In altomateHR you map each pay item and statutory amount to your Xero accounts once, under Payroll → Settings → Xero sync. There's even an optional "PCB borne by employer" account — leave it blank and that cost posts to Salary. Posting stops and names the problem if a reimbursed claim's account isn't linked, so nothing lands under the wrong code.

Track payroll cost by project with tracking categories

Xero tracking categories let you tag transactions — by project, site, department or branch — and run a Profit & Loss report filtered by that tag. For contractors, agencies, construction and services businesses, that's the difference between "we made money this year" and "Tower A made money, Tower B didn't".

The catch: payroll is usually the biggest cost on a project, and most payroll integrations post it as one lump sum. To get real project P&L, payroll must arrive in Xero already split by tracking category.

How it works in altomateHR:

  1. Sync tracking categories from Xero, so altomateHR uses the same project list.
  2. Assign employees to projects. Each pay run, their payroll cost posts to the matching Xero tracking category.
  3. Tag expense claims to projects too, so approved claims land in the same category.
  4. Run Xero's Profit & Loss by tracking category to see revenue, staff cost and expenses per project.

Example: one project, one report

Tower A · Site Works — revenue RM 420,000; staff cost from payroll RM 168,400; expenses from claims RM 96,250; project profit RM 155,350. All three figures come from Xero, with payroll and claims posted by altomateHR.

Split payroll cost by department, project or role

Tracking categories answer "which project?". Many finance teams also want payroll split across accounts — HQ salaries to one expense account, site wages to another, commission for the sales team to its own line — or split by percentage, such as a manager whose time is shared 60/40 between two companies' projects.

altomateHR's AI split (in Payroll settings → Xero sync, off by default) does this for the Xero payroll journal:

  • Describe the split in plain words — for example "site staff wages to Cost of Sales, HQ to Salaries, commission for HQ to Sales Commission" — and AI turns it into rules.
  • Rules can split by percentage, fixed RM amount or the remainder, or by who people are: department, project, job title, employment type, role, policy, named staff or everyone. Allowances and deductions can be split by type too.
  • If the AI is unsure, it asks specific questions with one-click answers taken from your own accounts, staff and projects.
  • Statutory lines are never split. EPF, SOCSO, EIS, PCB, HRDF and net pay always post whole, so your liabilities reconcile.
  • Checks before posting. Posting is blocked if any rule check fails, and a Who went where list shows each person, the rule and the account that took each amount. Each posted run keeps a copy of its split, and changes are logged.

Start simple

Begin with one rule, such as splitting by department, and check the Who went where list against a run you know well before adding percentage splits.

Keep claim receipts in Xero

Auditors and accountants want to see the receipt behind every claim. When altomateHR syncs an approved claim to Xero, its receipt and supporting documents are attached to the bill or spend-money transaction, so the evidence sits next to the entry in Xero. AI reads the receipt to suggest the expense type, and mileage claims can start from a Google Maps or Waze route screenshot.

Several companies, several Xero organisations

Groups often run one Xero organisation per Sdn Bhd. With altomateHR, each company in your group connects to its own Xero organisation; if your Xero login has several, altomateHR asks "Which Xero organisation is this company?" the first time, and keeps that link when you reconnect. One altomateHR login still manages payroll for every company. See our guide to multi-company payroll.

Common mistakes when posting payroll to Xero

  • Posting net pay as the salary expense. Staff cost is gross pay plus employer contributions; employee EPF, SOCSO, EIS and PCB are part of gross pay, owed to KWSP, PERKESO and LHDN.
  • Missing employer contributions. If Employer EPF, SOCSO and EIS aren't posted, profit is overstated by roughly 13–15% of wages.
  • One lump "Payroll" line. You lose the split between salary, statutory costs and liabilities, and can't see cost by project.
  • Payable accounts that never clear. A balance left in EPF or PCB Payable after the 15th usually means a missed or mis-coded payment, and late payment charges.
  • Re-typing payslips into Xero. Slow, and every typo is a reconciliation problem later. Post from the payroll system instead.

Checklist: choosing payroll software for Xero in Malaysia

On top of the general checks in our guide to choosing a payroll system in Malaysia, Xero users should look for:

  • Calculates EPF, SOCSO, EIS and PCB to the official schedules, including employees aged 60+ and foreign workers.
  • Produces Form EA, CP8D and PCB 2(II) in LHDN's formats.
  • Posts to Xero as a journal or bills mapped to your own accounts — not a single "payroll" line.
  • Supports Xero tracking categories if you cost by project, branch or department.
  • Handles multiple companies and inter-company transfers if you run a group.
  • Lets employees submit claims with receipts that reach Xero with the attachment.
  • Exports bank files for your payroll bank.

FAQ

Does Xero have payroll for Malaysia?+

No. Xero's own payroll isn't available for Malaysia. Malaysian businesses use a connected payroll app that calculates EPF, SOCSO, EIS and PCB and posts the results to Xero.

How do I post Malaysian payroll to Xero?+

Post a monthly payroll journal (or bills) from your payroll software that debits salary and employer statutory costs and credits EPF, SOCSO, EIS, PCB, HRDF and net wages payable. altomateHR does this automatically from each approved run.

Can I see payroll cost per project in Xero?+

Yes, if payroll is posted by tracking category. altomateHR syncs Xero tracking categories and posts each employee's payroll cost to their project, so Profit and Loss by tracking category shows staff cost per project.

Can I split payroll cost across different Xero accounts by department or project?+

Yes. altomateHR's AI split turns a plain-language description into rules that split journal lines by percentage, fixed amount, department, project, job title or other attributes. EPF, SOCSO, EIS, PCB, HRDF and net pay are never split.

What accounts do I need in Xero for Malaysian payroll?+

Expense accounts for salaries and wages, employer EPF, employer SOCSO and EIS, and HRDF levy if registered, plus liability accounts for EPF, SOCSO, EIS, PCB, HRDF and net wages payable. The liability accounts clear when you pay staff and the statutory bodies.

Should payroll go to Xero as a journal or as bills?+

Both work. A journal gives one clean entry per pay run and suits project costing with tracking categories; bills suit teams who pay everything from Bills to pay. altomateHR posts a payroll journal.

Do I have to use Xero to use altomateHR?+

No. Xero integration is optional; altomateHR works as standalone payroll and HR software.

Run Malaysian payroll for every Sdn Bhd from one login

EPF, SOCSO, EIS, PCB, HRDF and year-end forms built in, payroll cost posted to Xero by project, and AI that handles the paperwork.