Africa Take-Home Pay

v1.0.0
ai.kwekuanansi/africa-pay Checked 4 days ago Published 25 days ago

Take-home pay, PAYE and payroll contributions in Ghana, Kenya, Nigeria and South Africa.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ghana.take_home Take-home pay from a monthly salary in Ghana

Use this when someone gives a monthly basic salary in Ghana cedis and asks what they take home, how much PAYE or SSNIT comes off it, or what the job costs the employer. It works the tax out band by band; do not estimate it first. Do not use it for a business's tax, for a year-end return with reliefs, or for pay in another country.

ParameterTypeDescription
basic_salary *numberBasic salary a month in Ghana cedis, before anything is taken off.
allowancesnumberTaxable cash allowances a month in Ghana cedis, on top of basic salary. Leave out if none.
monthstringThe month the pay is for, as YYYY-MM. Leave out for the bands in force now.
pays_ssnitbooleanWhether social security (SSNIT) is taken from the pay. Leave out for yes.
residentbooleanWhether the person is resident in Ghana for tax. Leave out for yes.

kenya.take_home Take-home pay from a monthly salary in Kenya

Use this when someone gives a monthly gross salary in Kenya shillings and asks what they take home, how much PAYE, NSSF, SHIF or Housing Levy comes off it, or what the job costs the employer. It applies NSSF, SHIF and the Housing Levy before tax, as the law has required since December 2024, then the tax bands and personal relief; do not estimate it first. Do not use it for a business's tax, for rental or turnover tax, for pay in another country, or for someone not resident in Kenya.

ParameterTypeDescription
gross_salary *numberGross pay a month in Kenya shillings: basic salary plus cash allowances, before anything is taken off.
insurance_premiumsnumberA month's premiums on life, education or health insurance policies that qualify for insurance relief, if any.
other_pensionnumberA month's contribution to a registered pension or provident fund on top of NSSF, if any.
pays_housing_levybooleanWhether the Affordable Housing Levy is taken from the pay. Leave out for yes.
pays_nssfbooleanWhether NSSF is taken from the pay. Leave out for yes.
pays_shifbooleanWhether SHIF is taken from the pay. Leave out for yes.

nigeria.take_home Take-home pay from a monthly salary in Nigeria

Use this when someone gives a monthly salary in naira and asks what they take home, how much PAYE or pension comes off it, or what rent relief saves them, under the Nigeria Tax Act 2025 bands in force from January 2026. It works the tax out on the year, band by band, then gives the month; do not estimate it first. Do not use it for company tax, for tax before 2026, for VAT, or for pay in another country.

ParameterTypeDescription
gross_salary *numberGross pay a month in naira, before anything is taken off.
nhf_contributionnumberA month's National Housing Fund contribution taken from the pay, if any (compulsory for public-sector workers, voluntary in the private sector).
nhis_contributionnumberA month's health insurance (NHIS) contribution taken from the pay, if any.
pays_pensionbooleanWhether the 8% pension contribution is taken from the pay. Leave out for yes.
pensionable_paynumberBasic pay plus housing and transport allowances a month, which the 8% pension is worked out on. Leave out to use the whole gross salary, which is said in the answer.
yearly_life_insurancenumberLife insurance or annuity premiums paid in a year, if any.
yearly_rentnumberRent the person pays for their home in a year, for rent relief, if any.

south_africa.take_home Take-home pay from a monthly salary in South Africa

Use this when someone gives a monthly salary in rand and asks what they take home, how much PAYE or UIF comes off it, or how age or medical aid changes it, for the tax year from 1 March 2026. It works out the year's tax on twelve months of the salary, less the rebates and medical scheme credits; do not estimate it first. Do not use it for provisional tax on business income, for a year-end assessment, or for pay in another country.

ParameterTypeDescription
gross_salary *numberTaxable pay a month in rand, before anything is taken off.
ageintegerThe person's age at the end of February 2027, which sets the rebates. Leave out for under 65.
medical_scheme_membersintegerHow many people are on the person's medical scheme, counting the person. Leave out for none.
pays_uifbooleanWhether UIF is taken from the pay. Leave out for yes.

pay.country_rates Income tax bands and payroll contributions by country

Use this when someone asks what the income tax bands, reliefs or payroll contributions are in Ghana, Kenya, Nigeria or South Africa, without a salary to work out. Do not use it to work out a figure: use the country's take_home tool, which does the arithmetic.

ParameterTypeDescription
country *stringThe country.