12 Mg 24.305

Magnesium

Alkaline Earth Metal

Magnesium (Mg) is a chemical element with atomic number 12, classified as a alkaline earth metal. At room temperature it is a solid. It was discovered in 1755 by Joseph Black.

Share to Google Classroom (opens in a new tab)

Magnesium quick facts

Is magnesium a metal, nonmetal or metalloid?

Magnesium is a metal. It is classified as an alkaline earth metal.

What does Mg stand for on the periodic table?

Mg is the chemical symbol for magnesium, the element with atomic number 12.

What state is magnesium at room temperature?

Magnesium is a solid at room temperature (25 °C): it melts at 650 °C and boils at 1090 °C.

What group, period and block is magnesium in?

Magnesium is in group 2 and period 3 of the periodic table, in the s-block.

What is the atomic number and atomic mass of magnesium?

Magnesium has atomic number 12, so every magnesium atom has 12 protons, and its standard atomic mass is 24.305 u.

What is the electron configuration of magnesium?

The electron configuration of magnesium is [Ne] 3s².

What is magnesium used for?

Common uses of magnesium: lightweight alloys, fireworks, antacids, photography flashes.

Properties

Atomic number
12
Atomic mass
24.305 u
Category
Alkaline Earth Metal
Group
2
Period
3
Block
s-block
Electron configuration
[Ne] 3s²
Phase at STP
Solid
Density
1.738 g/cm³
Melting point
923 K (649.9 °C)
Boiling point
1363 K (1089.8 °C)
Electronegativity
1.31
Atomic radius
145 pm
Ionization energy
7.646 eV
Discovery
1755 · Joseph Black

How magnesium compares with its neighbors

Magnesium, an alkaline earth metal, is in group 2, period 3 (s-block), between sodium and aluminum. Beryllium sits above it and calcium below it. Magnesium is a solid at 25 °C and stays solid until 650 °C, 625 degrees above room temperature.

Melting and boiling point

Magnesium melts at 650 °C (923 K), the 35th lowest of the 94 elements with a measured value. Magnesium’s melting point is lower than both beryllium’s (1,287 °C) above it and calcium’s (842 °C) below it, so group 2 dips here. In period 3 it lies between sodium’s melting point (97.8 °C) and aluminum’s (660 °C) on either side. Its melting point is the lowest in group 2 and the 3rd highest of the 8 in period 3. It boils at 1,090 °C (1,363 K), the 27th lowest of the 95 elements with a measured value. Magnesium’s boiling point is lower than both beryllium’s (2,469 °C) above it and calcium’s (1,484 °C) below it, so group 2 dips here. From sodium (883 °C) just before it to aluminum (2,519 °C) just after it, the boiling point climbs across period 3. Its boiling point is the lowest in group 2 and the 3rd highest of the 8 in period 3. Between melting and boiling, magnesium stays liquid over a span of 440 degrees.

Magnesium on the melting point chart →

Density

Magnesium has a density of 1.738 g/cm³, the 17th lowest of the 97 elements with a measured value. Down group 2, the density drops from beryllium (1.85 g/cm³) through magnesium to calcium (1.54 g/cm³). In period 3 it lies between sodium’s density (0.971 g/cm³) and aluminum’s (2.698 g/cm³) on either side. Its density is the 2nd lowest of the 6 in group 2 and the 4th lowest of the 8 in period 3.

Magnesium on the density chart →

Electronegativity

On the Pauling scale magnesium has an electronegativity of 1.31, the 35th lowest of the 94 elements with a measured value. In group 2, magnesium’s electronegativity lies between beryllium’s (1.57) above it and calcium’s (1) below it, in line with the usual fall in electronegativity down a group. From sodium (0.93) just before it to aluminum (1.61) just after it, the electronegativity climbs across period 3, as electronegativity usually rises across a period. Its electronegativity is the 2nd highest of the 6 in group 2 and the 2nd lowest of the 7 measured in period 3.

Magnesium on the electronegativity chart →

Atomic radius

A magnesium atom has a calculated radius of 145 pm, the 30th smallest of the 97 elements with a measured value. In group 2, magnesium’s atomic radius lies between beryllium’s (112 pm) above it and calcium’s (194 pm) below it, in line with atoms growing down a group as electron shells are added. From sodium (190 pm) just before it to aluminum (118 pm) just after it, the atomic radius drops across period 3, as atoms usually shrink across a period while the nuclear charge grows. Its atomic radius is the 2nd smallest of the 6 in group 2 and the 2nd largest of the 8 in period 3.

Magnesium on the atomic radius chart →

Ionization energy

Removing the outermost electron from a magnesium atom takes 7.646 eV, the 40th highest of the 103 elements with a measured value. Down group 2, the first ionization energy drops from beryllium (9.323 eV) through magnesium to calcium (6.113 eV), in line with the usual fall down a group, as the outer electron sits further from the nucleus. In period 3 it is higher than both sodium just before it (5.139 eV) and aluminum just after it (5.986 eV). Its first ionization energy is the 2nd highest of the 6 in group 2 and the 3rd lowest of the 8 in period 3.

Magnesium on the ionization energy chart →

Discovery in context

When magnesium was identified in 1755, 114 years before Dmitri Mendeleev published his periodic table in 1869, 17 other elements were already known. Other elements first identified in the 1750s: nickel (1751) and bismuth (1753). For comparison in group 2: beryllium above it (1798) and calcium below it (1808).

Atomic structure

Bohr model of magnesium

Magnesium atom: 12 protons, about 12 neutrons and 12 electrons in 3 shells (2, 8, 2). Drag the 3D model to turn it and watch the electrons orbit, or switch to Orbitals to see the real shapes of magnesium's outer orbitals.

Bohr model of magnesium (Mg): Magnesium has 12 protons and about 12 neutrons in its nucleus, and 12 electrons in 3 shells: 2, 8, 2.

Each ring is an electron shell and each dot an electron; the number on a ring is how many electrons that shell holds. Nucleus not to scale.

Use the arrow keys to rotate the model, plus and minus to zoom, space to pause the electrons and R to reset the view.

How many protons, neutrons and electrons does magnesium have?

Magnesium has atomic number 12, so every magnesium atom has 12 protons in its nucleus. A neutral magnesium atom has the same number of electrons, 12, arranged in 3 shells: 2, 8, 2.

Magnesium's average atomic mass is 24.305 u, which rounds to 24. Subtracting the 12 protons leaves about 12 neutrons in a typical magnesium atom. Atoms of the same element can have different numbers of neutrons (isotopes), so this is an approximate count for a typical atom, not an exact one.

Magnesium's electron shells and valence electrons

Magnesium has 2 valence electrons in its outer shell (shell 3). It tends to lose both of them, forming ions with a 2+ charge.

Magnesium electron configuration by subshell

In the order the subshells fill. Written out shell by shell, the full configuration is 1s² 2s² 2p⁶ 3s², or [Ne] 3s² for short.

Electrons in each subshell of magnesium, in filling order
Subshell Shell Electrons Holds up to
1s2 1 2 2
2s2 2 2 2
2p6 2 6 6
3s2 3 2 2
Total 12

The Bohr model is a simplified picture: electrons do not really travel around the nucleus in neat circles. Quantum mechanics describes them as clouds of probability called orbitals, which is what the Orbitals view shows. Explore any other element in the 3D atom viewer.

Common uses

Lightweight alloys, fireworks, antacids, photography flashes

Did you know?

Burns with brilliant white light and is essential for chlorophyll in plants.

Compare magnesium with other elements

Comparison guides that explain the differences:

Side by side with its neighbors on the table:

Explore magnesium in the tools

Compounds you can make with magnesium

Magnesium appears in 2 compounds in our periodic table sandbox. Each one is a real substance with its true chemical formula — combine the right elements in the right ratio below to discover it.

  • MgO

    Magnesium Oxide

    A white mineral used in antacids, supplements, and refractory bricks.

  • MgSO4

    Magnesium Sulfate (Epsom Salt)

    Epsom salt, dissolved in baths to soothe sore muscles and used in gardening.

Try it yourself: the magnesium sandbox

Reaction Lab

1 / 24 atoms