Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

Lewis Structure Generator

Enter a molecular formula and this Lewis structure calculator draws the Lewis dot structure with bonds, lone pairs, and VSEPR geometry. See step-by-step valence electron counting and shape classification for any molecule.

Lewis Structure

OHH

Molecular Formula

Results

Central Atom
O
Total Valence Electrons
8
Steric Number
4
Lone Pairs on Central
2
Electron Geometry
Tetrahedral
Molecular Shape
Bent
Bond Angle
~104.5°
Bond Orders
O-H (single)O-H (single)

Step-by-Step

1. Count total valence electrons

Neutral total=2×1 (H)+6 (O)=8\text{Neutral total} = 2 \times 1\text{ (H)} + 6\text{ (O)} = 8

2. Draw single bonds to each outer atom

2 bonds×2=4 electrons used\text{2 bonds} \times 2 = 4\text{ electrons used}

3. Remaining electrons

84=4 electrons8 - 4 = 4\text{ electrons}

4. Distribute lone pairs to outer atoms (satisfy octets)

Remaining after outer atoms: 4 electrons\text{Remaining after outer atoms: }4\text{ electrons}

5. Place remaining electrons on central atom

Central atom (O) gets 2 lone pairs\text{Central atom (O) gets }2\text{ lone pairs}

6. VSEPR geometry

Steric number=2 bonding+2 lone=4\text{Steric number} = 2\text{ bonding} + 2\text{ lone} = 4

7. Molecular shape

Electron geometry: Tetrahedral, Molecular shape: Bent, Bond angle:  104.5°\text{Electron geometry: Tetrahedral, Molecular shape: Bent, Bond angle: ~104.5°}

Reference Guide

Valence Electrons

Valence electrons are the outer-shell electrons that participate in bonding. The group number in the periodic table tells you how many each element has.

C: 4, N: 5, O: 6, F: 7, H: 1\text{C: 4, N: 5, O: 6, F: 7, H: 1}

The Octet Rule

Most atoms seek 8 electrons in their valence shell (2 for hydrogen). Bonds and lone pairs are arranged to satisfy this rule.

VSEPR Theory

Valence Shell Electron Pair Repulsion theory predicts molecular geometry. Electron pairs around the central atom spread out to minimize repulsion.

Bond Angles

Common geometries and their ideal bond angles include tetrahedral (109.5), trigonal planar (120), and linear (180). Lone pairs compress bond angles slightly.

How to draw a Lewis structure step by step

The five steps

1. Count valence electrons. Add up the valence electrons for every atom in the formula.

2. Pick the central atom. Choose the least electronegative atom that is not hydrogen.

3. Connect with single bonds. Join each outer atom to the central atom with one bond.

4. Add lone pairs. Place the remaining electrons on the outer atoms first, then the central atom, to complete octets.

5. Make multiple bonds. If the central atom is short of an octet, convert lone pairs into double or triple bonds.

Worked example for CO2

Carbon dioxide has 4 + 6 + 6 = 16 valence electrons. Carbon is the central atom.

Two single bonds use 4 electrons and leave 12. Placing three lone pairs on each oxygen uses all 12, but carbon then has only 4 electrons around it.

Converting one lone pair from each oxygen into a second bond gives the linear structure below, where carbon and both oxygen atoms reach a full octet.

O=C=O(180, linear)\text{O} = \text{C} = \text{O} \quad (180^\circ, \text{ linear})

Lewis structures, dot structures, and formal charge

A Lewis structure and a Lewis dot structure are the same diagram. Bonding pairs are shown as lines and non-bonding electrons as dots. The generator above produces either view from a formula.

To check a structure, calculate the formal charge on each atom. Formal charge equals the valence electrons minus the lone-pair electrons minus half the bonding electrons. The best structure keeps formal charges closest to zero.

formal charge=VL12B\text{formal charge} = V - L - \tfrac{1}{2}B

Related Content