# Electron configuration > How are an atom's electrons arranged? The electron configuration of any element or ion, with orbital boxes, valence and unpaired electrons. Find the electron configuration of any element or ion in full and noble-gas notation, with an orbital box diagram, valence electrons and the Aufbau exceptions. - Page: https://how.box/electron-configuration/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/electron-configuration/?z={z}&q={q} - `z` (whole number 1 to 118): Atomic number, 1 to 118. Example: `26`. - `q` (whole number -4 to 8): Ion charge, -4 to 8. Example: `3`. Example answer: https://how.box/electron-configuration/?z=26&q=3 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `electron_configuration_calculate`: Ground-state electron configuration of an element (atomic number 1–118) or its ion. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"electron_configuration_calculate","arguments":{"element":26,"charge":3}}}` - GET: https://how.box/mcp/run/electron_configuration_calculate?element=26&charge=3 ## How it works Electrons in an atom sit in shells (n = 1, 2, 3 …) split into subshells, s, p, d and f, which hold 2, 6, 10 and 14 electrons in 1, 3, 5 and 7 orbitals. An electron configuration lists how many electrons each subshell holds: iron is 1s² 2s² 2p⁶ 3s² 3p⁶ 4s² 3d⁶, or shorter [Ar] 4s² 3d⁶, where [Ar] stands for argon's 18 electrons. Subshells fill in order of rising energy, the Aufbau principle. Energy grows with n + l, where l is 0 for s, 1 for p, 2 for d and 3 for f, and with n where that ties, which is why 4s (4 + 0) fills before 3d (3 + 2). Within a subshell each orbital gets one electron before any gets a second (Hund's rule), so iron's six 3d electrons leave four unpaired. Some atoms break the order because a half-filled or full d subshell is more stable: chromium is [Ar] 4s¹ 3d⁵, not 4s² 3d⁴, and copper [Ar] 4s¹ 3d¹⁰. This tool uses the measured ground states from the NIST Atomic Spectra Database, so every exception is right, and predictions for the superheavy elements from 109 on. Positive ions lose their highest-n electrons first, so Fe³⁺ is [Ar] 3d⁵; negative ions gain electrons in filling order. Sources: OpenStax Chemistry 2e, section 6.4; NIST Atomic Spectra Database. ## FAQ **Why does 4s fill before 3d?** For a neutral atom of potassium or calcium, a 4s electron has lower energy than a 3d one, because its orbital reaches closer to the nucleus. Once 3d holds electrons, as in the transition metals, 3d drops below 4s, which is why ions lose their 4s electrons first. **Which elements are exceptions to the Aufbau principle?** About twenty: chromium, copper, niobium, molybdenum, ruthenium, rhodium, palladium, silver, platinum, gold and several lanthanides and actinides such as lanthanum, cerium, gadolinium and thorium. Pick any of them to see the rule's prediction beside the measured configuration. **How many valence electrons does an element have?** For main-group elements, count the s and p electrons of the outermost shell: carbon has 4, chlorine 7. For transition metals the d electrons below also take part in bonding, so iron's valence electrons are its 4s² and 3d⁶, eight in all. **What does noble-gas notation mean?** The electrons of the noble gas before the element are written as its symbol in brackets, so only the outer electrons are listed: sodium is [Ne] 3s¹ instead of 1s² 2s² 2p⁶ 3s¹. **What makes an atom paramagnetic?** Unpaired electrons. An atom or ion with at least one orbital holding a single electron is drawn into a magnetic field (paramagnetic); one with every electron paired is weakly pushed out (diamagnetic). Oxygen atoms and Fe³⁺ are paramagnetic, zinc and neon diamagnetic. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)