Home › Journal › What AI cannot yet do in payroll, and what it is good for
AI at workWhat AI cannot yet do in payroll, and what it is good for
Research shows AI chatbots stumble on exact payroll and tax calculations. Use them to draft and explain, and keep the arithmetic in tested code.
What is new
Two recent research papers test how well AI language models handle tax and payroll work. Neither is about Kenya, so the lesson is about method, not about our rates.
The first, posted to arXiv in January 2026 by Hendrika Maclean and colleagues, uses a synthetic payroll system as a test. It asks whether models can understand a payroll data layout, apply rules in the right order, and produce answers accurate to the cent. They tried several well-known model families with different kinds of prompts. Their conclusion is careful: there are cases where good prompting is enough, and cases where the model needs to run an explicit calculation instead of guessing the number.
The second, published in Artificial Intelligence and Law in July 2025, tested models on the certification questions used for volunteer tax preparers in the United States. The authors report that models did best on basic multiple-choice questions (the top scores were about 83%) and that all the models had significant difficulty with open-ended questions. They describe the results as early indicators and call for more research.
Why it matters in Kenya
Kenyan payroll is a stack of dated rules: PAYE bands and relief, SHIF at 2.75% with a minimum, NSSF tiers with limits that changed in February 2026, the housing levy at 1.5% from employee and employer, and NITA. They change with Finance Acts and notices, and the order in which you apply them matters. A chatbot that sounds confident can be a few hundred shillings wrong on every payslip, and you only find out when KRA or an employee does.
The risk is not that AI is useless. It is that a fluent wrong answer looks the same as a right one. A tired payroll officer who pastes figures into a chatbot to "double-check" may trust it over the system.
How to solve it
- Keep arithmetic in tested code. Gross to net should come from a calculator or payroll system that applies dated rates and has been checked against known cases, never from a chat answer.
- Use AI where words are the work. Drafting a letter, explaining a payslip in plain language, summarising a policy, or turning a messy spreadsheet question into a clear one.
- Test with known answers. Take five payslips you have already verified and ask the tool to reproduce them. If it fails once, do not use it for calculation.
- Ask for the working, not just the number. If a tool shows each step, you can spot the wrong band or a missed relief.
- Check any rule against the official source. For rates and due dates, go to KRA, SHA or NSSF notices, not to memory or a chat answer. Where a figure is in doubt, check with KRA.
- Never put real staff data in a public tool. Use invented numbers when you are experimenting.
How QF ERP handles it
In QF ERP the calculation is not done by a language model. The Statutory returns module works out PAYE, SHIF, NSSF, housing levy and NITA from dated rates, and the rates are settings you control, not code buried somewhere. The Payroll module runs eight checks per employee, compares with last month, and freezes approved payrolls. Because the same inputs always give the same output, you can audit it.
We do not currently offer an AI assistant inside payroll. If we add one, it is on our roadmap and the plan is the same split the research points to: AI to explain and draft, tested code to calculate.
To sanity-check any number yourself, use the PAYE calculator and the salary calculator. The routine for a clean month is in how to run payroll before the 9th.
What it means for you
- Do not use a chatbot as your payroll calculator; research suggests exact, rule-ordered arithmetic is where they fail.
- Do use AI to write, explain and summarise, then read what it wrote.
- Test any tool on payslips you already know are right before you trust it.
- Keep one source of truth for rates, and change them with a date, not by overwriting.
Sources
- Evaluating Semantic and Syntactic Understanding in Large Language Models for Payroll Systems, Hendrika Maclean, Mert Can Cakmak, Muzakkiruddin Ahmed Mohammed, Shames Al Mandalawi, John Talburt (arXiv:2601.18012), 2026-01
- Performance of LLMs on VITA test: potential for AI-assisted tax returns for low income taxpayers, Sina Gogani-Khiabani, Ashutosh Trivedi, ShinPing Chyi, Saeid Tizpaz-Niari (Artificial Intelligence and Law, Springer), 2025-07-08
Try it: free tool
More in AI at work
Run this in with QF ERP
The same rules run inside QF ERP, with approvals, an audit trail and your own records. See it on a call.