Instructional videos are coming to Albert.Join the waitlist
Tools
Practice
Tools

Electron Configuration Calculator (with Orbital Diagram)

This free electron configuration calculator gives chemistry and AP® Chemistry students the full and noble-gas configuration of any element or ion, an orbital diagram with arrows, and the number of unpaired and valence electrons, with every step explained.

Loading the electron configuration calculator…

How to use the Electron Configuration Calculator

  1. Enter an element. Type its symbol (Fe), name (iron) or atomic number (26).
  2. Add a charge for an ion. Type it in the charge box, like 3+ or 2−, or straight into the element box, like Fe3+ or O2-.
  3. Read the configuration. You’ll see the noble-gas shorthand first, the same configuration in shell order beneath it, and the full configuration below.
  4. Check the orbital diagram. Each box is an orbital and each arrow an electron. Tick the box to show the inner core too. The steps explain the filling order, any exception and how the ion charge changes things.

Worked example

Write the electron configurations of iron (Fe) and the Fe3+ ion, and find how many unpaired electrons each has.

  1. Count electrons. Iron’s atomic number is 26, so a neutral atom has 26 electrons.
  2. Fill in Aufbau order: 1s² 2s² 2p⁶ 3s² 3p⁶ 4s² 3d⁶. That adds up to 26.
  3. Shorten it. The first 18 electrons match argon, so Fe is [Ar] 4s² 3d⁶.
  4. Form the ion. Fe3+ has lost 3 electrons. Electrons leave from the highest n first, so both 4s electrons go before any 3d electron: Fe3+ is [Ar] 3d⁵.
  5. Count unpaired electrons. In 3d⁶, Hund’s rule puts one electron in each of the five d orbitals and pairs the sixth, leaving 4 unpaired. In 3d⁵, all five are unpaired.

Both are paramagnetic. Use the Fe and Fe³⁺ examples in the calculator to see the orbital diagrams.

Shells, subshells and orbitals

Electrons in an atom are organized in three levels:

  • Shells (energy levels) are numbered n = 1, 2, 3 and so on. Higher n means farther from the nucleus and higher energy.
  • Subshells within each shell are labeled s, p, d and f. Shell 1 has only s, shell 2 has s and p, shell 3 adds d, and shell 4 adds f.
  • Orbitals are the individual regions that each hold up to 2 electrons. An s subshell has 1 orbital, p has 3, d has 5 and f has 7.
Subshell Orbitals Max electrons
s 1 2
p 3 6
d 5 10
f 7 14

The three filling rules

  • Aufbau principle: electrons fill the lowest-energy subshell available first. The order is 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p. Notice that 4s fills before 3d. You can read this order straight off the periodic table, block by block, row by row.
  • Pauli exclusion principle: an orbital holds at most two electrons, and they must have opposite spins, drawn as ↑↓.
  • Hund’s rule: within a subshell, electrons go one per orbital, with parallel spins, before any pairing starts. That’s why nitrogen’s 2p³ has three unpaired electrons instead of a pair and a single.

Reading the order off the periodic table

You don’t need to memorize the filling order. The periodic table is built from it. The two left columns are the s block, the six right columns are the p block, the ten middle columns are the d block, and the two rows at the bottom are the f block. Read across each row from left to right, and the subshell you’re in is the one being filled. Row 4 runs 4s, then 3d (the d block lags one shell behind), then 4p. To write a configuration, start at hydrogen and walk through the table until you reach your element.

Noble-gas shorthand

Writing every subshell gets long fast. Noble-gas notation replaces the inner electrons with the symbol of the noble gas from the row above, in brackets. Sodium, 1s² 2s² 2p⁶ 3s¹, becomes [Ne] 3s¹, because neon is 1s² 2s² 2p⁶. What’s left after the brackets are mostly the electrons that take part in bonding.

You’ll see transition metals written two ways: in filling order, like [Ar] 4s² 3d⁶, or in shell order, like [Ar] 3d⁶ 4s². Both describe the same atom. The calculator shows both.

Exceptions: chromium, copper and others

A few elements don’t follow the Aufbau order exactly, because a half-filled or completely filled d subshell is extra stable. The two that come up most often:

  • Chromium: [Ar] 3d⁵ 4s¹, not [Ar] 4s² 3d⁴
  • Copper: [Ar] 3d¹⁰ 4s¹, not [Ar] 4s² 3d⁹

The elements below them behave similarly. Molybdenum and silver follow the same pattern, gold is [Xe] 4f¹⁴ 5d¹⁰ 6s¹, and palladium goes all the way to [Kr] 4d¹⁰ with no 5s electrons. Some lanthanides and actinides have exceptions too. The calculator uses the measured ground states from NIST for all of them.

Configurations of ions

For an anion, add electrons to the next open subshell: O2− has 10 electrons, 1s² 2s² 2p⁶, the same as neon. For a cation, remove electrons from the subshell with the highest n first. For main-group elements, that’s the same as taking back the last ones added. For transition metals it isn’t: the 4s electrons leave before the 3d electrons, even though 4s filled first. Zinc, [Ar] 4s² 3d¹⁰, becomes Zn2+, [Ar] 3d¹⁰. A common mistake is to write Fe2+ as [Ar] 4s² 3d⁴. It’s [Ar] 3d⁶.

Valence electrons

Valence electrons are the ones that take part in bonding. For main-group elements, they’re the electrons in the outermost shell: nitrogen, [He] 2s² 2p³, has 5, and chlorine, [Ne] 3s² 3p⁵, has 7. That matches the last digit of the group number in groups 13 to 18. For transition metals, chemists usually count the outer s electrons together with the d electrons still filling, so iron, [Ar] 4s² 3d⁶, has 8. The calculator counts valence electrons for neutral atoms this way.

Unpaired electrons and magnetism

Atoms and ions with unpaired electrons are paramagnetic: they’re weakly pulled into a magnetic field. If every electron is paired, the species is diamagnetic and is weakly pushed out. Counting unpaired electrons from the orbital diagram tells you which: Fe3+, with five, is strongly paramagnetic, while Zn2+, with none, is diamagnetic.

Electron configurations on the AP® Chemistry exam

Electron configuration is part of Topic 1.5, Atomic Structure and Electron Configuration, in Unit 1. It connects to photoelectron spectroscopy in Topic 1.6 and to the periodic trends in Topic 1.7. Expect to write configurations for atoms and ions, explain why 4s electrons leave first, and use configurations to explain ionization energy and ion charges. For more practice, see Electron Configuration: Chemistry Review and Atomic Structure and Electron Configuration: AP® Chemistry Review. The AP® Chemistry score calculator shows how your section scores turn into a 1 to 5.

FAQ

How do you write an electron configuration?

Count the electrons (the atomic number for a neutral atom), then fill subshells in Aufbau order: 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p and so on, with up to 2 electrons in s, 6 in p, 10 in d and 14 in f. Iron’s 26 electrons give 1s² 2s² 2p⁶ 3s² 3p⁶ 4s² 3d⁶, or [Ar] 4s² 3d⁶.

Why are chromium and copper exceptions?

A half-filled or completely filled d subshell is especially stable. Chromium is [Ar] 3d⁵ 4s¹ instead of 4s² 3d⁴, and copper is [Ar] 3d¹⁰ 4s¹ instead of 4s² 3d⁹: one 4s electron moves into 3d. Molybdenum, silver and gold follow the same pattern.

Which electrons do transition metals lose first?

The ones with the highest n, so 4s electrons leave before 3d electrons, even though 4s fills first. Iron is [Ar] 4s² 3d⁶, so Fe²⁺ is [Ar] 3d⁶ and Fe³⁺ is [Ar] 3d⁵.

What is noble-gas notation?

A shorthand that replaces the inner electrons with the symbol of the noble gas before the element. Sodium, 1s² 2s² 2p⁶ 3s¹, becomes [Ne] 3s¹, because neon’s configuration is 1s² 2s² 2p⁶.

How do you find the number of unpaired electrons?

Draw the orbital diagram using Hund’s rule: in a subshell, put one electron in each orbital before pairing any. Nitrogen’s 2p³ has three unpaired electrons, and iron’s 3d⁶ has four. Atoms or ions with unpaired electrons are paramagnetic.