Skip to main content

Kenya - Maize: is fertiliser worth it?

Thirty-three long-rains seasons in the western highlands, four nitrogen rates. The model says yes, every year. The useful question is how wrong it can be before the answer changes

Setup
Area 34.6-35.6 E, 0.1-1.1 N, western Kenya (counties below)
Crop map MapSPAM 2020 maize, physical area (International Food Policy Research Institute (IFPRI) 2024)
Weather, soil AgERA5 1990-2024 (Copernicus Climate Change Service 2019); SoilGrids 2.0 (Poggio et al. 2021), one profile per 0.1° cell
Crop, template CERES-Maize, hybrid H610 (DSSAT cultivar IB0060), template XDMZ8201.MZX; the model simulates water and nitrogen (phosphorus, potassium and diseases are off)
Treatments rainfed; 0, 60, 120 or 180 kg N/ha as urea, a third at sowing and two thirds 35 days later
Sowing 15 March every year, the long rains
Years 1991-2023, 33 seasons
Prices maize: WFP monthly wholesale price, Eldoret (World Food Programme 2026); fertiliser: three bag prices reported in 2022 and 2023 (Capital FM 2022, 2023)
Boundaries edge-matched OCHA administrative boundaries (COD-AB) from HDX: Kenya (IEBC), Uganda (UBOS), CC BY-IGO
Experiment file configs/cases/kenya-maize.yml

Where

The model runs on the 0.1° weather cells and weights each cell by the crop area inside it, not by the area of the cell. The switch picks the map that gives that area: MapSPAM 2020 maize, the runs’ own crop mask, or LGRIP30 cropland, all or irrigated only, for comparison. It changes the area map and the table below; the simulated cells, their yields and the other charts on this page stay as they are.

Four bags, four harvests

A 50 kg bag of urea holds 23 kg of nitrogen. The question a maize grower asks is simple: does the grain the bag adds sell for more than the bag costs? Here the same hybrid, in the same fields, is grown with no nitrogen, 60, 120 and 180 kg per hectare, in each of 33 long-rains seasons.

The model’s answer: always

The value-cost ratio (VCR) divides the value of the extra grain by the cost of the fertiliser that grew it. At 1 the bag pays for itself; 2, a 100% return, is the usual bar for fertiliser to be worth buying, and 4 is proposed where weather and prices are risky and farmers short of cash (Kiwia et al. 2022). Set the two prices below; the charts on the rest of the page follow them. The maize slider covers the range of the monthly Eldoret wholesale price in 2021-2026.

How wrong can the model be?

The price of a sack

The weather is not the only risk. The same bag bought at planting is repaid by grain sold months later, at whatever price the market then pays.

How far to go, cell by cell

What this does not say

  • Simulated, not observed. Why the simulated yields differ from official statistics, in every case study: FAQ.
  • Uncalibrated. H610 runs with DSSAT’s own coefficients, in a field without weeds, pests, diseases or phosphorus shortage. Its kilograms are not a forecast of farm yields; the share slider is there for that reason.
  • A rich soil. Without fertiliser the model’s crop still takes up about 100 kg N/ha a season from the soil, mineralised from the SoilGrids organic matter. A poorer soil would make nitrogen worth more, a richer one less.
  • Only the bag. The VCR counts the fertiliser price alone: no transport, labour, credit or the cost of phosphorus that farmers usually buy with it. The 2023 subsidised price was reported without the type of fertiliser and is priced here as urea.
  • Prices from 2021-2026, weather from 1991-2023. Every season is valued at the 2021-2026 price range, and one market stands for the whole box.
  • One sowing date. Every season is sown on 15 March. A late start of the rains is a different experiment (see Niger - Millet).

Run it yourself

python scripts/prepare_weather.py   --config configs/cases/kenya-maize.yml
python scripts/prepare_crop_mask.py --config configs/cases/kenya-maize.yml
python scripts/prepare_soils.py     --config configs/cases/kenya-maize.yml --aoi kenya_maize
python scripts/run_aoi.py           --config configs/cases/kenya-maize.yml
python docs/scripts/export_cases.py kenya --wfp <folder>/wfp_food_prices_ken.csv

The export reads WFP’s Kenya price file, downloaded from the Humanitarian Data Exchange (wfp_food_prices_ken.csv, CC BY-IGO). The three-year version of this area ships with xdssat: example-inputs/kenya_maize/ (Examples).

Back to top

References

Capital FM. 2022. Ministry of Agriculture Announces New Subsidized Fertilizer Prices. 20 September 2022. https://capitalfm.africa/ministry-of-agriculture-announces-new-subsidized-fertilizer-prices/.
Capital FM. 2023. Fertilizer Cost to Drop to Sh2,500 from Sh3,500: President Ruto. 2 August 2023. https://capitalfm.africa/fertilizer-cost-to-drop-to-sh2500-from-sh3500-president-ruto/.
Copernicus Climate Change Service. 2019. Agrometeorological Indicators from 1979 up to 2019 Derived from Reanalysis (AgERA5). ECMWF. https://doi.org/10.24381/cds.6c68c9bb.
Food and Agriculture Organization of the United Nations. 2025. FAOSTAT: Crops and Livestock Products (QCL), Yield. Via Our World in Data: maize https://ourworldindata.org/grapher/maize-yields, rice https://ourworldindata.org/grapher/rice-yields, millet https://ourworldindata.org/grapher/millet-yield, accessed 2026-11-09. https://www.fao.org/faostat/en/#data/QCL.
International Food Policy Research Institute (IFPRI). 2024. Global Spatially-Disaggregated Crop Production Statistics Data for 2020 Version 2.0 Release 2. Harvard Dataverse. https://doi.org/10.7910/DVN/SWPENT.
Kiwia, Abednego, David Kimani, Rebbie Harawa, Bashir Jama, and Gudeta W. Sileshi. 2022. “Fertiliser Use Efficiency, Production Risks and Profitability of Maize on Smallholder Farms in East Africa.” Experimental Agriculture 58: e22. https://doi.org/10.1017/S001447972200014X.
Poggio, Laura, Luis M. de Sousa, Niels H. Batjes, et al. 2021. “SoilGrids 2.0: Producing Soil Information for the Globe with Quantified Spatial Uncertainty.” SOIL 7 (1): 217–40. https://doi.org/10.5194/soil-7-217-2021.
World Food Programme. 2026. Kenya - Food Prices. Market Eldoret town (Uasin Gishu), maize (white, dry), wholesale, 90 kg; accessed 2026-11-09; Humanitarian Data Exchange. https://data.humdata.org/dataset/wfp-food-prices-for-kenya.