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