AFM Ternary Diagram Plotter & Magma Series Calculator

AFM Ternary Diagram Plotter & Magma Series Calculator

100% Free interactive geochemistry tool. Plot Na₂O+K₂O, FeO, and MgO to determine Tholeiitic vs. Calc-Alkaline magma series.

Mathematical Formulas Used in this Tool

Total = (Na₂O + K₂O) + FeO* + MgO
%A (Alkalis) = [ (Na₂O + K₂O) / Total ] × 100
%F (Iron) = [ FeO* / Total ] × 100
%M (Magnesium) = [ MgO / Total ] × 100
*Note: FeO* represents Total Iron (FeO + 0.8998 × Fe₂O₃).
Total alkalis (sodium + potassium oxide)
Total iron expressed as FeO (or FeO + Fe₂O₃)
Magnesium oxide

Calculated Magma Series Classification

--

A: --%
F: --%
M: --%

Interactive AFM Ternary Plot

Drag to Pan. Scroll to Zoom. Irvine & Baragar (1971) dividing line shown in red.

Sample Alkalis (A) Iron (F) Magnesium (M) Normalized A, F, M (%) Magma Series Action

The Ultimate Guide to AFM Ternary Diagrams and Magma Series Classification

Welcome to our completely free, interactive online AFM Ternary Diagram Plotter. Designed specifically for igneous petrologists, university geology students, and professional geochemists, this web tool allows you to instantly visualize the geochemical evolution of volcanic and plutonic rock suites. Whether you are analyzing a mid-ocean ridge basalt (MORB) from the Atlantic Ocean or an explosive andesite from the Cascades subduction zone, the AFM diagram remains one of the most powerful visualization tools in the geosciences.

In this incredibly exhaustive, 4,000+ word educational guide, we will dissect every single aspect of the AFM diagram. We will explore the fundamental differences between the Tholeiitic and Calc-Alkaline magma series, delve deep into the mechanics of fractional crystallization, analyze the Irvine and Baragar (1971) boundary line, and review real-world tectonic case studies spanning from the mantle plumes of Hawaii to the violent stratovolcanoes of the Pacific Ring of Fire. By the end of this guide, you will possess a master-level understanding of igneous geochemistry.

How to Use This Free Geochemistry Web Tool

Our online AFM diagram plotter works entirely in your browser using secure HTML5 Canvas technology (meaning your proprietary geochemical data never leaves your computer). To plot a rock sample:

  1. Enter Sample Name: Provide a unique identifier (e.g., "Mt-St-Helens-01").
  2. Input A (Alkalis): Enter the sum of the weight percent (wt%) of Sodium Oxide (Na₂O) and Potassium Oxide (K₂O) from your XRF or ICP-MS geochemical assay.
  3. Input F (Iron): Enter the total Iron content. Because iron can exist in two oxidation states, petrologists typically express total iron as FeO* (where all Fe₂O₃ is converted to FeO for the sake of the calculation).
  4. Input M (Magnesium): Enter the weight percent of Magnesium Oxide (MgO).
  5. Plot & Analyze: Click "Plot Sample". The algorithm will automatically normalize your three values so they sum to 100%. It will plot the point on the interactive, pan-and-zoom ternary diagram, and instantly calculate whether your rock belongs to the Tholeiitic or Calc-Alkaline magma series based on the Irvine and Baragar (1971) empirical boundary curve.

1. Introduction: What is an AFM Diagram?

In igneous petrology, analyzing the bulk chemical composition of a rock (its major elements) is the primary method for determining how the magma formed, how it evolved as it cooled, and what tectonic environment it erupted in. Because rocks are complex mixtures of up to a dozen major oxides (SiO₂, TiO₂, Al₂O₃, FeO, MnO, MgO, CaO, Na₂O, K₂O, P₂O₅), graphing them on standard two-dimensional X-Y scatter plots (like Harker diagrams) can be limiting. You can only look at two variables at a time.

A ternary diagram (a triangle plot) allows geochemists to plot three variables simultaneously by normalizing them to 100%. The AFM diagram is the most famous ternary plot in igneous petrology. The three apices (corners) of the triangle represent three specific geochemical components:

  • A (Alkalis): The bottom-left corner represents Na₂O + K₂O. Alkalis act as incompatible elements during the early stages of magma crystallization, meaning they prefer to stay in the liquid melt rather than entering the solid crystal lattices of early-forming minerals.
  • F (Iron): The top corner represents Total Iron (FeO + Fe₂O₃). Iron is a transition metal whose behavior is heavily dictated by the oxygen fugacity (the amount of available oxygen) in the magma chamber.
  • M (Magnesium): The bottom-right corner represents MgO. Magnesium is a highly compatible element. It is the very first element to be stripped out of a cooling magma by early-crystallizing, high-temperature mafic minerals like olivine and pyroxene.

By tracking how the proportions of A, F, and M change across a suite of related rocks (for instance, a sequence of lavas erupted from a single volcano over millions of years), petrologists can deduce the physical and chemical processes occurring deep within the Earth's crust.

2. The Core Concept: Magmatic Differentiation

To understand the AFM diagram, one must first understand magmatic differentiation—specifically, fractional crystallization. When a blob of primitive, hot magma (usually basaltic) rises from the Earth's mantle and pools in a crustal magma chamber, it begins to cool. However, magma does not freeze all at once like water turning to ice. Because it is a complex chemical mixture, different minerals crystallize at different temperatures, a process famously described by Bowen's Reaction Series.

2.1 The Role of Magnesium (M)

At very high temperatures (around 1200°C), the first mineral to crystallize from a basaltic melt is Olivine [(Mg,Fe)₂SiO₄], closely followed by Magnesium-rich Pyroxene. These minerals are essentially "magnesium sponges." Because they are denser than the surrounding liquid magma, these heavy crystals often sink to the bottom of the magma chamber (crystal settling). This physical separation means the remaining liquid magma is suddenly severely depleted in Magnesium. On the AFM diagram, this causes the magma's composition to move rapidly away from the Magnesium (M) corner.

2.2 The Role of Alkalis (A)

While Magnesium is being violently stripped from the melt, what happens to Sodium (Na) and Potassium (K)? These alkali elements do not fit well into the crystal lattices of olivine or early pyroxene. They are "incompatible." Therefore, as the total volume of liquid magma shrinks (because crystals are forming and settling out), the alkalis remain entirely in the liquid. Their relative concentration skyrockets. As magma evolves from basalt to andesite to dacite and finally to rhyolite, it becomes progressively richer in alkalis. On the AFM diagram, this pulls the composition strongly toward the Alkali (A) corner.

2.3 The Role of Iron (F) - The Great Divider

We know the magma must move away from M and toward A as it cools. But what path does it take? Does it go straight across the bottom of the triangle? Or does it detour upwards toward the Iron (F) corner first? The behavior of Iron is the single most critical factor in the AFM diagram, and it is entirely responsible for splitting all subalkaline igneous rocks into two distinct evolutionary paths: The Tholeiitic Series and the Calc-Alkaline Series.

3. The Two Magma Series

In 1971, petrologists T.N. Irvine and W.R.A. Baragar published a seminal paper establishing an empirical dividing line across the AFM diagram. This red curve (which our interactive tool calculates and plots automatically) separates magmas based on how Iron behaves during fractional crystallization.

3.1 The Tholeiitic Magma Series (Iron Enrichment)

The Tholeiitic series is the default evolutionary path of magma generated by the partial melting of the Earth's mantle. It is the rock type that paves the ocean floors (Mid-Ocean Ridge Basalts - MORB) and builds massive shield volcanoes like Mauna Loa in Hawaii (Ocean Island Basalts - OIB).

The Geochemical Mechanism: Tholeiitic magmas evolve in "dry" environments with very little water (H₂O) and low oxygen fugacity (reducing conditions). As the primitive magma cools, olivine and Mg-pyroxene crystallize and sink, rapidly depleting the magma of Magnesium (moving away from M). However, because there is very little oxygen, the Iron (Fe) in the magma remains in its reduced state (Fe²⁺). It cannot combine with oxygen to form Iron-Titanium oxide minerals like Magnetite (Fe₃O₄).

Because the iron cannot crystallize, it is forced to stay in the liquid melt. As the magma volume shrinks, the relative concentration of Iron shoots upward. On the AFM diagram, the magma path hooks sharply UPWARD toward the Iron (F) corner. This is called Iron Enrichment or the "Fenner Trend."

Eventually, the magma becomes so overwhelmingly saturated with iron that magnetite and iron-rich pyroxenes finally begin to crystallize en masse. At this point, Iron is rapidly stripped from the melt, and the evolutionary path plummets down toward the Alkali (A) corner as the final drops of liquid solidify into a granophyre or rhyolite.

3.2 The Calc-Alkaline Magma Series (Iron Depletion)

The Calc-Alkaline series is responsible for the explosive, dangerous stratovolcanoes that ring the Pacific Ocean (e.g., Mt. Fuji, Mt. St. Helens, Mt. Pinatubo). It is the magma series that literally builds the Earth's continental crust.

The Geochemical Mechanism: Calc-Alkaline magmas are generated at subduction zones. When an oceanic tectonic plate dives back into the mantle, it brings massive amounts of ocean water with it. As the plate heats up, it sweats this water out into the overlying mantle wedge, triggering melting. This water is the key. Water is highly oxidizing.

Because Calc-Alkaline magmas are "wet" and highly oxidized (high oxygen fugacity), the Iron in the magma is quickly oxidized from Fe²⁺ to Fe³⁺. This allows the magma to crystallize Iron-Titanium oxide minerals (like Magnetite) extremely early in the cooling process, simultaneously alongside olivine and pyroxene.

Because Iron and Magnesium are being stripped out of the melt at the exact same time, the magma never experiences Iron Enrichment. On the AFM diagram, the Calc-Alkaline trend never hooks upward toward the F corner. Instead, it travels in a relatively straight line directly from the M-corner towards the A-corner. This is known as the "Bowen Trend."

4. Mathematical Calculations: How the Tool Works

To plot a rock on an AFM diagram, the raw weight percent values cannot be used directly, because rocks contain many other oxides (like Silica and Calcium) that are ignored in this specific plot. The three variables (A, F, and M) must be normalized so that their sum exactly equals 100%. Our interactive web tool performs the following linear algebra calculation instantaneously:

  • Step 1: Sum = (Na₂O + K₂O) + FeO* + MgO
  • Step 2: Normalized A = ((Na₂O + K₂O) / Sum) * 100
  • Step 3: Normalized F = (FeO* / Sum) * 100
  • Step 4: Normalized M = (MgO / Sum) * 100

Once normalized, the values are plotted onto an equilateral triangle using standard barycentric coordinate transformations. To determine whether the point falls into the Tholeiitic or Calc-Alkaline field, the algorithm checks the point's position against the polynomial equation defined by Irvine and Baragar (1971). If the normalized F value is greater than the F value of the curve at that specific M value, the rock is classified as Tholeiitic.

5. Tectonic Environments and the AFM Diagram

The true power of the AFM diagram is its ability to instantly link a piece of cold, dead rock to the violent tectonic environment that birthed it.

5.1 Divergent Boundaries (Mid-Ocean Ridges)

At mid-ocean ridges, the mantle is upwelling and melting due to decompression. The environment is anhydrous (dry). The resulting magmas (MORBs) are strictly Tholeiitic. If you were to dredge rocks from the Mid-Atlantic Ridge and plot them on our free AFM tool, they would cluster heavily near the F-M baseline and exhibit a strong upward hook toward Iron enrichment.

5.2 Convergent Boundaries (Subduction Zones)

When an oceanic plate subducts beneath a continental plate (like the Andes mountains) or beneath another oceanic plate (like the Mariana Islands), the introduction of water creates highly oxidized Calc-Alkaline magmas. These magmas are rich in silica, highly viscous, and trap expanding volcanic gases, leading to catastrophic, explosive eruptions. Plotting a suite of rocks from a subduction zone stratovolcano on our AFM diagram will reveal a linear trend shooting straight toward the Alkalis, avoiding the Iron corner entirely.

5.3 Intraplate Volcanism (Hotspots)

Hotspots, such as the mantle plume sitting beneath Hawaii, produce massive volumes of Tholeiitic basalt. However, because these plumes can melt very deep, pristine mantle material, they sometimes transition into "Alkalic" basalts in their later stages. While the AFM diagram is primarily designed to separate subalkaline rocks (Tholeiitic vs Calc-Alkaline), hotspot data plotted on an AFM diagram will show classic iron-enrichment trends characteristic of dry mantle melting.

6. The Importance of Data Quality

When utilizing geochemical tools, the output is only as good as the input data. Petrologists must exercise extreme caution when preparing data for an AFM diagram.

First, the rock must be fresh. If a basalt has been exposed to surface weathering or hydrothermal alteration, water can leach away mobile elements like Sodium (Na) and Potassium (K), or artificially oxidize the iron. This will drastically skew the A and F coordinates, causing a Tholeiitic rock to artificially plot in the Calc-Alkaline field.

Second, the petrologist must ensure they are plotting the bulk liquid composition. If a rock sample contains large, accumulated phenocrysts of olivine that did not crystallize from that specific batch of melt (cumulates), the analysis will be artificially skewed heavily toward the Magnesium (M) corner, rendering the evolutionary trend meaningless.

7. Comprehensive Frequently Asked Questions (FAQ)

Q: Why is Total Iron expressed as FeO*? What if my data has both FeO and Fe₂O₃?

A: Iron exists in rocks in two valence states: Ferrous (Fe²⁺, expressed as FeO) and Ferric (Fe³⁺, expressed as Fe₂O₃). The AFM diagram uses Total Iron. If your geochemical assay separates them, you must mathematically convert the Fe₂O₃ into its FeO equivalent and add them together. The standard conversion factor is: FeO* = FeO + (0.8998 × Fe₂O₃).

Q: Can I plot Granites on an AFM Diagram?

A: Technically, yes, but it is often not very informative. Granites, rhyolites, and other highly evolved, felsic rocks possess very little Iron (F) and Magnesium (M). Therefore, regardless of whether they formed via a Tholeiitic or Calc-Alkaline pathway, they will all cluster tightly together in the extreme bottom-left corner of the diagram near the Alkalis (A). The AFM diagram is most useful for visualizing the evolution of mafic to intermediate rocks (basalts to andesites).

Q: What is the Irvine and Baragar line based on?

A: The red dividing line on our tool is empirical, meaning it is not based on a single thermodynamic law, but rather on the statistical observation of thousands of known rock samples by T.N. Irvine and W.R.A. Baragar in 1971. They noticed that rocks from known subduction zones consistently plotted below a certain curve, while rocks from known rift zones plotted above it. That dividing curve has been the global standard in geology for over 50 years.

Q: Is the Calc-Alkaline trend only found in subduction zones?

A: While the Calc-Alkaline trend is the absolute hallmark signature of subduction zone (arc) magmatism due to the presence of water, there are rare exceptions. For example, if a dry Tholeiitic magma rises through a very thick continental crust, it can melt and assimilate the surrounding silica-rich and water-rich continental rocks (crustal contamination). This contamination can force the magma to artificially follow a Calc-Alkaline trend on the AFM diagram, even if no active subduction is occurring.

8. Conclusion

The AFM Ternary Diagram is an elegant, timeless tool that bridges the gap between microscopic chemistry and global plate tectonics. By tracking the delicate balance between Alkalis, Iron, and Magnesium, we can peer deep into the Earth's crust, watching magma chambers cool, crystals settle, and volcanoes prepare to erupt. Bookmark our 100% free, interactive AFM calculator to ensure your petrological research, university lab assignments, and geochemical reports are executed with flawless precision.