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