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