A hot spring is a spring produced by the emergence of geothermally heated groundwater that rises from the Earth's crust. There are geothermal hot springs in many locations all over the crust of the earth. While some of these springs contain water that is a safe temperature for bathing, others are so hot that immersion can result in injury or death.
There is no universally accepted definition of a hot spring. For example, one can find the phrase hot spring defined as any geothermal spring
The related term "warm spring" is defined as a spring with water temperature less than a hot spring by many sources, although Pentecost et al. (2003) suggest that the phrase "warm spring" is not useful and should be avoided. The US NOAA Geophysical Data Center defines a "warm spring" as a spring with water between 20 and 50 °C (68 and 122 °F)
Water issuing from a hot spring is heated geothermally, that is, with heat produced from the Earth's mantle. In general, the temperature of rocks within the earth increases with depth. The rate of temperature increase with depth is known as the geothermal gradient. If water percolates deeply enough into the crust, it will be heated as it comes into contact with hot rocks. The water from hot springs in non-volcanic areas is heated in this manner.
In active volcanic zones such as Yellowstone National Park, water may be heated by coming into contact with magma (molten rock). The high temperature gradient near magma may cause water to be heated enough that it boils or becomes superheated. If the water becomes so hot that it builds steam pressure and erupts in a jet above the surface of the Earth, it is called a geyser. If the water only reaches the surface in the form of steam, it is called a fumarole. If the water is mixed with mud and clay, it is called a mud pot.