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