The atmosphere is divided into layers based on how the temperature in that layer changes with altitude, the layer's temperature gradient (Figure below). The temperature gradient of each layer is different. In some layers, temperature increases with altitude and in others it decreases.