Acidic soils cover over 30 % of Sub-Saharan Africa cropland. Acidic soils deprive crops of calcium, magnesium, potassium, molybdenum, and phosphorus due to aluminium (Al), manganese, and iron toxicities. Thus, liming is required to adjust the level of exchangeable Al3+ to the desired level of Al saturation of the crops grown. Lime requirement (LR) was quantified using soil dataset from Africa soil information service (AfSIS). Spatial variations of LR of cereals, pulses and cash crops were predicted using random forest algorithm. Our results revealed that mean of LR Mg CaCO3 (1 Mg = 106 g) ha−1 for cereal crops were 6.34, 6.35, and 4.41 for maize, sorghum, and upland rice, respectively. Mean of LR (Mg ha−1) for pulses were 6.28, 5.19, and 4.90 for common beans, soybeans, and cowpeas, respectively. Mean of LR Mg CaCO3 (1 Mg = 106 g) ha−1 for cash crops were 3.41 and 6.29 for coffee and cotton, respectively. Spatial variation showed that LR in croplands was higher in tropical humid regions than in semi-arid and arid regions and ranged from 0 to 8.8 Mg ha−1. The results of 10-fold cross validation for high model performance of LR for tested crops were coefficient of determination (R2) of 0.61, a root mean square error (RMSE) of 0.5, and a mean absolute error (MAE) of 0.31, maize LR with RMSE = 0.9, MAE = 0.24, and R2 = 0.51, and cotton LR with RMSE = 0.5, MAE = 0.31, and R2 = 0.60. We recommend predicting lime requirement in acidic soils of Sub-Saharan Africa by adjusting Al saturation up to the tolerance of the grown crop, updating soil surveys in Sab Saharan Africa, and using digital soil mapping to monitor soil acidity and lime requirement.