Magma is molten or partially molten geological material existing beneath the Earths surface, normally consisting of liquid silicate melt together with variable proportions of crystals and dissolved or exsolved gases. It is therefore not necessarily a completely liquid substance. Many natural magmas are multiphase mixtures in which crystals are suspended within a melt and bubbles may develop as pressure decreases. Magma is generated when rocks undergo partial melting, meaning that only some minerals or components melt while others remain solid.
Its chemical composition varies widely, with basaltic magmas generally containing relatively high concentrations of iron and magnesium and comparatively lower silica than many continental magmas, while more evolved magmas can contain substantially more silica and alkali elements. Temperature, pressure, composition, volatile content and crystal abundance determine physical properties such as density and viscosity. Magma is fundamentally different from lava because the term magma refers to molten or partially molten material beneath the surface, whereas lava is magma that has erupted onto the surface or has been exposed there.
Magma formation is closely related to the thermal and chemical structure of the Earth. Partial melting can occur through decompression, when rising mantle material experiences lower pressure without losing enough heat to remain completely solid, through flux melting, when substances such as water lower the melting temperature of mantle minerals, or through heat transfer and crustal processes that raise temperatures sufficiently for rocks to melt.
The first melt produced from a rock is not necessarily compositionally identical to the source rock because minerals have different melting behaviours and elements partition differently between solid and liquid phases. Consequently, magma composition can provide information about its source and evolutionary history. Basaltic magma commonly originates through partial melting of mantle material, while many intermediate and felsic magmas can develop through fractional crystallisation, magma mixing, assimilation of crustal material and partial melting of pre existing crust. These processes may occur repeatedly within interconnected magma storage systems, producing considerable chemical and physical diversity within a single volcanic region.
The physical behaviour of Magma is strongly controlled by viscosity, which describes resistance to flow. Viscosity generally increases with increasing silica content and decreases as temperature rises, although water and other dissolved components can also substantially affect melt structure and flow behaviour. Basaltic magmas are typically hotter and less viscous than many silica rich magmas, allowing them to travel more readily through fractures and volcanic conduits.
Silica rich magma can be substantially more viscous, potentially retaining gas bubbles and facilitating explosive fragmentation if pressure builds rapidly. Crystals can increase the effective viscosity of a magma mush, while bubbles can alter density and rheology. The relationship between viscosity, gas content and ascent rate is particularly important because it influences whether gas can escape efficiently. Magma that develops a connected network of bubbles may become permeable and release gases, whereas poorly connected bubbles may remain trapped. Thus the eruptive behaviour of a magma depends on its evolving physical state rather than composition alone.
Magma commonly exists in reservoirs that are better described as complex storage regions or crystal rich mush zones rather than simple underground chambers filled with homogeneous liquid. Crystals may form as magma cools, and the resulting solid material can remain suspended in melt for long periods. Chemical exchange between crystals and melt can preserve records of changing temperature, pressure and composition.
Magma may also mix with another magma that has a different temperature or chemical composition, potentially triggering renewed movement or eruption. Injection of new magma into an established storage system can change pressure, temperature and volatile content and may destabilise the system. Magma ascent can be detected indirectly through earthquakes, ground deformation and changes in gas emissions. These observations support the modern understanding that volcanic plumbing systems are dynamic networks of dykes, sills, reservoirs, conduits and crystal rich regions rather than necessarily single vertical pipes connecting a large chamber to the surface.
Dissolved gases are among the most important components controlling Magma behaviour. Water is commonly the dominant volatile component in many magmatic systems, with carbon dioxide, sulphur dioxide, hydrogen sulphide and other species also occurring. At high pressure, gases can remain dissolved in the melt, but as magma rises and pressure decreases, volatile solubility generally decreases and gases exsolve into bubbles.
The expansion of these bubbles can drive magma towards the surface because gas occupies much greater volume at lower pressure than it did while dissolved. Degassing can also change magma composition and physical properties during ascent. Water loss, for example, can increase melt viscosity in some systems. The amount and timing of gas exsolution influence fragmentation, lava fountains, eruption columns and other eruptive phenomena. Gas rich magma is therefore not automatically explosive, because permeability and the ability of gas to escape are also important. The interaction between volatile exsolution, bubble growth, bubble coalescence and conduit flow is a central research topic in volcanology.
Scientists investigate Magma indirectly because most magma is inaccessible beneath the surface. Volcanic rocks provide samples of material that has cooled from magma, while crystals within those rocks can retain chemical and structural evidence of pre eruption conditions. Mineral compositions, isotope ratios, melt inclusions and trace element patterns can be used to infer magma temperature, pressure, volatile content, source region and residence history. Geophysical methods provide complementary information about underground structures.
Seismic waves can be used to identify regions with properties consistent with partial melt, while electrical and electromagnetic techniques can detect changes associated with hot conductive fluids and magma. Ground deformation measurements can reveal pressure changes or magma intrusion. Numerical models then combine geological and geophysical constraints to investigate possible magma pathways and storage conditions. Because many different underground configurations can produce similar observations, interpretations usually involve uncertainty rather than direct observation of the entire magma system.
Magma has several important relationships with rock classification and the development of the Earths crust. When magma cools slowly underground, it can form intrusive igneous rocks with relatively large crystals because minerals have time to grow. When magma erupts and cools rapidly at the surface, it produces volcanic rocks that generally have finer crystals or glassy material. Basalt, andesite, dacite and rhyolite represent commonly used compositional categories, although natural magmas form continuous and complex chemical ranges.
The terms magma and melt should also be distinguished. Melt specifically refers to the liquid phase, whereas magma can include crystals and gases. Magma is also distinct from lava because depth and surface exposure determine which term is normally appropriate. These distinctions matter in geology because they allow scientists to describe physical state and geological setting accurately rather than treating every molten silicate material as interchangeable.
Magma is significant not only because it produces Volcanic Eruptions but also because it participates in long term crustal formation, chemical differentiation and planetary heat transfer. Intrusive magma can form large bodies of igneous rock within continental and oceanic crust, while erupted magma creates lava flows, volcanic islands and extensive volcanic plateaus. The cooling and crystallisation of magma redistribute chemical elements between minerals and residual melt, contributing to the chemical differentiation of the crust and mantle.
Magma also transports heat and volatile substances from deep geological environments towards the surface. Studying it helps scientists understand plate tectonics, mountain building, continental growth and the origin of many economically important mineral deposits. Magmatic systems can concentrate metals through hydrothermal and magmatic processes, making their geological products important sources of copper, gold and other resources. Magma is therefore both a physical material and a major agent in the ongoing geological evolution of the planet.