Home › Calculators › Electron Configuration Calculator

Electron Configuration Calculator

Type an element symbol, name or atomic number to get its ground-state electron configuration in full and noble-gas shorthand, an orbital box diagram drawn with Hund's rule, the number of valence and unpaired electrons, and a shell-by-shell breakdown. Add a charge to get the configuration of an ion.

Last updated:

e.g. 2 for Fe²⁺, -1 for Cl⁻

Enter your values to see the result.
Advertisement
Advertisement

How to use the Electron Configuration Calculator

  1. Enter an element as a symbol (Fe), a name (iron) or an atomic number (26).
  2. Add a charge if you need an ion, e.g. 3 for Fe³⁺ or -2 for O²⁻; leave 0 for a neutral atom.
  3. Read the configuration in full and in noble-gas shorthand, plus valence and unpaired electrons.
  4. Check the orbital diagram to see how electrons fill each orbital; tick the box to include the core.
  5. Copy the results or download the shell table as CSV.

The Aufbau order and subshell capacities

Electrons fill the lowest-energy subshell available first. The energy order follows the n + l rule: lower n + l fills first, and for a tie the lower n fills first. Each orbital holds two electrons with opposite spins (Pauli exclusion principle), and within a subshell electrons spread out singly before pairing (Hund's rule).

SubshelllOrbitalsMax electronsFirst filled at
s012H (1s)
p136B (2p)
d2510Sc (3d)
f3714Ce (4f)

Filling order: 1s → 2s → 2p → 3s → 3p → 4s → 3d → 4p → 5s → 4d → 5p → 6s → 4f → 5d → 6p → 7s → 5f → 6d → 7p. A shell with principal number n holds at most 2n² electrons (2, 8, 18, 32…).

Examples and common exceptions

Element / ionShorthand configurationNote
Oxygen (O)[He] 2s² 2p⁴6 valence, 2 unpaired
Sodium (Na)[Ne] 3s¹1 valence electron
Iron (Fe)[Ar] 3d⁶ 4s²4 unpaired electrons
Fe²⁺ / Fe³⁺[Ar] 3d⁶ / [Ar] 3d⁵4s electrons are removed first
Chromium (Cr)[Ar] 3d⁵ 4s¹Exception: half-filled 3d
Copper (Cu)[Ar] 3d¹⁰ 4s¹Exception: filled 3d
Palladium (Pd)[Kr] 4d¹⁰Exception: no 5s electrons
Silver (Ag) / Gold (Au)[Kr] 4d¹⁰ 5s¹ / [Xe] 4f¹⁴ 5d¹⁰ 6s¹Same pattern as copper
Gadolinium (Gd)[Xe] 4f⁷ 5d¹ 6s²Exception: half-filled 4f

How valence electrons are counted here: main-group elements use the electrons in the outermost shell; d-block elements use ns + (n−1)d; f-block elements use all electrons outside the noble-gas core. Configurations of the superheavy elements (Z > 103) are theoretical predictions.

Frequently asked questions

How do you write an electron configuration?

Fill subshells in order of increasing energy (the Aufbau or n + l rule): 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p. An s subshell holds 2 electrons, p holds 6, d holds 10 and f holds 14. Write each subshell with its electron count as a superscript, e.g. oxygen is 1s² 2s² 2p⁴.

What is noble-gas shorthand?

It replaces the inner electrons that match the previous noble gas with that gas's symbol in brackets. Iron, 1s² 2s² 2p⁶ 3s² 3p⁶ 3d⁶ 4s², becomes [Ar] 3d⁶ 4s² because argon accounts for the first 18 electrons.

Why are chromium and copper exceptions?

A half-filled or completely filled d subshell is extra stable, so one 4s electron moves into 3d. Chromium is [Ar] 3d⁵ 4s¹ instead of 3d⁴ 4s², and copper is [Ar] 3d¹⁰ 4s¹ instead of 3d⁹ 4s². Several heavier elements such as Mo, Ag, Pd, Pt and Au have similar exceptions; this calculator uses the measured ground states.

How do you find the electron configuration of an ion?

Start from the neutral atom. For a positive ion remove electrons from the highest principal shell first, so transition metals lose 4s electrons before 3d: Fe²⁺ is [Ar] 3d⁶. For a negative ion add electrons to the next open subshell: Cl⁻ is [Ne] 3s² 3p⁶.

How many valence electrons does an element have?

For main-group elements it is the number of electrons in the outermost shell (1 for sodium, 6 for oxygen, 8 for neon). For transition metals the ns and (n−1)d electrons are usually counted together, so iron has 8.

What is Hund's rule?

Within a subshell, electrons occupy each orbital singly with parallel spins before any orbital gets a second electron. That is why nitrogen's 2p³ has three unpaired electrons and why the orbital diagram fills every box with an up arrow first.

What does paramagnetic mean?

An atom or ion with one or more unpaired electrons is paramagnetic and is weakly attracted to a magnetic field. If all electrons are paired it is diamagnetic. Oxygen atoms (2 unpaired) are paramagnetic; neon is diamagnetic.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Interactive Periodic TableAll 118 elements with colour modes, filters, search and full element details.Molar Mass CalculatorMolar mass of any chemical formula with an element-by-element mass % breakdown.Protons Neutrons Electrons CalculatorCount protons, neutrons and electrons for any element, isotope or ion, with isotope notation.Chemical Equation BalancerBalance chemical, ionic and redox equations with the matrix method and steps.Molarity CalculatorSolve mass, volume, molarity or molar mass, and C1V1 = C2V2 dilutions with units.pH CalculatorConvert pH, pOH, [H+] and [OH-], or find the pH of strong and weak acids and bases.Dilution CalculatorSolve C1V1 = C2V2 for any variable: stock volume, final volume or concentration, with units.Percent Yield CalculatorPercent yield from actual and theoretical yield, or theoretical yield from moles and formulas.PPM CalculatorConvert ppm to mg/L, %, ppb and mg/kg, find ppm of a solution, or ppm to mg/m³ for gases.Grams to Moles CalculatorConvert grams to moles and back from a chemical formula, with molar mass and atom counts.Blood Type CalculatorPossible child blood types and their odds from both parents' ABO and Rh types, with Punnett squares.Buffer pH CalculatorBuffer pH from pKa and acid/base concentrations, or the recipe for a target pH.Combined Gas Law CalculatorSolve P1V1/T1 = P2V2/T2 for any variable, with Boyle's, Charles's and Gay-Lussac's modes.Empirical Formula CalculatorElement percentages or grams to mole ratios, empirical formula and molecular formula.Gibbs Free Energy CalculatorΔG from ΔH, ΔS and temperature, with spontaneity, crossover temperature and K.Mass Percent CalculatorMass percent of a solution, percent composition of a formula, or mass for a target %.Molality CalculatorMolality from grams or moles of solute and solvent mass, or solve for either one.Moles to Atoms CalculatorConvert moles, grams and atoms or molecules with Avogadro's number, atoms per element.Serial Dilution CalculatorConcentration, transfer and diluent volume for every tube of a dilution series.Soap Lye CalculatorNaOH or KOH and water for a soap recipe from oil SAP values, superfat and water ratio.Theoretical Yield CalculatorTheoretical yield in grams and moles from limiting reagent mass and mole ratio.Titration CalculatorAnalyte concentration or equivalence volume from a titration, with pH curve and indicator.Punnett Square CalculatorBuild monohybrid, dihybrid or trihybrid Punnett squares with genotype and phenotype ratios.Stoichiometry CalculatorFrom one known mass or mole amount, get moles and grams of every reactant and product.Six Sigma CalculatorDPMO, yield and sigma level from defects, with the 1.5 sigma shift and a conversion table.Beer-Lambert Law CalculatorSolve A = εlc for absorbance, concentration, molar absorptivity or path length; %T conversion.Boyle's Law CalculatorSolve P1V1 = P2V2 for any missing pressure or volume, with units, gauge option and steps.Centrifuge RPM to RCF CalculatorConvert centrifuge RPM to RCF (× g) or RCF to RPM from rotor radius, with an RPM chart.Charles's Law CalculatorSolve V1/T1 = V2/T2 for volume or temperature, with °C, °F or K converted to kelvin.Hardy-Weinberg CalculatorAllele frequencies, expected genotypes and a chi-square equilibrium test from counts or p, q.Normality CalculatorFind normality from mass or molarity, and how much solid or stock acid makes an N solution.Oxidation Number CalculatorEnter a formula or ion to get the oxidation state of every element, with the rules used.Percent Solution CalculatorHow much solute and solvent for a w/v, w/w or v/v % solution, plus % from amounts and dilutions.Valence Electrons CalculatorValence electrons for any element, ion or molecule formula, with group-by-group working.
See all 35 Chemistry & Biology Calculators →