Are These Quantum Numbers Allowed?

Are These Quantum Numbers Allowed?

Type a set of n, l, ml and ms and the page says whether it describes a real electron state — and if not, exactly which of the four rules it breaks. Each quantum number’s allowed range is drawn beside the answer, with your value marked inside it or outside it.

Check one set of four quantum numbers

n, l, ml and ms in, permitted or not out
The shell. It must be a whole number of 1 or more, and it sets the size and the energy of the orbital. There is no shell numbered 0 and no shell numbered 2.5. Type one anyway and the page will tell you which rule you just broke.
The subshell, and the shape of the orbital: 0 is s, 1 is p, 2 is d, 3 is f. It runs from 0 up to n minus 1, so the number of subshells in a shell is exactly n. The commonest mistake in this topic is a 2d or a 1p, both of which fail this one rule.
Which orbital within the subshell, and how it is oriented in space. It runs from minus l to plus l in whole-number steps, which is 2l plus 1 values: one s orbital, three p, five d, seven f. Negative values are perfectly normal here.
The electron’s own spin, and the only quantum number of the four whose range does not depend on anything else. It is always either plus one half or minus one half. The box accepts other numbers so that you can see the page reject them.
Four rows, one for each quantum number. The pale green block on each row is the range that number is allowed to take, and the dot is the value you typed. A dot inside its green block is green; a dot outside it is red, and the row that breaks the rule is ringed. Watch the l row shrink as you lower n, and the ml row widen as you raise l: the ranges are not fixed, they are set by the number in the row above.
Allowed. These four numbers describe a real one-electron state.Example

n = 3, l = 2, ml = −1, ms = +1/2

Advertisement

Four rules, and nothing else to remember

n = 1, 2, 3, …  ·  l = 0, 1, …, n−1  ·  ml = −l, …, 0, …, +l  ·  ms = +½ or −½
n
the principal quantum number: the shell, and the main thing that fixes the energy and the size of the orbital. Any positive whole number. A shell numbered n holds 2n² electrons when full
l
the azimuthal or orbital angular momentum quantum number: the subshell and the SHAPE. 0 is s, 1 is p, 2 is d, 3 is f, and after that the letters just run on alphabetically, g, h, i. The ceiling of n−1 is what forbids a 2d or a 1p
mₗ
the magnetic quantum number: WHICH orbital of the subshell, and how it points. It takes every whole number from −l to +l, which is 2l+1 of them — the reason p subshells come in threes and d subshells in fives
mₛ
the spin quantum number, and the only one with no dependence on the others. Exactly two values, +½ and −½, usually drawn as the up and down arrows in an orbital box. Two values, so two electrons per orbital
the Pauli exclusion principle
no two electrons in one atom may share all four numbers. That is not a fifth rule about which values are allowed, it is a rule about how many electrons can use the same set, and it is where 2, 8, 18 and 32 come from

Worked example

n = 3, l = 2, ml = −1, ms = +1/2
CHECK n FIRST, because every other rule depends on it. n = 3 is a whole number and it is at least 1, so it passes. This is a third-shell electron.
CHECK l AGAINST n. l may run from 0 to n − 1, which here means 0, 1 or 2. Our l is 2, the largest allowed, so it passes — and l = 2 means a d subshell. Had n been 2, this same l would have failed, because there is no 2d.
CHECK ml AGAINST l. ml runs from −2 to +2 in whole steps: −2, −1, 0, +1, +2. That is five values, which is why a d subshell has five orbitals. Our −1 is one of them, so it passes.
CHECK ms ON ITS OWN. It must be +½ or −½. Ours is +½, so it passes. No reference to any other number is needed.
THE VERDICT. All four hold, so the set is allowed: it names one specific electron in a 3d orbital with spin up. By the Pauli exclusion principle, exactly one electron in the whole atom may carry this set, and its partner in the same orbital must take ms = −½.
AND THE COUNT THAT FOLLOWS. Five values of ml times two of ms is ten electrons in a full d subshell. Do the same for the whole of n = 3 — one s, three p, five d, doubled — and you get 18, which is 2n². Every one of those familiar numbers is a consequence of these four rules and nothing else.
Advertisement

Every subshell up to n = 4, straight from the rules

nlSubshellValues of mlOrbitalsElectrons
10s012
20s012
21p−1, 0, +136
30s012
31p−1, 0, +136
32d−2, −1, 0, +1, +2510
43f−3 to +3714
Nothing in this table is remembered; all of it is generated. The number of orbitals is 2l+1 and the number of electrons is twice that, because ms has two values. Shell n holds 2n² electrons in total: 2, 8, 18, 32. Notice what is MISSING — there is no 1p row and no 2d row, because l cannot reach n.

Sets that get rejected, and the rule each one breaks

The setVerdictWhich rule
n = 2, l = 2, ml = 0, ms = +1/2Not allowedl must be smaller than n. This is the famous 2d, and it does not exist.
n = 3, l = 1, ml = 2, ms = −1/2Not allowedml cannot exceed l. A p subshell has three orbitals, ml = −1, 0, +1, and no fourth.
n = 3, l = 2, ml = 0, ms = 1Not allowedms is +1/2 or −1/2 and nothing else. An ms of 1 would not be an electron.
n = 0, l = 0, ml = 0, ms = +1/2Not allowedn must be at least 1. There is no zeroth shell.
n = 3, l = −1, ml = 0, ms = +1/2Not allowedl cannot be negative, though ml certainly can.
n = 4, l = 3, ml = −3, ms = −1/2AllowedA 4f electron. All four rules hold.
Every one of these can be typed into the calculator above. The order matters: the page checks n first, then l, then ml, then ms, and reports the FIRST rule broken, because the later rules are meaningless once an earlier one has failed.

Four numbers that name one electron

A set of four quantum numbers is an address. It names one electron in one atom exactly: which shell it is in, what shape its orbital has, which of the orbitals in that subshell it occupies, and which way its spin points. Give an examiner four numbers and the first thing they will check is whether the address exists.

Three of the four rules are nested, and that is the part worth getting straight. n stands alone: any positive whole number. l depends on n, running from 0 up to n minus 1 — so a shell numbered n has exactly n subshells. ml depends on l, running from minus l to plus l — so a subshell with quantum number l has exactly 2l plus 1 orbitals. Only ms is free of the others: plus a half or minus a half, always.

Because they are nested, the order you check them in matters. If n is wrong, the range for l is meaningless and so is everything after it. This page checks them in order and reports the first rule broken, rather than listing four complaints when there is really one fault.

Almost all the numbers you have memorised fall out of these rules. Why three p orbitals? Because l = 1 gives ml = minus 1, 0, plus 1. Why ten electrons in a d subshell? Five orbitals, two spins. Why does the second shell hold eight? One s orbital plus three p orbitals, doubled. Why is there no 2d subshell? Because l = 2 requires n of at least 3, and the shell numbered 2 simply does not contain one. If you can regenerate the table above from the four rules, you never have to remember it again.

The Pauli exclusion principle then sits on top: no two electrons in one atom may share all four numbers. It is not a rule about which values are permitted — this page would call the same set allowed whether or not another electron already had it — it is a rule about how many electrons can use each address. One per set, two per orbital, 2n squared per shell.

One honest limitation. This calculator judges a set of numbers; it does not and cannot print an electron configuration, because the engine behind these pages works in numbers only and has no way to emit a symbol like 1s2 2s2 2p6. Nor does it know which element you have in mind. What it does is the part that gets marks: deciding whether a set is legal and naming the rule it breaks. For the energy side of the same picture, the one-electron energy levels belong to physics — see the Bohr model energy level calculator and the de Broglie wavelength calculator, the standing-wave argument behind quantisation in the first place.

Frequently asked questions

Why can l never equal n?

Because the angular momentum of an electron cannot use up more than the total the shell has available. In the solution of the Schrödinger equation for a one-electron atom, the radial function for a given l only has acceptable solutions when n is at least l + 1; set l = n and the wavefunction cannot be normalised. The practical consequence is the one you need: there is no 1p, no 2d and no 3f.

Can ml be negative?

Yes, and it routinely is. ml runs from minus l through zero to plus l, so for a d subshell the permitted values are −2, −1, 0, +1 and +2. The sign is about orientation, not magnitude. l itself can never be negative, which is the distinction that catches people out.

What does ms = +1/2 actually mean?

It is the projection of the electron’s intrinsic spin angular momentum along whichever axis you choose to call z, in units of h/2π. Spin is a genuine property of the particle, not a rotation of a little ball, and it takes only two values for an electron. Those two values are the reason an orbital holds exactly two electrons, drawn as the up and down arrows in an orbital box diagram.

How many electrons can share n = 3 and l = 2?

Ten. l = 2 gives five values of ml, and each of those orbitals takes two electrons with opposite spin. That is a full 3d subshell. The same arithmetic gives 2 for s, 6 for p and 14 for f, and it is 2(2l + 1) every time.

Is a set still allowed if another electron already has it?

This page says yes, because it is judging the rules that define which sets exist, not auditing a particular atom. The Pauli exclusion principle then says that no second electron in the same atom may take that set — which is a separate statement, and the one that makes the periodic table have the shape it has. Both facts are worth stating separately in an answer.

Why does the page check the numbers in that order?

Because the rules are nested. The allowed range for l is set by n, and the allowed range for ml is set by l. If n is not a positive whole number there is no range for l to be inside, so reporting that l is out of range as well would be noise. Fix the first fault and the page re-checks everything after it.

Related calculators

References

  1. NCERT Chemistry, Class 11, Part I, Unit 2: Structure of the Atom, National Council of Educational Research and Training, New Delhi. The four quantum numbers and their permitted values are set out in section 2.6.2, together with the shell capacity 2n² and the 2(2l+1) count per subshell. This is the syllabus wording that CBSE questions are written against, and it is the phrasing used on this page.
  2. P. Atkins and J. de Paula, Atkins’ Physical Chemistry, 11th edition, Oxford University Press, 2018, chapter 8. The derivation the rules come from: separating the Schrödinger equation for a one-electron atom in spherical polar coordinates produces n, l and ml as the three constants needed to make the solution single-valued and normalisable. Spin is not in that derivation at all — it arrives from the Dirac equation, which is why ms is the one quantum number whose range depends on nothing else.
  3. W. Pauli, “Über den Zusammenhang des Abschlusses der Elektronengruppen im Atom mit der Komplexstruktur der Spektren”, Zeitschrift für Physik 31 (1925) 765–783. The exclusion principle, published a few months before spin itself was proposed: Pauli argued from spectral line counts that a fourth two-valued quantum number must exist and that no two electrons could share all four.
  4. CODATA Internationally Recommended 2022 Values of the Fundamental Physical Constants, NIST Standard Reference Database 121, read 14 November 2026. The elementary charge is exactly 1.602176634×10−19 C and the unified atomic mass unit is 1.660 539 068 92(52)×10−27 kg; the first has no uncertainty because the 2019 revision of the SI defines the ampere through it. Any constant quoted on this page is this edition’s.