🔬
🔬 Science & engineering

Quantum Number Calculator (check n, l, mₗ, mₛ and count orbitals and electrons)

Results update as you type.

Your numbers

Understanding the quantum number calculator — concept and principle

This calculator checks whether a set of four quantum numbers (n, l, mₗ, mₛ) describes an allowed electron state, names the subshell, and counts the orbitals and electrons in the shell and subshell. It also gives the orbital angular momentum and the hydrogen energy level. It is used in chemistry and physics courses on atomic structure.

Quantum number checkIs n = 3, l = 2, mₗ = −1 allowed?n · l3 · 2mₗ · mₛ−1 · +½0 ≤ l ≤ n − 1 · −l ≤ mₗ ≤ lAllowedyes · 3dSubshell5 orbitals · 10 e⁻Shell n = 39 orbitals · 18 e⁻
Each quantum number limits the next; this electron sits in one of the five 3d orbitals.

How it is calculated

The principle

Solving the Schrödinger equation for an electron in an atom gives states labelled by whole numbers that can only take certain combinations. n sets the size and energy shell; l sets the shape and orbital angular momentum; mₗ sets the orientation; and the spin mₛ adds two choices for each orbital. The Pauli exclusion principle says no two electrons in an atom share all four numbers, which is why each orbital holds two electrons and a shell holds 2n².

Worked example

Default inputs: n = 3, l = 2, mₗ = −1, mₛ = +½.

  1. l = 2 is within 0 … 2 and mₗ = −1 is within −2 … +2, so: Yes — this electron state is allowed.
  2. Subshell 3d: 5 orbitals holding 10 electrons.
  3. Shell n = 3: 9 orbitals, 18 electrons.
  4. |L| = √(2 × 3) = 2.4495 ħ; hydrogen E₃ = −13.6 ÷ 9 = −1.511 eV.

How to read the result

A "No" verdict shows which rule is broken, such as l = n or |mₗ| > l. The energy row applies exactly only to hydrogen; in many-electron atoms the energy also depends on l, which is why 4s fills before 3d.

Common mistakes

Keep in mind: The energy formula is for hydrogen only. Other atoms need more detailed models.

Frequently asked questions

How many electrons fit in the n = 2 shell?

Eight: 2n² = 8.

Why does l go only up to n − 1?

The solutions of the Schrödinger equation allow only those values.

What does mₛ = +½ mean?

The electron's spin component is "up" along the chosen axis.

Why is the hydrogen energy negative?

The electron is bound; zero energy corresponds to a free electron at rest.

Sources: OpenStax, University Physics Volume 3 (2016), section 8.1 "The Hydrogen Atom" and chapter 8 key equations

Checked 9 Nov 2026. OpenStax, University Physics Volume 3 (2016), §8.1 “The Hydrogen Atom” (n = 1, 2 …; l = 0 … n − 1; m = −l … +l; spectroscopic letters s, p, d, f, g, h; En = −13.6 eV/n²) and Chapter 8 Key Equations (L = √(l(l+1))ħ, Lz = mħ, Sz = msħ, maximum electrons in a subshell N = 4l + 2).

🔬 All science & engineering tools →🌍 Calculators by country →