Element Tango

Model of a magnesium atom: 12 protons, 12 neutrons, 12 electrons in 3 shells.

Schematic of the Magnesium-24 nucleus and electron shells
Simplified shell model
Alkaline earth metal

Magnesium Mg

Magnesium (Mg) is element 12, an alkaline earth metal in group 2, period 3.

Scroll for facts
Atomic number
12
Standard atomic weight
24.305
Room-temperature state
Solid
Category
Alkaline earth metal

Protons, neutrons and electrons in magnesium

A neutral magnesium atom has 12 protons and 12 electrons, and Magnesium-24, the most abundant isotope in the CIAAW reference has 12 neutrons.

Start with the mass number 24 on the isotope name and subtract atomic number 12. The result, 12, is the neutron count. The atomic number identifies the element, so another isotope of magnesium keeps the same proton count while the number after its name changes.

For comparison, Magnesium-25 has 13 neutrons. Both isotope numbers describe a nucleus, while 24.305 is the natural-material reference weight shown on the Mg tile.

Magnesium properties

Magnesium is listed as a solid near room temperature.

Its abridged standard atomic weight is 24.305 ± 0.002, from CIAAW. The reference combines isotope masses and abundances in normal materials. The integer on an isotope’s name counts the particles in its nucleus.

The near-atmospheric-pressure model uses the reported melting point of 923 K and boiling point of 1363 K. Temperatures between these reference boundaries correspond to the liquid region of the simple Element Tango model.

The reported density, 1.74 g/cm³, compares mass per volume, while the van der Waals radius of 173 pm compares an effective atomic size. They describe different things and use different units.

Melting point
923 K (649.85 °C)
Boiling point
1363 K (1089.85 °C)
Density
1.74 g/cm³
Electronegativity (Pauling)
1.31
Van der Waals radius
173.0 pm
First ionization energy
7.646236 eV
Electron affinity
Unavailable
Silvery magnesium crystals.
Silvery magnesium crystals.Warut Roonguthai · CC BY-SA 3.0 · Web-sized image

Magnesium valence electrons

Magnesium has 2 valence electrons in 3s².

For the s-block, count the electrons in the outer s subshell. The box for that subshell shows the same count directly.

The highest occupied shell of neutral magnesium, level 3, contains 2 electrons. The shell number groups orbitals by their principal level, while the block rule selects the subshells used for the valence count.

Is magnesium a metal, nonmetal or metalloid?

Magnesium is classified as a metal on this table.

It belongs to the alkaline earth metals. The outer s subshell is filled, and these elements typically form compounds with positive metal ions.

The reference lists the elemental substance as a solid near room temperature. That is a phase description. The alkaline earth metal label describes a family and applies when comparing its position and bonding.

Magnesium electron configuration

The reported ground-state electron configuration of a neutral magnesium atom is [Ne] 3s².

The bracketed symbol [Ne] abbreviates a noble-gas core of 10 electrons. Open the core orbitals to see where those electrons sit in the full configuration.

The boxes show 0 unpaired electrons in this ground-state diagram. Draw single arrows in separate boxes for orbitals of the same subshell before adding opposite-spin partners.

[Ne] 3s2

Full configuration
1s2 2s2 2p6 3s2
Electrons by shell
2 · 8 · 2
Periodic block
s
Outer-shell electrons
2
Orbital box diagram for the neutral atom
  • 3s, 2 electrons, 1 pair and 0 unpaired electrons
Show core orbitals
  • 1s, 2 electrons, 1 pair and 0 unpaired electrons
  • 2s, 2 electrons, 1 pair and 0 unpaired electrons
  • 2p, 6 electrons, 3 pairs and 0 unpaired electrons

Explore orbital box diagrams

Common ions and oxidation states

A common monatomic ion of magnesium is Mg²⁺.

Mg²⁺ has 10 electrons because ionic charge equals protons minus electrons for a single atom.

The surrounding compound determines which charge, if any, is appropriate. In solution, ions often coordinate with water or other molecules.

The PubChem oxidation-state field for magnesium lists +2. Use the compound name or formula to decide which state describes a particular atom.

Compare common ion charges

Isotopes of magnesium

The most abundant isotope of magnesium in typical terrestrial samples is magnesium-24. Every isotope of magnesium has 12 protons.

IsotopeNeutronsRepresentative mole fraction
Mg-2412[0.7888, 0.7905]
Mg-2513[0.09988, 0.10034]
Mg-2614[0.1096, 0.1109]

A mole fraction of 1 means 100%. Brackets show a range across normal materials. Parentheses denote the uncertainty in the last displayed digits.

Discovery and uses

Where it is found

Magnesium is widespread in rocks, but its atoms are tied up in compounds. Magnesite is a source of magnesium carbonate. Dolomite contains both calcium and magnesium, and carnallite is a magnesium-bearing salt. Seawater and natural brines also contain dissolved magnesium compounds and can supply raw material for industry.

Magnesium occurs in living things as well. It sits at the center of chlorophyll molecules, the pigments that help plants use light for photosynthesis. In its 2025 estimates, USGS 2026 ranks China as the largest producer of primary magnesium metal, with Russia next and Brazil and Israel tied after that. These are smelter estimates, separate from figures for magnesium compounds.

What it is used for

Mixing magnesium with aluminum gives manufacturers relatively light alloys for aircraft and cars. Magnesium alloys are also useful in housings where lower weight matters, including some camera bodies and portable electronics. Magnesium can help remove unwanted sulfur during iron and steel processing.

Different compounds of the element have contrasting jobs. Magnesium oxide stands up to high temperatures, so it is used in bricks for furnaces. Magnesium hydroxide is used in some medicines as an antacid, commonly known as milk of magnesia. It is also added to some plastics so they resist fire.

How it was discovered

In 1755, Joseph Black showed that magnesia and lime were different substances even though they came from similar carbonate rocks. Humphry Davy obtained a small amount of metallic magnesium in 1808 using electricity. Antoine Bussy prepared enough of the metal in 1831 to study its properties more closely.

Safety

Finely divided magnesium metal can catch fire readily. It behaves differently from the magnesium compounds in products such as Epsom salts or milk of magnesia.

Related calculation tools

Magnesium has a reported melting point of 923 K.

Convert magnesium's melting point.

Find the molar mass of a compound

Elements near magnesium

The closest elements by atomic number to magnesium (12) are Sodium (Na, 11) and Aluminum (Al, 13).

For a same-column comparison, use group 2. Its elements share a position across different periods. Explore their outer subshells to see recurring patterns, with exceptions such as hydrogen and helium.

Compare magnesium's standard atomic weight of 24.305 with beryllium's value of 9.0122. The numbers describe elemental mass references, and neither value tells you the charge of a particular compound.

Adjacent by atomic number

Other elements in group 2

Frequently asked questions about magnesium

What is the atomic number and symbol of magnesium?
Magnesium has atomic number 12 and the symbol Mg. A neutral atom has 12 electrons.
How many neutrons does Magnesium-24 have?
Magnesium-24 has 12 neutrons. Subtract the atomic number 12 from the mass number 24.
How many valence electrons does magnesium have?
Magnesium has 2 valence electrons in 3s². For the s-block, count the electrons in the outer s subshell. The box for that subshell shows the same count directly.
What charge does magnesium form?
A common monatomic ion of magnesium is Mg²⁺. The PubChem oxidation-state field for magnesium lists +2. Use the compound name or formula to decide which state describes a particular atom.
What is the atomic weight of magnesium?
The CIAAW abridged standard atomic weight is 24.305 ± 0.002.
What is magnesium used for?
Magnesium makes lightweight alloys for vehicles and electronics and helps remove sulfur in metalworking. Magnesium compounds are used in furnace bricks, some antacids and fire-resistant plastics.

Sources

Last checked .

How we choose and check our data