The exosphere is the uppermost layer of Earth's atmosphere. In the exosphere, an upward travelling molecule moving fast enough to attain escape velocity
Escape velocity
In physics, escape velocity is the speed at which the kinetic energy plus the gravitational potential energy of an object is zero gravitational potential energy is negative since gravity is an attractive force and the potential is defined to be zero at infinity...

 can escape to space with a low chance of collisions; if it is moving below escape velocity it will be prevented from escaping from the celestial body
Celestial Body
Celestial Body is a Croatian film directed by Lukas Nola. It was released in 2000....

 by gravity. In either case, such a molecule is unlikely to collide with another molecule due to the exosphere's low density
The mass density or density of a material is defined as its mass per unit volume. The symbol most often used for density is ρ . In some cases , density is also defined as its weight per unit volume; although, this quantity is more properly called specific weight...

The main gas
Gas is one of the three classical states of matter . Near absolute zero, a substance exists as a solid. As heat is added to this substance it melts into a liquid at its melting point , boils into a gas at its boiling point, and if heated high enough would enter a plasma state in which the electrons...

es within the Earth
Earth is the third planet from the Sun, and the densest and fifth-largest of the eight planets in the Solar System. It is also the largest of the Solar System's four terrestrial planets...

's exosphere are the lightest gases, mainly hydrogen
Hydrogen is the chemical element with atomic number 1. It is represented by the symbol H. With an average atomic weight of , hydrogen is the lightest and most abundant chemical element, constituting roughly 75% of the Universe's chemical elemental mass. Stars in the main sequence are mainly...

, with some helium
Helium is the chemical element with atomic number 2 and an atomic weight of 4.002602, which is represented by the symbol He. It is a colorless, odorless, tasteless, non-toxic, inert, monatomic gas that heads the noble gas group in the periodic table...

, carbon dioxide
Carbon dioxide
Carbon dioxide is a naturally occurring chemical compound composed of two oxygen atoms covalently bonded to a single carbon atom...

, and atomic oxygen near the exobase.