Back to Blog

The History and Future of Kenya Railways: From the Lunatic Express to the Standard Gauge Railway

KG
Kennedy Gichobi
February 20, 2026 7 min read 20 views

The History and Future of Kenya Railways: From the Lunatic Express to the Standard Gauge Railway and Beyond

Kenya's railway history spans from the colonial Lunatic Express that created modern East Africa to the Chinese-built Standard Gauge Railway (SGR) that is transforming 21st-century transport and trade. The Kenya Railways Corporation manages a rail network that generated KES 21.4 billion in revenue in 2025 — an 18.6 percent year-on-year increase — carrying millions of passengers and millions of tonnes of freight between the Indian Ocean port of Mombasa and the East African interior. With construction of SGR Phases 2B and 2C from Naivasha through Kisumu to Malaba set to begin in March 2026, Kenya's railway story is entering its most ambitious chapter yet.

The Lunatic Express: Colonial Origins (1896–1901)

Kenya's railway story begins in 1896 when the British colonial government commenced construction of the Uganda Railway from Mombasa to Lake Victoria. Dubbed the "Lunatic Express" by critics in the British Parliament who considered the project a wasteful folly, the 1,060-kilometre metre-gauge line was built primarily by over 30,000 indentured labourers from British India. Construction was perilous — workers faced tropical diseases, attacks by lions (most famously the Tsavo man-eaters that killed 35 workers in 1898), harsh terrain through the Rift Valley escarpment, and difficult river crossings.

The railway reached the future site of Nairobi in 1899, transforming a swampy plain into a railway depot that would become Kenya's capital city. The line reached Kisumu (then Port Florence) on the shores of Lake Victoria in December 1901. The Uganda Railway fundamentally shaped East Africa's geography, economy, and demographics — towns like Nairobi, Nakuru, Eldoret, and Kisumu owe their existence or growth directly to the railway, and the Indian labourers who stayed formed the foundation of East Africa's Asian community.

Kenya Railways Through Independence and Decline

After independence in 1963, Kenya Railways Corporation was established to manage the inherited colonial rail infrastructure. The network expanded to include branch lines serving agricultural regions and industrial centres, reaching a peak network of approximately 2,778 kilometres of metre-gauge track. Railways were the backbone of freight transport, carrying agricultural exports, imported goods, and industrial products between the port and the interior.

From the 1980s onward, the railway system experienced steady decline due to under-investment, poor maintenance, competition from road transport, and management challenges. By the early 2000s, much of the network was barely functional — derailments were frequent, journey times had doubled or tripled, and freight volumes had collapsed. A concession agreement with Rift Valley Railways in 2006 attempted private sector management but delivered mixed results, with limited investment in infrastructure rehabilitation.

The Standard Gauge Railway: A New Era

The Standard Gauge Railway project, Africa's largest infrastructure investment since independence, was launched in 2014 with Chinese financing and construction by the China Road and Bridge Corporation (CRBC). Phase 1, the 472-kilometre Mombasa-Nairobi line, was completed in 2017 at a cost of approximately USD 3.8 billion, funded largely through a loan from China's Export-Import Bank. Phase 2A extended the line 120 kilometres from Nairobi to Naivasha and Suswa, completed in October 2019, bringing the total SGR length to approximately 592 kilometres.

The first fare-paying passengers boarded the Madaraka Express on Madaraka Day, 1 June 2017, marking the 54th anniversary of Kenya's attainment of self-rule. The Madaraka Express now serves 13 destinations between Mombasa and Suswa stations, with journey times of approximately 4.5 hours between Mombasa and Nairobi — less than half the time required by road. Ticket prices range from economy class to premium cabins, making rail travel accessible across income levels.

SGR Revenue and Ridership Performance

The SGR has demonstrated strong financial trajectory since operations began. Total revenue grew from approximately KES 15 billion in 2022 to KES 18.1 billion in 2024 and KES 21.4 billion in 2025, driven by both freight and passenger growth. Passenger ticket revenue reached KES 2.068 billion in the first half of 2025 alone, reflecting recovering demand after a fare adjustment in early 2024 briefly dampened ridership.

Ridership has grown from just under 8 million passengers in the line's first five years to annual totals exceeding 2.7 million in recent years. Travellers increasingly choose the Madaraka Express over long-distance buses for its reliability, comfort, safety, and predictable journey times. Freight operations have been equally significant, with the SGR competing with road haulage for cargo movement between Mombasa port and the Nairobi Inland Container Depot, reducing congestion on the Mombasa-Nairobi highway.

SGR Phases 2B and 2C: Extending to Western Kenya and Uganda

In the most significant railway development since the original SGR construction, the Kenyan government announced that construction of SGR Phases 2B and 2C from Naivasha through Kisumu to Malaba on the Uganda border is set to begin in March 2026. The groundbreaking ceremony is expected between March 18 and 20, marking the commencement of what will be a transformative infrastructure project for western Kenya.

Phase 2B will run approximately 264 kilometres from Naivasha to Kisumu, traversing five counties — Narok, Bomet, Kericho, Nyamira, and Kisumu — and forming a strategic connection between the Lake Region and the national rail network. Phase 2C will connect Kisumu to Malaba, enhancing regional trade and strengthening economic integration within the East African Community. The combined project is estimated at USD 5 billion and is expected to be completed by June 2027 for the Naivasha-Kisumu segment.

The engineering scope is enormous: 79 railway bridges stretching about 43 kilometres, eight tunnels with a combined length of 14.26 kilometres, 376 culverts covering roughly seven kilometres, and 26 stations including one major station, six intermediate stations, and 18 crossing stations, plus a freight port facility. When complete, the SGR will connect the Port of Mombasa to the Uganda border, forming a crucial segment of the broader East African standard gauge railway network envisioned to link the Indian Ocean to landlocked Uganda, Rwanda, and beyond.

Nairobi Commuter Rail Modernization

Alongside the intercity SGR, Kenya is investing in urban commuter rail to address Nairobi's chronic traffic congestion. The Nairobi Commuter Rail (NCR) service is being modernized with new stations along the Nairobi-Ruiru route including Ruiru, Kenyatta University, Kahawa West, Githurai, Mwiki, Dandora, and Mutindwa — part of 32 new stations the government plans to commission. The broader commuter rail programme encompasses 165 kilometres of commuter rail lines serving Nairobi's rapidly growing suburban population.

Commuter rail offers a mass transit solution that can move thousands of passengers per hour, far exceeding road capacity. Integration with the Nairobi Expressway, Bus Rapid Transit (BRT) proposals, and the existing matatu network is essential for creating a multimodal transport system that reduces commute times, lowers transport costs for workers, and cuts vehicle emissions in the metropolitan area.

Economic Impact and Future Outlook

Kenya's railway investments are reshaping the country's economic geography. The SGR has reduced freight transport costs between Mombasa and Nairobi, improved supply chain reliability, and created thousands of direct and indirect jobs. Towns along the railway corridor — particularly Naivasha, which hosts the SGR inland port — have experienced property development booms and new commercial activity. The extension to Kisumu and Malaba is expected to similarly transform economies in western Kenya, reducing transport costs for agricultural exports and imported goods.

Kenya Railways' Strategic Plan 2022–2027 outlines an ambitious vision for an integrated national rail network combining intercity SGR services, rehabilitated metre-gauge branch lines, urban commuter systems, and seamless intermodal connections with road and port infrastructure. If fully realized, Kenya's railways will complete a transformation from the colonial Lunatic Express to a modern, efficient transport backbone powering East Africa's largest economy.

Share this article: