Magnesium (Mg)
Explore magnesium as an atom, a periodic-table pattern, a mineral resource and a real-world material—not just a list of numbers.
Magnesium atomic number, mass, protons, electrons and valence electrons
Magnesium group, period and position in the periodic table
Magnesium sits in Period 3 between sodium and aluminium. Its two outer electrons place it in Group 2 with the alkaline-earth metals.
Magnesium Visual Lab
Four ways to understand one element: decode its tile, explore atomic structure, inspect scientifically grounded orbital-shape approximations, then connect the chemistry to the real world.
Every mark points to one exact feature
The numbered markers sit directly beside the feature they identify, so the tile stays clear on desktop and mobile.
Magnesium in one minute
Two outer electrons. That is the key to Group 2 and common Mg2+ chemistry.
Bright white flame. Burning magnesium is memorable because of its intense white light.
Lightweight metal. Its low density is useful in engineering alloys.
At the heart of chlorophyll. Magnesium links inorganic chemistry to photosynthesis.
Abundant but reactive. Nature usually stores magnesium in minerals, seawater and compounds - not as free metal.
2 · 8 · 2 electrons
The two outer 3s electrons can be removed. The resulting Mg2+ ion has 10 electrons and the same electron count as neon.
Magnesium atoms form stacked hexagonal layers in an ABAB pattern. Drag the model to rotate it. The wireframe marks one repeating unit-cell region; the spheres represent Mg atom positions.
1s² 2s² 2p⁶ 3s²
The points illustrate the 3s orbital shape and its two radial nodes. The radial scale uses a magnesium effective-charge estimate; the colors show opposite wavefunction phase, not positive and negative electrical charge.
Where do I meet magnesium?
Clickable learning cards connect the element to materials, biology, minerals and its historical archive.
Why use a magnesium alloy?
Magnesium is much less dense than many structural metals. Alloying can combine low mass with useful engineering properties, so weight-sensitive components are a natural place to encounter magnesium.
Go deeper without turning the page into a wall of numbers
The dense scientific facts are grouped by topic. Students can open only what they need; the downloadable PDF remains a compact revision sheet.
| Atomic number | 12 | Number of protons |
|---|---|---|
| Relative atomic mass | 24.305 | Standard reference value |
| Electron configuration | [Ne] 3s² | Ground-state shorthand |
| Electronegativity | 1.31 | Pauling scale |
| Atomic radius | 173 pm | PubChem periodic-table reference value |
| 1st ionization energy | 7.646 eV | ≈737.7 kJ/mol |
| Appearance | Silvery-white | Metallic solid |
|---|---|---|
| Density | 1.74 g/cm³ | Reference value in PubChem periodic-table data |
| Crystal structure | Hexagonal close-packed | HCP |
| Group / period / block | 2 / 3 / s | Alkaline-earth metal |
| Standard state | Solid | Near ordinary reference conditions |
| Melting point | 923 K | 650 °C |
|---|---|---|
| Boiling point | 1363 K | 1090 °C |
| Temperature tool | Open the interactive phase explorer ↓ | |
| Electrical behaviour | Conductor | Metallic bonding provides mobile charge carriers |
|---|---|---|
| Magnetic behaviour | Paramagnetic | Magnesium is weakly paramagnetic; values depend on measurement conditions |
| Production note | Engineering values such as resistivity and conductivity can vary with temperature, purity and alloy composition, so the production site should show conditions next to each number. | |
| Common oxidation state | +2 | Loss of the two outer 3s electrons |
|---|---|---|
| Element family | Alkaline-earth metal | Group 2 |
| Representative compounds | MgO · MgCl₂ · MgSO₄ · Mg(OH)₂ | Oxide, chloride, sulfate, hydroxide |
| Flame behaviour | Intense white light | Important safety and demonstration context |
| ²⁴Mg | 78.99% | 12 neutrons |
|---|---|---|
| ²⁵Mg | 10.00% | 13 neutrons |
| ²⁶Mg | 11.01% | 14 neutrons |
| Stable natural isotopes | 3 | Prototype abundance values cross-checked with NIST |
Where on Earth is magnesium?
“Where is an element found?” can mean several things. Use the modes below to separate natural abundance, seawater, important minerals and modern metal production.
Numbers make more sense when you compare neighbours
Magnesium is not an isolated box. Its properties reflect its position in Period 3 and Group 2.
| Atomic no. | 11 |
| Electronegativity | 0.93 |
| 1st ionization | 495.8 kJ/mol |
| Atomic no. | 12 |
| Electronegativity | 1.31 |
| 1st ionization | 737.7 kJ/mol |
| Atomic no. | 13 |
| Electronegativity | 1.61 |
| 1st ionization | 577.5 kJ/mol |
Magnesium physical and atomic properties
What happens as magnesium gets hotter?
Simplified reference view at approximately normal pressure. Real phase behaviour can depend on pressure and experimental conditions.
From “magnesia” to metallic magnesium
Joseph Black
Distinguished magnesia from lime, helping establish it as a chemically distinct substance.
Humphry Davy
Obtained impure magnesium metal using electrochemical methods.
Antoine Bussy
Produced magnesium in a purer metallic form.
Lightweight material
Magnesium is important in alloys, metallurgy, refractory materials and many chemical compounds.
How magnesium is produced
The route depends on the raw material and plant. Two broad families are electrolytic production from magnesium salts and thermal reduction of magnesium-containing minerals.
Start with a source
Dolomite, magnesite, brines or seawater can supply magnesium compounds.
Prepare the feed
The magnesium compound is purified/concentrated into a form suitable for the chosen process.
Release the metal
Plants may use electrolysis of magnesium chloride or thermal-reduction routes such as the Pidgeon process.
Refine + alloy
The metal is refined and often combined with other metals for lightweight engineering applications.
Why magnesium matters
Lightweight alloys
Low density makes magnesium valuable when reducing mass matters in transport and machinery.
Bright light
Burning magnesium produces an intense white light, explaining its historic and modern use in flares and pyrotechnic applications.
Refractory materials
Magnesium oxide is used in heat-resistant materials such as furnace linings.
Metallurgy
Magnesium and its compounds play roles in alloying and metal-processing operations.
Chlorophyll connection
A magnesium ion sits at the centre of chlorophyll, making Mg a useful bridge between chemistry and photosynthesis.
Chemical compounds
MgO, MgCl₂, MgSO₄ and Mg(OH)₂ show how one element participates in very different materials and reactions.
Three naturally occurring stable isotopes
Three-question magnesium check
How many valence electrons does Mg have?
Where is neutral Mg’s outer configuration?
Which is a major natural source of magnesium?
Magnesium questions: quick answers first, then the full explanation
Open any question for a one-line answer followed by the deeper chemistry. The goal is to give a student the fast fact and the kind of explanation a teacher would add in class.
How many protons, neutrons and electrons does magnesium have?
Short answer: Magnesium always has 12 protons. A neutral magnesium atom has 12 electrons. The neutron count depends on the isotope.
The atomic number of magnesium is 12, and atomic number is defined by the number of protons in the nucleus. That is why every magnesium atom has 12 protons: if the nucleus had a different proton count, it would be a different element.
A neutral atom has equal numbers of positive protons and negative electrons, so neutral Mg has 12 electrons. Isotopes keep the same 12 protons but contain different numbers of neutrons. The common stable isotopes are 24Mg with 12 neutrons, 25Mg with 13, and 26Mg with 14.
How many valence electrons does magnesium have, and why does that matter?
Short answer: Magnesium has 2 valence electrons, both in the 3s subshell.
The ground-state electron configuration ends in 3s². Those two outer electrons are the electrons most directly involved when magnesium forms ordinary chemical bonds.
Removing those two electrons produces Mg2+, leaving a 10-electron arrangement equivalent in electron count to neon. This helps explain why the +2 oxidation state is so characteristic of magnesium and why magnesium belongs to Group 2, the alkaline-earth metals.
What is magnesium's electron configuration?
Short answer: 1s² 2s² 2p⁶ 3s², or in shorthand, [Ne] 3s².
The first shell contains 2 electrons, the second contains 8, and the third contains the remaining 2, giving the familiar shell pattern 2-8-2. In orbital notation, the 1s, 2s and 2p subshells are filled before the two outer electrons occupy 3s.
The shorthand [Ne] represents the filled 1s² 2s² 2p⁶ core. Writing [Ne] 3s² makes the chemically important outer electrons easy to see.
Why does magnesium usually form Mg²⁺ instead of Mg⁺?
Short answer: Losing both 3s electrons gives Mg2+ a stable neon-like electron arrangement.
Magnesium starts with two relatively outer 3s electrons. Removing the first electron gives Mg+, but one 3s electron is still left. Removing the second completes the loss of the outer 3s shell and leaves the closed-shell electron configuration [Ne].
Removing a third electron would require taking an electron from that stable inner-shell core and therefore demands much more energy. That sharp change is one reason the +2 state dominates ordinary magnesium chemistry.
Where is magnesium found naturally?
Short answer: Magnesium is abundant in Earth's crust, seawater and many minerals, but it is usually found in compounds rather than as free metal.
Magnesium is reactive enough that native metallic magnesium is not the normal form found in nature. Instead, it occurs in minerals such as dolomite, magnesite, brucite, carnallite and olivine, and large quantities of magnesium ions are dissolved in seawater and natural brines.
This is why commercial magnesium production begins with a magnesium-bearing mineral, salt solution or brine and then uses chemical separation followed by electrolysis or thermal-reduction processes to obtain the metal.
Is magnesium a metal, and where is it on the periodic table?
Short answer: Yes. Magnesium is an alkaline-earth metal in Group 2, Period 3 and the s-block.
Its position is closely connected to its electron structure. Period 3 tells us that occupied electron shells extend through the third principal shell, while Group 2 reflects the two outer 3s electrons.
Magnesium therefore shares important patterns with beryllium above it and calcium below it, while comparisons across Period 3 with sodium and aluminium help students see trends such as atomic radius and ionization energy.
What is magnesium used for?
Short answer: Magnesium is used in lightweight alloys, metallurgy, bright-light applications and many useful compounds.
Metallic magnesium has a low density, so magnesium alloys are useful where reducing mass matters, including selected transport and engineering components. Magnesium also plays roles in metallurgical processing and alloy manufacture.
Its intense white light when burning explains its association with flares and pyrotechnic applications. Magnesium compounds have very different uses: magnesium oxide is important in heat-resistant materials, while other salts and compounds are used across chemical, industrial and laboratory applications.
Why does burning magnesium give such a bright white light?
Short answer: Burning magnesium releases energy very rapidly and produces an intensely luminous hot reaction zone and magnesium oxide particles.
When magnesium burns in oxygen, it forms magnesium oxide in a strongly exothermic reaction. The high temperature excites atoms, ions and particles in the flame, and the hot products emit a broad, intense visible light that appears brilliant white to the eye.
The brightness is precisely why burning magnesium became useful historically in photographic flash powders and remains memorable in chemistry demonstrations. It should be observed only under appropriate laboratory safety controls because burning magnesium is extremely bright and hot.
Scientific sources for Magnesium
Key numerical values, isotope information, occurrence data, history and uses are cross-checked against authoritative scientific and educational references. Source provenance will be attached to the reusable element dataset as the site expands.
- PubChem — Magnesium properties, identifiers, history and provenance
- Royal Society of Chemistry — Magnesium reference data, history and uses
- USGS — Magnesium occurrence, resources and production data
- NIST — isotopic composition and atomic weights
- IUPAC — periodic-table nomenclature and atomic-weight conventions