The calculated distance (air line) between Santo Tomás and Masaya is approximately 68 miles respectively 110 kilometers.
By car or train, the actual journey to Masaya is certainly longer, as only the direct route (as the crow flies) between Santo Tomás and Masaya has been calculated here.
Air line (approximately)
110 kilometers
59 nautical miles