Gopeng is a town located in , Kampar District, Perak, Malaysia. It is situated approximately 20 km (12 mi) south of Ipoh, the state capital.