Home / Science / Earth sciences / Mineralogy and petrology / Ternary and spider plot makerTool #124

Ternary diagram and spider diagram maker: plot three-part compositions and normalised element patterns online

Plot any three-part composition (QFL sandstones, soil texture, mineral end-members, alloys) on a ternary diagram with groups, grid lines and labels, and draw normalised multi-element spider diagrams with Eu/Eu* and (La/Yb)N. Download as PNG, PDF or Word.

Keep it one tap away for everyday use.

Bookmark Ternary and spider plot maker?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Paste data
  2. Pick corners
  3. Plot
  4. Download
Nothing is uploadedWorks offline once open

Ternary diagram

The three columns can be in any unit (counts, percent, ppm, moles); each row is scaled so its three values add up to 100 %. The example data are made up. No classification fields are drawn; add your own from your reference if you need them.

Spider diagram (normalised elements)

Add the reference you normalise to (such as chondrite or primitive mantle) as one more row, taken from the source you cite, and pick it here. The "Reference (made up)" row is invented for the example. Values are plotted on a log scale; gaps show missing or zero values.

Download

What it does

Many things in science are parts of a whole. A sandstone is so much quartz, feldspar and rock fragments. A soil is sand, silt and clay. A feldspar is a blend of three end-members. When only the proportions matter, a ternary diagram shows each sample as one point inside a triangle, with each corner standing for 100 % of one part.

The second card draws a spider diagram: many elements along the bottom, each sample’s values divided by a reference composition and plotted on a log scale. Geochemists use it for rare earth elements and trace element patterns, because the shape of the line tells a story about where a rock came from.

How to use it

  1. Paste or open a table with a header row. The first column is the sample name. Any three number columns can go on the corners, in any unit: counts, percent, ppm or moles. Each row is scaled so its three values add to 100 %.
  2. Pick which column sits at the top, bottom left and bottom right.
  3. If you have a text column such as site or rock type, choose it under Colour by. Each group gets its own colour and marker, and its centre is listed in the table.
  4. Choose grid lines every 10, 20 or 25 %, and whether to label points.
  5. For a spider diagram, paste elements as columns in the order you want them plotted and samples as rows. Add one row with the reference values you normalise to, taken from the source you cite, and pick it in Normalise by the row.

What you get

  • The triangle with grid, tick values and your points, plus a table of each group’s centre.
  • The centre is the geometric mean of the rows, closed to 100 %. For compositions this is a better middle than the plain average, because proportions cannot go below zero.
  • A spider diagram with one line per sample. Missing or zero values leave a gap.
  • When Eu, Sm and Gd are present, the Eu/Eu* anomaly. When La and Yb are present, (La/Yb)N, which shows how steep the pattern is.

Worked example

All numbers are made up. Four sands from River A average about 72 % quartz, and four from River B about 40 %. The tool puts the River A centre at 71.6 % quartz, 16.5 % feldspar and 11.9 % rock fragments, and River B at 39.5 / 34.2 / 26.3 %. The two clusters sit well apart on the plot.

In the spider example the made-up granite falls from 100 times the reference at La to 10 times at Lu, with a dip at Eu. The tool gives Eu/Eu* 0.60 and (La/Yb)N 8.4. The made-up basalt is flat at about 20 times the reference, with Eu/Eu* 0.99.

Good to know

  • No classification fields (such as the sandstone or soil texture names) are drawn, because those boundaries come from specific published schemes. Note the corners you used and add the fields from your own reference if you need them.
  • Real reference values differ between sources. Always say which one you used.
  • Rows with a missing or negative value in the chosen columns are skipped and counted.

FAQ

Can I plot more than three components? Choose the three that matter, or add some together in your spreadsheet first (for example quartz plus chert). The plot always shows three.

Why a log scale on the spider diagram? Element abundances span several orders of magnitude, and a log scale shows the shape of the pattern evenly.

Where the numbers come from

  • Ternary plotting and closure (scaling each row to 100 %): standard geometry and compositional data practice, written by fibub.
  • Eu/Eu* = Eu_N ÷ √(Sm_N × Gd_N): the usual geometric-mean definition of the europium anomaly, written from the formula.
  • No normalising tables (chondrite, primitive mantle, MORB) are bundled. Users add the reference values from the source they cite.
  • Example data, including the "Reference (made up)" row, are invented by fibub for illustration.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-08.

Change log for Ternary and spider plot maker

  1. Add the ternary and spider plot maker (#124) Details on GitHub

Every change to fibub

Related tools

Grade-tonnage calculator #130 Paste or open block model or composite data (tonnes and grade, or volume and density). Get the grade-tonnage curve, breakeven and marginal cut-off grades from metal price, recovery, royalty and costs, contained and recovered metal and the operating margin at any cut-off. Piper diagram maker #125 Paste or open major-ion analyses in mg/L, meq/L or mmol/L. Get a Piper diagram with groups, Stiff diagrams, the ion balance error for each sample, the water type (such as Ca-HCO₃ or Na-Cl), the diamond field and total hardness. Download as PNG, PDF or Word. Radiometric age calculator #121 Work out rock and mineral ages from isotope ratios: daughter/parent ages for Rb-Sr, Sm-Nd, Lu-Hf, Re-Os, U-Pb and Th-Pb, K-Ar and ⁴⁰Ar/³⁹Ar ages, isochrons fitted with errors in both axes (York regression, MSWD), and U-Pb ages with concordance on a concordia plot. Drill hole composites #131 Paste or open drill hole assay intervals. Check them for gaps and overlaps, make length-weighted composites to a fixed length or by lithology, find significant intercepts written as "x m @ y g/t from z m" with "including" high-grade parts, and draw a strip log of each hole. Isotope delta converter #122 Convert stable isotope δ values (δ²H, δ¹³C, δ¹⁵N, δ¹⁷O, δ¹⁸O, δ³⁴S, δ¹¹B, δ³⁷Cl) to and from isotope ratios, move δ¹⁸O between the VPDB and VSMOW scales exactly, work out α, ε and 1000 ln α, triple-oxygen Δ′¹⁷O, and two-source mixing with different concentrations. Mixing model calculator #123 Unmix water, sediment or rock samples into two or three sources (end-members) from several tracers at once, including δ isotope values weighted by concentration. Least-squares fractions that stay between 0 and 100 %, a misfit check and a tracer plot with curved mixing lines. Publication plot maker #27 Paste columns or open a CSV or Excel file and get a clean scientific figure with error bars, sized for a journal column. Download vector SVG or PDF, or PNG at 300 or 600 dpi. Your data stays in your browser. Soil texture triangle #322 Type sand, silt and clay percentages and get the USDA soil texture class (sand, loam, silty clay and the rest of the 12). Paste or open a table of many samples to plot them all on the texture triangle, count them by class and download the classes as CSV. Mineral identification key #515 An interactive key to about 50 common rock-forming and ore minerals. Enter what you see (Mohs hardness or scratch tests, specific gravity, lustre, streak, cleavage, colour, acid fizz, magnetism and other simple tests) and get ranked matches with the reasons for and against each, adjustable tolerances, and a printable property table. CIPW norm calculator #871 Paste or open whole-rock major-oxide analyses, one or many. Get the CIPW norm in wt% (quartz, feldspars, feldspathoids, pyroxenes, olivine, oxides, apatite), the differentiation index, plagioclase An, colour index and silica saturation, with Le Maitre or fixed-ratio Fe2O3/FeO adjustment and a check that the norm adds up to the analysis. Mineral formula calculator #872 Paste or open electron-microprobe oxide analyses, one or hundreds. Get cations per formula unit on any oxygen basis, Fe³⁺ estimated by charge balance (Droop 1987), recalculated FeO and Fe2O3, Mg#, and end-members: Fo for olivine, Wo-En-Fs for pyroxene, An-Ab-Or for feldspar, Alm-Prp-Sps-Grs for garnet and Cr# for spinel. Point counter for thin sections #873 Open a thin-section photo or any image, lay a grid or seeded random points over it and count each point into your own classes with number keys or buttons. Get modal percentages with binomial standard errors, Van der Plas and Tobi 2σ, exact 95 % ranges and CSV files. Works as a plain tally counter without an image. Grain-size statistics from sieve data #875 Turn sieve masses into a cumulative curve, φ percentiles, Folk and Ward mean, sorting, skewness and kurtosis with their verbal classes, moment statistics and Udden-Wentworth class percentages, for one sample or a whole batch.