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