fluid and begins to behave like a solid. Such a mixture of crystals with melted rock is sometimes described as crystal mush. Magma is typically also viscoelastic, meaning it flows like a liquid under low stresses, but once the applied stress exceeds a critical value, the melt cannot dissipate the stress fast enough through relaxation alone, resulting in transient fracture propagation. Once stresses are reduced below the critical threshold, the melt viscously relaxes once more and heals the fracture. Temperature Temperatures of lava, which is magma extruded onto the surface, are in the range , but very rare carbonatite magmas may be as cool as , and komatiite magmas may have been as hot as . Magma has occasionally been encountered during drilling in geothermal fields, including drilling in Hawaii that penetrated a dacitic magma body at a depth of . The temperature of this magma was estimated at . Temperatures of deeper magmas must be inferred from theoretical computations and the geothermal gradient. Most magmas contain some solid crystals suspended in the liquid phase. This indicates that the temperature of the magma lies between the solidus, which is defined as the temperature at which the magma completely solidifies, and the liquidus, defined as the temperature at which the magma is completely liquid. Calculations of solidus temperatures at likely depths suggests that magma generated beneath areas of rifting starts at a temperature of about . Magma generated from mantle plumes may be as hot as . The temperature of magma generated in subduction zones, where water vapor lowers the melting temperature, may be as low as . Density Magma densities depend mostly on composition, iron content being the most important parameter. Magma expands slightly at lower pressure or higher temperature. When magma approaches the surface, its dissolved gases begin to bubble out of the liquid. These bubbles had significantly reduced the density of the magma at depth and helped drive it toward the surface in the first place. Origins The temperature within the interior of the earth is described by the geothermal gradient, which is the rate of temperature change with depth. The geothermal gradient is established by the balance between heating through radioactive decay in the Earth's interior and heat loss from the surface of the earth. The geothermal gradient averages about 25 °C/km in the Earth's upper crust, but this varies widely by region, from a low of