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