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