Volcanic gases include a variety of substances given off by active (or, at times, by dormant) volcanoes. These include gases trapped in cavities (vesicles) in volcanic rocks, dissolved or dissociated gases in magma and lava, or gases emanating directly from lava or indirectly through ground water heated by volcanic action.
The sources of volcanic gases on Earth include:
Substances that may become gaseous or give off gases when heated are termed volatile substances.
Gases are released from magma through volatile constituents reaching such high concentrations in the base magma that they evaporate. (Technically, this would be described as the exsolution and accumulation of the gases upon reaching excess supersaturation of these constituents in the host solution (magmatic melt), and their subsequent loss from the host by diffusion and phase separation into bubbles). Molten rock (either magma or lava) near the atmosphere releases high-temperature volcanic gas (>400 °C). In explosive volcanic eruptions, sudden release of gases from magma may cause rapid movements of the molten rock. When the magma encounters water, seawater, lake water or groundwater, it can be rapidly fragmented. The rapid expansion of gases is the driving mechanism of most explosive volcanic eruptions. However, a significant portion of volcanic gas release occurs during quasi-continuous quiescent phases of active volcanism.