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