Electron Configuration Calculator

Type an element's symbol, name or atomic number for its full and shorthand electron configuration and outer-shell electrons, or switch to the formal charge calculator.

Runs in your browser; nothing you type is sent anywhere. · Updated

How to use the calculator

Type a symbol (Fe), a name (iron) or an atomic number (26). You get the noble-gas shorthand, the full configuration written in shell order, and the number of electrons in the outer shell. Switch to Formal charge to check an atom in a Lewis structure.

How electron configurations are filled

Electrons fill subshells from lowest to highest energy (the Aufbau principle), following the diagonal rule:

1s → 2s → 2p → 3s → 3p → 4s → 3d → 4p → 5s → 4d → 5p → 6s → 4f → 5d → 6p → 7s → 5f → 6d → 7p

Each s subshell holds 2 electrons, p holds 6, d holds 10 and f holds 14.

Example: iron (26 electrons) fills 1s² 2s² 2p⁶ 3s² 3p⁶ (18, the argon core), then 4s² and 3d⁶. Shorthand: [Ar] 4s² 3d⁶.

Electron configurations of common elements

Element Z Shorthand Outer-shell electrons
Hydrogen 1 1s¹ 1
Carbon 6 [He] 2s² 2p² 4
Nitrogen 7 [He] 2s² 2p³ 5
Oxygen 8 [He] 2s² 2p⁴ 6
Sodium 11 [Ne] 3s¹ 1
Chlorine 17 [Ne] 3s² 3p⁵ 7
Calcium 20 [Ar] 4s² 2
Iron 26 [Ar] 4s² 3d⁶ 2
Copper 29 [Ar] 4s¹ 3d¹⁰ 1
Bromine 35 [Ar] 4s² 3d¹⁰ 4p⁵ 7
Silver 47 [Kr] 5s¹ 4d¹⁰ 1
Gold 79 [Xe] 6s¹ 4f¹⁴ 5d¹⁰ 1

Exceptions to the Aufbau order

A half-filled or completely filled d subshell is extra stable, so some elements move an s electron into d:

  • Chromium: [Ar] 4s¹ 3d⁵, not 4s² 3d⁴
  • Copper: [Ar] 4s¹ 3d¹⁰, not 4s² 3d⁹
  • Molybdenum, silver, gold follow the same pattern; palladium is [Kr] 4d¹⁰ with no 5s electrons at all.

The calculator uses the experimentally observed configurations for these.

Valence electrons

For main-group elements, valence electrons are the electrons in the outermost shell, and match the group: group 1 has 1, group 2 has 2, groups 13–18 have 3–8 (helium has 2). Transition metals can also use their d electrons in bonding, so their "valence electrons" depend on the compound.

Formal charge

Formal charge = valence electrons − nonbonding electrons − ½ × bonding electrons

Example: the oxygen in a C=O double bond has 6 valence electrons, 4 nonbonding (two lone pairs) and 4 bonding: 6 − 4 − 2 = 0. A single-bonded oxygen with three lone pairs (as in the hydroxide ion) is 6 − 6 − 1 = −1.

The best Lewis structure usually puts formal charges as close to zero as possible, with any negative charge on the more electronegative atom.

Frequently asked questions

What is the electron configuration of oxygen?

1s² 2s² 2p⁴, or [He] 2s² 2p⁴. It has 6 valence electrons.

Why is 4s filled before 3d?

In a neutral atom the 4s subshell is slightly lower in energy while filling. When transition metals form ions, though, the 4s electrons are removed first: Fe²⁺ is [Ar] 3d⁶.

How do I write the noble gas shorthand?

Write the previous noble gas in brackets for the core electrons, then the remaining subshells. Sodium: [Ne] 3s¹.

How many valence electrons does carbon have?

Four, in 2s² 2p².