molecalculator

Moles & Molar Mass

Electron Config of O: Oxygen’s 8 Electrons

Calculator No. 01-9545 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

The electron configuration of oxygen (O, atomic number 8) is 1s2 2s2 2p4. This means oxygen has 2 electrons in the first shell (1s) and 6 electrons in the second shell (2s and 2p), with the 2p subshell containing 4 electrons.

Formula

The electron configuration is written using the Aufbau principle (electrons fill lowest-energy orbitals first), the Pauli exclusion principle (each orbital holds at most 2 electrons with opposite spins), and Hund’s rule (electrons occupy degenerate orbitals singly before pairing). For oxygen (Z = 8), the order of filling is:

  • 1s orbital: 2 electrons (capacity 2)
  • 2s orbital: 2 electrons (capacity 2)
  • 2p orbitals: 4 electrons (capacity 6, with three 2p orbitals)

The shorthand notation lists the principal quantum number (n), the subshell letter (s, p, d, f), and the number of electrons in that subshell as a superscript. The sum of superscripts equals the atomic number: 2 + 2 + 4 = 8.

Worked Example

Using the default selection (O, Z = 8):

  1. Identify the atomic number: Z = 8.
  2. Fill the lowest energy orbital: 1s holds 2 electrons → 1s2.
  3. Next, 2s holds 2 electrons → 2s2.
  4. Remaining electrons: 8 − 2 − 2 = 4 electrons go into the 2p subshell → 2p4.
  5. Combine: 1s2 2s2 2p4.

The calculator shows the same result for O. For F (Z=9), it adds one electron to 2p: 1s2 2s2 2p5. For Ne (Z=10): 1s2 2s2 2p6.

Assumptions

  • The configuration is for a neutral, ground-state atom.
  • The Aufbau order is the standard one taught in introductory chemistry (1s, 2s, 2p, 3s, 3p, 4s, 3d, …).
  • No exceptions apply for these light elements (exceptions begin at chromium and copper).

Why Oxygen’s Configuration Matters

Oxygen’s 2p4 configuration means it has two unpaired electrons in the 2p orbitals (Hund’s rule). This explains oxygen’s paramagnetism (it is attracted to a magnetic field) and its tendency to form two covalent bonds, as in water (H2O) or the O2 molecule. The six valence electrons (2s2 2p4) place oxygen in group 16 of the periodic table, where it needs two more electrons to achieve a full octet.

The configuration also explains the common −2 oxidation state in oxides (e.g., MgO, CO2), where oxygen gains two electrons to fill its 2p subshell. In peroxides (e.g., H2O2), oxygen has a −1 oxidation state because it shares one electron with another oxygen.

How to Write Configurations for Other Elements

To write any element’s configuration, follow these steps:

  1. Find the atomic number (Z) on the periodic table.
  2. Use the Aufbau diagram to list orbitals in order of increasing energy: 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p.
  3. Fill each orbital with up to 2 electrons until you have placed all Z electrons.
  4. Write the configuration using superscripts, e.g., for sulfur (Z=16): 1s2 2s2 2p6 3s2 3p4.

For a shortcut, use the noble gas core: write [He] for the 1s2 core, so oxygen becomes [He] 2s2 2p4. This is especially useful for heavier elements like iron ([Ar] 4s2 3d6).

Common Mistakes and Misconceptions

  • Confusing 2p4 with 2p6: Oxygen has 4 electrons in 2p, not 6. A full 2p subshell would be neon (Z=10).
  • Writing 2p4 as 2p3 + 2p1: The superscript is the total count, not a distribution. The correct notation is a single 2p4.
  • Forgetting Hund’s rule: The 4 electrons in 2p occupy three orbitals as ↑↑↑↓ (one pair and two singles), not ↑↓↑↓ (which would violate Hund’s rule).
  • Using the wrong order: For oxygen, the order 1s, 2s, 2p is straightforward, but for transition metals, the 4s fills before 3d (with exceptions).

Orbital Diagram for Oxygen

An orbital diagram shows each orbital as a box and each electron as an arrow. For oxygen:

  • 1s: ↑↓
  • 2s: ↑↓
  • 2p: ↑ ↑ ↑↓ (three boxes, with one paired and two unpaired)

This diagram visually confirms the two unpaired electrons, which are responsible for oxygen’s radical-like behavior in many reactions. The unpaired electrons also make O2 a diradical, which is why it readily reacts with other radicals and why triplet oxygen is the ground state.

Frequently Asked Questions

What is the electron configuration of the oxide ion (O2−)?

The oxide ion gains two electrons, filling the 2p subshell completely: 1s2 2s2 2p6, which is the same as neon. This stable octet explains why O2− is common in ionic compounds like Na2O.

Why does oxygen have 6 valence electrons?

Valence electrons are those in the outermost shell. For oxygen, the second shell (n=2) holds 2 (2s) + 4 (2p) = 6 electrons. These are the electrons involved in bonding, and having 6 means oxygen needs 2 more to reach an octet.

Is oxygen’s configuration an exception to the Aufbau principle?

No, oxygen follows the standard order exactly. Exceptions occur in transition metals and lanthanides where half-filled or fully filled d/f subshells are more stable (e.g., chromium and copper). Oxygen is a light p-block element with no such anomaly.

How does the electron configuration relate to oxygen’s position in the periodic table?

Oxygen is in period 2 (because its highest principal quantum number is 2) and group 16 (because it has 6 valence electrons). The group number minus 10 gives the number of p electrons (16 − 10 = 6, which is 2s2 2p4).

What is the difference between electron configuration and valence electron configuration?

The full configuration lists all electrons (1s2 2s2 2p4), while the valence configuration shows only the outermost shell: 2s2 2p4. The core electrons (1s2) are often omitted for brevity.

Can oxygen have other electron configurations?

In excited states, electrons can be promoted to higher orbitals (e.g., 3s or 3p), but these are unstable and quickly decay to the ground state. The ground-state configuration is the one we always write unless specified otherwise.

Related

Formula used
sel z | Element (atomic number) | O=8, F=9, Ne=10, N=7, C=6
out config | Electron configuration | - | if(z==8,"1s2 2s2 2p4",if(z==9,"1s2 2s2 2p5",if(z==10,"1s2 2s2 2p6",if(z==7,"1s2 2s2 2p3","1s2 2s2 2p2")))) | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →