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