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