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