Cody is at the confluence of Cody Creek into Carpenter Creek in the West Kootenay region of southeastern British Columbia. The ghost town, about one kilometre east of Sandon, lies off BC Highway 31A. By road, the former mining community is about 15 kilometres (9 mi) east of New Denver and 44 kilometres (27 mi) west of Kaslo.