Blog

Lewis Dot Structures: How to Draw Them for Any Molecule

Master Lewis dot structures with this step-by-step guide covering valence electrons, the octet rule, lone pairs, and worked examples for common molecules.

Samanyu Sathyamoorthi · General Chemistry · August 31, 2026
Lewis Dot Structures: How to Draw Them for Any Molecule

Lewis dot structures are one of the most useful tools in chemistry for visualizing how atoms bond together in a molecule. Named after the American chemist Gilbert N. Lewis, these diagrams show the arrangement of valence electrons around atoms, including which electrons are shared in bonds and which remain as lone pairs. If you can draw Lewis structures, you can predict molecular shapes, polarity, and reactivity.

What do Lewis dot structures show?

A Lewis dot structure represents the valence electrons of each atom in a molecule. Valence electrons are the electrons in the outermost energy level of an atom, and they are the electrons involved in chemical bonding. In a Lewis structure, bonding pairs of electrons are shown as lines between atoms, and lone pairs (nonbonding pairs) are shown as dots on individual atoms.

The goal of a Lewis structure is to show how atoms share or transfer electrons to achieve a stable electron configuration. For most atoms, stability means having eight electrons in the outer shell, which is known as the octet rule. Hydrogen is an exception: it is stable with just two electrons.

How to determine valence electrons

The number of valence electrons for a main-group element equals its group number on the periodic table (using the traditional American numbering). Carbon is in Group 4A, so it has 4 valence electrons. Nitrogen is in Group 5A with 5 valence electrons. Oxygen is in Group 6A with 6 valence electrons. Fluorine and chlorine are in Group 7A with 7 valence electrons each. Hydrogen has 1 valence electron.

For a molecule, add up the valence electrons of all atoms. If the species is a negative ion, add one electron for each negative charge. If it is a positive ion, subtract one electron for each positive charge.

Step-by-step method for drawing Lewis structures

Follow these steps for any molecule or polyatomic ion. Step 1: Count the total number of valence electrons. Step 2: Identify the central atom, which is usually the least electronegative atom (not hydrogen). Step 3: Draw single bonds from the central atom to each surrounding atom. Each single bond uses 2 electrons. Step 4: Subtract the electrons used in bonds from the total. Step 5: Distribute the remaining electrons as lone pairs, starting with the outer atoms, giving each atom an octet (or duet for hydrogen). Step 6: If the central atom does not have an octet, convert lone pairs on outer atoms into double or triple bonds.

Example 1: Water (H₂O)

Total valence electrons: 2(1) + 6 = 8. Oxygen is the central atom. Draw single bonds to each hydrogen: O-H and O-H. That uses 4 electrons, leaving 4. Hydrogen already has its duet from the bond. Place the remaining 4 electrons as two lone pairs on oxygen. Oxygen now has 2 bonding pairs + 2 lone pairs = 8 electrons. The structure is complete.

Example 2: Carbon dioxide (CO₂)

Total valence electrons: 4 + 2(6) = 16. Carbon is the central atom. Draw single bonds to each oxygen: O-C-O. That uses 4 electrons, leaving 12. Distribute 12 electrons as lone pairs on the oxygens: each oxygen gets 3 lone pairs (6 electrons each). Check octets: each oxygen has 8 electrons (2 bonding + 6 lone pair), but carbon only has 4. Move one lone pair from each oxygen to form a double bond with carbon: O=C=O. Now carbon has 8 electrons (4 bonding pairs), and each oxygen has 8 electrons (2 bonding pairs + 2 lone pairs). The structure has two double bonds.

Example 3: Ammonia (NH₃)

Total valence electrons: 5 + 3(1) = 8. Nitrogen is the central atom. Draw three N-H single bonds, using 6 electrons. The remaining 2 electrons form one lone pair on nitrogen. Each hydrogen has its duet, and nitrogen has 3 bonding pairs + 1 lone pair = 8 electrons. The lone pair on nitrogen is important because it gives ammonia its pyramidal shape and allows it to act as a base.

Example 4: Methane (CH₄)

Total valence electrons: 4 + 4(1) = 8. Carbon is the central atom. Draw four C-H single bonds, using all 8 electrons. Each hydrogen has 2 electrons, and carbon has 4 bonding pairs = 8 electrons. There are no lone pairs. Methane has a perfectly symmetrical tetrahedral shape.

Example 5: Ozone (O₃)

Total valence electrons: 3(6) = 18. The central oxygen connects to two outer oxygens. Draw two O-O single bonds, using 4 electrons. Distribute the remaining 14 electrons as lone pairs: each outer oxygen gets 3 lone pairs (6 electrons), and the central oxygen gets 1 lone pair (2 electrons). That accounts for all 18 electrons. Check octets: each outer oxygen has 8, but the central oxygen has only 6 (2 bonding + 2 lone pair). Move one lone pair from an outer oxygen to form a double bond: O=O-O. Now the central oxygen has 8 electrons. Ozone is actually best represented by two resonance structures where the double bond alternates between the two sides.

Lone pairs versus bonding pairs

Bonding pairs are shared between two atoms and hold the molecule together. Lone pairs belong to a single atom and do not participate directly in bonding, but they strongly influence molecular shape. According to VSEPR theory (Valence Shell Electron Pair Repulsion), lone pairs take up more space than bonding pairs and push bonding pairs closer together. This is why water is bent rather than linear, and why ammonia is pyramidal rather than flat.

A brief introduction to formal charge

Sometimes you can draw more than one valid Lewis structure for a molecule. Formal charge helps you decide which structure is best. Formal charge = (valence electrons of the free atom) − (lone pair electrons) − (half of bonding electrons). The best Lewis structure is usually the one where formal charges are closest to zero and any negative formal charges are on the more electronegative atoms.

Common mistakes to avoid

One frequent error is forgetting to count all valence electrons, especially for polyatomic ions where you must add or subtract electrons for the charge. Another mistake is giving hydrogen more than 2 electrons; hydrogen never has a lone pair in a valid Lewis structure. Students also sometimes forget to check whether the central atom has a complete octet and stop too early, missing the need for double or triple bonds.

Lewis structures are a gateway to understanding molecular geometry, polarity, and intermolecular forces. You can practice drawing them for dozens of molecules in a virtual lab like MyChemLab AI, where you receive instant feedback on your electron placement. The more structures you draw, the more intuitive the process becomes.