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