Lewis structures and the octet ruleLewis drawings track valence electrons in bonds and lone pairs. Octet counting helps many main-group species but has exceptions.Read firstValence electrons, Covalent bondingRelatedFormal charge, Resonance and delocalizationFurther readingOpenStax Chemistry 2e: Chapter 7 summary H₂O CO₂ O H H C O O 2 bonds · 2 lone pairs 4 bond lines · 4 lone pairs 2 × 1 + 6 = 8 electrons 4 + 2 × 6 = 16 electrons line = electron pair Water: 2×1 + 6 = 8 valence electrons. Carbon dioxide: 4 + 2×6 = 16. Every shown bond line accounts for two electrons; oxygen lone pairs complete its octet and hydrogen has a duet.