Farming in semi-arid Kenya:Precision strategies for Machakos, Makueni, and Kitui

Machakos, Makueni, and Kitui counties cover Kenya's largest contiguous dryland farming zone — over 36,000 square kilometres of alfisol soils receiving 400 to 800 mm of erratic annual rainfall. Conventional extension advice fails here because it was developed for highland conditions and assumes rainfall regularity that does not exist. Precision farming in semi-arid Kenya starts from a different premise: work with the rainfall that arrives rather than managing for the rainfall you hope for. These three counties share the same challenges — low organic carbon, phosphorus deficiency, and unpredictable moisture — but each has distinct sub-county variation that demands targeted rather than blanket recommendations.

PA
Polycarp Andabwa·MSc agricultural environmental engineering·founder, ShambaIQ
·10 min read
Drought-tolerant sorghum crop growing in semi-arid Machakos County Kenya
Dryland farming landscape in Makueni County showing terraced hillside with pigeon pea intercropping. Source: ShambaIQ field data.

Three counties, one challenge — different solutions

Machakos, Makueni, and Kitui share the lower eastern Kenya dryland belt but differ meaningfully in altitude, rainfall, and market access. Understanding these differences determines which precision strategies apply to your specific sub-county.

Machakos County

Altitude1,000 – 1,700 m
Rainfall700 – 900 mm
SoilAlfisol, sandy-clay loam
MarketNairobi 60 km — strong vegetable demand

Highest altitude of the three. Highland sub-counties (Mwala, Kangundo) viable for maize. Closest to Nairobi's premium vegetable markets.

Makueni County

Altitude600 – 1,500 m
Rainfall500 – 800 mm
SoilAlfisol, red sandy loam
MarketNairobi 150 km — strong fruit market (mango, pawpaw)

Kenya's largest mango-producing county. Wote and Emali sub-counties have irrigation potential from Athi River catchment. Strong fruit processing infrastructure.

Kitui County

Altitude400 – 1,400 m
Rainfall400 – 700 mm
SoilAlfisol, sandy to sandy-clay
MarketNairobi 180 km — road quality variable

Largest of the three counties by area. Significant groundwater in seasonal rivers. Sand dam technology most advanced here — over 3,000 sand dams built by community groups.

Soil data comparison: Machakos vs Makueni vs Kitui

Soil nutrient comparison across Machakos Makueni and Kitui counties Kenya
ParameterMachakosMakueniKituiCrop optimum
Soil pH6.0 – 6.85.8 – 6.86.2 – 7.56.0 – 6.5
Organic Carbon (%)0.6 – 1.40.5 – 1.00.4 – 0.9> 2.0%
Total Nitrogen (g/kg)0.6 – 1.20.5 – 1.00.4 – 0.8> 1.2 g/kg
Phosphorus (mg/kg)8 – 185 – 144 – 12> 15 mg/kg
Potassium (mg/kg)120 – 280100 – 22080 – 200> 100 mg/kg
Water retention (mm/100mm)8 – 146 – 115 – 10> 18 mm

Source: ShambaIQ precision soil mapping, county averages at 0–20 cm depth. Get your farm-specific values here.

Crop selection by rainfall zone

The single most important precision decision in semi-arid farming is matching crop to rainfall — not applying more fertilizer to the wrong crop. This table ranks crops by minimum viable rainfall and expected return.

Drought tolerant crop selection for semi-arid Kenya by rainfall zone
CropMin rainfallSeason lengthYield/acreRevenue/acreBest county zone
Sorghum350 mm90–120 days8–15 bagsKES 24,000–45,000All three — most reliable
Cowpeas400 mm60–75 days4–8 bagsKES 32,000–64,000All three — fastest cash
Pigeon peas450 mm150–200 days3–6 bagsKES 30,000–60,000Machakos, Makueni highlands
Green grams450 mm60–70 days3–5 bagsKES 36,000–60,000All three — premium market price
Cassava400 mm9–18 months5–12 tonnesKES 50,000–120,000Kitui lowlands, Makueni
Mango500 mmPerennial2–6 tonnesKES 60,000–180,000Makueni — established value chain
Maize (DUMA 43)550 mm85–100 days8–16 bagsKES 28,000–56,000Machakos highlands only
Onion (irrigated)Drip110–120 days15–20 tonnesKES 300,000–500,000Kajiado border, Makueni irrigated

Water harvesting — the technology that makes semi-arid farming viable

In semi-arid Kenya, the limiting factor is not total annual rainfall — it is rainfall capture. Without water harvesting, 30 to 60 percent of every rainfall event runs off the surface and leaves the farm before roots can absorb it.

Zai pits

Labour only — KES 2,000–4,000/acre

40–60% runoff reduction

Small planting basins (20–30 cm diameter, 15 cm deep) filled with compost concentrate water and nutrients at the root zone. Each pit captures 3 to 5 litres per rainfall event. After 2 to 3 seasons of compost additions, the pit zone develops dramatically better soil structure than surrounding soil — creating permanent micro-zones of fertility.

Dig during dry season. Benefits from first rain.

Tied ridges

Ox plough — KES 1,500–2,500/acre

40–70% runoff reduction

Ridges across slope contour with cross-ties every 3 to 4 metres create connected water storage basins across the entire field. Water is intercepted before it can flow downhill. Most effective on slopes of 2 to 15 percent — the gradient range covering most farmland in all three counties.

Build at season start. Rebuild annually.

Sand dams

Community — KES 200,000–500,000 per dam

Year-round shallow water table

Concrete weirs across seasonal rivers that trap sand during floods. The sand stores water that can be accessed via shallow wells for months after the last rain. Kitui County has over 3,000 sand dams — more than anywhere else in Africa — enabling drip irrigation, livestock watering, and domestic use in areas that would otherwise be waterless for 6 months per year.

Multi-year community investment. 20+ year lifespan.

Fertilizer strategy for semi-arid soils

Fertilizer management in semi-arid conditions requires a fundamentally different approach from highland farming. The key principle: organic matter first, phosphorus second, nitrogen only when moisture is assured.

Fertilizer programme for semi-arid Machakos Makueni Kitui Kenya
InputRate/acreWhenWhy in semi-arid context
Compost / manure2–5 tonnesBefore planting into zai pitsBuilds water retention — the primary yield constraint. Each 1% OC increase = 20 L/m² more water held
DAP25–50 kgIn planting furrow at plantingPhosphorus for root development. Lower rate than highland — half the fertilizer at half the moisture produces similar P availability
CAN25–50 kgAt knee height — ONLY if rains establishedSkip entirely in dry years. N applied to moisture-stressed crops volatilises without root uptake. Wasted money.
Rock phosphate50–100 kgPre-plant broadcastSlow-release P alternative to DAP. Cheaper per unit P. Better suited to single-application semi-arid systems where farmers cannot return to field for top-dress

The compost-first principle for semi-arid soils

On Machakos, Makueni, and Kitui soils at 0.6 to 1.0 percent organic carbon, spending KES 5,000 on compost and KES 2,000 on DAP will outperform spending KES 7,000 on DAP and CAN alone. The compost improves water retention — the primary yield constraint — while DAP and CAN only supply nutrients that cannot be absorbed without adequate soil moisture. Fix the water problem first and the fertilizer works harder.

Drip irrigation for smallholders — economics and setup

Where water is available — from sand dams, boreholes, farm ponds, or seasonal rivers — drip irrigation transforms semi-arid smallholder farming economics from subsistence to commercial.

Drip irrigation economics for smallholder farms in semi-arid Kenya
Item0.25 Acre system0.5 Acre system1 Acre system
Drip tape and fittingsKES 8,000KES 15,000KES 25,000
Water tank (elevated)KES 5,000KES 8,000KES 12,000
Pump (solar or manual)KES 8,000KES 12,000KES 20,000
Total infrastructureKES 21,000KES 35,000KES 57,000
Annual operating costKES 4,000KES 7,000KES 12,000
Revenue (tomato/onion)KES 60,000–150,000KES 120,000–300,000KES 250,000–500,000
Payback period1 season1 season1–2 seasons

Step-by-step: dryland farming in Machakos, Makueni, and Kitui

  1. 1

    Check soil data for your specific sub-county

    Use ShambaIQ at shambaiq.com to get your farm's exact soil pH, organic carbon, phosphorus, and nitrogen values. Machakos, Makueni, and Kitui each have significant internal variation — highland Machakos at 1,400 m altitude has different soil and rainfall than lowland Kitui at 700 m. A single county recommendation is insufficient — sub-county precision matters.

  2. 2

    Build water harvesting structures before the rains

    During the dry season before expected rains, dig zai pits (20 cm diameter, 15 cm deep, 60 cm apart) and build tied ridges across slope contours. Fill each zai pit with a double handful of compost. These structures capture 40 to 70 percent of rainfall that would otherwise run off the field surface. On a 1-acre plot, zai pits require 3 to 5 days of labour — the single highest-return investment for dryland farming.

  3. 3

    Select crops by your rainfall zone, not by neighbour's choice

    Match your crop to your specific location's average rainfall. Below 500 mm: sorghum, millet, cowpeas, and cassava only. At 500 to 700 mm: add pigeon peas, green grams, sweet potatoes, and drought-tolerant maize (DUMA 43). Above 700 mm: standard maize, beans, and vegetables become viable with water harvesting. Never plant maize in zones below 500 mm — it will fail in 3 out of 5 years.

  4. 4

    Apply compost and low-rate DAP at planting

    Apply compost at 2 to 3 tonnes per acre into zai pits or along planting furrows. Add DAP at 25 to 50 kg per acre in the planting furrow. Do not apply CAN top-dress unless rains are clearly established and consistent — nitrogen applied to drought-stressed crops volatilises from the soil surface without root uptake, wasting the input entirely.

  5. 5

    Practise staggered planting to spread risk

    Do not plant the entire farm on the same day. Plant 40 percent of the acreage at the first reliable rain, 30 percent one week later, and the remaining 30 percent two weeks later. If the season fails early, the last planting may still produce. If the season is good, all three plantings succeed. This simple risk management technique costs nothing and dramatically reduces the probability of total crop failure.

  6. 6

    Integrate livestock and crop residues for organic matter cycling

    After crop harvest, feed residues to livestock and return the manure to the cropping fields as compost. This closed nutrient loop is the only sustainable way to build organic carbon from 0.8 percent to the 2 percent target that transforms water retention, soil structure, and long-term productivity on Machakos, Makueni, and Kitui's degraded alfisol soils.

Cost comparison: rainfed vs irrigated semi-arid farming per acre

Rainfed sorghum + cowpeaDrip-irrigated onion
Seed / seedlingsKES 2,000KES 8,000
Fertilizer (DAP + compost)KES 5,000KES 12,000
Water / irrigationKES 0KES 15,000
Drip infrastructure (amortised)KES 0KES 9,000
LabourKES 4,000KES 8,000
Pesticide / fungicideKES 1,000KES 5,000
Total CostKES 12,000KES 57,000
RevenueKES 56,000–109,000KES 300,000–500,000
Net marginKES 44,000–97,000KES 243,000–443,000

Rainfed budget assumes good season. In drought years, rainfed income drops to KES 15,000–30,000 while irrigated income is stable. Find agrovets and input prices across all three counties here.

Free precision tool

Get a drought-resilient crop plan built from your county's actual soil data.

ShambaIQ maps your specific sub-county's soil data and rainfall zone, then recommends the crops and inputs that match your conditions — not a county average. Free. No sign-up required.

Open Semi-Arid Advisor

Frequently asked questions

What crops grow well in Machakos, Makueni, and Kitui?+
The most reliable crops ranked by drought tolerance: sorghum (produces at 400 mm), cowpeas, pigeon peas, green grams, cassava, millet, and sweet potatoes. Maize is feasible with drought-tolerant varieties like DUMA 43 and conservation farming but fails in drought years. Onions under drip irrigation produce exceptional returns due to dry conditions favouring bulb curing. Get a county-specific crop plan at shambaiq.com.
How much rainfall is needed for farming in Machakos?+
Machakos County averages 700 to 900 mm of annual rainfall in two unreliable seasons. The lower zones at 900 to 1,100 m experience high inter-annual variability — a bad year can bring 400 mm, a good year over 900 mm. Water harvesting through zai pits, tied ridges, and farm ponds is the technology that converts unreliable rainfall into reliable crop production.
What fertilizer should I use in semi-arid Kenya?+
Semi-arid alfisol soils are phosphorus-deficient (6 to 16 mg/kg) and low in organic carbon (0.6 to 1.2 percent). Apply DAP at 25 to 50 kg per acre at planting. Reduce CAN top-dressing in drought years — nitrogen applied to moisture-stressed crops volatilises without uptake. Compost at 2 to 3 tonnes per acre per season is the highest-return single investment because it simultaneously improves water retention, phosphorus availability, and nitrogen cycling.
Is drip irrigation viable for small farms in Kitui?+
Drip irrigation is viable for Kitui smallholders at 0.1 to 0.5 acres using gravity-fed systems from elevated tanks or simple solar-pumped systems. At 0.25 acres of drip-irrigated tomatoes or onions, revenue of KES 60,000 to 150,000 per season is achievable against investment of KES 20,000 to 40,000. The payback period is one to two seasons. Community sand dam projects have enabled drip irrigation clusters benefiting groups of 5 to 15 households sharing infrastructure costs.
How do farmers in Makueni County manage drought?+
Experienced Makueni farmers manage drought through five integrated strategies: crop diversification across drought-tolerance levels, staggered planting dates to spread risk, water harvesting infrastructure, on-farm food reserves from drought-tolerant crops like cassava and pigeon peas, and income diversification through livestock and off-farm employment to reduce dependence on a single crop season.

More regional farming guides