Magma and Its Chemistry

How Volcanoes Work

Chapter 3 ยท Magma and Its Chemistry

How Volcanoes Work 2 showed where magma forms. The same Earth can produce a Hawaiian lava flow that a person can calmly walk away from and a Mount St Helens blast that flattened a forest, and the difference is mostly down to what the magma is made of. Two ingredients decide almost everything: how much silica it contains, and how much gas is dissolved in it.

What was run
Every Python snippet in this chapter and in the three exercise solutions was executed, and the output shown in the comments is what Python printed. Only Python 3 and its standard library are needed. Viscosities, solubility constants and rock boundaries are round textbook-style values for intuition, not data for real hazard work. Anything not checked against a source is marked (check).

What Magma Is Made Of

Magma is mostly melted silicate rock: silicon and oxygen (silica, SiO2) together with aluminium, iron, magnesium, calcium, sodium and potassium, plus dissolved gases and sometimes crystals. Geologists name a magma by its silica content, measured in weight percent. Direct melting of mantle rock gives low-silica magma; the more the magma later evolves in the crust, the more silica-rich it becomes, and silica-rich magma is the stuff of explosive volcanoes.

TypeSilica (wt%)TemperatureTypical settingColour of rock
Basaltabout 45 to 521100 to 1250 C (check)ridges, Hawaii, Icelanddark
Andesiteabout 52 to 63about 900 to 1000 C (check)subduction arcs: Andes, Japanmedium grey
Daciteabout 63 to 69about 800 to 900 C (check)arcs, Mount St Helens (check)light grey
Rhyoliteover 69about 700 to 850 C (check)continental hotspots and arcs: Yellowstonepale, pink or white

The boundaries are conventions, not natural walls, so a function that sorts a measurement into a type is just a ladder of comparisons:

def rock_type(sio2): if sio2 < 45: return "ultramafic" if sio2 < 52: return "basalt" if sio2 < 63: return "andesite" if sio2 < 69: return "dacite" return "rhyolite" for s in (47, 50, 58, 66, 73, 40): print(s, rock_type(s)) # 47 basalt # 50 basalt # 58 andesite # 66 dacite # 73 rhyolite # 40 ultramafic

This ties straight back to Chapter 2. Decompression melting of the mantle at ridges and hotspots gives basalt. Flux melting at subduction zones, followed by the magma stewing in the crust and picking up more silica, gives andesite and rhyolite. Where a volcano sits therefore predicts what it erupts.

Viscosity: How Sticky Is It?

Viscosity is resistance to flow, measured in pascal seconds (Pa s). Silica matters because silicon and oxygen atoms link into chains and sheets in the melt, and these networks make the liquid stiff: more silica means more linking, so higher viscosity. Cooler magma is also stickier, and crystals and bubbles make it stickier still. The span is huge:

visc = {"water": 1e-3, "honey": 10, "basalt": 1e2, "andesite": 1e6, "rhyolite": 1e10} for name, v in visc.items(): print(f"{name:9s} {v:9.0e} Pa s {v/visc['basalt']:9.1e} x basalt") # water 1e-03 Pa s 1.0e-05 x basalt # honey 1e+01 Pa s 1.0e-01 x basalt # basalt 1e+02 Pa s 1.0e+00 x basalt # andesite 1e+06 Pa s 1.0e+04 x basalt # rhyolite 1e+10 Pa s 1.0e+08 x basalt

These are order-of-magnitude values (check; real figures range over several powers of ten with temperature and water content). Even so, the message is clear. Basalt is somewhat thicker than honey and flows in rivers. Rhyolite is a hundred million times thicker than basalt: it hardly flows at all and tends to pile up in a dome. A person can outpace a basalt flow on foot but could not watch a rhyolite flow move.

Common mistake
Treating "lava is hot, so it is all runny". Temperature matters, but silica matters far more. A cooler rhyolite is vastly stickier than a hotter basalt.

Dissolved Gas

Magma holds dissolved gas, mostly water vapour (typically a few percent by weight in arc magmas, check), then carbon dioxide and sulfur dioxide. Gas dissolves in melt much as carbon dioxide dissolves in a sealed bottle of fizzy drink: pressure keeps it in solution. Open the bottle and the pressure drops, so the gas comes out as bubbles. Magma rising towards the surface does the same, a process called exsolution. For water, a rough rule is that solubility rises with the square root of the pressure:

import math K = 0.4 # wt% water per sqrt(MPa), rough value (check) RHO, G = 2500, 9.8 def pressure_mpa(depth_km): return RHO * G * depth_km * 1000 / 1e6 def solubility(p_mpa): return K * math.sqrt(p_mpa) for depth in (8, 4, 1, 0.1, 0): p = max(pressure_mpa(depth), 0.1) print(f"{depth:4} km {p:6.1f} MPa holds {solubility(p):4.2f} wt%") # 8 km 196.0 MPa holds 5.60 wt% # 4 km 98.0 MPa holds 3.96 wt% # 1 km 24.5 MPa holds 1.98 wt% # 0.1 km 2.5 MPa holds 0.63 wt% # 0 km 0.1 MPa holds 0.13 wt%

So a magma that carries 4 wt% water holds all of it at a depth of around 4 km or more, but starts to unload as it climbs, and at the surface it can hold almost none. The gas that comes out is the fuel for the next chapter.

Why Gas and Viscosity Together Decide the Eruption

Bubbles form in every magma that rises. What changes is what happens to them. In runny basalt the bubbles rise, merge and escape easily: the gas leaves quietly and the lava flows, sometimes in fountains. In sticky rhyolite the bubbles cannot get out. They grow, crowd each other and stay trapped, so the pressure builds until the magma is blown to pieces. Add the fact that arc magmas tend to carry more water, and the Chapter 2 pattern follows: subduction zones are explosive, ridges and hotspots are mostly gentle.

BasaltAndesite / daciteRhyolite
Silicalowmediumhigh
Viscositylowhighvery high
Dissolved waterlowmediumoften high
Gas escapeeasyhardervery hard
Typical behaviourlava flows, fountainsdomes, explosionsbig explosions, domes

Arthur's Seat again

The Edinburgh volcanoes from Chapter 2 were largely basaltic (check, with some related rock types), which fits the stretching setting: lava flows and ash, not Yellowstone-style catastrophes. The chemistry in the rocks is a record of the magma that made them.

Exercise 1

Write rock_type(sio2) using the boundaries 45, 52, 63 and 69, and run it on the silica values 47, 50, 58, 66, 73 and 40. Which of them would you expect to be the most explosive, and why?

๐Ÿ“„ View solution
Exercise 2

Write pressure_mpa(depth_km) (rock density 2500 kg per cubic metre) and solubility(p_mpa) using K = 0.4. For a magma holding 4 wt% water in total, print how much is dissolved and how much has exsolved at 200, 100, 50, 25, 10 and 1 MPa. At roughly which pressure do bubbles first appear?

๐Ÿ“„ View solution
Exercise 3

Use the ideal gas law, V = nRT / P with R = 8.314, to find how much water vapour 1 m3 of magma at 900 C releases when 0, 2, 2.74 and 3.6 wt% has exsolved at 100, 25, 10 and 1 MPa (water is 0.018 kg per mole). Roughly how many times its own volume is the gas near the surface? Why does that matter for sticky magma?

๐Ÿ“„ View solution

Quick Reference

  • Silica: basalt about 45 to 52, andesite 52 to 63, dacite 63 to 69, rhyolite over 69 wt%
  • Viscosity: more silica and lower temperature mean stickier; basalt about 102 Pa s, rhyolite about 1010 (check)
  • Gas: mostly water vapour; dissolved under pressure, exsolves as magma rises
  • Solubility rule: water held is roughly K times the square root of pressure
  • Runny magma: gas escapes, lava flows. Sticky magma: gas is trapped, explosions
Coming next
How Volcanoes Work 4 looks at why volcanoes erupt: gas pressure, bubble growth, magma chambers and what triggers an eruption.