Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

Electron Configuration Calculator

Any element or ion: configuration, orbital diagram, exceptions and quantum numbers.

Science No upload Works offline Free, no sign-up
Find
Symbol, name or atomic number, with an optional charge: Fe, iron, 26, Fe3+, Fe^3+, Fe(III), O2−.
Examples
Write subshells in
Iron —

    Orbital diagram

    ↑↓ a pair of electrons with opposite spins · ↑ an unpaired electron · Hund’s rule: one electron per orbital before any pair up.

    Last electron

    Electrons per shell

    Filling order

      Next steps

      About the Electron Configuration Calculator

      Type any element — by symbol, name or atomic number — or an ion such as Fe³⁺, Cu⁺ or O²⁻, and get its full and noble-gas (shorthand) electron configuration, written in filling order (4s² 3d⁶) or shell order (3d⁶ 4s²). Neutral atoms use the measured ground states from the NIST Atomic Spectra Database, so the exceptions to the aufbau rule — chromium, copper, palladium, gadolinium and the others — come out right, with the configuration the simple rule would have predicted shown alongside.

      Each result includes an orbital box diagram filled by Hund’s rule, the number of unpaired electrons (paramagnetic or diamagnetic), valence and core electrons, a shell (Bohr) diagram, the block, period and group, and the four quantum numbers of the last electron. You can also go the other way: type a configuration such as 1s² 2s² 2p⁶ 3s¹ or [Kr] 4d⁵ and find out which atom or ion it belongs to — or whether it is an excited state.

      How to use it

      1. Type an element or ion: Fe, iron, 26, Fe3+, Fe^3+, Fe(III), O2− — or choose Identify a configuration and type one, such as [Ar] 4s2 3d5.
      2. Choose the order to write it in: filling (energy) order, as most textbooks do, or shell order, as NIST and IUPAC tables do.
      3. Read the configurations, the orbital diagram, the unpaired and valence electrons and the quantum numbers of the last electron.
      4. Copy the configuration, or try another element from the examples.

      Examples

      Iron
      Input
      Fe (Z = 26)
      Result
      [Ar] 3d⁶ 4s² — 1s² 2s² 2p⁶ 3s² 3p⁶ 3d⁶ 4s²; 4 unpaired electrons
      An exception
      Input
      Cr
      Result
      [Ar] 3d⁵ 4s¹ (the filling order predicts [Ar] 3d⁴ 4s²); 6 unpaired electrons
      A cation
      Input
      Fe³⁺
      Result
      [Ar] 3d⁵ — the 4s electrons leave first; 5 unpaired electrons
      An anion
      Input
      O²⁻
      Result
      1s² 2s² 2p⁶ = [Ne]
      A lanthanide ion
      Input
      Sm³⁺
      Result
      [Xe] 4f⁵

      OpenStax Chemistry 2e Example 6.11.

      Quantum numbers
      Input
      P
      Result
      last electron 3p: n = 3, l = 1, m_l = +1, m_s = +½

      OpenStax Example 6.10 (any m_l of the 3p set is accepted there).

      Identify
      Input
      1s² 2s² 2p⁶ 3s² 3p⁶ 4s² 3d¹⁰ 4p⁶ 4d⁵
      Result
      not ground-state Nb: it is Tc²⁺ or Ru³⁺ (also Mo⁺, Rh⁴⁺)

      OpenStax §6.4, Check Your Learning.

      Common uses

      • Chemistry homework: configurations, orbital diagrams and quantum numbers for any element or ion.
      • Checking which elements break the aufbau rule, and what they would be without the exception.
      • Working out whether an ion is paramagnetic (has unpaired electrons) — useful for transition-metal chemistry.
      • Recognising an element or ion from its configuration, including isoelectronic series such as N³⁻, O²⁻, F⁻, Na⁺, Mg²⁺, Al³⁺.

      Filling order, Pauli and Hund

      Electrons occupy the lowest-energy subshells first (the aufbau principle). The order follows the n + l (Madelung) rule: 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p. Each orbital holds two electrons of opposite spin (the Pauli exclusion principle), so s, p, d and f subshells hold 2, 6, 10 and 14 electrons. Within a subshell, electrons spread out one per orbital with parallel spins before any pair up (Hund’s rule), which is how the box diagram is filled (OpenStax Chemistry 2e §6.4).

      The exceptions

      Twenty elements have measured ground states that differ from the simple filling order: Cr, Cu, Nb, Mo, Ru, Rh, Pd, Ag, La, Ce, Gd, Pt, Au, Ac, Th, Pa, U, Np, Cm and Lr. In Cr and Cu (and Mo, Ag and Au below them) a half-filled or completely filled d subshell is preferred: Cr is [Ar] 3d⁵ 4s¹, not 3d⁴ 4s². In the others the (n−1)d and ns, or the 4f/5f and 5d/6d, energies are so close that small effects decide, and there is no simple rule to predict them (OpenStax §6.4). The calculator uses the NIST Atomic Spectra Database ground states for elements 1–108 and the predicted ones for 109–118.

      Ions

      For a cation, remove electrons from the outermost shell first: for a d- or f-block metal the ns electrons go before the (n−1)d or (n−2)f ones, even though ns filled first — Fe²⁺ is [Ar] 3d⁶, not [Ar] 3d⁴ 4s². In the p block the np electrons go before ns (Pb²⁺ is [Xe] 4f¹⁴ 5d¹⁰ 6s²). Anions add electrons in the normal filling order (O²⁻ is [Ne]). This is the rule chemists use for ions in compounds. For a few free gas-phase ions spectroscopy finds a different ground state — V⁺ is [Ar] 3d⁴, Co⁺ [Ar] 3d⁸, Ni⁺ [Ar] 3d⁹, Lu⁺ [Xe] 4f¹⁴ 6s² — and the calculator says so for the singly charged d-block ions and Lu²⁺.

      Valence electrons and quantum numbers

      • Valence electrons (OpenStax §6.4): for main-group elements, the electrons in the outermost shell (gallium has 3; its filled 3d¹⁰ counts as core); for transition metals, the ns and (n−1)d electrons; for inner transition metals, ns, (n−1)d and (n−2)f.
      • Quantum numbers: n is the shell, l the subshell (0, 1, 2, 3 for s, p, d, f), m_l the orbital (−l … +l) and m_s the spin (+½ or −½). For the last electron the calculator fills the boxes from m_l = −l upward with spin up first; some textbooks start at +l, which you can choose. Within a degenerate subshell, any m_l is physically equivalent.

      Sources

      • A. Kramida, Yu. Ralchenko, J. Reader and the NIST ASD Team, NIST Atomic Spectra Database: ground-state configurations and levels of the neutral atoms (Z = 1–108) and of the ions Sc II–Zn II, Y II–Cd II, La II, Lu II, Lu III and Hf II–Hg II. Configurations for Z = 109–118 are predictions, as listed by PubChem.
      • OpenStax, Chemistry 2e, §6.4 Electronic Structure of Atoms: filling order, Hund’s rule, exceptions, ions, valence electrons and Examples 6.10–6.11.

      Limitations

      • Configurations of elements 109–118 are theoretical predictions; their chemistry is barely known.
      • Ion configurations follow the textbook removal rule; ground states of free gas-phase ions, and of lanthanide and actinide ions other than 3+, can differ.
      • A configuration describes which subshells are occupied, not the full quantum state: the atom’s term symbol (shown from NIST for neutral atoms) carries the rest.
      • Identifying a configuration lists only common, plausible ions (anions of non-metals reaching a noble-gas configuration, metal cations up to +4).

      Privacy

      Everything happens in your browser. What you enter or open here is not uploaded or stored by MySmartCoPilot.

      Frequently asked questions

      How do I write an electron configuration?

      Fill subshells in the order 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p … until you have placed as many electrons as the atomic number, writing the count as a superscript: sulfur (16 electrons) is 1s² 2s² 2p⁶ 3s² 3p⁴. The noble-gas shorthand replaces the core with the previous noble gas: [Ne] 3s² 3p⁴.

      Why does 4s fill before 3d but empty first?

      In a neutral atom being built up, 4s is lower in energy than 3d, so it fills first (potassium and calcium put their electrons in 4s). Once the 3d subshell is occupied the order of the energies changes, and the 4s electrons are the outermost ones, so they are the first lost when a transition metal forms a cation: Fe is [Ar] 3d⁶ 4s² but Fe²⁺ is [Ar] 3d⁶.

      Why are chromium and copper exceptions?

      Their 4s and 3d energies are very close, and a half-filled (3d⁵) or completely filled (3d¹⁰) subshell is especially stable. So one 4s electron moves into 3d: Cr is [Ar] 3d⁵ 4s¹ and Cu is [Ar] 3d¹⁰ 4s¹.

      How many unpaired electrons does an atom have?

      Draw the orbital diagram with Hund’s rule: fill each orbital of a subshell with one electron before pairing. Oxygen’s 2p⁴ gives one pair and two single electrons, so 2 unpaired electrons; Fe³⁺ (3d⁵) has 5. Atoms or ions with unpaired electrons are paramagnetic.

      Should I write [Ar] 4s² 3d⁶ or [Ar] 3d⁶ 4s²?

      Both describe the same configuration. Many textbooks write subshells in the order they fill (4s² 3d⁶); NIST and IUPAC tables group them by shell (3d⁶ 4s²). Use the one your course uses — the calculator offers both.

      Which element has the configuration [Ar] 4s² 3d⁵?

      Count the electrons: 18 in [Ar] plus 7 makes 25, which is manganese. Use “Identify a configuration” to check this for any configuration — it also tells you when a configuration belongs to an ion or is an excited state.

      Quick answers and tool search

      Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.