Quantum Number Calculator - List Allowed Quantum Numbers and Check Any Set

The quantum number calculator takes a principal quantum number n and optional l, m_l, and m_s values, then lists the allowed quantum numbers, counts the subshells, orbitals, and maximum electrons, and tells you whether the combination you entered is physically allowed.

Updated: July 8, 2026 • Free Tool

Quantum Number Calculator

Positive integer from 1 to 7 for the ground-state elements.

Integer from 0 to n-1. Leave at 0 for the s subshell.

Integer from -l to +l for the chosen subshell.

Spin state of the electron in the addressed orbital.

Results

Validity of the set
0
Subshells in shell n 0
Orbitals in shell (n^2) 0
Max electrons in shell (2n^2) 0
Subshells present 0

What Is the Quantum Number Calculator?

A quantum number calculator lists the allowed values of the four quantum numbers that describe where an electron can sit inside an atom, and it checks whether a particular set you enter is physically possible. Instead of working through the integer rules by hand, you enter a shell and the calculator returns the matching subshells, orbitals, and electron capacity.

  • Checking a homework set: Paste in an (n, l, m_l, m_s) combination from an assignment and confirm whether it is allowed.
  • Building intuition for shells: Watch how the number of orbitals grows as n^2 and the electron capacity grows as 2n^2 as you move to larger shells.
  • Preparing for electron configuration: See exactly which subshells exist in a shell before you start filling them in order on the periodic table.

The quantum number calculator works from the idea that the four quantum numbers are the address system of the atom. The principal quantum number n sets the main energy level and distance from the nucleus. The azimuthal (or angular momentum) quantum number l sets the subshell shape. The magnetic quantum number m_l picks one specific orbital within that subshell. The spin quantum number m_s records which of the two spin states an electron in that orbital has.

Used together, these four integers pin down one electron state. Because electrons are fermions, no two electrons in the same atom may carry the identical set, and that single rule drives the entire structure of the periodic table.

Once you know which subshells a shell contains, the electron configuration calculator shows how those subshells fill with electrons across the periodic table.

How the Quantum Number Calculator Works

The calculator applies four simple integer rules, in order, to whatever you type. Once the rules are satisfied it derives the counts you need for that shell and, when you supply a specific subshell, the orbitals inside it.

l = 0,1,...,n-1 | m_l = -l,...,+l | m_s = +1/2 or -1/2 | orbitals = n^2 | max electrons = 2n^2
  • n (principal): A positive integer, usually 1 through 7 for the ground-state elements; it selects the main electron shell.
  • l (azimuthal): An integer from 0 to n-1. Each value names a subshell: 0=s, 1=p, 2=d, 3=f, 4=g.
  • m_l (magnetic): An integer from -l to +l, giving one value per orbital in the subshell.
  • m_s (spin): Either +1/2 or -1/2, marking the two possible spin states of an electron.

When you leave the optional fields blank, the calculator reports the shell-wide totals so you can see the full picture at a glance. When you fill in l, m_l, and m_s, it narrows down to a single addressed state and confirms whether every value respects the rules.

Shell n = 3

Principal quantum number n = 3, no specific l entered.

Allowed l values are 0, 1, 2 (s, p, d). Orbital count is n^2 = 9. Maximum electrons is 2n^2 = 18.

3 subshells, 9 orbitals, up to 18 electrons.

The third shell holds three subshells (3s, 3p, 3d) and nine orbitals in total.

Invalid set n = 2, l = 2

Principal quantum number n = 2, azimuthal quantum number l = 2.

The rule requires l <= n-1, so for n=2 the largest allowed l is 1.

Invalid: l must be between 0 and 1 for n=2.

There is no 2d subshell, so this combination cannot describe a real electron in the second shell.

According to Wikipedia - Quantum number, each electron in an atom is described by a set of four quantum numbers whose allowed ranges are fixed by the principal shell.

The principal quantum number grows out of the same shell idea you explore with the Bohr model calculator, which links shell number to orbital radius and energy.

Key Concepts Explained

Four linked ideas make the rules click into place. Each one constrains the next, which is why the allowed values form a clean hierarchy rather than a free choice.

Principal shell and size

A larger n means a larger, higher-energy shell farther from the nucleus. The number of subshells inside equals n, and the number of orbitals equals n^2.

Subshell shape from l

The azimuthal number l decides the orbital shape: s is spherical, p is dumbbell-shaped, d and f are more complex. The number of orbitals in a subshell is 2l + 1.

Orbital orientation from m_l

For a given l, m_l runs from -l to +l, so a p subshell (l=1) has three orientations (-1, 0, +1) and a d subshell (l=2) has five.

Spin from m_s

Each orbital holds at most two electrons with opposite spin. Paired together, the two spin values are what let a subshell of (2l+1) orbitals accommodate 2(2l+1) electrons.

Thinking of the numbers as a nested address helps: n chooses the building, l chooses the floor, m_l chooses the room, and m_s chooses which of the two occupants is meant. The hierarchy is strict because each inner choice is bounded by the one above it. A quantum number calculator makes this nesting visible instead of something you have to reconstruct from memory.

For a one-electron ion, the hydrogen-like atom calculator uses the principal quantum number n directly to find energy levels and orbital radius.

How to Use This Calculator

Follow these steps to move from a single number to a full list of allowed states.

  1. 1 Enter the principal quantum number n: Type the shell you are studying, such as 1, 2, 3, or 4. Keep it between 1 and 7 for ground-state atoms.
  2. 2 Optionally add the azimuthal number l: Enter a value from 0 up to n-1 to focus on one subshell, for example l=1 for the p subshell.
  3. 3 Optionally add m_l and m_s: Add a magnetic value from -l to +l and pick a spin of +1/2 or -1/2 to address one specific electron state.
  4. 4 Read the validity and counts: The result tells you whether the set is allowed and shows the subshell, orbital, and electron totals for the shell.

Enter n=4 with no other values, and you will see 4 subshells, 16 orbitals, and a capacity of 32 electrons, with the four subshells listed as 4s, 4p, 4d, and 4f.

Quantum numbers describe where an electron can be, while the de Broglie wavelength calculator describes its wave nature through momentum and wavelength.

Benefits of Using This Calculator

A quick check removes the most common slip when learning atomic structure.

  • Catch invalid combinations early: The validity line flags rule-breaking sets such as n=2, l=2 before they reach your homework.
  • See the whole shell at once: Totals for subshells, orbitals, and electrons update immediately as you change n, reinforcing the n^2 and 2n^2 patterns.
  • Connect rules to shapes: Linking each l value to its letter and orbital count makes the abstract integers map onto real subshell shapes.

Because the calculator works directly from the integer rules, it is a fast way to test your own reasoning rather than a black box you copy from. A good quantum number calculator shows the steps, so you can see why a set fails instead of just reading the verdict.

Checking allowed states is a good companion to the electron speed calculator, which estimates how fast an electron moves in a given orbital.

Factors That Affect Your Results

Only two things change the output: which shell you pick and how many of the optional fields you fill in.

Choice of principal shell n

Larger n lifts every total because the subshell, orbital, and electron counts all scale with n, n^2, and 2n^2 respectively.

How many optional values you enter

Leaving l, m_l, and m_s blank gives shell-wide totals; adding them narrows the answer to a single addressed state and adds a validity test.

Order of the rules

l must respect n first, then m_l must respect l. A value that is fine on its own can still be invalid because an earlier number bounded it.

  • The calculator describes hydrogen-like, single-electron addressing rules and does not model energy ordering or subshell splitting in multi-electron atoms.
  • For shells beyond n=7 the integer rules still apply, but the listed subshell letters extend past the familiar s, p, d, f set used for known elements.

Treat the counts as the maximum capacity of a shell. In real atoms, lower-energy subshells from higher shells can fill first, which is why the electron configuration order is not simply by n. Keep that distinction in mind when you use a quantum number calculator alongside an electron-filling rule.

According to Wikipedia - Atomic orbital, no two electrons in an atom share the same complete set of four quantum numbers, which is why each orbital is limited to two electrons; the magnetic quantum number labels the distinct orientations a subshell's orbitals can take.

According to Wikipedia - Pauli exclusion principle, the Pauli exclusion principle states that no two electrons in an atom share the same complete set of four quantum numbers, which is why each orbital is limited to two electrons.

Shell capacity sets how many electrons an atom can hold, and the atomic mass calculator helps you work with the protons and neutrons at its center.

Quantum number calculator listing the allowed principal, azimuthal, magnetic, and spin quantum numbers for an electron shell with counts of subshells, orbitals, and electrons
Quantum number calculator listing the allowed principal, azimuthal, magnetic, and spin quantum numbers for an electron shell with counts of subshells, orbitals, and electrons

Frequently Asked Questions

Q: What does the principal quantum number determine?

A: The principal quantum number n describes the main energy level, or electron shell, of an atom. It sets the overall size and energy of the orbitals in that shell and, together with the other quantum numbers, the size of the atom. The number of subshells in the shell equals n, the number of orbitals equals n^2, and the maximum number of electrons equals 2n^2.

Q: Which characteristic is given by the angular momentum quantum number?

A: The angular momentum (azimuthal) quantum number l characterizes three things: the number of subshells in a given shell, the shape of the orbitals (s, p, d, f), and the energy of electrons in a multi-electron atom. It can take any integer value from 0 up to n-1.

Q: Which quantum number describes the shape of an orbital?

A: The shape of an orbital is set by the angular momentum (azimuthal) quantum number l. The value l=0 gives a spherical s orbital, l=1 gives the dumbbell-shaped p orbitals, l=2 gives the five d orbitals, and l=3 gives the seven f orbitals.

Q: What are the allowed values of the magnetic quantum number?

A: For a given azimuthal quantum number l, the magnetic quantum number m_l can take any integer value from -l through 0 to +l. That gives 2l+1 possible values, one for each orbital in the subshell. For example, a p subshell (l=1) allows m_l = -1, 0, +1.

Q: How many orbitals are in a given shell n?

A: The total number of orbitals in a shell with principal quantum number n is n^2. You get this by adding the orbitals in every subshell: for each l from 0 to n-1 there are 2l+1 orbitals, and the sum of those counts across the shell is n^2. The shell can therefore hold up to 2n^2 electrons.

Q: What are the possible values of the spin quantum number?

A: The spin quantum number m_s can take only two values: +1/2 or -1/2. These mark the two opposite spin states an electron can have. Because of the Pauli exclusion principle, no two electrons in the same atom share the identical set of all four quantum numbers, so each orbital holds at most two electrons with opposite spins.