Zhangjiakou is located in the northwest part of Hebei province, and is defined by mostly rough terrain created by the Yin Mountains, with elevations increasing from southeast to northwest. The east of the prefecture marks the Yan Mountains The bordering prefectures in the province are Chengde to the northeast and Baoding to the south. It also borders Shanxi to the west and southwest and Inner Mongolia to the northwest. The prefecture's latitude ranges from 39° 30' to 42° 10' N, or , while its longitude spans 113° 50' to 116° 30' E, or .