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