Skip to content
FiftyCalc Free calculators for all 50 states

Quantum Number Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Each electron in an atom is labeled by four quantum numbers. Enter n and l to see what they allow.

Result

Sample figures

Subshell letter—

Magnetic quantum number ml runs from −l to +l; l = —

  • Orbitals in the subshell (2l + 1)—
  • Maximum electrons in the subshell—
  • Subshells in shell n—
  • Orbitals in shell n (n²)—
  • Maximum electrons in shell n (2n²)—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Quantum Number Calculator

Principal quantum number n (1, 2, 3…): enter 1 or more. Prefilled example: 3.

Azimuthal quantum number l (0 to n − 1): enter 0 or more. Prefilled example: 2.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Principal quantum number n (1, 2, 3…): enter 1 or more.
  2. Azimuthal quantum number l (0 to n − 1): enter 0 or more.
  3. Read the result: Subshell letter; the panel also shows Magnetic quantum number ml runs from −l to +l; l =, Orbitals in the subshell (2l + 1), Maximum electrons in the subshell, Subshells in shell n, Orbitals in shell n (n²) and Maximum electrons in shell n (2n²).

How this calculator works

In the hydrogen-like atom model, n = 1, 2, 3… sets the shell; l = 0 to n − 1 the subshell, named s, p, d, f, g, h, i for l = 0 to 6; mₗ takes the 2l + 1 whole values from −l to +l (one per orbital); and the spin quantum number mₛ is +1/2 or −1/2.

By the Pauli exclusion principle each orbital holds at most two electrons, so a subshell holds 2(2l + 1) electrons and a shell, with n² orbitals, holds 2n².

The order in which real atoms fill subshells (Aufbau or Madelung rule) is not the same as the order of n; this calculator counts what each set of numbers allows.

The formula

  1. Sub={lif n≥1 and l≥0 and l<n and l=floor⁡(l) and n=floor⁡(n)−1otherwise
Symbols used in the formula
SymbolMeaning
nPrincipal quantum number n (1, 2, 3…)
lAzimuthal quantum number l (0 to n − 1)
SubSubshell letter
floor(x)the largest whole number not above x.

Worked example

Principal quantum number n (1, 2, 3…)3
Azimuthal quantum number l (0 to n − 1)2
Orbitals in the subshell (2l + 1)5
Maximum electrons in the subshell10
Magnetic quantum number ml runs from −l to +l; l =2
Subshells in shell n3
Orbitals in shell n (n²)9
Maximum electrons in shell n (2n²)18
  1. Sub=2

Subshell letter d

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

How many electrons fit in the 3d subshell?

10: five orbitals (ml = −2 to +2), two electrons each.

Can l equal n?

No. l runs from 0 to n − 1, so the first shell (n = 1) has only an s subshell.

How many electrons can the n = 3 shell hold?

18, which is 2n².

Related calculators