Octet ruleCourse level: FoundationsCourse level: AP Chemistry

Valence Electrons and the Octet Rule

What you'll be able to do: Count valence electrons from the periodic table and use the octet rule to predict how many bonds an atom forms.

Best after: Electron Configurations and Orbital Filling

Introduction

Almost every Lewis structure you will ever draw starts with one number: how many valence electrons are in play.

These are recommended, not required. You can start this lesson at any time.

Learning objectives

  • Determine the valence electron count of a main-group element from its group
  • Draw Lewis symbols showing valence electrons as dots
  • State the octet rule and the duet rule for hydrogen
  • Predict the usual number of bonds formed by C, N, O, F and H

What counts as a valence electron

Valence electrons are the electrons in the highest occupied principal energy level. For main-group elements the group number gives the count directly: group 1 has 1, group 2 has 2, group 13 has 3, and so on up to group 18 with 8. Sulfur is in group 16, so it has 6 valence electrons regardless of which period it sits in.

For main-group atoms the highest-shell count is the useful starting definition. Helium is the group-18 exception: 1s² gives two valence electrons and a full first shell, not eight. The group-number shortcut does not extend unchanged to transition metals, whose d electrons may also participate in bonding. Use the periodic-table group to obtain the neutral atom's contribution before adjusting a whole species for charge.

Only main-group elements follow the group-number shortcut. Transition metals are handled separately.

Lewis symbols

A Lewis symbol is the element symbol surrounded by one dot per valence electron. Dots are placed singly on the four sides first and then paired up, which is why nitrogen shows three single dots plus one pair and oxygen shows two single dots plus two pairs. Those unpaired dots are the electrons available for bonding.

The four sides of a Lewis symbol are a drawing convention, not a literal map of the isolated atom's orbital directions. To draw oxygen, place one dot on each side until four dots are used, then add the remaining two as partners, producing two lone pairs and two single dots. Rotating the symbol or choosing different sides for the pairs does not change its electron count. When atoms form a shared pair, a bond line replaces two dots between them.

The octet rule

Main-group atoms are most stable when they are surrounded by eight valence electrons, matching the nearest noble gas. Metals reach that count by losing electrons, nonmetals by gaining or sharing them. Hydrogen is the exception that everyone must remember: it is complete with two electrons, matching helium.

A bonding pair counts toward the octet of both bonded atoms but counts only once in the molecule's total electron budget. In H₂O, two O–H bonds contain four electrons and two oxygen lone pairs contain four more, totaling eight electrons. Around O, the two bonds and two lone pairs supply an octet; each H sees the two electrons in its one bond. Adding “eight around O plus two around each H” would double-count the shared electrons. The octet rule is a useful pattern for many main-group compounds, not the physical cause of every stable bond or an exception-free law.

Bonding electrons are counted by both atoms in the bond, so a shared pair helps each atom toward its own octet.

Predicting bond number

For a neutral nonmetal, the usual number of covalent bonds is eight minus the group valence count. Carbon with 4 valence electrons forms 4 bonds and no lone pairs, nitrogen with 5 forms 3 bonds and 1 lone pair, oxygen with 6 forms 2 bonds and 2 lone pairs, and fluorine with 7 forms 1 bond and 3 lone pairs. Hydrogen forms exactly 1 bond.

Neutral atom in a common octet/duet structureTypical bondsTypical lone pairs
H10
C40
N31
O22
F13

These are neutral patterns, not mandatory counts for charged atoms. Nitrogen in NH₄⁺ has four bonds and no lone pair; oxygen in OH⁻ has one bond and three lone pairs. In both cases the central atom still has an octet, with a nonzero formal charge. A multiple bond counts as two or three shared pairs for the octet, even though it later counts as only one electron domain for geometry.

Audit both the budget and the local valence shells

For NH₄⁺, 5 + 4(1) − 1 = 8 electrons are available; four N–H bonds use all eight. Nitrogen has an octet and every hydrogen a duet. For CO₃²⁻, 4 + 3(6) + 2 = 24 electrons must appear across the entire drawing. Adding charge changes the budget once, not once per atom.

Ask two independent questions: did I use the right total, and does each atom have an allowed local pattern? A drawing can satisfy every octet but contain too many electrons for the specified charge. Conversely, a correct budget can still leave carbon short of an octet until lone pairs are converted into multiple bonds. Formal-charge accounting supplies a third check in the later lessons.

The total electron budget counts a bond pair once; each bonded atom also counts that shared pair when checking its local shell.
Write the target electron total above the skeleton before placing any lone pairs.

Key ideas

Definition
Valence electron

An electron in the outermost occupied shell; for main-group elements the group number gives the count.

Rule
Octet rule

Main-group atoms tend toward eight valence electrons; hydrogen tends toward two.

Rule
Bonds equals 8 minus valence

Typical neutral patterns: C four bonds, N three, O two, F one; H one bond. Charged atoms and octet exceptions require separate counting.

Key concept
Reading a group

Phosphorus is in group 15, so it has 5 valence electrons and usually forms 3 bonds with 1 lone pair.

Equation
Total valence electrons for a molecule

total = sum of group valence counts, minus the charge

    Worked examples

    Worked example 1

    How many valence electrons does a sulfur atom have, and how many bonds does neutral sulfur usually form?

    Try it first: Find the group number first.

      0 of 3 steps revealed.

      Worked example 2

      Count the total valence electrons available for the ammonium ion NH₄⁺.

      Try it first: Count the neutral atoms first, then adjust for the charge.

        0 of 3 steps revealed.

        Worked example 3

        How many valence electrons must a Lewis structure for sulfate, SO₄²⁻, contain?

        Try it first: Sum neutral-atom valence electrons, then adjust for the ion's charge.

          0 of 3 steps revealed.

          Common mistakes

          Common mistakes and better checks
          MistakeWhy it's wrongCheck instead
          Counting all electrons in the atom instead of only the outer shell.Core electrons are held tightly and take no part in bonding.Use the main-group number, not the atomic number.
          Giving hydrogen an octet.Hydrogen has only a 1s orbital and is complete with two electrons.Check that every H shows exactly one bond and no lone pairs.
          Forgetting to adjust the total for an ionic charge.A cation has lost electrons and an anion has gained them, so the total changes.Add one electron per negative charge, remove one per positive charge.

          Scroll horizontally if needed to read all columns.

          After the lesson · Question bank

          Independent practice

          Work through new problems on your own. The lesson's quick checks and worked examples stay above if you need to review a step.

          21 topic questions across 3 difficulty levels.

          Loading practice questions…

          What you should now know

          Valence electrons are the outermost s and p electrons of a main-group atom, and the main-group number tells you how many there are. Atoms gain, lose or share electrons to reach a noble-gas count of eight (two for hydrogen), which sets the typical number of bonds and lone pairs each element carries.

          • Main-group valence electron count equals the group valence number
          • Lewis symbols place dots singly before pairing them
          • Atoms seek eight valence electrons, hydrogen seeks two
          • Usual bond count is 8 minus the valence electron count
          • Adjust the total valence count for any ionic charge

          Your next step

          Lesson: Not marked completed

          Marking a lesson completed records that you finished reading it. Practice establishes mastery separately. Saved on this device.

          Try a short set of different questions to check what you can do independently.

          Watch and Learn

          An optional video to support this lesson.

          Loading video resources…

          Supplementary learning resources

          More resources for this topic →

          External resources belong to their respective creators. Chem Help is not affiliated with or endorsed by these providers. Links open the original provider; their terms apply.

          Sources and further reading

          • Chemistry 2e, Section 7.3: Lewis Symbols and Structures
            OpenStax · Rice University · 7.3
            View source

            Lesson-specific rights and provenance need review.

            The current online Chemistry 2e edition lists CC BY-NC-SA 4.0. The source version used for this lesson and its applicable rights remain unverified.

            Recorded use: further reading. The source record also indicates adaptation or summary; exact passages and applicable terms still need verification.

            Recorded attribution / license claim (applicability unverified): CC BY 4.0

            Source rights and review status