
Web Scripts & Software
DEV3 Electron Configuration Calculator & Orbital Diagram — Source Code (React + Tailwind)
from $20$29
Loading…
Everyday tool
Free, no sign-up. Runs in your browser; nothing is uploaded. Buy the source code: $29 Regular / $69 Extended
Fe, iron, 26, Fe3+, O2-, Cu(II), Mg²⁺
Arrows show spin: ↑ spin up (ms = +½), ↓ spin down (ms = −½). One arrow per box first, then pairs. The [Ar] core is hidden unless you tick "Show core shells".
Valence rule used: ns + (n-1)d electrons. Unpaired electrons make the species attracted to a magnetic field.
| # | Subshell | n | l | ml | ms |
|---|---|---|---|---|---|
| 1 | 1s | 1 | 0 | 0 | +½ |
| 2 | 1s | 1 | 0 | 0 | −½ |
| 3 | 2s | 2 | 0 | 0 | +½ |
| 4 | 2s | 2 | 0 | 0 | −½ |
| 5 | 2p | 2 | 1 | -1 | +½ |
| 6 | 2p | 2 | 1 | 0 | +½ |
| 7 | 2p | 2 | 1 | 1 | +½ |
| 8 | 2p | 2 | 1 | -1 | −½ |
| 9 | 2p | 2 | 1 | 0 | −½ |
| 10 | 2p | 2 | 1 | 1 | −½ |
| 11 | 3s | 3 | 0 | 0 | +½ |
| 12 | 3s | 3 | 0 | 0 | −½ |
| 13 | 3p | 3 | 1 | -1 | +½ |
| 14 | 3p | 3 | 1 | 0 | +½ |
| 15 | 3p | 3 | 1 | 1 | +½ |
| 16 | 3p | 3 | 1 | -1 | −½ |
| 17 | 3p | 3 | 1 | 0 | −½ |
| 18 | 3p | 3 | 1 | 1 | −½ |
| 19 | 3d | 3 | 2 | -2 | +½ |
| 20 | 3d | 3 | 2 | -1 | +½ |
| 21 | 3d | 3 | 2 | 0 | +½ |
| 22 | 3d | 3 | 2 | 1 | +½ |
| 23 | 3d | 3 | 2 | 2 | +½ |
| 24 | 3d | 3 | 2 | -2 | −½ |
| 25 | 4s | 4 | 0 | 0 | +½ |
| 26 | 4s | 4 | 0 | 0 | −½ |
n = shell, l = 0, 1, 2, 3 for s, p, d, f, ml runs from −l to +l, ms is ±½. Convention: spin up fills each orbital first.
1s2 2s2 2p6 3s1, or [Ne] 3s1, or [Ar] 3d⁶ 4s²
| Z | Element | Noble-gas notation | Valence | Unpaired | |
|---|---|---|---|---|---|
| 1 | HHydrogen | 1s1 | 1 | 1 | |
| 2 | HeHelium | [He] | 2 | 0 | |
| 3 | LiLithium | [He] 2s1 | 1 | 1 | |
| 4 | BeBeryllium | [He] 2s2 | 2 | 0 | |
| 5 | BBoron | [He] 2s2 2p1 | 3 | 1 | |
| 6 | CCarbon | [He] 2s2 2p2 | 4 | 2 | |
| 7 | NNitrogen | [He] 2s2 2p3 | 5 | 3 | |
| 8 | OOxygen | [He] 2s2 2p4 | 6 | 2 | |
| 9 | FFluorine | [He] 2s2 2p5 | 7 | 1 | |
| 10 | NeNeon | [Ne] | 8 | 0 | |
| 11 | NaSodium | [Ne] 3s1 | 1 | 1 | |
| 12 | MgMagnesium | [Ne] 3s2 | 2 | 0 | |
| 13 | AlAluminium | [Ne] 3s2 3p1 | 3 | 1 | |
| 14 | SiSilicon | [Ne] 3s2 3p2 | 4 | 2 | |
| 15 | PPhosphorus | [Ne] 3s2 3p3 | 5 | 3 | |
| 16 | SSulfur | [Ne] 3s2 3p4 | 6 | 2 | |
| 17 | ClChlorine | [Ne] 3s2 3p5 | 7 | 1 | |
| 18 | ArArgon | [Ar] | 8 | 0 | |
| 19 | KPotassium | [Ar] 4s1 | 1 | 1 | |
| 20 | CaCalcium | [Ar] 4s2 | 2 | 0 | |
| 21 | ScScandium | [Ar] 3d1 4s2 | 3 | 1 | |
| 22 | TiTitanium | [Ar] 3d2 4s2 | 4 | 2 | |
| 23 | VVanadium | [Ar] 3d3 4s2 | 5 | 3 | |
| 24 | CrChromium* | [Ar] 3d5 4s1 | 6 | 6 | |
| 25 | MnManganese | [Ar] 3d5 4s2 | 7 | 5 | |
| 26 | FeIron | [Ar] 3d6 4s2 | 8 | 4 | |
| 27 | CoCobalt | [Ar] 3d7 4s2 | 9 | 3 | |
| 28 | NiNickel | [Ar] 3d8 4s2 | 10 | 2 | |
| 29 | CuCopper* | [Ar] 3d10 4s1 | 11 | 1 | |
| 30 | ZnZinc | [Ar] 3d10 4s2 | 12 | 0 | |
| 31 | GaGallium | [Ar] 3d10 4s2 4p1 | 3 | 1 | |
| 32 | GeGermanium | [Ar] 3d10 4s2 4p2 | 4 | 2 | |
| 33 | AsArsenic | [Ar] 3d10 4s2 4p3 | 5 | 3 | |
| 34 | SeSelenium | [Ar] 3d10 4s2 4p4 | 6 | 2 | |
| 35 | BrBromine | [Ar] 3d10 4s2 4p5 | 7 | 1 | |
| 36 | KrKrypton | [Kr] | 8 | 0 | |
| 37 | RbRubidium | [Kr] 5s1 | 1 | 1 | |
| 38 | SrStrontium | [Kr] 5s2 | 2 | 0 | |
| 39 | YYttrium | [Kr] 4d1 5s2 | 3 | 1 | |
| 40 | ZrZirconium | [Kr] 4d2 5s2 | 4 | 2 | |
| 41 | NbNiobium* | [Kr] 4d4 5s1 | 5 | 5 | |
| 42 | MoMolybdenum* | [Kr] 4d5 5s1 | 6 | 6 | |
| 43 | TcTechnetium | [Kr] 4d5 5s2 | 7 | 5 | |
| 44 | RuRuthenium* | [Kr] 4d7 5s1 | 8 | 4 | |
| 45 | RhRhodium* | [Kr] 4d8 5s1 | 9 | 3 | |
| 46 | PdPalladium* | [Kr] 4d10 | 10 | 0 | |
| 47 | AgSilver* | [Kr] 4d10 5s1 | 11 | 1 | |
| 48 | CdCadmium | [Kr] 4d10 5s2 | 12 | 0 | |
| 49 | InIndium | [Kr] 4d10 5s2 5p1 | 3 | 1 | |
| 50 | SnTin | [Kr] 4d10 5s2 5p2 | 4 | 2 | |
| 51 | SbAntimony | [Kr] 4d10 5s2 5p3 | 5 | 3 | |
| 52 | TeTellurium | [Kr] 4d10 5s2 5p4 | 6 | 2 | |
| 53 | IIodine | [Kr] 4d10 5s2 5p5 | 7 | 1 | |
| 54 | XeXenon | [Xe] | 8 | 0 | |
| 55 | CsCaesium | [Xe] 6s1 | 1 | 1 | |
| 56 | BaBarium | [Xe] 6s2 | 2 | 0 | |
| 57 | LaLanthanum* | [Xe] 5d1 6s2 | 3 | 1 | |
| 58 | CeCerium* | [Xe] 4f1 5d1 6s2 | 4 | 2 | |
| 59 | PrPraseodymium | [Xe] 4f3 6s2 | 5 | 3 | |
| 60 | NdNeodymium | [Xe] 4f4 6s2 | 6 | 4 | |
| 61 | PmPromethium | [Xe] 4f5 6s2 | 7 | 5 | |
| 62 | SmSamarium | [Xe] 4f6 6s2 | 8 | 6 | |
| 63 | EuEuropium | [Xe] 4f7 6s2 | 9 | 7 | |
| 64 | GdGadolinium* | [Xe] 4f7 5d1 6s2 | 10 | 8 | |
| 65 | TbTerbium | [Xe] 4f9 6s2 | 11 | 5 | |
| 66 | DyDysprosium | [Xe] 4f10 6s2 | 12 | 4 | |
| 67 | HoHolmium | [Xe] 4f11 6s2 | 13 | 3 | |
| 68 | ErErbium | [Xe] 4f12 6s2 | 14 | 2 | |
| 69 | TmThulium | [Xe] 4f13 6s2 | 15 | 1 | |
| 70 | YbYtterbium | [Xe] 4f14 6s2 | 16 | 0 | |
| 71 | LuLutetium | [Xe] 4f14 5d1 6s2 | 3 | 1 | |
| 72 | HfHafnium | [Xe] 4f14 5d2 6s2 | 4 | 2 | |
| 73 | TaTantalum | [Xe] 4f14 5d3 6s2 | 5 | 3 | |
| 74 | WTungsten | [Xe] 4f14 5d4 6s2 | 6 | 4 | |
| 75 | ReRhenium | [Xe] 4f14 5d5 6s2 | 7 | 5 | |
| 76 | OsOsmium | [Xe] 4f14 5d6 6s2 | 8 | 4 | |
| 77 | IrIridium | [Xe] 4f14 5d7 6s2 | 9 | 3 | |
| 78 | PtPlatinum* | [Xe] 4f14 5d9 6s1 | 10 | 2 | |
| 79 | AuGold* | [Xe] 4f14 5d10 6s1 | 11 | 1 | |
| 80 | HgMercury | [Xe] 4f14 5d10 6s2 | 12 | 0 | |
| 81 | TlThallium | [Xe] 4f14 5d10 6s2 6p1 | 3 | 1 | |
| 82 | PbLead | [Xe] 4f14 5d10 6s2 6p2 | 4 | 2 | |
| 83 | BiBismuth | [Xe] 4f14 5d10 6s2 6p3 | 5 | 3 | |
| 84 | PoPolonium | [Xe] 4f14 5d10 6s2 6p4 | 6 | 2 | |
| 85 | AtAstatine | [Xe] 4f14 5d10 6s2 6p5 | 7 | 1 | |
| 86 | RnRadon | [Rn] | 8 | 0 | |
| 87 | FrFrancium | [Rn] 7s1 | 1 | 1 | |
| 88 | RaRadium | [Rn] 7s2 | 2 | 0 | |
| 89 | AcActinium* | [Rn] 6d1 7s2 | 3 | 1 | |
| 90 | ThThorium* | [Rn] 6d2 7s2 | 4 | 2 | |
| 91 | PaProtactinium* | [Rn] 5f2 6d1 7s2 | 5 | 3 | |
| 92 | UUranium* | [Rn] 5f3 6d1 7s2 | 6 | 4 | |
| 93 | NpNeptunium* | [Rn] 5f4 6d1 7s2 | 7 | 5 | |
| 94 | PuPlutonium | [Rn] 5f6 7s2 | 8 | 6 | |
| 95 | AmAmericium | [Rn] 5f7 7s2 | 9 | 7 | |
| 96 | CmCurium* | [Rn] 5f7 6d1 7s2 | 10 | 8 | |
| 97 | BkBerkelium | [Rn] 5f9 7s2 | 11 | 5 | |
| 98 | CfCalifornium | [Rn] 5f10 7s2 | 12 | 4 | |
| 99 | EsEinsteinium | [Rn] 5f11 7s2 | 13 | 3 | |
| 100 | FmFermium | [Rn] 5f12 7s2 | 14 | 2 | |
| 101 | MdMendelevium | [Rn] 5f13 7s2 | 15 | 1 | |
| 102 | NoNobelium | [Rn] 5f14 7s2 | 16 | 0 | |
| 103 | LrLawrencium* | [Rn] 5f14 7s2 7p1 | 2 | 1 | |
| 104 | RfRutherfordium | [Rn] 5f14 6d2 7s2 | 4 | 2 | |
| 105 | DbDubnium | [Rn] 5f14 6d3 7s2 | 5 | 3 | |
| 106 | SgSeaborgium | [Rn] 5f14 6d4 7s2 | 6 | 4 | |
| 107 | BhBohrium | [Rn] 5f14 6d5 7s2 | 7 | 5 | |
| 108 | HsHassium | [Rn] 5f14 6d6 7s2 | 8 | 4 | |
| 109 | MtMeitnerium | [Rn] 5f14 6d7 7s2 | 9 | 3 | |
| 110 | DsDarmstadtium | [Rn] 5f14 6d8 7s2 | 10 | 2 | |
| 111 | RgRoentgenium | [Rn] 5f14 6d9 7s2 | 11 | 1 | |
| 112 | CnCopernicium | [Rn] 5f14 6d10 7s2 | 12 | 0 | |
| 113 | NhNihonium | [Rn] 5f14 6d10 7s2 7p1 | 3 | 1 | |
| 114 | FlFlerovium | [Rn] 5f14 6d10 7s2 7p2 | 4 | 2 | |
| 115 | McMoscovium | [Rn] 5f14 6d10 7s2 7p3 | 5 | 3 | |
| 116 | LvLivermorium | [Rn] 5f14 6d10 7s2 7p4 | 6 | 2 | |
| 117 | TsTennessine | [Rn] 5f14 6d10 7s2 7p5 | 7 | 1 | |
| 118 | OgOganesson | [Rn] 5f14 6d10 7s2 7p6 | 8 | 0 |
* observed exception to the simple filling order. Source: NIST Atomic Spectra Database ground states (Z 1 to 103) and CRC Handbook; Z 104 to 118 predicted; 2026-11. Elements 104 to 118 are predicted.
Related: periodic table, molar mass, equation balancer. Runs in your browser.
Need Electron Configuration Calculator & Orbital Diagram as a full mobile or web app? We build it in about a week. Built in about a week, from $99. Send your requirements or SOW; you get a fixed quote and a delivery date.
The electron configuration calculator & orbital diagram stays free to use online. If you want the code to run, edit and ship in your own project, get the full source from the DEV3 Marketplace. Instant download, 6 months of support.
Get the full app behind this tool. Buy once, own the source, and try each one live first.

Web Scripts & Software
from $20$29

Web Scripts & Software Mobile app
from $69$99

Enterprise SaaS Starters
from $69$99

Enterprise SaaS Starters
from $69$99

Web Scripts & Software
from $69$99

Web Scripts & Software Mobile app
from $69$99

Web Scripts & Software Mobile app
from $69$99

Web Scripts & Software Mobile app
from $69$99
Type an element symbol, name or atomic number, with an optional charge, and read off the complete picture: full and noble-gas configuration, the orbital box diagram, valence and unpaired electrons, magnetism and the quantum numbers of the last electron.
Use "Fe", "iron" or "26", and add charge in any common form: Fe3+, Fe+3, O2-, Cl-, Cu(II) or Mg²⁺. Click any element in the periodic table or pick one of the examples. Choose whether subshells are written in shell order (3d before 4s, as in most textbooks) or in filling order (4s before 3d).
Paste a configuration such as [Ne] 3s1 or 1s2 2s2 2p5 3s1 and the tool tells you which atom or ion it is, or that it is an excited state.
The table lists all 118 elements with configuration, shorthand, valence electrons, unpaired electrons, block, period and group, and exports to CSV.
Configurations for elements 1 to 103 follow the NIST Atomic Spectra Database ground states. Elements 104 to 118 are predicted. Ion configurations follow the usual removal rule (highest n, then highest l first); a few ions in heavy elements differ in detail. Everything runs in your browser.
It lists how an atom's electrons occupy subshells, written as 1s2 2s2 2p6 and so on, where the number is the shell n, the letter the subshell type (s, p, d, f) and the superscript the electron count. Iron, with 26 electrons, is 1s2 2s2 2p6 3s2 3p6 3d6 4s2, or [Ar] 3d6 4s2 in noble-gas notation.
The Aufbau principle fills the lowest-energy subshell first (1s, 2s, 2p, 3s, 3p, 4s, 3d...). The Pauli exclusion principle allows at most two electrons per orbital with opposite spins. Hund's rule puts one electron in each orbital of a subshell, all spinning the same way, before any pairing. The orbital diagram shows all three.
Chromium (3d5 4s1) and copper (3d10 4s1) are the best-known, then niobium, molybdenum, ruthenium, rhodium, palladium, silver, lanthanum, cerium, gadolinium, platinum, gold, actinium, thorium, protactinium, uranium, neptunium, curium and lawrencium. A half-filled or filled d or f subshell and relativistic effects explain most of them.
For cations remove electrons from the outermost shell first, so transition metals lose their 4s electrons before 3d: Fe2+ is [Ar] 3d6 and Fe3+ is [Ar] 3d5. For anions add electrons to the next subshell, so O2- is 1s2 2s2 2p6, the same as neon.
Take the last subshell filled: n is its shell number and l is 0, 1, 2 or 3 for s, p, d, f. Fill the ml values from -l to +l with spin +½, then pair with spin -½. For iron's sixth 3d electron the set is n = 3, l = 2, ml = -2, ms = -½. The tool prints the set for every element.
No. Elements 104 to 118 are too short-lived to measure, so their configurations are predictions from the Madelung rule and relativistic calculations. They are marked as predicted. Configurations for Z = 1 to 103 follow the NIST ground-state table.