MagnesiumElectron Configuration, Bohr Model, Valence Electrons & Orbital Diagram
Quick Answer
Magnesium (Mg) has 2 valence electrons. Electron configuration: 1s² 2s² 2p⁶ 3s². Bohr model shells: 2-8-2. Group 2 | Period 3 | S-block.
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
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 1s² 2s² 2p⁶ 3s². 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 [Ne] 3s² 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): 2 electrons; L-shell (n=2): 8 electrons; M-shell (n=3): 2 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.
| Subshell | Electrons | Role | Orbital Type |
|---|---|---|---|
| 1s² | ? | Core | s-orbital |
| 2s² | ? | Core | s-orbital |
| 2p⁶ | ? | Core | p-orbital |
| 3s² | ? | VALENCE | s-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: Shell 1 (K): 2 electrons / capacity 2 — completely filled Shell 2 (L): 8 electrons / capacity 8 — completely filled Shell 3 (M): 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.
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: 1s² 2s² 2p⁶ 3s², governed by three quantum mechanical rules.
The Pauli Exclusion Principle 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. 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.
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 3s² subshell, making Magnesium a s-block element with 2 valence electrons in Group 2.
The outermost electrons — 3s² — 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⁻
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²
Magnesium has 2 valence electrons — the electrons in its highest-occupied energy shell (n=3) that are accessible for chemical reactions. This is determined directly from its electron configuration 1s² 2s² 2p⁶ 3s²: 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 2 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
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.
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.
| Property | Sodium | Magnesium | Aluminum | |
|---|---|---|---|---|
| Atomic Number (Z) | 11 | 12 | 13 | |
| Valence Electrons | 1 | 2 | 3 | |
| Electronegativity | 0.93 | 1.31 | 1.61 | |
| Ionization Energy (eV) | 5.139 | 7.646 | 5.986 | |
| Atomic Radius (pm) | 190 | 145 | 118 | |
| Category | Alkali Metal | Alkaline Earth Metal | Post-Transition Metal | |
Section 8
Frequently Asked Questions — Magnesium
How many valence electrons does Magnesium have?▼
Magnesium (Mg, Z=12) has 2 valence electrons. Its electron configuration 1s² 2s² 2p⁶ 3s² places 2 electrons in the outermost shell (n=3). As a Group 2 element, this matches the standard group-number rule for main-group elements.
What is the electron configuration of Magnesium?▼
The full electron configuration of Magnesium is 1s² 2s² 2p⁶ 3s². Noble gas shorthand: [Ne] 3s². Electrons fill 3 shells: Shell 1: 2, Shell 2: 8, Shell 3: 2.
What is the Bohr model of Magnesium?▼
The Bohr model of Magnesium shows 12 electrons in 3 concentric rings around a nucleus of 12 protons. Shell distribution: 2-8-2. The outermost ring carries 2 valence electrons.
Is Magnesium reactive?▼
Magnesium is moderately reactive. It loses two valence electrons in reactions with acids, oxygen, and some nonmetals.
What block is Magnesium in on the periodic table?▼
Magnesium is in the S-block. Its valence electrons occupy s-type orbitals: spherical s-orbitals (max 2 e⁻ per subshell). Group 2, Period 3.
What are Magnesium's oxidation states?▼
Magnesium commonly exhibits oxidation states of 2. Magnesium primarily loses electrons to form cations.
What group and period is Magnesium in?▼
Magnesium is in Group 2, Period 3. Its period number (3) equals the principal quantum number of its valence shell. Its group number indicates 2 valence electrons.
How do you determine the valence electrons of Magnesium from its configuration?▼
From the configuration 1s² 2s² 2p⁶ 3s²: (1) Identify the highest principal quantum number: n=3. (2) Sum all electrons at n=3: 3s². (3) Total = 2 valence electrons. Cross-check: Group 2 → 2 valence electrons.
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: Toni Tuyishimire, Principal Software Engineer, Toni Tech Solution.

Toni Tuyishimire
Toni is specialized in high-performance computational tools and complex STEM visualizations. Through Toni Tech Solution, he architects scientifically accurate, deterministic software systems designed to educate and empower global digital audiences.
