In the Earth's atmosphere, the layer where temperature is increasing with height is called the stratosphere. The layer where temperature continuously decreases with height is called the troposphere.
Stratosphere (Temperature Increasing with Height):The stratosphere is the second major layer of Earth's atmosphere, located directly above the troposphere. In the stratosphere, the temperature increases with altitude. This temperature increase is due to the presence of ozone (O3) molecules that absorb and re-emit ultraviolet (UV) radiation from the Sun. The absorption of UV radiation creates a temperature inversion, where the upper part of the stratosphere is warmer than the lower part.
Troposphere (Temperature Decreasing with Height):The troposphere is the lowest layer of the Earth's atmosphere, extending from the surface up to an average altitude of about 8 to 15 kilometers (5 to 9 miles) depending on the location. In the troposphere, temperature decreases with increasing altitude. This decrease in temperature is a result of the way the Earth's surface absorbs and emits heat. The surface is warmed by solar radiation, and it heats the air in contact with it. As you move higher in the troposphere, the air encounters cooler temperatures and gradually cools with increasing altitude.
The temperature profile described here is a fundamental aspect of the Earth's atmosphere and has important implications for weather patterns, atmospheric circulation, and the behavior of various atmospheric processes.
The troposphere is characterized by turbulent mixing and overturning. This turbulence results from uneven heating of the surface and the atmosphere. Temperature decreases with height in this layer. Temperature increases as you gain altitude in the stratosphere and the thermosphere. Temperature decreases as you gain altitude in the troposphere and mesosphere. The relative humidity continuously decreases with height in the troposphere and is close to zero in the stratosphere. Both temperature and wind velocity show variable pattern; they decrease or increase with change in altitude. The troposphere and the stratosphere together account for more than 99% of the total mass of the atmosphere. Mesosphere: The temperature decreases in this layer from an altitude of about 50 km to 85 km. Thermosphere. Located between about 80 and 700 kilometers (50 and 440 miles) above Earth's surface is the thermosphere, whose lowest part contains the ionosphere. In this layer, temperatures increase with altitude due to the very low density of molecules found here. The temperature of the thermosphere gradually increases with height. Unlike the stratosphere beneath it, wherein a temperature inversion is due to the absorption of radiation by ozone, the inversion in the thermosphere occurs due to the extremely low density of its molecules. This is because the Earth's surface is heated by the sun, and the heat is transferred to the surrounding air through conduction and convection. As the air rises, it expands and cools due to the decrease in air pressure. This process is known as adiabatic cooling. Troposphere the temperature of the troposphere is highest near the surface of the Earth and decreases with altitude. On average, the temperature gradient of the troposphere is 6.5o ºC per 1,000 m (3.6o ºF per 1,000 ft.) of altitude. The higher one climbs, the further the temperature sinks, due to the decreasing air pressure. Aside from air pressure, another determining factor in how temperature changes with altitude is the way in which the atmosphere is heated. The atmosphere is mostly warmed by the Earth's surface. The higher one climbs, the further the temperature sinks, due to the decreasing air pressure. Aside from air pressure, another determining factor in how temperature changes with altitude is the way in which the atmosphere is heated. The atmosphere is mostly warmed by the Earth's surface. Higher up in the troposphere, where less heat from the surface warms the air, the temperature drops. Typically, the temperature drops about 6.5° C with each increase in altitude of 1 kilometer (about 3.6° F per 1,000 feet). The rate at which the temperature changes with altitude is called the "lapse rate".