Magma (from Ancient Greek μάγμα (mágma) meaning "thick unguent" ) is the molten or semi-molten natural material from which all igneous rocks are formed.  Magma is found beneath the surface of the Earth, and evidence of magmatism has also been discovered on other terrestrial planets and some natural satellites.  Besides molten rock, magma may also contain suspended crystals and gas bubbles. 
Magma is produced by melting of the mantle or the crust at various tectonic settings, which on Earth include subduction zones, continental rift zones,  mid-ocean ridges and hotspots. Mantle and crustal melts migrate upwards through the crust where they are thought to be stored in magma chambers  or trans-crustal crystal-rich mush zones.  During their storage in the crust, magma compositions may be modified by fractional crystallization, contamination with crustal melts, magma mixing, and degassing. Following their ascent through the crust, magmas may feed a volcano to be extruded as lava, or solidify underground to form an intrusion,  such as a igneous dike or a sill.
While the study of magma has historically relied on observing magma in the form of lava flows, magma has been encountered in situ three times during geothermal drilling projects—twice in Iceland (see Use in energy production), and once in Hawaii.    
Physical and chemical properties
Magma consists of liquid in which there are usually suspended solid crystals.  As magma approaches the surface, and the overburden pressure drops, dissolved gases begin to separate from the liquid as bubbles, so that a magma near the surface consists of both solid, liquid, and gas phases. 
Most magmatic liquids are rich in silica.  Rare nonsilicate magmas can form by local melting of nonsilicate mineral deposits  or by separation of a magma into separate immiscible silicate and nonsilicate liquid phases. 
Silicate magmas are molten mixtures dominated by oxygen and silicon, the most abundant chemical elements in the Earth’s crust, with smaller quantities of aluminium, calcium, magnesium, iron, sodium, and potassium, and minor amounts of many other elements.  Petrologists routinely express the composition of a silicate magma in terms of the weight or molar mass fraction of the oxides of the major elements (other than oxygen) present in the magma. 
Because many of the properties of a magma (such as its viscosity and temperature) are observed to correlate with silica content, silicate magmas are divided into four chemical types based on silica content: felsic, intermediate, mafic, and ultramafic. 
Felsic or silicic magmas have a silica content greater than 63%. They include rhyolite and dacite magmas. With such a high silica content, these magmas are extremely viscous, ranging from 108 cP for hot rhyolite magma at 1,200 °C (2,190 °F) to 1011 cP for cool rhyolite magma at 800 °C (1,470 °F).  For comparison, water has a viscosity of about 1 cP. Because of this very high viscosity, felsic lavas usually erupt explosively to produce pyroclastic (fragmental) deposits. However, rhyolite lavas occasionally erupt effusively to form lava spines, lava domes or "coulees" (which are thick, short lava flows).  The lavas typically fragment as they extrude, producing block lava flows. These often contain obsidian. 
Felsic lavas can erupt at temperatures as low as 800 °C (1,470 °F).  Unusually hot (>950 °C; >1,740 °F) rhyolite lavas, however, may flow for distances of many tens of kilometres, such as in the Snake River Plain of the northwestern United States. 
Intermediate or andesitic magmas contain 52% to 63% silica, and are lower in aluminium and usually somewhat richer in magnesium and iron than felsic magmas. Intermediate lavas form andesite domes and block lavas, and may occur on steep composite volcanoes, such as in the Andes.  They are also commonly hotter, in the range of 850 to 1,100 °C (1,560 to 2,010 °F)). Because of their lower silica content and higher eruptive temperatures, they tend to be much less viscous, with a typical viscosity of 3.5 × 106 cP at 1,200 °C (2,190 °F). This is slightly greater than the viscosity of smooth peanut butter.  Intermediate magmas show a greater tendency to form phenocrysts,  Higher iron and magnesium tends to manifest as a darker groundmass, including amphibole or pyroxene phenocrysts. 
Mafic or basaltic magmas have a silica content of 52% to 45%. They are typified by their high ferromagnesian content, and generally erupt at temperatures of 1,100 to 1,200 °C (2,010 to 2,190 °F). Viscosities can be relatively low, around 104 to 105 cP, although this is still many orders of magnitude higher than water. This viscosity is similar to that of ketchup.  Basalt lavas tend to produce low-profile shield volcanoes or flood basalts, because the fluidal lava flows for long distances from the vent. The thickness of a basalt lava, particularly on a low slope, may be much greater than the thickness of the moving lava flow at any one time, because basalt lavas may "inflate" by supply of lava beneath a solidified crust.  Most basalt lavas are of ʻAʻā or pāhoehoe types, rather than block lavas. Underwater, they can form pillow lavas, which are rather similar to entrail-type pahoehoe lavas on land. 
Ultramafic magmas, such as picritic basalt, komatiite, and highly magnesian magmas that form boninite, take the composition and temperatures to the extreme. All have a silica content under 45%. Komatiites contain over 18% magnesium oxide, and are thought to have erupted at temperatures of 1,600 °C (2,910 °F). At this temperature there is practically no polymerization of the mineral compounds, creating a highly mobile liquid.  Viscosities of komatiite magmas are thought to have been as low as 100 to 1000 cP, similar to that of light motor oil.  Most ultramafic lavas are no younger than the Proterozoic, with a few ultramafic magmas known from the Phanerozoic in Central America that are attributed to a hot mantle plume. No modern komatiite lavas are known, as the Earth's mantle has cooled too much to produce highly magnesian magmas. 
Some silicic magmas have an elevated content of alkali metal oxides (sodium and potassium), particularly in regions of continental rifting, areas overlying deeply subducted plates, or at intraplate hotspots.  Their silica content can range from ultramafic ( nephelinites, basanites and tephrites) to felsic ( trachytes). They are more likely to be generated at greater depths in the mantle than subalkaline magmas.  Olivine nephelinite magmas are both ultramafic and highly alkaline, and are thought to have come from much deeper in the mantle of the Earth than other magmas. 
Some lavas of unusual composition have erupted onto the surface of the Earth. These include:
- Carbonatite and natrocarbonatite lavas are known from Ol Doinyo Lengai volcano in Tanzania, which is the sole example of an active carbonatite volcano.  Carbonatites in the geologic record are typically 75% carbonate minerals, with lesser amounts of silica-undersaturated silicate minerals (such as micas and olivine), apatite, magnetite, and pyrochlore. This may not reflect the original composition of the lava, which may have included sodium carbonate that was subsequently removed by hydrothermal activity, though laboratory experiments show that a calcite-rich magma is possible. Carbonatite lavas show stable isotope ratios indicating they are derived from the highly alkaline silicic lavas with which they are always associated, probably by separation of an immiscible phase.  Natrocarbonatite lavas of Ol Doinyo Lengai are composed mostly of sodium carbonate, with about half as much calcium carbonate and half again as much potassium carbonate, and minor amounts of halides, fluorides, and sulphates. The lavas are extremely fluid, with viscosities only slightly greater than water, and are very cool, with measured temperatures of 491 to 544 °C (916 to 1,011 °F). 
- Iron oxide magmas are thought to be the source of the iron ore at Kiruna, Sweden which formed during the Proterozoic.  Iron oxide lavas of Pliocene age occur at the El Laco volcanic complex on the Chile-Argentina border.  Iron oxide lavas are thought to be the result of immiscible separation of iron oxide magma from a parental magma of calc-alkaline or alkaline composition. 
- Sulfur lava flows up to 250 metres (820 feet) long and 10 metres (33 feet) wide occur at Lastarria volcano, Chile. They were formed by the melting of sulfur deposits at temperatures as low as 113 °C (235 °F). 
The concentrations of different gases can vary considerably. Water vapor is typically the most abundant magmatic gas, followed by carbon dioxide  and sulfur dioxide. Other principal magmatic gases include hydrogen sulfide, hydrogen chloride, and hydrogen fluoride. 
The solubility of magmatic gases in magma depends on pressure, magma composition, and temperature. Magma that is extruded as lava is extremely dry, but magma at depth and under great pressure can contain a dissolved water content in excess of 10%. Water is somewhat less soluble in low-silica magma than high-silica magma, so that at 1,100 °C and 0.5
GPa, a basaltic magma can dissolve 8% H
2O while a granite pegmatite magma can dissolve 11% H
2O.  However, magmas are not necessarily saturated under typical conditions.
Carbon dioxide is much less soluble in magmas than water, and frequently separates into a distinct fluid phase even at great depth. This explains the presence of carbon dioxide fluid inclusions in crystals formed in magmas at great depth. 
Viscosity is a key melt property in understanding the behaviour of magmas. Whereas temperatures in common silicate lavas range from about 800 °C (1,470 °F) for felsic lavas to 1,200 °C (2,190 °F) for mafic lavas,  the viscosity of the same lavas ranges over seven orders of magnitude, from 104 cP for mafic lava to 1011 cP for felsic magmas.  The viscosity is mostly determined by composition, but is also dependent on temperature.  The tendency for felsic lava to be cooler than mafic lava increases the viscosity difference.
The silicon ion is small and highly charged, and so it has a strong tendency to coordinate with four oxygen ions, which form a tetrahedral arrangement around the much smaller silicon ion. This is called a silica tetrahedron. In a magma that is low in silicon, these silica tetrahedra are isolated, but as the silicon content increases, silica tetrahedra begin to partially polymerize, forming chains, sheets, and clumps of silica tetrahedra linked by bridging oxygen ions. These greatly increase the viscosity of the magma. 
The tendency towards polymerization is expressed as NBO/T, where NBO is the number of non-bridging oxygen ions and T is the number of network-forming ions. Silicon is the main network-forming ion, but in magmas high in sodium, aluminium also acts as a network former, and ferric iron can act as a network former when other network formers are lacking. Most other metallic ions reduce the tendency to polymerize and are described as network modifiers. In a hypothetical magma formed entirely from melted silica, NBO/T would be 0, while in a hypothetical magma so low in network formers that no polymerization takes place, NBO/T would be 4. Neither extreme is common in nature, but basalt magmas typically have NBO/T between 0.6 and 0.9, andesitic magmas have NBO/T of 0.3 to 0.5, and rhyolitic magmas have NBO/T of 0.02 to 0.2. Water acts as a network modifier, and dissolved water drastically reduces melt viscosity. Carbon dioxide neutralizes network modifiers, so dissolved carbon dioxide increases the viscosity. Higher-temperature melts are less viscous, since more thermal energy is available to break bonds between oxygen and network formers. 
Most magmas contain solid crystals of various minerals, fragments of exotic rocks known as xenoliths and fragments of previously solidified magma. The crystal content of most magmas gives them thixotropic and shear thinning properties.  In other words, most magmas do not behave like Newtonian fluids, in which the rate of flow is proportional to the shear stress. Instead, a typical magma is a Bingham fluid, which shows considerable resistance to flow until a stress threshold, called the yield stress, is crossed.  This results in plug flow of partially crystalline magma. A familiar example of plug flow is toothpaste squeezed out of a toothpaste tube. The toothpaste comes out as a semisolid plug, because shear is concentrated in a thin layer in the toothpaste next to the tube, and only here does the toothpaste behave as a fluid. Thixotropic behavior also hinders crystals from settling out of the magma.  Once the crystal content reaches about 60%, the magma ceases to behave like a 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. 
Temperatures of lavas are in the range 700 °C to 1300 °C (or 1300 °F to 2400 °F), but very rare carbonatite magmas may be as cool as 490 °C,  and komatiite magmas may have been as hot as 1600 °C.  These are temperatures of magma that has been extruded at the surface. Magmas have occasionally been encountered during drilling in geothermal field, including drilling in Hawaii that penetrated a dacitic magma body at a depth of 2,488 m (8,163 ft). The temperature of this magma was estimated at 1050 °C (1922 °F). 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 1300 °C to 1500 °C. Magma generated from mantle plumes may be as hot as 1600 °C. The temperature of magma generated in subduction zones, where water vapor lowers the melting temperature, may be as low as 1060 °C. 
Magma densities depend mostly on composition, with the iron content being the most important parameter. Magmas also expand slightly at lower pressure and higher temperature. 
|Basalt magma||2650–2800 |
|Andesite magma||2450–2500 |
|Rhyolite magma||2180–2250 |
As magmas approach the surface, the dissolved gases in the magma begin to bubble out of the liquid. These bubbles significantly reduce the density of the magma and help drive it further towards the surface. 
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 5–10 °C/km within oceanic trenches and subduction zones to 30–80 °C/km along mid-ocean ridges or near mantle plumes.  The gradient becomes less steep with depth, dropping to just 0.25 to 0.3 °C/km in the mantle, where slow convection efficiently transports heat. The average geothermal gradient is not normally steep enough to bring rocks to their melting point anywhere in the crust or upper mantle, so magma is produced only where the geothermal gradient is unusually steep or the melting point of the rock is unusually low. However, the ascent of magma towards the surface in such settings is the most important process for transporting heat through the crust of the Earth. 
Rocks may melt in response to a decrease in pressure,  to a change in composition (such as an addition of water),  to an increase in temperature,  or to a combination of these processes.  Other mechanisms, such as melting from a meteorite impact, are less important today, but impacts during the accretion of the Earth led to extensive melting, and the outer several hundred kilometers of our early Earth was probably an ocean of magma.  Impacts of large meteorites in the last few hundred million years have been proposed as one mechanism responsible for the extensive basalt magmatism of several large igneous provinces. 
The solidus temperatures of most rocks (the temperatures below which they are completely solid) increase with increasing pressure in the absence of water. Peridotite at depth in the Earth's mantle may be hotter than its solidus temperature at some shallower level. If such rock rises during the convection of solid mantle, it will cool slightly as it expands in an adiabatic process, but the cooling is only about 0.3 °C per kilometer. Experimental studies of appropriate peridotite samples document that the solidus temperatures increase by 3 °C to 4 °C per kilometer. If the rock rises far enough, it will begin to melt. Melt droplets can coalesce into larger volumes and be intruded upwards. This process of melting from the upward movement of solid mantle is critical in the evolution of the Earth. 
Decompression melting creates the ocean crust at mid-ocean ridges, making it by far the most important source of magma on Earth.  It also causes volcanism in intraplate regions, such as Europe, Africa and the Pacific sea floor. Intraplate volcanism is attributed to the rise of mantle plumes or to intraplate extension, with the importance of each mechanism being a topic of continuing research. 
Effects of water and carbon dioxide
The change of rock composition most responsible for the creation of magma is the addition of water. Water lowers the solidus temperature of rocks at a given pressure. For example, at a depth of about 100 kilometers, peridotite begins to melt near 800 °C in the presence of excess water, but near or above about 1,500 °C in the absence of water.  Water is driven out of the oceanic lithosphere in subduction zones, and it causes melting in the overlying mantle. Hydrous magmas composed of basalt and andesite are produced directly and indirectly as results of dehydration during the subduction process. Such magmas, and those derived from them, build up island arcs such as those in the Pacific Ring of Fire.  These magmas form rocks of the calc-alkaline series, an important part of the continental crust. 
The addition of carbon dioxide is relatively a much less important cause of magma formation than the addition of water, but genesis of some silica-undersaturated magmas has been attributed to the dominance of carbon dioxide over water in their mantle source regions. In the presence of carbon dioxide, experiments document that the peridotite solidus temperature decreases by about 200 °C in a narrow pressure interval at pressures corresponding to a depth of about 70 km. At greater depths, carbon dioxide can have more effect: at depths to about 200 km, the temperatures of initial melting of a carbonated peridotite composition were determined to be 450 °C to 600 °C lower than for the same composition with no carbon dioxide.  Magmas of rock types such as nephelinite, carbonatite, and kimberlite are among those that may be generated following an influx of carbon dioxide into mantle at depths greater than about 70 km.  
Increase in temperature is the most typical mechanism for formation of magma within continental crust. Such temperature increases can occur because of the upward intrusion of magma from the mantle. Temperatures can also exceed the solidus of a crustal rock in continental crust thickened by compression at a plate boundary.  The plate boundary between the Indian and Asian continental masses provides a well-studied example, as the Tibetan Plateau just north of the boundary has crust about 80 kilometers thick, roughly twice the thickness of normal continental crust. Studies of electrical resistivity deduced from magnetotelluric data have detected a layer that appears to contain silicate melt and that stretches for at least 1,000 kilometers within the middle crust along the southern margin of the Tibetan Plateau.  Granite and rhyolite are types of igneous rock commonly interpreted as products of the melting of continental crust because of increases in temperature. Temperature increases also may contribute to the melting of lithosphere dragged down in a subduction zone.
The melting process
When rocks melt, they do so over a range of temperature, because most rocks are made of several minerals, which all have different melting points. The temperature at which the first melt appears (the solidus) is lower than the melting temperature of any one of the pure minerals. This is similar to the lowering of the melting point of ice when it is mixed with salt. The first melt is called the eutectic and has a composition that depends on the combination of minerals present. 
For example, a mixture of anorthite and diopside, which are two of the predominant minerals in basalt, begins to melt at about 1274 °C. This is well below the melting temperatures of 1392 °C for pure diopside and 1553 °C for pure anorthite. The resulting melt is composed of about 43 wt% anorthite.  As additional heat is added to the rock, the temperature remains at 1274 °C until either the anorthite or diopside is fully melted. The temperature then rises as the remaining mineral continues to melt, which shifts the melt composition away from the eutectic. For example, if the content of anorthite is greater than 43%, the entire supply of diopside will melt at 1274 °C., along with enough of the anorthite to keep the melt at the eutectic composition. Further heating causes the temperature to slowly rise as the remaining anorthite gradually melts and the melt becomes increasingly rich in anorthite liquid. If the mixture has only a slight excess of anorthite, this will melt before the temperature rises much above 1274 °C. If the mixture is almost all anorthite, the temperature will reach nearly the melting point of pure anorthite before all the anorthite is melted. If the anorthite content of the mixture is less than 43%, then all the anorthite will melt at the eutectic temperature, along with part of the diopside, and the remaining diopside will then gradually melt as the temperature continues to rise. 
Because of eutectic melting, the composition of the melt can be quite different from the source rock. For example, a mixture of 10% anorthite with diopside could experience about 23% partial melting before the melt deviated from the eutectic, which has the composition of about 43% anorthite. This effect of partial melting is reflected in the compositions of different magmas. A low degree of partial melting of the upper mantle (2% to 4%) can produce highly alkaline magmas such as mellilites, while a greater degree of partial melting (8% to 11%) can produce alkali olivine basalt.  Oceanic magmas likely result from partial melting of 3% to 15% of the source rock.  Some calk-alkaline granitoids may be produced by a high degree of partial melting, as much as 15% to 30%.  High-magnesium magmas, such as komatiite and picrite, may also be the products of a high degree of partial melting of mantle rock. 
Certain chemical elements, called incompatible elements, have a combination of ionic radius and ionic charge that is unlike that of the more abundant elements in the source rock. The ions of these elements fit rather poorly in the structure of the minerals making up the source rock, and readily leave the solid minerals to become highly concentrated in melts produced by a low degree of partial melting. Incompatible elements commonly include potassium, barium, caesium, and rubidium, which are large and weakly charged (the large-ion lithophile elements, or LILEs), as well as elements whose ions carry a high charge (the high-field-strength elements, or HSFEs), which include such elements as zirconium, niobium, hafnium, tantalum, the rare-earth elements, and the actinides. Potassium can become so enriched in melt produced by a very low degree of partial melting that, when the magma subsequently cools and solidifies, it forms unusual potassic rock such as lamprophyre, lamproite, or kimberlite. 
When enough rock is melted, the small globules of melt (generally occurring between mineral grains) link up and soften the rock. Under pressure within the earth, as little as a fraction of a percent of partial melting may be sufficient to cause melt to be squeezed from its source.  Melt rapidly separates from its source rock once the degree of partial melting exceeds 30%. However, usually much less than 30% of a magma source rock is melted before the heat supply is exhausted. 
Pegmatite may be produced by low degrees of partial melting of the crust.  Some granite-composition magmas are eutectic (or cotectic) melts, and they may be produced by low to high degrees of partial melting of the crust, as well as by fractional crystallization. 
Evolution of magmas
Most magmas are fully melted only for small parts of their histories. More typically, they are mixes of melt and crystals, and sometimes also of gas bubbles.  Melt, crystals, and bubbles usually have different densities, and so they can separate as magmas evolve. 
As magma cools, minerals typically crystallize from the melt at different temperatures. This resembles the original melting process in reverse. However, because the melt has usually separated from its original source rock and moved to a shallower depth, the reverse process of crystallization is not precisely identical. For example, if a melt was 50% each of diopside and anorthite, then anorthite would begin crystallizing from the melt at a temperature somewhat higher than the eutectic temperature of 1274 °C. This shifts the remaining melt towards its eutectic composition of 43% diopside. The eutectic is reached at 1274 °C, the temperature at which diopside and anorthite begin crystallizing together. If the melt was 90% diopside, the diopside would begin crystallizing first until the eutectic was reached. 
If the crystals remained suspended in the melt, the crystallization process would not change the overall composition of the melt plus solid minerals. This situation is described as equillibrium crystallization. However, in a series of experiments culminating in his 1915 paper, Crystallization-differentiation in silicate liquids,  Norman L. Bowen demonstrated that crystals of olivine and diopside that crystallized out of a cooling melt of forsterite, diopside, and silica would sink through the melt on geologically relevant time scales. Geologists subsequently found considerable field evidence of such fractional crystallization. 
When crystals separate from a magma, then the residual magma will differ in composition from the parent magma. For instance, a magma of gabbroic composition can produce a residual melt of granitic composition if early formed crystals are separated from the magma.  Gabbro may have a liquidus temperature near 1,200 °C,  and the derivative granite-composition melt may have a liquidus temperature as low as about 700 °C.  Incompatible elements are concentrated in the last residues of magma during fractional crystallization and in the first melts produced during partial melting: either process can form the magma that crystallizes to pegmatite, a rock type commonly enriched in incompatible elements. Bowen's reaction series is important for understanding the idealised sequence of fractional crystallisation of a magma.
Magma composition can be determined by processes other than partial melting and fractional crystallization. For instance, magmas commonly interact with rocks they intrude, both by melting those rocks and by reacting with them. Assimilation near the roof of a magma chamber and fractional crystallization near its base can even take place simultaneously. Magmas of different compositions can mix with one another. In rare cases, melts can separate into two immiscible melts of contrasting compositions. 
When rock melts, the liquid is a primary magma. Primary magmas have not undergone any differentiation and represent the starting composition of a magma.  In practice, it is difficult to unambiguously identify primary magmas,  though it has been suggested that boninite is a variety of andesite crystallized from a primary magma.  The Great Dyke of Zimbabwe has also been interpreted as rock crystallized from a primary magma.  The interpretation of leucosomes of migmatites as primary magmas is contradicted by zircon data, which suggests leucosomes are a residue (a cumulate rock) left by extraction of a primary magma. 
When it is impossible to find the primitive or primary magma composition, it is often useful to attempt to identify a parental magma.  A parental magma is a magma composition from which the observed range of magma chemistries has been derived by the processes of igneous differentiation. It need not be a primitive melt. 
For instance, a series of basalt flows are assumed to be related to one another. A composition from which they could reasonably be produced by fractional crystallization is termed a parental magma. Fractional crystallization models would be produced to test the hypothesis that they share a common parental magma.
Migration and solidification
Magma develops within the mantle or crust where the temperature and pressure conditions favor the molten state. After its formation, magma buoyantly rises toward the Earth's surface, due to its lower density than the source rock.  As it migrates through the crust, magma may collect and reside in magma chambers (though recent work suggests that magma may be stored in trans-crustal crystal-rich mush zones rather than dominantly liquid magma chambers ). Magma can remain in a chamber until it either cools and crystallizes to form intrusive rock, it erupts as a volcano, or it moves into another magma chamber.
When magma cools it begins to form solid mineral phases. Some of these settle at the bottom of the magma chamber forming cumulates that might form mafic layered intrusions. Magma that cools slowly within a magma chamber usually ends up forming bodies of plutonic rocks such as gabbro, diorite and granite, depending upon the composition of the magma. Alternatively, if the magma is erupted it forms volcanic rocks such as basalt, andesite and rhyolite (the extrusive equivalents of gabbro, diorite and granite, respectively).
Magma that is extruded onto the surface during a volcanic eruption is called lava. Lava cools and solidifies relatively quickly compared to underground bodies of magma. This fast cooling does not allow crystals to grow large, and a part of the melt does not crystallize at all, becoming glass. Rocks largely composed of volcanic glass include obsidian, scoria and pumice.
Before and during volcanic eruptions, volatiles such as CO2 and H2O partially leave the melt through a process known as exsolution. Magma with low water content becomes increasingly viscous. If massive exsolution occurs when magma heads upwards during a volcanic eruption, the resulting eruption is usually explosive.
Use in energy production
The Iceland Deep Drilling Project, while drilling several 5,000 m holes in an attempt to harness the heat in the volcanic bedrock below the surface of Iceland, struck a pocket of magma at 2,100 m in 2009. Because this was only the third time in recorded history that magma had been reached, IDDP decided to invest in the hole, naming it IDDP-1.
A cemented steel case was constructed in the hole with a perforation at the bottom close to the magma. The high temperatures and pressure of the magma steam were used to generate 36 MW of power, making IDDP-1 the world's first magma-enhanced geothermal system. 
- "Definition of Magma". Merriam-Webster Dictionary. Merriam-Webster. Retrieved 28 October 2018.
- BOWEN, NORMAN L. (1947). "MAGMAS". Geological Society of America Bulletin. 58 (4): 263. doi: 10.1130/0016-7606(1947)58[263:M]2.0.CO;2. ISSN 0016-7606.
- Greeley, Ronald; Schneid, Byron D. (1991-11-15). "Magma Generation on Mars: Amounts, Rates, and Comparisons with Earth, Moon, and Venus". Science. 254 (5034): 996–998. Bibcode: 1991Sci...254..996G. doi: 10.1126/science.254.5034.996. ISSN 0036-8075. PMID 17731523. S2CID 206574665.
- Spera, Frank J. (2000), "Physical Properties of Magma", in Sigurdsson, Haraldur (editor-in-chief) (ed.), Encyclopedia of Volcanoes, Academic Press, pp. 171–190, ISBN 978-0126431407
- Foulger, G.R. (2010). Plates vs. Plumes: A Geological Controversy. Wiley–Blackwell. ISBN 978-1-4051-6148-0.
- Detrick, R. S.; Buhl, P.; Vera, E.; Mutter, J.; Orcutt, J.; Madsen, J.; Brocher, T. (1987). "Multi-channel seismic imaging of a crustal magma chamber along the East Pacific Rise". Nature. 326 (6108): 35–41. Bibcode: 1987Natur.326...35D. doi: 10.1038/326035a0. ISSN 0028-0836. S2CID 4311642.
- Sparks, R. Stephen J.; Cashman, Katharine V. (2017). "Dynamic Magma Systems: Implications for Forecasting Volcanic Activity". Elements. 13 (1): 35–40. doi: 10.2113/gselements.13.1.35. ISSN 1811-5209.
- MCBIRNEY, A. R.; NOYES, R. M. (1979-08-01). "Crystallization and Layering of the Skaergaard Intrusion". Journal of Petrology. 20 (3): 487–554. Bibcode: 1979JPet...20..487M. doi: 10.1093/petrology/20.3.487. ISSN 0022-3530.
- Scientists' Drill Hits Magma: Only Third Time on Record, UC Davis News and Information, June 26, 2009.
- Magma Discovered in Situ for First Time. Physorg (December 16, 2008)
- Puna Dacite Magma at Kilauea: Unexpected Drilling Into an Active Magma Posters, 2008 Eos Trans. AGU, 89(53), Fall Meeting.
- Teplow, William; Marsh, Bruce; Hulen, Jeff; Spielman, Paul; Kaleikini, Mike; Fitch, David; Rickard, William (2009). "Dacite Melt at the Puna Geothermal Venture Wellfield, Big Island of Hawaii" (PDF). GRC Transactions. 33: 989–994. Retrieved 8 February 2021.
- Philpotts, Anthony R.; Ague, Jay J. (2009). Principles of igneous and metamorphic petrology (2nd ed.). Cambridge, UK: Cambridge University Press. pp. 19–20. ISBN 9780521880060.
- Schmincke, Hans-Ulrich (2003). Volcanism. Berlin: Springer. pp. 49–50. ISBN 9783540436508.
- Guijón, R.; Henríquez, F.; Naranjo, J.A. (2011). "Geological, Geographical and Legal Considerations for the Conservation of Unique Iron Oxide and Sulphur Flows at El Laco and Lastarria Volcanic Complexes, Central Andes, Northern Chile". Geoheritage. 3 (4): 99–315. doi: 10.1007/s12371-011-0045-x. S2CID 129179725.
- Harlov, D.E.; et al. (2002). "Apatite–monazite relations in the Kiirunavaara magnetite–apatite ore, northern Sweden". Chemical Geology. 191 (1–3): 47–72. Bibcode: 2002ChGeo.191...47H. doi: 10.1016/s0009-2541(02)00148-1.
- Philpotts & Ague 2009, pp. 19, 131.
- Philpotts & Ague 2009, pp. 132-133.
- Casq, R.A.F.; Wright, J.V. (1987). Volcanic Successions. Unwin Hyman Inc. p. 528. ISBN 978-0-04-552022-0.
- Philpotts & Ague 2009, p. 23.
- Philpotts & Ague 2009, pp. 70-77.
- Schmincke 2003, p. 132.
- Philpotts & Ague 2009, p. 20.
- Bonnichsen, B.; Kauffman, D.F. (1987). "Physical features of rhyolite lava flows in the Snake River Plain volcanic province, southwestern Idaho". Geological Society of America Special Paper. Geological Society of America Special Papers. 212: 119–145. doi: 10.1130/SPE212-p119. ISBN 0-8137-2212-8.
- Schmincke 2003, pp. 21-24,132,143.
- Philpotts & Ague 2009, pp. 23-611.
- Takeuchi, Shingo (5 October 2011). "Preeruptive magma viscosity: An important measure of magma eruptibility". Journal of Geophysical Research. 116 (B10): B10201. Bibcode: 2011JGRB..11610201T. doi: 10.1029/2011JB008243.
- Philpotts & Ague 2009, pp. 1376-377.
- Philpotts & Ague 2009, pp. 23-25.
- Philpotts & Ague 2009, p. 53-55, 59-64.
- Schmincke 2003, pp. 128-132.
- Arndt, N.T. (1994). "Archean komatiites". In Condie, K.C. (ed.). Archean Crustal Evolution. Amsterdam: Elsevier. p. 19. ISBN 978-0-444-81621-4.
- Philpotts & Ague 2009, pp. 399-400.
- Philpotts & Ague 2009, pp. 139-148.
- Philpotts & Ague 2009, pp. 606-607.
- "Stikine Volcanic Belt: Volcano Mountain". Catalogue of Canadian volcanoes. Archived from the original on 2009-03-07. Retrieved 23 November 2007.
- Philpotts & Ague 2009, p. 145.
- Vic Camp, How volcanoes work, Unusual Lava Types, San Diego State University, Geology
- Philpotts & Ague 2009, pp. 396-397.
- Keller, Jörg; Krafft, Maurice (November 1990). "Effusive natrocarbonatite activity of Oldoinyo Lengai, June 1988". Bulletin of Volcanology. 52 (8): 629–645. Bibcode: 1990BVol...52..629K. doi: 10.1007/BF00301213. S2CID 129106033.
- Pedone, M.; Aiuppa, A.; Giudice, G.; Grassa, F.; Francofonte, V.; Bergsson, B.; Ilyinskaya, E. (2014). "Tunable diode laser measurements of hydrothermal/volcanic CO2 and implications for the global CO2 budget". Solid Earth. 5 (2): 1209–1221. Bibcode: 2014SolE....5.1209P. doi: 10.5194/se-5-1209-2014.
- Schmincke 2003, p. 42.
- Philpotts & Ague 2009, pp. 244-250.
- Schmincke 2003, p. 44.
- Schmincke 2003, pp. 38-41.
- Pinkerton, H.; Bagdassarov, N. (2004). "Transient phenomena in vesicular lava flows based on laboratory experiments with analogue materials". Journal of Volcanology and Geothermal Research. 132 (2–3): 115–136. Bibcode: 2004JVGR..132..115B. doi: 10.1016/s0377-0273(03)00341-x.
- Schmincke 2003, pp. 39-40.
- Philpotts & Ague 2009, p. 40.
- Philpotts & Ague 2009, p. 16.
- Wadsworth, Fabian B.; Witcher, Taylor; Vossen, Caron E. J.; Hess, Kai-Uwe; Unwin, Holly E.; Scheu, Bettina; Castro, Jonathan M.; Dingwell, Donald B. (December 2018). "Combined effusive-explosive silicic volcanism straddles the multiphase viscous-to-brittle transition". Nature Communications. 9 (1): 4696. Bibcode: 2018NatCo...9.4696W. doi: 10.1038/s41467-018-07187-w. ISSN 2041-1723. PMC 6224499. PMID 30409969.
- Weidendorfer, D.; Schmidt, M.W.; Mattsson, H.B. (2017). "A common origin of carbonatite magmas". Geology. 45 (6): 507–510. Bibcode: 2017Geo....45..507W. doi: 10.1130/G38801.1.
- Herzberg, C.; Asimow, P. D.; Arndt, N.; Niu, Y.; Lesher, C. M.; Fitton, J. G.; Cheadle, M. J.; Saunders, A. D. (2007). "Temperatures in ambient mantle and plumes: Constraints from basalts, picrites, and komatiites". Geochemistry, Geophysics, Geosystems. 8 (2): n/a. Bibcode: 2007GGG.....8.2006H. doi: 10.1029/2006gc001390. hdl: 20.500.11919/1080. ISSN 1525-2027.
- Philpotts & Ague 2009, pp. 593-597.
- usu.edu - Geology 326, "Properties of Magmas", 2005-02-11
- Schmincke 2003, p. 50.
- Richards, M. A.; Duncan, R. A.; Courtillot, V. E. (1989). "Flood Basalts and Hot-Spot Tracks: Plume Heads and Tails". Science. 246 (4926): 103–107. Bibcode: 1989Sci...246..103R. doi: 10.1126/science.246.4926.103. PMID 17837768. S2CID 9147772.
- Philpotts & Ague 2009, pp. 6-13.
- Geological Society of America, Plates, Plumes, And Paradigms, pp. 590 ff., 2005, ISBN 0-8137-2388-4
- Asimow, P. D.; Langmuir, C. H. (2003). "The importance of water to oceanic mantle melting regimes". Nature. 421 (6925): 815–820. Bibcode: 2003Natur.421..815A. doi: 10.1038/nature01429. ISSN 0028-0836. PMID 12594505. S2CID 4342843.
- Campbell, I. H. (2005-12-01). "Large Igneous Provinces and the Mantle Plume Hypothesis". Elements. 1 (5): 265–269. doi: 10.2113/gselements.1.5.265. ISSN 1811-5209.
- Philpotts & Ague 2009, pp. 591-599.
- Tonks, W. Brian; Melosh, H. Jay (25 March 1993). "Magma ocean formation due to giant impacts". Journal of Geophysical Research: Planets. 98 (E3): 5319–5333. Bibcode: 1993JGR....98.5319T. doi: 10.1029/92JE02726.
- Jones, Adrian P.; Price, G.David; Price, Neville J.; DeCarli, Paul S.; Clegg, Richard A. (September 2002). "Impact induced melting and the development of large igneous provinces". Earth and Planetary Science Letters. 202 (3–4): 551–561. Bibcode: 2002E&PSL.202..551J. doi: 10.1016/S0012-821X(02)00824-5.
- Geoff C. Brown; C. J. Hawkesworth; R. C. L. Wilson (1992). Understanding the Earth (2nd ed.). Cambridge University Press. p. 93. ISBN 0-521-42740-1.
- Philpotts, Ague & 2009 593. sfn error: no target: CITEREFPhilpottsAgue2009593 ( help)
- Philpotts & Auge 2009, pp. 591-599. sfn error: no target: CITEREFPhilpottsAuge2009 ( help)
- Homrighausen, S.; Geldmacher, J.; Hoernle, K.; Rooney, T. (2021). "Intraplate Volcanism". Encyclopedia of Geology: 52–59. doi: 10.1016/B978-0-12-409548-9.12498-4. ISBN 9780081029091.
- Grove, T. L.; Chatterjee, N.; Parman, S. W.; Medard, E. (2006). "The influence of H2O on mantle wedge melting". Earth and Planetary Science Letters. 249 (1–2): 74–89. Bibcode: 2006E&PSL.249...74G. doi: 10.1016/j.epsl.2006.06.043.
- Stern, Robert J. (2002), "Subduction zones", Reviews of Geophysics, 40 (4): 24–31, Bibcode: 2002RvGeo..40.1012S, doi: 10.1029/2001RG000108
- Philpotts & Ague 2009, pp. 374-380.
- Dasgupta, R.; Hirschmann, M. M. (2007). "Effect of variable carbonate concentration on the solidus of mantle peridotite". American Mineralogist. 92 (2–3): 370–379. Bibcode: 2007AmMin..92..370D. doi: 10.2138/am.2007.2201. S2CID 95932394.
- Wyllie, Peter J.; Huang, Wuu-Liang (September 1975). "Influence of mantle CO2 in the generation of carbonatites and kimberlites". Nature. 257 (5524): 297–299. Bibcode: 1975Natur.257..297W. doi: 10.1038/257297a0. S2CID 4267906.
- Philpotts & Ague 2009, pp. 259-261, 394-397.
- Philpotts & Ague 2009, pp. 597-599.
- Unsworth, M. J.; et al. (2005). "Crustal rheology of the Himalaya and Southern Tibet inferred from magnetotelluric data". Nature. 438 (7064): 78–81. Bibcode: 2005Natur.438...78U. doi: 10.1038/nature04154. PMID 16267552. S2CID 4359642.
- Philpotts & Ague 2009, pp. 195-197.
- Osborn, E.F.; Tait, D.B. (1952). "The system diopside-forsterite-anorthite" (PDF). Am. J. Sci. 250: 413–433. Retrieved 9 February 2021.
- Zou, Haibo; Zindler, Alan (February 1996). "Constraints on the degree of dynamic partial melting and source composition using concentration ratios in magmas". Geochimica et Cosmochimica Acta. 60 (4): 711–717. Bibcode: 1996GeCoA..60..711Z. doi: 10.1016/0016-7037(95)00434-3.
- Haase, Karsten M. (October 1996). "The relationship between the age of the lithosphere and the composition of oceanic magmas: Constraints on partial melting, mantle sources and the thermal structure of the plates". Earth and Planetary Science Letters. 144 (1–2): 75–92. Bibcode: 1996E&PSL.144...75H. doi: 10.1016/0012-821X(96)00145-8.
- Farahat, Esam S.; Zaki, Rafat; Hauzenberger, Christoph; Sami, Mabrouk (November 2011). "Neoproterozoic calc-alkaline peraluminous granitoids of the Deleihimmi pluton, Central Eastern Desert, Egypt: implications for transition from late- to post-collisional tectonomagmatic evolution in the northern Arabian-Nubian Shield". Geological Journal. 46 (6): 544–560. doi: 10.1002/gj.1289.
- Philpotts & Ague 2009, p. 400.
- Albarède, Francis (2003). Geochemistry: an introduction. Cambridge University Press. ISBN 978-0-521-89148-6.
- Faul, Ulrich H. (2001). "Melt retention and segregation beneath mid-ocean ridges". Nature. 410 (6831): 920–923. Bibcode: 2001Natur.410..920F. doi: 10.1038/35073556. ISSN 0028-0836. PMID 11309614. S2CID 4403804.
- Philpotts & Ague 2009, p. 400, 599.
- Barros, Renata; Menuge, Julian F. (July 2016). "The Origin of Spodumene Pegmatites Associated With the Leinster Granite In Southeast Ireland". The Canadian Mineralogist. 54 (4): 847–862. doi: 10.3749/canmin.1600027. hdl: 10197/11562.
- Harris, N. B. W.; Inger, S. (March 1992). "Trace element modelling of pelite-derived granites". Contributions to Mineralogy and Petrology. 110 (1): 46–56. Bibcode: 1992CoMP..110...46H. doi: 10.1007/BF00310881. S2CID 129798034.
- Philpotts & Ague 2009, p. 321.
- Philpotts & Ague 2009, pp. 200.
- Bowen, N.L. (1915). "Crystallization-differentiation in silicate liquids". American Journal of Science. 4 (230): 175–191. Bibcode: 1915AmJS...39..175B. doi: 10.2475/ajs.s4-39.230.175.
- Philpotts & Ague 2009, pp. 378.
- Thy, P.; Tegner, C.; Lesher, C. E. (1 October 2009). "Liquidus temperatures of the Skaergaard magma". American Mineralogist. 94 (10): 1371–1376. Bibcode: 2009AmMin..94.1371T. doi: 10.2138/am.2009.3058. S2CID 128524162.
- Luth, William C.; Jahns, Richard H.; Tuttle, O. Frank (15 February 1964). "The granite system at pressures of 4 to 10 kilobars". Journal of Geophysical Research. 69 (4): 759–773. Bibcode: 1964JGR....69..759L. doi: 10.1029/JZ069i004p00759.
- Philpotts et al. sfn error: no target: CITEREFPhilpottsAgue2009340-345,_347-356 ( help)
- Jackson, Julia A., ed. (1997). "Primary magma". Glossary of geology (Fourth ed.). Alexandria, Viriginia: American Geological Institute. ISBN 0922152349.
- Philpotts & Ague 2009, p. 316.
- Kuroda, N.; Shiraki, K.; Urano, H. (December 1978). "Boninite as a possible calc-alkalic primary magma". Bulletin Volcanologique. 41 (4): 563–575. Bibcode: 1978BVol...41..563K. doi: 10.1007/BF02597387. S2CID 129262580.
- Schoenberg, R.; Nägler, Th.F.; Gnos, E.; Kramers, J.D.; Kamber, B.S. (September 2003). "The Source of the Great Dyke, Zimbabwe, and Its Tectonic Significance: Evidence from Re‐Os Isotopes". The Journal of Geology. 111 (5): 565–578. Bibcode: 2003JG....111..565S. doi: 10.1086/376766. S2CID 129598002.
- Moecher, David P.; Samson, Scott D.; Miller, Calvin F. (May 2004). "Precise Time and Conditions of Peak Taconian Granulite Facies Metamorphism in the Southern Appalachian Orogen, U.S.A., with Implications for Zircon Behavior during Crustal Melting Events". The Journal of Geology. 112 (3): 289–304. Bibcode: 2004JG....112..289M. doi: 10.1086/382760. S2CID 109931682.
- Jackson 1997, "Parental magma".
- Philpotts & Ague 2009, p. 80.
- Wilfred Allan Elders, Guðmundur Ómar Friðleifsson and Bjarni Pálsson (2014). Geothermics Magazine, Vol. 49 (January 2014). Elsevier Ltd.