What are valence electrons?
Valence electrons are electrons associated with an atom's outer region. They strongly influence bonding and chemical reactivity. For main-group elements, periodic-table groups provide a fast counting rule.
Groups 1 and 2 usually have one and two valence electrons. Groups 13 through 18 usually have three through eight. Helium is the important exception, because its first shell is complete with two electrons.
Formula used
For a neutral molecule, add each atom's valence-electron contribution. Multiply each element's valence count by its atom count.
Total valence electrons = Σ(atom count × element valence electrons) − ionic charge.
A negative charge adds electrons because subtracting a negative charge increases the total. A positive charge removes electrons.
How to use this calculator
- Select Element, Ion, or Molecule / formula mode.
- Enter an element name, symbol, atomic number, or formula.
- For ions, choose the ionic charge.
- Press Calculate to see the result and detailed steps.
- Use the periodic table for fast element selection.
- Print, copy, share, or export your saved history.
Valence electrons and periodic groups
Main-group elements show a strong group pattern. Carbon in group 14 has four valence electrons. Oxygen in group 16 has six. Chlorine in group 17 has seven.
Transition metals are more complicated. Their outermost shell and chemically available d electrons may both matter. This tool therefore shows more than one useful count when needed.
Lewis dots and the octet rule
Lewis symbols place dots around an element symbol to represent valence electrons. They help visualize bonding capacity and lone pairs.
The octet rule is a useful main-group guideline. Many atoms gain, lose, or share electrons toward eight valence-shell electrons. Hydrogen and helium follow a two-electron first-shell pattern instead.
Common mistakes
- Forgetting to multiply by the number of atoms.
- Adding electrons for a positive ionic charge.
- Subtracting electrons for a negative ionic charge.
- Using a simple main-group rule for every transition metal.
- Confusing total electrons with valence electrons.
- Ignoring parentheses in formulas such as Al₂(SO₄)₃.