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