Kenya payroll template for Excel
Type in your staff and their gross pay, and the sheet does the rest. It works out Kenya PAYE, NSSF, SHIF and Housing levy and take-home pay for each person, plus what you pay on top as the employer.
Rules as at 1 February 2026 · checked 24 September 2026 · file built 29 November 2026 · free, no sign-up
What's in the sheet
Three tabs. Payroll has rows for up to 100 employees: you fill the white columns, and the green ones work themselves out with ordinary formulas you can read and check. Rules lists the bands and rates used. Read me explains it in a page.
You type
- Employee
- Gross pay (KES, a month)
- Pension or provident contributions beyond NSSF (a month)
- Mortgage interest on your home (a month)
- Post-retirement medical fund (a month)
- Life, education or health insurance premiums (a month)
- Taxable non-cash benefits (a month)
- NSSF (Tier I + II)
- SHIF (2.75%)
- Housing levy (1.5%)
- Pension contributions (off taxable pay)
- Mortgage interest (off taxable pay)
- Post-retirement medical fund (off taxable pay)
It works out
- Taxable pay
- Reliefs (off the tax)
- Income tax (PAYE)
- Total deductions
- Take-home pay
- Employer: NSSF (employer match)
- Employer: Housing levy (employer 1.5%)
- Total cost to employer
How the sheet works out Kenya payroll
- NSSF (Tier I + II): 6% of pay up to KES 108,000. It comes off pay before PAYE is worked out.
- SHIF (2.75%): 2.75% of gross pay, at least KES 300. It comes off pay before PAYE is worked out.
- Housing levy (1.5%): 1.5% of gross pay. It comes off pay before PAYE is worked out.
- Reliefs you can enter: pension or provident contributions beyond nssf, mortgage interest on your home, post-retirement medical fund and life, education or health insurance premiums. Leave them at 0 if they don't apply.
- PAYE is charged on taxable pay in bands (a month): 10% on the first KES 24,000, rising to 35% on income above KES 800,000. personal relief of KES 2,400 then comes off the tax.
- Employer costs: NSSF (6% of pay up to KES 108,000) and Housing levy (1.5% of gross pay). The last column is the total cost of each employee.
Rules from December 2024 payroll onwards are on file (Tax Laws (Amendment) Act 2024). NSSF is 6% of pay up to the upper earnings limit (KES 36,000 from Feb 2024, 72,000 from Feb 2025, 108,000 from Feb 2026), matched by the employer. SHIF (2.75%, minimum KES 300) and the housing levy (1.5%, matched by the employer) are deductible before PAYE. Pension, mortgage interest and post-retirement medical fund deductions and insurance relief use KRA's monthly caps. The NITA levy (KES 50 per employee) isn't included.
Checking one salary? The Kenya PAYE calculator gives the same answer with a full breakdown, no download needed.
Kenya PAYE formula for Excel and Google Sheets
Just need the tax? Put taxable pay (a month) in cell B2 and paste this into any cell. It applies the Kenya PAYE bands and takes off KES 2,400 of relief:
=MAX(0, SUMPRODUCT((B2>{0,24000,32333,500000,800000})*(B2-{0,24000,32333,500000,800000})*{0.1,0.15,0.05,0.025,0.025})-2400)Taxable pay is gross pay minus NSSF, SHIF and Housing levy. Rules as at 1 February 2026. Copy it down a column for a whole payroll, or use the template above, which does every deduction too.
Need past months, gross-up or a payroll that updates itself?
The free Mulabase add-on for Excel and Google Sheets adds formulas like =MULABASE.TAKEHOME("Kenya", B2), =MULABASE.GROSSUP for net-to-gross, and a date argument that uses the rules in force in an earlier month. When the rules change, your sheet follows.
Frequently asked questions
Is the template free?
Yes. Download it, change it and share it. There's no sign-up. If you publish it somewhere, a link back to this page is appreciated.
Which rules does it use?
The Kenya rules in force from 1 February 2026, which Mulabase last checked against the official sources on 24 September 2026. The date is printed at the top of the sheet. When the rules change we rebuild the file, so download a fresh copy after a budget.
Does it work in Google Sheets or LibreOffice?
Yes. The formulas are ordinary spreadsheet formulas (no macros or add-ins), so the file opens in Excel, Google Sheets (File → Import) and LibreOffice Calc and works out the same answers.
What's the Kenya PAYE formula in Excel?
With taxable pay a month in B2: =MAX(0, SUMPRODUCT((B2>{0,24000,32333,500000,800000})*(B2-{0,24000,32333,500000,800000})*{0.1,0.15,0.05,0.025,0.025})-2400). It works in Excel and Google Sheets. Taxable pay is gross pay minus NSSF, SHIF and Housing levy. The template does this for you, along with every deduction.
Can it do past months or net-to-gross?
Not on its own: a template is fixed to one set of rules. The free Mulabase add-on for Excel and Google Sheets can, with formulas like =MULABASE.GROSSUP("Kenya", 100000) and a date argument for earlier months.
Does it show what the employer pays?
Yes. Each employee's row shows NSSF and Housing levy and the total cost to the employer, and the totals row adds them up for the whole payroll.
Mulabase checks these figures against the revenue authorities, but you're responsible for what you file. Data: Mulabase, CC BY 4.0. All payroll templates