Cody is located at the western edge of the Bighorn Basin, a depression surrounded by the Big Horn, Owl Creek, Bridger, and Absaroka ranges.
Cody experiences a semi-arid climate (Köppen BSk), with highly variable conditions.