The calculated distance (air line) between Shepton Mallet and Swansea is approximately 67 miles respectively 108 kilometers.
By car or train, the actual journey to Swansea is certainly longer, as only the direct route (as the crow flies) between Shepton Mallet and Swansea has been calculated here.
Air line (approximately)
108 kilometers
58 nautical miles