Gannan is a county in Qiqihar, in the west of Heilongjiang province, China, about 50 km (31 mi) northwest of the city seat of Qiqihar and bordering Inner Mongolia to the west.