SAlkaline Earth Metal

MagnesiumElectron Configuration, Bohr Model, Valence Electrons & Orbital Diagram

Quick Answer — Magnesium Valence Electrons

Magnesium has 2 valence electrons in its outer shell. These determine its position in Group 2 and govern all its chemical reactivity and bonding ability.

Valence e⁻

2

Group

2

Outermost Shell

2

Atomic Number

12

⚡ Check Magnesium Electronegativity Profile →

Magnesium (symbol: Mg, atomic number: 12) is a alkaline earth metal in Period 3, Group 2, occupying the s-block, where valence electrons reside in spherical s-orbitals. With two paired valence electrons in its outer s-orbital, Magnesium eagerly surrenders both to form stable 2+ cations, displaying the moderate-to-high reactivity characteristic of alkaline earth metals. Its ground-state electron configuration — 1s² 2s² 2p⁶ 3s² — distributes all 12 electrons across 3 shells, placing it firmly within a well-defined chemical family. Mastering the magnesium electron configuration, Bohr model, valence electrons, and SPDF orbital diagram provides a complete atomic portrait — from core electrons shielding the nucleus to the outermost electrons that dictate every reaction, bond, and real-world application Magnesium is known for.

Magnesium Bohr Model — Shell Diagram

Mg12

Valence shell (highlighted) = 2 electrons

Quick Reference

  • Atomic Number (Z)

    12

  • Symbol

    Mg

  • Valence Electrons

    2

  • Total Electrons

    12

  • Core Electrons

    10

  • Block

    S-block

  • Group

    2

  • Period

    3

  • Electron Shells

    2-8-2

  • Oxidation States

    2

  • Electronegativity

    1.31

  • Ionization Energy

    7.646 eV

Full Electron Configuration

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

Noble Gas Shorthand

[Ne] 3s²

Section 1 — Electron Configuration

Magnesium Electron Configuration

The electron configuration of Magnesium is written as <strong>1s² 2s² 2p⁶ 3s²</strong>. Applying the Aufbau principle — filling orbitals from lowest to highest energy — plus the Pauli Exclusion Principle and Hund's Rule, we systematically place all 12 electrons: 1s² 2s² 2p⁶ 3s². In the s-block, valence electrons fill spherical s-orbitals (maximum 2 electrons each). Magnesium's first shell is completely filled, forming a helium-like inert core of 2 electrons.

Magnesium follows the standard Aufbau filling order without exception. The noble gas shorthand <strong>[Ne] 3s²</strong> replaces the inner-shell electrons with the symbol of the preceding noble gas, highlighting that only the outer electrons — 3s² — are chemically active.

Shell-by-shell, Magnesium's 12 electrons are distributed as: K-shell (n=1): <strong>2</strong> electrons; L-shell (n=2): <strong>8</strong> electrons; M-shell (n=3): <strong>2</strong> electrons. The M-shell (n=3) is the valence shell, containing 2 electrons.

Chemically, this configuration places Magnesium in Group 2 with oxidation states of 2. This configuration directly predicts Magnesium's bonding mode, reactivity toward oxidizing and reducing agents, and the stoichiometry of its most common compounds.

SubshellElectronsRoleOrbital Type
1s²?Cores-orbital
2s²?Cores-orbital
2p⁶?Corep-orbital
3s²?VALENCEs-orbital

Section 2 — Bohr Model

Magnesium Bohr Model Explained

In the Bohr model of Magnesium, all 12 electrons circle the nucleus in 3 discrete, fixed-radius orbits, surrounding a nucleus of 12 protons and approximately 12 neutrons. Proposed by Niels Bohr in 1913, this planetary model remains the most intuitive gateway to understanding electron shell structure, even though quantum mechanics has since replaced it for precision calculations.

Magnesium's Bohr model shell distribution (2-8-2) breaks down as follows: <strong>Shell 1 (K):</strong> 2 electrons / capacity 2 — completely filled <strong>Shell 2 (L):</strong> 8 electrons / capacity 8 — completely filled <strong>Shell 3 (M):</strong> 2 electrons / capacity 18 — partially filled ← VALENCE SHELL The notation 2-8-2 is a compact representation of this layered structure, read from the innermost K-shell outward.

The outermost shell — Shell 3 (M shell) — contains 2 valence electrons. In a Bohr diagram these appear as dots evenly spaced on the outermost ring, and they are the electrons most accessible to neighboring atoms. Removing the first of these requires 7.646 eV of energy — Magnesium's first ionization energy. As a Period 3 element, Magnesium's valence electrons are farther from the nucleus than those of Period 2 elements, experiencing greater shielding from inner electrons and requiring less energy to remove.

Two electrons on the outermost ring of Magnesium's Bohr model represent a compact, manageable electron pair that is readily surrendered in reactions — explaining the characteristic 2+ oxidation state of alkaline earth metals.

Mg12
Shell 1 (K)
2/ 2
Shell 2 (L)
8/ 8
Shell 3 (M)Valence
2/ 18
🔵 View Full Animated Bohr Model →

Section 3 — SPDF Orbital Diagram

Magnesium SPDF Orbital Analysis

The SPDF orbital model describes Magnesium's electrons not as planetary orbits but as three-dimensional probability clouds — each orbital a region of space where an electron is most likely to be found. Magnesium's 12 electrons occupy 4 distinct subshells: <strong>1s² 2s² 2p⁶ 3s²</strong>, governed by three quantum mechanical rules.

<strong>The Pauli Exclusion Principle</strong> ensures no two electrons in Magnesium share the same four quantum numbers (n, l, m_l, m_s). This is why the 1s orbital holds only 2 electrons, the full p-subshell holds 6, d holds 10, and f holds 14. Without this rule, all 12 electrons would collapse into the 1s orbital. <strong>For Magnesium's s-electrons, only two quantum states exist per subshell (spin up ↑ and spin down ↓), so Hund's Rule has minimal impact — both electrons in an s-orbital must pair with opposite spins per the Pauli Exclusion Principle.</strong>

Following standard orbital filling, Magnesium fills orbitals in the sequence: 1s → 2s → 2p → 3s → 3p → 4s → 3d → 4p → 5s → 4d → 5p → 6s → 4f → 5d → 6p → 7s → 5f → 6d → 7p. The final electron enters the <strong>3s²</strong> subshell, making Magnesium a s-block element with 2 valence electrons in Group 2.

The outermost electrons — <strong>3s²</strong> — are Magnesium's chemical agents. Understanding the 3s² occupancy — how many electrons, whether paired or unpaired, the orbital shape involved — is the foundation for predicting Magnesium's bonding geometry, oxidation behavior, and compound formation.

S

s-orbital

Spherical

max 2 e⁻

P

p-orbital

Dumbbell

max 6 e⁻

D

d-orbital

Multi-lobed

max 10 e⁻

F

f-orbital

Complex

max 14 e⁻

⚛️ View Full SPDF Orbital Diagram →

Section 4 — Valence Electrons

How Many Valence Electrons Does Magnesium Have?

2

valence electrons

Element: Magnesium (Mg)

Atomic Number: 12

Group: 2 | Period: 3

Outer Shell: n=3

Valence Config: 3s²

<strong>Magnesium has 2 valence electrons</strong> — the electrons in its highest-occupied energy shell (n=3) that are accessible for chemical reactions. This is determined directly from its electron configuration <strong>1s² 2s² 2p⁶ 3s²</strong>: looking at all electrons at n=3 gives 2, which matches its Group 2 position on the periodic table.

A valence count of two — enabling stable divalency in alkaline earth metals, both electrons surrendered in ionic compounds. These 2 electrons participate in forming covalent or ionic bonds by sharing or transferring electrons with bonding partners.

Magnesium's oxidation states of <strong>2</strong> are direct expressions of its 2 valence electrons. The maximum positive state (+2) reflects loss or sharing of valence electrons. Mastery of Magnesium's valence electron count is therefore the master key to predicting its entire reaction chemistry.

Section 5 — Chemical Behavior

Magnesium Reactivity & Chemical Behavior

Magnesium's chemical reactivity is shaped by three interlocking properties: electronegativity (1.31 Pauling), first ionization energy (7.646 eV), and electron affinity (0 eV). Its electronegativity is low-to-moderate (1.31) — predominantly metallic character, electropositive tendency. Magnesium donates electrons to partners rather than accepting them — the hallmark of electropositive metals.

The first ionization energy of 7.646 eV sits in the moderate range, allowing some ionic character in the right partner combinations.

Magnesium reacts predictably with water, acids, and nonmetals by surrendering its two valence electrons, forming ionic or moderately polar compounds.

Electronegativity

1.31

(Pauling)

Ionization Energy

7.646

eV

Electron Affinity

0

eV

Section 6 — Real-World Applications

Magnesium Real-World Applications

Magnesium's distinctive atomic structure — 2 valence electrons, s-block chemistry, and the electrochemical properties flowing from its configuration — translate directly into an array of real-world applications. Key uses include: Chlorophyll (Photosynthesis), Aerospace Structural Alloys, Fireworks & Flares, Magnesium Supplements.

A lightweight, shiny alkaline earth metal that burns with a dazzling white flame so bright it cannot be extinguished with water. Magnesium is the ninth most abundant element in the universe and the eighth most abundant in Earth's crust. Critically, magnesium is at the center of every chlorophyll molecule, making it absolutely essential for plant photosynthesis and thus all food chains on Earth.

Top Uses of Magnesium

Chlorophyll (Photosynthesis)Aerospace Structural AlloysFireworks & FlaresMagnesium SupplementsDie-Cast Automotive Parts

Its s-block character — high reactivity from a loosely held valence electron or pair — makes Magnesium valuable wherever strong reducing character, high-energy reactions, or ionic compound formation is needed. Beyond its primary applications, Magnesium also finds use in: Die-Cast Automotive Parts.

Why Magnesium Matters (Real-World Insight)

🔬 Element Comparison

Magnesium vs Aluminum — Key Differences

Although Magnesium (Z=12) and Aluminum (Z=13) are adjacent on the periodic table, they behave very differently. Magnesium has 2 valence electrons vs Aluminum's 3. Their electronegativity gap is 0.30 — a critical factor in predicting bond polarity when the two interact.

Section 7 — Periodic Trends

Magnesium vs Neighboring Elements

Placing Magnesium between Sodium (Z=11) and Aluminum (Z=13) reveals the incremental property changes that make the periodic table a predictive tool.

Sodium → Magnesium: adding one proton and one electron increases nuclear charge by 1. Valence electrons shift from 1 to 2 (Group 1 → Group 2). Electronegativity: 0.93 → 1.31 | Ionization energy: 5.139 → 7.646 eV. Atomic radius decreases from 190 pm to 145 pm, consistent with increasing nuclear pull across a period.

Magnesium → Aluminum: the additional proton and electron in Aluminum changes the valence electron count from 2 to 3, crossing from Group 2 to Group 13. This boundary also marks a categorical transition from Alkaline Earth Metal to Post-Transition Metal. These comparisons confirm that Magnesium sits at a well-defined chemical inflection point in the periodic table.

PropertySodiumMagnesiumAluminum
Atomic Number (Z)111213
Valence Electrons123
Electronegativity0.931.311.61
Ionization Energy (eV)5.1397.6465.986
Atomic Radius (pm)190145118
CategoryAlkali MetalAlkaline Earth MetalPost-Transition Metal

Section 8

Frequently Asked Questions

Q. How many electrons does Magnesium have?

Magnesium has 12 electrons, matching its atomic number. In a neutral atom, these are balanced by 12 protons in the nucleus.

Q. What is the shell structure of Magnesium?

The electron shell distribution for Magnesium is 2, 8, 2. This shows how all 12 electrons are arranged across 3 principal energy levels.

Q. How many valence electrons does Magnesium have?

Magnesium has 2 valence electrons in its outermost shell. These are responsible for its chemical bonding and placement in Group 2.

Q. Why does Magnesium have 2 valence electrons?

It sits in Group 2 of the periodic table. Elements in the same group share the same number of outer-shell electrons, leading to similar chemical properties.

Q. Does Magnesium follow the octet rule?

Magnesium seeks to lose electrons to reach a stable configuration of 8.

Editorial Methodology & Data Sources

This page is programmatically generated using verified atomic data drawn from the NIST Atomic Spectra Database, PubChem Periodic Table, and IUPAC Recommendations. All electron configurations, shell distributions, ionization energies, electronegativities, and oxidation states are scientifically verified values. No data has been fabricated or approximated beyond standard rounding conventions. Last reviewed: April 2026. Author: Emmanuel TUYISHIMIRE (Toni), Principal Software Engineer, Toni Tech Solution.

Emmanuel TUYISHIMIRE (Toni) — Principal Software Engineer, Toni Tech Solution
Technical AuthorFact CheckedLast Reviewed: May 2026

By Emmanuel TUYISHIMIRE · May 2026 · Last Reviewed May 2026

Emmanuel TUYISHIMIRE (Toni)

Principal Software Engineer & STEM Educator · Toni Tech Solution · Kigali, Rwanda

Toni cross-references every data value on this site against at least three authoritative sources: PubChem, NIST Chemistry WebBook, and the Royal Society of Chemistry. When sources conflict, all three are cited and the discrepancy is explained. Read the full methodology →

Data Sources & References

All numerical values on this page are sourced from and cross-referenced against the following authoritative databases: