
Kenya remains a relatively rural country, with only 31.2% of its population, approximately 14.84 million people, living in urban areas as of the 2019 census. Urbanization varies significantly from county to county, being highest in the Greater Nairobi Metropolitan Area and lowest in predominantly rural counties in the western and south-eastern parts of the country. Nairobi and Mombasa had 100% urbanization rate, Meanwhile Kiambu (70.6%), Kajiado (55.7%), Nakuru (48.4%) and Isiolo (46.9%) are also among the most urbanized counties, while Bomet (3.2%), Elgeyo-Marakwet (4.5%) and Kitui (4.8%) are the three least urbanized. The remaining 68.8% of the population, approximately 32.76 million people, live in rural areas.
| Rank | County | Urbanization rate (%) |
|---|---|---|
| 1 | 100.0 | |
| 1 | 100.0 | |
| 3 | 70.6 | |
| 4 | 55.7 | |
| 5 | 48.4 | |
| 6 | 46.9 | |
| 7 | 43.9 | |
| 8 | 38.2 | |
| 9 | 31.2 | |
| 10 | 29.1 | |
| 11 | 27.5 | |
| 12 | 27.4 | |
| 13 | 27.1 | |
| 14 | 25.1 | |
| 15 | 24.7 | |
| 16 | 24.6 | |
| 17 | 23.3 | |
| 18 | 22.7 | |
| 19 | 22.3 | |
| 20 | 19.9 | |
| 21 | 18.0 | |
| 22 | 15.2 | |
| 22 | 15.2 | |
| 24 | 15.0 | |
| 25 | 14.6 | |
| 26 | 12.7 | |
| 27 | 12.5 | |
| 28 | 12.0 | |
| 29 | 11.4 | |
| 30 | 11.3 | |
| 31 | 11.2 | |
| 32 | 10.4 | |
| 32 | 10.4 | |
| 34 | 10.0 | |
| 35 | 9.9 | |
| 35 | 9.9 | |
| 37 | 9.0 | |
| 38 | 8.7 | |
| 39 | 8.6 | |
| 40 | 8.3 | |
| 40 | 8.3 | |
| 42 | 7.8 | |
| 43 | 6.7 | |
| 44 | 5.1 | |
| 45 | 4.8 | |
| 46 | 4.5 | |
| 47 | 3.2 |
Kenya's urbanization has evolved from a small network of colonial administrative and railway towns into a rapidly expanding urban system dominated by Nairobi, Mombasa, Kisumu, Nakuru and other regional centres.
In the pre-colonial period (before 1895), the area now known as Kenya had few large settlements. Urbanization was mostly concentrated in the coastal area, within the Swahili city-states, with Mombasa being the largest urban centre and a major trading centre in the Indian Ocean trade. Other urban centres included Lamu and Malindi, which served as major commercial centres in Kenya. Inland settlements were predominantly rural, with populations distributed among agricultural and pastoral communities.
During the colonial era, Kenya saw a marked shift in urbanization as a result of the construction of the Uganda Railway, which connected Mombasa to parts of the Kenyan interior and Uganda, accelerating the growth of urban centres. Nairobi developed around the Uganda Railway depot in 1899 and became the colonial administrative capital. Kisumu also grew as a railway and port terminus on Lake Victoria, while Nakuru and Eldoret emerged as other important railway towns. In 1907, Nairobi became the capital of British East Africa and developed into a major urban centre.
After independence in 1963, urbanization accelerated as the new government expanded public administration, education, healthcare, infrastructure and commercial activities. Rural–urban migration became increasingly important as people moved to towns in search of employment, education and better access to services.
The number of recognized urban centres increased from 34 in 1962 to 91 in 1979. In the late 20th century, Kenya experienced substantial urban population growth as a result of economic diversification, the expansion of commercial and manufacturing activities and services, rural–urban migration, and the expansion of the private sector and informal economy. Nairobi remained the dominant urban centre. By 1999, Kenya had approximately 180 recognized urban centres, compared with 91 in 1979.
The 2000s marked a major period of urban expansion. Nairobi experienced substantial suburban growth, with settlements expanding towards areas such as Ruiru, Kikuyu, Athi River, Kitengela and Ngong. Other towns also expanded, including Nakuru, Eldoret, Thika, Kisumu and Meru.
Following the introduction of devolution under the 2010 Constitution, the institutional environment for urban development changed. County governments assumed responsibilities relating to urban planning, local infrastructure, markets, waste management and other municipal services, contributing to the emergence and growth of regional towns and county headquarters. As of 2019, there were 372 urban centres, an increase from 230 in 2009.