The calculated distance (air line) between Nairobi and Juja is approximately 21 miles respectively 35 kilometers.
By car or train, the actual journey to Juja is certainly longer, as only the direct route (as the crow flies) between Nairobi and Juja has been calculated here.