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