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
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.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Principal quantum number n (1, 2, 3…): enter 1 or more.
- Azimuthal quantum number l (0 to n − 1): enter 0 or more.
- 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
| Symbol | Meaning |
|---|---|
| Principal quantum number n (1, 2, 3…) | |
| Azimuthal quantum number l (0 to n − 1) | |
| Subshell 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 subshell | 10 |
| Magnetic quantum number ml runs from −l to +l; l = | 2 |
| Subshells in shell n | 3 |
| Orbitals in shell n (n²) | 9 |
| Maximum electrons in shell n (2n²) | 18 |
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².