molecalculator

Moles & Molar Mass

Oxygen Atomic Number & Electron Configuration

Calculator No. 01-9705 · 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.

Oxygen has the atomic number 8, meaning its nucleus contains 8 protons, and its electron configuration is 1s2 2s2 2p4. This arrangement gives oxygen 6 valence electrons and a strong tendency to gain 2 more, which is why it forms oxides and is essential for respiration and combustion.

Formula

The amount of oxygen (in moles) is calculated as:

n = m / M

  • n – amount of substance, in moles (mol)
  • m – mass of the oxygen sample, in grams (g)
  • M – molar mass of oxygen, in grams per mole (g/mol). For atomic oxygen, M = 15.999 g/mol (standard atomic weight).

To find the number of atoms, multiply moles by Avogadro’s constant:

N = n × 6.02214076 × 1023 atoms/mol

Worked Example

Using the default values from the calculator: you have 16.00 g of oxygen atoms.

Step 1 – Calculate moles:

n = 16.00 g / 15.999 g/mol = 1.00006 mol ≈ 1.000 mol

Step 2 – Calculate the number of atoms:

N = 1.00006 mol × 6.02214076 × 1023 atoms/mol = 6.022 × 1023 atoms

So 16.00 g of oxygen contains about 1.000 mol and 6.022 × 1023 atoms.

Assumptions

  • The sample is pure elemental oxygen (O), not O2 gas. If you have oxygen gas, use M = 31.998 g/mol for O2.
  • The molar mass is the standard atomic weight from IUPAC; real samples may vary slightly due to isotopic composition.
  • Avogadro’s constant is exact (6.02214076 × 1023 mol−1).

Why Oxygen Has Atomic Number 8

The atomic number is the number of protons in the nucleus, and it defines the element. Oxygen has 8 protons, so any atom with 8 protons is oxygen, regardless of the number of neutrons (isotopes) or electrons (ions). In a neutral oxygen atom, there are also 8 electrons. The most common isotope is 16O, which has 8 neutrons, giving a mass number of 16. Other natural isotopes include 17O and 18O, with 9 and 10 neutrons respectively.

How the Electron Configuration Is Determined

Electrons fill atomic orbitals in order of increasing energy, following the Aufbau principle, Hund’s rule, and the Pauli exclusion principle. For oxygen (8 electrons):

  1. The first 2 electrons fill the 1s orbital (lowest energy).
  2. The next 2 fill the 2s orbital.
  3. The remaining 4 go into the 2p subshell. The 2p subshell has three orbitals (2px, 2py, 2pz), each holding up to 2 electrons. Hund’s rule says each orbital gets one electron before any gets a second, so the 4 electrons occupy all three orbitals with one unpaired electron in two of them.

Thus the shorthand is 1s2 2s2 2p4. The noble-gas shorthand is [He] 2s2 2p4, since helium’s configuration is 1s2.

Valence Electrons and Chemical Behavior

Oxygen has 6 valence electrons (2s2 2p4). It needs 2 more to achieve a stable octet (8 valence electrons), which explains its common −2 oxidation state in compounds like water (H2O) and carbon dioxide (CO2). Oxygen is highly electronegative (3.44 on the Pauling scale), second only to fluorine. It forms strong covalent bonds, including the double bond in O2 gas. The unpaired electrons in the 2p orbitals make oxygen a diradical, which is why it is reactive and supports combustion.

Common Mistakes and Misconceptions

  • Confusing atomic number with mass number: Atomic number (8) is protons; mass number is protons + neutrons (e.g., 16 for 16O).
  • Writing the configuration as 1s2 2s2 2p6: That would be 10 electrons (neon). Oxygen has only 8 electrons.
  • Forgetting that the 2p subshell can hold 6 electrons: Oxygen has 4, not 6, in 2p.
  • Using the molar mass of O2 when counting atoms: If you weigh oxygen gas, the molar mass is 31.998 g/mol because it exists as diatomic molecules. For atomic oxygen, use 15.999 g/mol.

Applications and Importance

Oxygen’s electron configuration underpins its role in life and industry:

  • Respiration: Oxygen acts as the final electron acceptor in the electron transport chain, producing water.
  • Combustion: Fuels burn in oxygen because O2 readily accepts electrons.
  • Ozone (O3): In the stratosphere, ozone absorbs UV radiation; its chemistry depends on oxygen’s bonding.
  • Oxides: Most metals form oxides; rust (Fe2O3) is a common example.
  • Medical oxygen: Pure O2 is used in hospitals, but the calculator above is for chemistry, not dosing.

Frequently Asked Questions

What is the electron configuration of oxygen ion O2−?

O2− has gained 2 electrons, so it has 10 electrons. Its configuration is 1s2 2s2 2p6, which is the same as neon (a noble gas). This filled octet makes the oxide ion relatively stable.

How many unpaired electrons does oxygen have?

Oxygen has 2 unpaired electrons in its ground state. According to Hund’s rule, the 4 electrons in the 2p subshell occupy three orbitals: one orbital has 2 electrons (paired), and the other two orbitals each have 1 unpaired electron.

Why is oxygen’s atomic mass 15.999 and not exactly 16?

The atomic mass is a weighted average of all natural isotopes. 16O is the most abundant (99.76%), but 17O (0.04%) and 18O (0.20%) are heavier, raising the average slightly above 16. The 15.999 value is the standard atomic weight from IUPAC.

Is oxygen a metal or nonmetal?

Oxygen is a nonmetal. It is a gas at room temperature, has high electronegativity, and tends to gain electrons in chemical reactions. Nonmetals are found on the right side of the periodic table.

How do I calculate the number of oxygen atoms in a compound?

First, find the moles of the compound using its mass and molar mass. Then multiply by the number of oxygen atoms per formula unit (e.g., 2 in CO2), and finally multiply by Avogadro’s number. For example, 44.01 g of CO2 is 1 mol, which contains 2 mol of O atoms, or 1.204 × 1024 oxygen atoms.

Related

Formula used
in m | Mass of oxygen atoms | g | 16.00 | 0
in mm | Molar mass of oxygen (O) | g/mol | 15.999 | 0.001
out n | Amount of oxygen | mol | m / mm | 4
out N | Number of oxygen atoms | - | n * 6.02214076e23 | 3

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 →