The calculated distance (air line) between San Diego and Encinitas is approximately 23 miles respectively 38 kilometers.
By car or train, the actual journey to Encinitas is certainly longer, as only the direct route (as the crow flies) between San Diego and Encinitas has been calculated here.