Cavnic (Hungarian: Kapnikbánya; German: Kapnik) is a former mining town situated in the valley of the same name, 26 km (16 mi) east of Baia Mare, in Maramureş County, northern Romania. The town covers 47.17 km2 (18 sq mi), at altitudes ranging from 500 to 1050 meters above sea level.