The calculated distance (air line) between Tai’an and Qufu is approximately 41 miles respectively 66 kilometers.
By car or train, the actual journey to Qufu is certainly longer, as only the direct route (as the crow flies) between Tai’an and Qufu has been calculated here.