← Back to interactive periodic table
Free Magnesium student datasheet2-page printable PDF: quick facts, atomic structure, occurrence, isotopes, uses, history and revision prompts. The interactive tools stay on this page.
Download PDF ↓
Instant reference

Magnesium atomic number, mass, protons, electrons and valence electrons

Atomic number
12
12 protons
Electrons
12
in a neutral Mg atom
Valence electrons
2
outer 3s² electrons
Common isotope
²⁴Mg
12 neutrons in Mg-24
Relative atomic mass
24.305
Group / period
2 / 3
Melting point
923 K
650 °C
Boiling point
1363 K
1090 °C
Electron configuration1s² 2s² 2p⁶ 3s²
ClassificationAlkaline-earth metal
Common oxidation state+2
State at room temperatureSolid
Periodic-table position

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.

11NaSodium
12MgMagnesium
13AlAluminium
14SiSilicon
15PPhosphorus
16SSulfur
17ClChlorine
18ArArgon
Interactive Visual Lab

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.

Structure · orbitals · crystal lattice · real world
How to read an element tile

Every mark points to one exact feature

112 224.305 3Mg 4[Ne] 3s² 5Magnesium 6 7Solid
1Atomic numberNumber of protons
2Relative atomic massWeighted average for natural isotopes
3Chemical symbolMg
4Electron configurationGround-state shorthand
5Element nameMagnesium
6Crystal structureHCP at ordinary conditions
7Physical stateSolid near room temperature

The numbered markers sit directly beside the feature they identify, so the tile stays clear on desktop and mobile.

Five things worth remembering

Magnesium in one minute

01

Two outer electrons. That is the key to Group 2 and common Mg2+ chemistry.

02

Bright white flame. Burning magnesium is memorable because of its intense white light.

03

Lightweight metal. Its low density is useful in engineering alloys.

04

At the heart of chlorophyll. Magnesium links inorganic chemistry to photosynthesis.

05

Abundant but reactive. Nature usually stores magnesium in minerals, seawater and compounds - not as free metal.

Atomic structure teaching model

Neutral magnesium · Mg

12 p⁺+ 12 n⁰ · ²⁴Mg model
Drag the nucleus to rotate it freely in true 3D and use the mouse wheel to zoom. The ²⁴Mg model shows 12 proton spheres + 12 neutron spheres; the surrounding shell tracks remain a simplified teaching aid.
Connect picture → chemistry

2 · 8 · 2 electrons

K2
L8
M2
Why does Mg form Mg2+?

The two outer 3s electrons can be removed. The resulting Mg2+ ion has 10 electrons and the same electron count as neon.

Teaching model: moving electron dots help learners count shells. Real electrons are described by quantum states and probability distributions, not tiny planets on fixed tracks.
Crystal structure viewer

Hexagonal close-packed magnesium

P6₃/mmc · #194a = 320.94 pmc = 521.08 pm
What are you seeing?

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.

A layerB layer
Reference cell parameters: WebElements; HCP structure is also consistent with NIST reference data.
Magnesium orbital probability-cloud explorer

3s orbital · Mg effective-charge approximation

positive phasenegative phasepoint density ∝ |ψ|²
Drag to rotate. The shapes are generated from hydrogenic orbital equations scaled with a magnesium-specific effective nuclear charge estimate (Slater model).
Electron configuration

1s² 2s² 2p⁶ 3s²

1s↑↓
2s↑↓
2p↑↓   ↑↓   ↑↓
3s↑↓
What does the 3s cloud mean?

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.

Scientific scope: this is an educational effective-charge approximation, not the exact many-electron orbital of magnesium. Slater's rules are used to estimate shielding (Zeff), then standard hydrogenic orbital equations provide the familiar s/p shape and node structure. A quantitative magnesium orbital requires a many-electron method such as Hartree–Fock or beyond.
Real-world archive

Where do I meet magnesium?

Clickable learning cards connect the element to materials, biology, minerals and its historical archive.

Aircraft & vehicles

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.

1755Joseph Black distinguishes magnesia from lime.
1808Humphry Davy obtains magnesium metal electrochemically.
1831Antoine Bussy produces purer metallic magnesium.
TodayAlloys, compounds, metallurgy, biology and materials science.
Archive principleSpecimen photos and historical images will be added only when the usage rights and source attribution are clear.
Advanced element data · organised, not overwhelming

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 number12Number of protons
Relative atomic mass24.305Standard reference value
Electron configuration[Ne] 3s²Ground-state shorthand
Electronegativity1.31Pauling scale
Atomic radius173 pmPubChem periodic-table reference value
1st ionization energy7.646 eV≈737.7 kJ/mol
AppearanceSilvery-whiteMetallic solid
Density1.74 g/cm³Reference value in PubChem periodic-table data
Crystal structureHexagonal close-packedHCP
Group / period / block2 / 3 / sAlkaline-earth metal
Standard stateSolidNear ordinary reference conditions
Melting point923 K650 °C
Boiling point1363 K1090 °C
Temperature toolOpen the interactive phase explorer ↓
Electrical behaviourConductorMetallic bonding provides mobile charge carriers
Magnetic behaviourParamagneticMagnesium is weakly paramagnetic; values depend on measurement conditions
Production noteEngineering 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+2Loss of the two outer 3s electrons
Element familyAlkaline-earth metalGroup 2
Representative compoundsMgO · MgCl₂ · MgSO₄ · Mg(OH)₂Oxide, chloride, sulfate, hydroxide
Flame behaviourIntense white lightImportant safety and demonstration context
²⁴Mg78.99%12 neutrons
²⁵Mg10.00%13 neutrons
²⁶Mg11.01%14 neutrons
Stable natural isotopes3Prototype abundance values cross-checked with NIST
Design principle: when a value depends on temperature, pressure, allotrope, purity or measurement convention, the final public site should show those conditions instead of presenting a context-free number.
Occurrence + geography

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.

World map with country boundaries
Production-location markerCountry outlines: Natural Earth. Production dots are illustrative country locations, not mine/deposit sites.
Physical + atomic properties

Magnesium physical and atomic properties

Density
1.74 g/cm³
Electronegativity
1.31
Pauling scale
Atomic radius
173 pm
PubChem table value
1st ionization energy
737.7 kJ/mol
Common oxidation state
+2
CAS number
7439-95-4
Appearance
Silvery-white
Classification
Alkaline earth
Temperature explorer

What happens as magnesium gets hotter?

Temperature298 K · 25 °C
Solid
Below magnesium’s 923 K melting point.

Simplified reference view at approximately normal pressure. Real phase behaviour can depend on pressure and experimental conditions.

History + discovery

From “magnesia” to metallic magnesium

1755

Joseph Black

Distinguished magnesia from lime, helping establish it as a chemically distinct substance.

1808

Humphry Davy

Obtained impure magnesium metal using electrochemical methods.

1831

Antoine Bussy

Produced magnesium in a purer metallic form.

Today

Lightweight material

Magnesium is important in alloys, metallurgy, refractory materials and many chemical compounds.

From mineral to metal

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.

1

Start with a source

Dolomite, magnesite, brines or seawater can supply magnesium compounds.

2

Prepare the feed

The magnesium compound is purified/concentrated into a form suitable for the chosen process.

3

Release the metal

Plants may use electrolysis of magnesium chloride or thermal-reduction routes such as the Pidgeon process.

4

Refine + alloy

The metal is refined and often combined with other metals for lightweight engineering applications.

Element in the real world

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.

Isotopes

Three naturally occurring stable isotopes

²⁴Mg
78.99%
12 protons · 12 neutrons
²⁵Mg
10.00%
12 protons · 13 neutrons
²⁶Mg
11.01%
12 protons · 14 neutrons
Standard atomic weight
[24.304, 24.307]
Learn it, don’t just read it

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?

Common search questions · classroom-style explanations

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.

Source transparency

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.