The calculated distance (air line) between Masaya and El Viejo is approximately 87 miles respectively 139 kilometers.
By car or train, the actual journey to El Viejo is certainly longer, as only the direct route (as the crow flies) between Masaya and El Viejo has been calculated here.