AP Chemistry Valence Electrons
Counting valence electrons from the periodic table and electron configurations, for atoms, ions, and molecules, in four worked examples.
Almost every bonding question starts with a count of valence electrons: the total for a Lewis structure, the charge of a common ion, or the number of bonds an atom forms. The count itself takes a few seconds once you know which shortcut applies. This page shows the shortcuts, where they break down, and how the number connects to the Lewis structure method and to electron configurations.
What Valence Electrons Are and Two Ways to Count Them
Valence electrons are the electrons in the outermost occupied shell of an atom, the ones that take part in bonding. There are two reliable ways to count them:
- From the group number (main-group elements only): groups 1 and 2 have 1 and 2 valence electrons, and groups 13 to 18 have 3 to 8, which is the group number minus 10. Helium, in group 18, has 2.
- From the electron configuration: add the electrons in the highest principal energy level, for example the 2s and 2p electrons of oxygen (1s2 2s2 2p4), which gives 2 + 4 = 6.
Atoms in the same group have the same valence count and similar chemistry, which is the reason the periodic table is organized in columns. The chart shows the period 2 elements as Lewis dot symbols, with the number of bonds the nonmetals usually form.
Worked Example 1: Counting Valence Electrons for Atoms From Group Number and Configuration
Find the number of valence electrons in N, Mg, Cl, and Xe, using both methods for at least one of them.
N (group 15): 15 − 10 = 5. Check with the configuration 1s2 2s2 2p3: 2 + 3 = 5.
Mg (group 2): 2, from 1s2 2s2 2p6 3s2, where only the 3s electrons are in the outer shell.
Cl (group 17): 17 − 10 = 7, from 3s2 3p5.
Xe (group 18): 18 − 10 = 8, from 5s2 5p6.
The inner electrons, such as the 1s, 2s, and 2p electrons of magnesium, are core electrons and are not counted. The periodic table already encodes this: the column tells you the count with no printed configuration needed.
Worked Example 2: Finding the Outer-Shell Electrons of Common Ions
How many electrons are in the outermost shell of Na+, Mg2+, Al3+, S2−, and Cl−, and which noble gas does each match?
Na+: Na is 1s2 2s2 2p6 3s1. Losing the 3s electron leaves 2s2 2p6 as the outer shell: 8, matching neon.
Mg2+ and Al3+: the same logic, 8 each, also neon-like.
S2−: S has 6 valence electrons, gains 2, and reaches 3s2 3p6: 8, matching argon.
Cl−: 7 + 1 = 8, also argon-like.
Cations lose their valence electrons, so the next shell down becomes the outer shell, which is already full. Some sources say a cation has zero valence electrons because it lost them; the usable fact is the same, that the outermost occupied shell is full with 8 electrons (or 2 for Li+). That is why main-group metals form the ion charges they do and why ionic compounds are written with ions that all have noble-gas configurations. Ion sizes follow from this, as described in periodic trends.
Worked Example 3: Totaling Valence Electrons for Molecules and Polyatomic Ions
Find the total number of valence electrons in NH4+, SO42−, PCl3, NO3−, and N2O.
NH4+: 5 + 4(1) − 1 = 8.
SO42−: 6 + 4(6) + 2 = 32.
PCl3: 5 + 3(7) = 26.
NO3−: 5 + 3(6) + 1 = 24.
N2O: 2(5) + 6 = 16.
Add one electron per negative charge and subtract one per positive charge. This total is step 1 of every Lewis structure; the rest of the process is in the Lewis structures guide, and the formulas and charges of the ions are listed on the polyatomic ions page. A quick check: most molecules have an even total, so an odd count means either a mistake or an odd-electron species such as NO.
Worked Example 4: Predicting How Many Bonds an Atom Forms
Predict the simplest hydrogen compound of carbon, nitrogen, oxygen, and fluorine.
A nonmetal tends to complete 8 electrons, so the number of bonds it forms is 8 minus its valence electrons. Hydrogen needs 2 and forms one bond.
C: 8 − 4 = 4 bonds, so CH4.
N: 8 − 5 = 3 bonds, so NH3.
O: 8 − 6 = 2 bonds, so H2O.
F: 8 − 7 = 1 bond, so HF.
The leftover valence electrons become lone pairs: NH3 has one, H2O has two, and HF has three. The pattern explains formulas and sets up the bookkeeping behind formal charge, where an atom that forms its usual number of bonds has a formal charge of zero.
Five Valence Electron Practice Questions With Answers
-
How many valence electrons does sulfur have, and how can you tell without its configuration?
Show answer
6. Sulfur is in group 16, and 16 − 10 = 6. -
How many valence electrons does helium have?
Show answer
2. Helium's only shell, 1s2, holds 2 electrons, so it is the exception to the group-18-equals-8 rule. -
Find the total number of valence electrons in CO2 and in ClO4−.
Show answer
CO2: 4 + 2(6) = 16. ClO4−: 7 + 4(6) + 1 = 32. -
How many electrons are in the outer shell of Ca2+, and which noble gas does it match?
Show answer
8, matching argon. Calcium loses its two 4s electrons, leaving 3s2 3p6 as the outer shell. -
How many bonds does phosphorus usually form in a neutral molecule, and what is the simplest hydride?
Show answer
3, since phosphorus has 5 valence electrons and 8 − 5 = 3. The hydride is PH3.
Common Valence Electron Mistakes
- Counting core electrons. Only the outermost shell counts; 1s2 2s2 2p6 in sodium are not valence electrons.
- Using the group-number shortcut for transition metals. It works for main-group elements only.
- Calling helium an 8. Helium has 2 valence electrons.
- Forgetting the charge when totaling for an ion. Add one electron per negative charge and subtract one per positive charge.
- Treating an ion's valence count like the atom's. A cation has lost its valence electrons, and the new outer shell is the filled one below.
- Reading the group number directly for groups 13 to 18. Group 15 has 5, not 15; subtract 10.
A quick, accurate count removes most of the errors in bonding questions. To see how a stronger Unit 2 would shift your overall estimate, the AP Chem Score Calculator turns section scores into a 1–5 range.
Related Resources
- AP Chem Score Calculator
- Unit 1 Review: Atomic Structure and Properties
- AP Chemistry Electron Configuration
- AP Chemistry Lewis Structures
- AP Chemistry Periodic Table
- AP Chemistry Polyatomic Ions
- AP Chemistry Formal Charge
- AP Chemistry Study Guide
Frequently Asked Questions
What are valence electrons?
Valence electrons are the electrons in the outermost occupied shell of an atom. They are the electrons involved in forming bonds, so they determine how an element reacts.
How do you find the number of valence electrons from the periodic table?
For a main-group element, the group number tells you directly: group 1 has 1, group 2 has 2, and groups 13 to 18 have 3 to 8 (the last digit of the group number). Helium is the exception, with 2 valence electrons.
How many valence electrons does oxygen have?
Oxygen has 6 valence electrons, shown by its electron configuration 1s² 2s² 2p⁴ (two in the 2s subshell and four in the 2p) and by its position in group 16.
How many valence electrons does an ion have?
A main-group ion that has reached a noble-gas configuration has 8 electrons in its outermost occupied shell (2 for ions such as Li⁺ and Be²⁺). Mg²⁺, for example, has the configuration of neon, with 8 electrons in its n = 2 shell. Some sources count a cation's valence electrons as zero because they were lost, so state which shell you mean.
Do transition metals follow the group-number rule for valence electrons?
No. The group-number shortcut works for main-group elements only. Transition metals fill d subshells, and their ions are usually written by removing the highest-n electrons first, so counting them takes the electron configuration, not the group number.
This page is not affiliated with or endorsed by College Board. AP® is a trademark registered by the College Board.