PAYE, NSSF, SHIF, and the Housing Levy: How Kenyan Payroll Deductions Work
If you've ever looked at a Kenyan payslip and wondered why the net pay is so much lower than the gross, or you're an employer trying to run payroll correctly for the first time, here's a clear walkthrough of every statutory deduction and how they interact.
The deductions, in the order they're typically applied
1. NSSF (National Social Security Fund)
NSSF contributions are split into two tiers based on pensionable earnings, with both the employee and employer contributing matching amounts. The contribution rates and tier thresholds are set by NSSF and have stepped up in recent years as part of a phased implementation, so it's worth confirming the current tier bands apply to a given pay period rather than assuming last year's figures still hold, since retroactively recalculating a past period should use the rate that applied at that time, not today's rate.
2. SHIF (Social Health Insurance Fund)
SHIF replaced the old NHIF and is calculated as 2.75% of gross salary, with a statutory minimum contribution of KES 300 for lower earners. Unlike NSSF, there's currently no employer-matching component, it's an employee deduction.
3. Affordable Housing Levy (AHL)
The Housing Levy is 1.5% of gross salary, matched by an equal 1.5% employer contribution. It applies to all employed Kenyans regardless of whether they intend to use the housing fund benefits directly.
4. PAYE (Pay As You Earn)
This is where it gets more involved. PAYE is calculated on taxable income using graduated bands, meaning different portions of your income are taxed at different rates as your earnings increase, from 10% at the lowest band up to 35% at the highest. But taxable income isn't just your gross salary minus nothing, several reliefs apply first:
- Personal relief: a fixed monthly amount every employee is entitled to, which reduces the PAYE actually payable.
- Insurance relief: 15% of qualifying life or education insurance premiums, capped at a set monthly maximum.
- Pension relief: contributions to a registered pension scheme (including the mandatory NSSF portion) are relieved up to a cap, whichever is lower between a fixed monthly amount or 30% of pensionable pay.
5. NITA Training Levy
A small, flat statutory levy (currently KES 50 per employee, paid by the employer) that funds the National Industrial Training Authority. This one doesn't come out of the employee's pay, it's an employer cost.
The rule that protects employees: the 2/3 rule
Kenyan employment law includes a protection often called the "2/3 rule": voluntary deductions (things like a staff loan repayment, a sacco contribution, or a salary advance) cannot reduce an employee's net pay below two-thirds of their earnings after statutory deductions. Statutory deductions themselves (PAYE, NSSF, SHIF, AHL) aren't subject to this cap, but anything voluntary is.
This matters for payroll software specifically: it's not enough to calculate deductions correctly, the system also needs to check that voluntary deductions don't push someone below that floor, and flag it if they do.
Why "effective-dated" rates matter
Statutory rates change. NSSF's tier thresholds have stepped up over successive years as part of a planned implementation. SHIF replaced NHIF outright. The Housing Levy didn't exist a few years ago at all.
If payroll software just uses "whatever the current rate is" for every calculation, re-running or auditing a payslip from a year ago using this year's rates produces a wrong answer, sometimes a significantly wrong one. The correct approach is effective-dated rate tables: every statutory rate has a start date, and a calculation for a given pay period always uses whichever rate was in force at that time, not whichever is in force today.
This is a detail that's easy to overlook when building payroll software, and expensive to get wrong when a business is later audited or an employee disputes a historical payslip.
Putting it together
A simplified view of how a Kenyan payslip flows, from gross to net:
- Start with gross salary (basic pay plus taxable allowances)
- Deduct NSSF (employee portion)
- Deduct SHIF
- Deduct the Housing Levy (employee portion)
- Calculate taxable income (gross minus allowable reliefs, including the pension relief on NSSF)
- Apply PAYE bands to taxable income, then subtract personal relief and any insurance relief
- Deduct any voluntary items, checked against the 2/3 rule
- What's left is net pay
Employer-side costs (the matching NSSF and Housing Levy contributions, plus the NITA levy) don't come out of the employee's pay at all, but they're real costs that need to post correctly to the business's books, not just to the payslip.
Getting all of this right, and keeping it right as rates change, is exactly the kind of thing payroll software exists to handle so it doesn't have to be recalculated by hand every month.