The atmosphere of Earth is a layer of gases surrounding the planet Earth that is retained by Earth's gravity. The atmosphere protects life on Earth by absorbing ultraviolet solar radiation, warming the surface through heat retention (greenhouse effect), and reducing temperature extremes between day and night. Dry air contains roughly (by volume) 78% nitrogen, 21% oxygen, 0.93% argon, 0.038% carbon dioxide, and small amounts of other gases. Air also contains a variable amount of water vapor, on average around 1%. The atmosphere has a mass of about five quintillion (5x1018) kg, three quarters of which is within about 11 km (6.8 mi; 36,000 ft) of the surface. The atmosphere becomes thinner and thinner with increasing altitude, with no definite boundary between the atmosphere and outer space. An altitude of 120 km (75 mi) is where atmospheric effects become noticeable during atmospheric reentry of spacecraft