Quantum Numbers Calculator – Rules, Shells and the Electrons of Any Element
Every electron in an atom is described by four quantum numbers. This quantum numbers calculator checks whether a set is allowed and explains every rule it breaks. It also lists all the allowed states of a shell and gives the quantum numbers of any electron of an element or ion, with orbital box diagrams and the radial probability curve of each subshell.
The four quantum numbers and their rules
- Principal, n: 1, 2, 3, … It picks the shell and sets its size.
- Azimuthal, l: whole numbers from
0ton − 1. It picks the subshell shape: 0 = s, 1 = p, 2 = d, 3 = f, then g, h, i, k (j is skipped). - Magnetic, ml: whole numbers from
−lto+l, so a subshell has2l + 1orbitals. - Spin, ms:
+½or−½.
Worked example: is (3, 2, −2, +½) allowed? n = 3 permits l = 0, 1 or 2, so l = 2 (a d subshell) is fine. l = 2 permits ml from −2 to +2, so −2 is fine, and +½ is a valid spin. It is a 3d electron. Now try (2, 2, 3, 1). It breaks three rules: l must be at most 1 when n = 2; ml = 3 needs l ≥ 3, which needs n ≥ 4; and ms can only be ±½. The calculator reports all three, not just the first. You can also check part of a set: n and l alone name a subshell, so 2d, 1p and 3f are impossible, while 4f exists.
Counting orbitals and electrons
A subshell holds 2(2l + 1) electrons: 2 for s, 6 for p, 10 for d and 14 for f. A shell has n² orbitals and holds 2n² electrons. Counting questions follow the same pattern. Within shell n, a given ml appears once in every subshell with l ≥ |ml|, so it labels n − |ml| orbitals. For n = 3 and ml = −1 that is 3p and 3d: 2 orbitals and 4 electrons. Fixing ms as well halves the count. These are capacities; a real atom fills only some of them.
Aufbau, Hund and Pauli
To give each electron of an element its quantum numbers, the tool fills subshells in the Aufbau order (1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, …), with the known exceptions such as chromium and copper. Within a subshell, Hund's rule puts one electron in each orbital before any are paired. The Pauli exclusion principle says no two electrons in an atom share all four numbers, so a filled orbital holds one +½ and one −½ electron. The tool checks this every time: oganesson's 118 electrons give 118 unique sets.
Two electrons get special attention. The last (differentiating) electron is the final one added in filling order. For scandium it is a 3d electron. The outermost electron sits in the shell with the highest n, which for scandium is 4s. Ions start from the neutral atom: cations lose electrons from the highest n first, so Fe²⁺ is [Ar] 3d⁶.
The filling convention
The orbitals of a subshell have equal energy and electrons are indistinguishable. So which ml and ms "the third 2p electron" gets is bookkeeping, and books disagree. Many fill ml from −l upwards with +½ first, but others start at +l or with −½. Scandium's last electron is (3, 2, −2, +½) under the first choice and (3, 2, +2, +½) under the second. Set both switches to match your course; every result that depends on them is tagged.
Nodes and the radial distribution
An orbital has n − l − 1 radial nodes, l angular nodes and n − 1 nodes in total. The chart plots the hydrogen radial probability P(r) = r²R(r)², so you can see the nodes: 2s has one, at 2 a₀, and 3s has two. When l = n − 1 there are none, and the peak sits at n² a₀. In heavier atoms the curves move inward, but the node count stays the same.