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