Cody is a city in Northwest Wyoming and the county seat of Park County, Wyoming, United States. It is named after Colonel William Frederick "Buffalo Bill" Cody for his part in the founding of Cody in 1896.
The population was 9,520 at the 2010 census. Cody is served by Yellowstone Regional Airport.
Cody is located at 44°31′24″N 109°3′26″W (44.523244, −109.057109).
According to the United States Census Bureau, the city has a total area of 10.43 square miles (27.01 km2), of which 10.20 square miles (26.42 km2) is land and 0.23 square miles (0.60 km2) is water.
Cody's elevation is approximately 5016 ft (1,500 m) above sea level. The main part of the city is split across three levels, separated by about 60 feet (18 m).
The Shoshone River flows through Cody in a canyon. There are four bridges over this river in the Cody vicinity, one at the north edge of town that allows travel to the north, and one about 5 miles (8.0 km) east of Cody that allows passage to Powell and the areas to the north and east. The other two are west of town; one allows access to the East Gate of Yellowstone National Park, and the other is used by fishermen in Shoshone Canyon and as access to the Buffalo Bill Dam.
Cody is located at the western edge of the Bighorn Basin, a depression surrounded by the Big Horn, Owl Creek, Bridger, and Absaroka ranges. At the western edge of Cody, a deep canyon formed by the Shoshone River provides the only passage to Yellowstone's Eastern Entrance.