Most of the air—including ~88% of the CO—is located in the lower part of the atmosphere known as troposphere. The troposphere is thicker in the equator and thinner at the poles, but the global mean of its thickness is around 11 km.
Inside the troposphere, the temperature drops approximately linearly at a rate of 6.5 Celsius degrees per km, from a global mean of 288 Kelvin (15 Celsius) on the ground to 220 K (-53 Celsius). At higher altitudes, up to 20 km, the temperature is approximately constant; this layer is called the tropopause.
The troposphere and tropopause together consist of ~99% of the atmospheric CO. Inside the troposphere, the CO drops with altitude approximately exponentially, with a typical length of 6.3 km; this means that the density at height y is approximately proportional to exp(-y/6.3 km), and it goes down to 37% at 6.3 km, and to 17% at 11 km. Higher through the tropopause, density continues dropping exponentially, albeit faster, with a typical length of 4.2 km.