molecalculator

Moles & Molar Mass

Electron Configuration Triangle Explained

Calculator No. 01-11155 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

The electron configuration triangle is a memory aid for the order in which atomic orbitals are filled according to the Aufbau principle. You draw diagonal lines through a grid of orbital subshells (1s, 2s, 2p, 3s, 3p, 3d, etc.) and read them from top to bottom to get the filling sequence: 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, and so on. This article explains how the triangle works, why it exists, and where it can mislead you.

Formula

The triangle encodes the Madelung rule (also called the Aufbau principle or the n + l rule): orbitals are filled in order of increasing n + l, where n is the principal quantum number and l is the azimuthal quantum number (0 for s, 1 for p, 2 for d, 3 for f). When two orbitals have the same n + l, the one with the lower n fills first.

For example, the 4s orbital has n = 4, l = 0, so n + l = 4. The 3d orbital has n = 3, l = 2, so n + l = 5. Since 4 < 5, 4s fills before 3d. The triangle is just a visual way to list all subshells in order of increasing n + l.

How to Draw and Use the Triangle

Write the subshells in rows by principal quantum number:

  • Row 1: 1s
  • Row 2: 2s, 2p
  • Row 3: 3s, 3p, 3d
  • Row 4: 4s, 4p, 4d, 4f
  • Row 5: 5s, 5p, 5d, 5f
  • Row 6: 6s, 6p, 6d
  • Row 7: 7s, 7p

Then draw diagonal arrows from the top right down to the bottom left. Each arrow passes through one subshell from each row. Reading the arrows from top to bottom gives the filling order:

  1. 1s
  2. 2s
  3. 2p, 3s
  4. 3p, 4s
  5. 3d, 4p, 5s
  6. 4d, 5p, 6s
  7. 4f, 5d, 6p, 7s
  8. 5f, 6d, 7p

Each s subshell holds 2 electrons, each p holds 6, each d holds 10, and each f holds 14. To write a configuration, fill subshells in this order until you reach the atomic number.

Worked Example

Take iron, atomic number 26 (the default in the calculator). Using the triangle order:

  • 1s: 2 electrons (total 2)
  • 2s: 2 (total 4)
  • 2p: 6 (total 10)
  • 3s: 2 (total 12)
  • 3p: 6 (total 18)
  • 4s: 2 (total 20)
  • 3d: need 6 more electrons to reach 26, so 3d6

The full configuration is 1s2 2s2 2p6 3s2 3p6 4s2 3d6. The calculator gives the same result. The noble-gas core notation is [Ar] 4s2 3d6 because argon has 18 electrons.

Assumptions

  • The Madelung rule is an approximation; it works for the ground states of most neutral atoms but fails for some transition metals and heavier elements.
  • The triangle assumes orbitals fill in a fixed order regardless of the element. In reality, electron–electron repulsion can change the order (e.g., chromium and copper).
  • For ions, the order of filling is not the same as the order of removal; electrons are removed from the highest n orbital first (e.g., Fe2+ loses 4s electrons before 3d).

When the Triangle Works and When It Fails

The triangle works perfectly for the first 18 elements (through argon). From potassium (Z=19) onward, it correctly predicts the 4s-before-3d order. However, it fails for several transition metals:

  • Chromium (Z=24): expected [Ar] 4s2 3d4, actual [Ar] 4s1 3d5 (half-filled d subshell is more stable)
  • Copper (Z=29): expected [Ar] 4s2 3d9, actual [Ar] 4s1 3d10 (filled d subshell is more stable)
  • Niobium (Z=41), molybdenum (Z=42), and several lanthanides also deviate.

The reason is that the energy difference between 4s and 3d is small, and electron exchange energy (Hund’s rule) can tip the balance. The triangle is a useful approximation, not a law of nature.

Common Mistakes

  • Writing 3d before 4s in the configuration text. The correct order lists subshells by increasing n (e.g., 4s before 3d), even though 3d fills after 4s.
  • Forgetting that the triangle gives the filling order, not the order of ionization. When forming cations, remove electrons from the highest n first (e.g., Fe → Fe2+ loses 4s2, not 3d6).
  • Overfilling subshells. Each subshell has a maximum: s=2, p=6, d=10, f=14. Adding more electrons than the maximum is a common error.
  • Using the triangle for ions. The triangle applies to neutral atoms; for ions, you must account for the loss or gain of electrons from the outermost shell.

Alternatives to the Triangle

If you find the triangle confusing, you can use the periodic table itself: each period corresponds to a principal quantum number, and the block (s, p, d, f) tells you the subshell. For example, the fourth period starts with 4s (groups 1–2), then 3d (groups 3–12), then 4p (groups 13–18). This method is more intuitive and avoids the diagonal-line drawing.

Another alternative is the n + l rule directly: make a table of n and l for each subshell, compute n + l, sort by that value, and break ties by lower n. This is the mathematical basis of the triangle and is more precise.

Frequently Asked Questions

Why does 4s fill before 3d? Because the 4s orbital has a lower energy than 3d in neutral atoms, as predicted by the n + l rule (4+0=4 vs 3+2=5). This is due to the penetration effect: 4s electrons are more likely to be found near the nucleus, lowering their energy.

Is the electron configuration triangle the same as the Aufbau principle? Yes, the triangle is a visual representation of the Aufbau principle (which means “building up” in German). The Aufbau principle states that electrons fill orbitals from lowest to highest energy, and the triangle gives the order.

Why does chromium have 4s1 3d5 instead of 4s2 3d4? Because a half-filled d subshell (5 electrons with parallel spins) is unusually stable due to exchange energy and reduced electron–electron repulsion. This stability outweighs the small energy cost of promoting an electron from 4s to 3d.

Does the triangle work for ions? No. The triangle gives the order for filling orbitals in neutral atoms. For cations, electrons are removed from the orbital with the highest principal quantum number first, so Fe2+ is [Ar] 3d6, not [Ar] 4s2 3d4.

How do I use the triangle for elements beyond 118? The triangle can be extended to 8s, 5g, etc., but superheavy elements are not experimentally confirmed, and relativistic effects alter orbital energies significantly. For practical chemistry, you only need up to 7p.

What is the maximum number of electrons in the 4f subshell? An f subshell holds 14 electrons (2 × (2l+1) with l=3). The 4f subshell is filled in the lanthanides, starting with cerium (Z=58) and ending with lutetium (Z=71).

Related

Formula used
in z | Atomic number (Z) | - | 26 | 1 | 118
sel mode | Configuration type | Full=full, Noble gas core=noble
out config | Electron configuration | - | full ? (fullConfig(z)) : (nobleConfig(z)) | 0
out count | Total electrons | - | z | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →