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