← Guides
Process Automation·9 min read

How to Automate Payroll in South Africa

For many South African small businesses, payroll is a manual monthly project: calculate salaries, deduct PAYE, UIF and SDL, post the journal to Xero, reconcile the bank payment, prepare the EMP201 for SARS, and somehow keep it all from drifting.

It doesn't have to work that way. With the right tools connected properly, payroll goes from a half-day task to an hour — mostly spent reviewing outputs rather than calculating inputs.

The components of a payroll automation setup

1. A compliant SA payroll platform

The foundation is payroll software that handles South African legislation: current SARS tax tables, UIF caps, SDL thresholds, leave calculations under the Basic Conditions of Employment Act, and IRP5 generation.

Two platforms are dominant for SA SMEs:

SimplePay — cloud-based, straightforward to use, automatically updated with each year's Budget changes. Handles PAYE, UIF, SDL, overtime, commissions, allowances, and leave. Integrates directly with Xero. Generates EMP201 reports for monthly SARS submissions and IRP5 files for year-end.

PaySpace — more feature-rich, suited to businesses with complex payroll structures, multiple companies, or larger headcounts. Also integrates with Xero.

Sage Payroll (formerly VIP) — widely used by SA accounting practices. Solid compliance track record, though the Xero integration requires additional setup compared to SimplePay.

For most businesses under 50 employees, SimplePay is the practical choice: the right balance of capability, compliance, and cost.

2. Xero integration for automatic journals

The most time-consuming manual payroll task is posting the payroll journal to Xero: debiting salary expenses, crediting PAYE payable, UIF payable, SDL payable, and net salaries payable. Do this manually for 10 employees and you're mapping 40+ line items.

SimplePay's Xero integration posts this journal automatically when payroll is run. The mapping is configured once — each SimplePay pay item links to a Xero account code. After setup, running payroll in SimplePay automatically posts the correct journal.

Account codes you'll typically map:

  • Gross salaries → Employee costs / Salaries & wages expense
  • PAYE → PAYE payable (liability)
  • UIF (employer contribution) → UIF expense
  • UIF (employee contribution) → UIF payable (liability)
  • SDL → SDL payable (liability)
  • Net salaries → Net salaries payable (liability, cleared when bank payment goes out)

Work with your accountant to confirm the right codes for your chart of accounts before configuring the integration.

3. Bank feed for salary payments

When salaries are paid from the bank, those transactions flow into Xero via the bank feed (assuming your bank feed is active — see the guides for FNB and Standard Bank if not).

With the payroll journal already in Xero, the bank transaction for the net salary payment matches automatically against the net salaries payable account. Reconciliation is a one-click confirmation, not a calculation.

4. SARS payment tracking

The PAYE + UIF + SDL liability is due to SARS by the 7th of the following month. SimplePay's EMP201 report shows the exact amount. When the payment is made via eFiling and clears at the bank, Xero matches it against the liability accounts.

This is the one step that can't be fully automated — SARS eFiling requires manual submission. But with SimplePay doing the calculation and Xero reflecting the liability accurately, the submission is a 5-minute form entry. The calculation is already done.

Setting up the SimplePay to Xero integration

The integration lives in SimplePay's settings under Accounting → Xero. You'll need to:

  1. Connect SimplePay to your Xero organisation (OAuth — takes 2 minutes)
  2. Map your SimplePay company to the correct Xero organisation (important if you have multiple entities)
  3. Map each pay item to a Xero account code
  4. Set the Xero tracking categories if you use department or location tracking in Xero

The initial setup takes about an hour if your chart of accounts is already organised. If you're configuring account codes from scratch, allow time to discuss the right structure with your accountant.

After setup, do a test run with one or two employees and check the journal created in Xero before running full payroll. Confirm the debit/credit structure is correct and the accounts are right.

The monthly payroll workflow after automation

With SimplePay + Xero integration configured:

  1. Update variable inputs — enter hours worked, commissions, overtime, any changes to allowances or deductions
  2. Run payroll in SimplePay — calculations happen automatically, journal posts to Xero automatically
  3. Review the EMP201 report — verify the PAYE, UIF, SDL totals
  4. Pay salaries — via bank transfer (batch payment from SimplePay or your banking portal)
  5. Submit EMP201 on eFiling — enter the totals from SimplePay's report, submit, pay the liability
  6. Reconcile in Xero — bank transactions match against the payroll journal (mostly automatic with rules set up)

The calculation and journal work is fully automated. The human steps are reviewing outputs and the SARS submission.

Handling commission and variable pay

Variable pay is where manual payroll gets most complicated. Commissions based on sales data, performance bonuses, and variable allowances all require inputs from outside the payroll system.

The most common approach is a structured process: a spreadsheet or simple form where sales data or commission calculations are compiled, then the totals are entered into SimplePay before running payroll. This isn't fully automated, but it's faster than calculating PAYE from scratch each time.

For businesses with high-volume commission structures, connecting your CRM or sales tracking system to auto-calculate and pass commissions to SimplePay is possible — but requires custom integration work. The value case depends on the complexity and how many employees are on variable pay.

Year-end payroll compliance

IRP5s must be issued to employees and submitted to SARS by the end of May each year. SimplePay generates IRP5 certificates for all employees and exports the SARS e@syFile import format for submission.

This reduces year-end payroll compliance from a multi-day exercise to a half-day review and upload — assuming the payroll data has been maintained accurately throughout the year. Which is the other benefit of using dedicated payroll software: the data integrity required for year-end is maintained as a natural byproduct of running payroll correctly each month.


Some links in this guide are affiliate links. If you sign up through them, Gainly may earn a commission — at no cost to you. We only recommend tools we'd recommend regardless.

Need payroll connected to your accounting system?

Describe what you're working with and I'll come back with something specific — not a sales call.

Tell me what you're dealing with