# Lewis Structures: How to Draw Lewis Dot Diagrams (H2O, NH3, CO2)

A Lewis structure is a diagram that shows which atoms in a molecule are bonded to one another and where the nonbonding, or lone pair, electrons sit. Each atom is written as its element symbol, a bond is drawn as a line or as a pair of dots between symbols, and lone pairs are shown as pairs of dots beside an atom ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). Only valence electrons appear in the drawing, since the inner electrons do not take part in bonding. Gilbert N. Lewis introduced these diagrams in his 1916 paper "The Atom and the Molecule".

The drawing method is the same for water, ammonia, and carbon dioxide: count the valence electrons for the whole molecule, join the atoms with single bonds, then place lone pairs until each octet is filled, adding double bonds where electrons remain and octets are still short. H2O has 8 valence electrons, NH3 has 8, and CO2 has 16. A finished structure should satisfy the octet rule and keep formal charges reasonable ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)).

## Key Points

- For a neutral molecule, the total number of electrons drawn equals the sum of the valence electrons of the individual atoms, not the maximum the shells could hold ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)).
- Elements of the second period and beyond usually gain, lose, or share electrons until they reach a full octet; hydrogen instead follows the duplet rule and forms one bond for a complete valence shell of two electrons.
- Hydrogen atoms form only single bonds and are always placed at the ends of a sequence of atoms ([Basic Lewis Structure "Rules"](https://ch301.cm.utexas.edu/section2.php?target=atomic/lewis-dot/lewis-rules.html)).
- A Lewis symbol is the element symbol plus its valence electrons written as dots, and the Lewis structure is built from the symbols of the atoms in the molecular formula ([Lewis structures](https://web02.gonzaga.edu/faculty/cronk/chem101pub/Lewis_structures.html)).
- For polyatomic ions, negative charges add electrons to the structure and positive charges remove them; the whole structure goes in brackets with the charge as a superscript at the upper right, outside the brackets.
- A Lewis structure is a simplified and limited model of the valence shell: it does not explain molecular geometry, how bonds form, or how electrons are shared between atoms ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)).

## At a Glance

| Item | Summary |
|---|---|
| Core idea | Shared electron pairs form covalent bonds. |
| Main steps | Count, connect, distribute, and check octets. |
| Key rule | Hydrogen needs two electrons; most other atoms need eight. |
| Examples | Water (H2O), ammonia (NH3), carbon dioxide (CO2). |
| Common error | Missing lone pairs or adding extra bonds. |

A Lewis structure is a diagram of valence electrons, bonds, and lone pairs in a molecule ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). The method is a bookkeeping routine: count electrons, connect atoms, distribute lone pairs, and repair incomplete octets with multiple bonds ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure); [Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)).

## What a Lewis Structure Shows

A Lewis structure is a diagram that shows the bonding between atoms in a molecule and any lone pairs of electrons. Gilbert N. Lewis introduced it in his 1916 article "The Atom and the Molecule" ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). The drawing uses chemical symbols for atoms and their positions. A line between two symbols stands for a shared pair of electrons, a covalent bond; a pair of dots can serve the same purpose. Lone pairs appear as pairs of dots beside the atom that holds them. Lewis structures can be drawn for covalently bonded molecules and for coordination compounds.

### Atoms, bonds, and lone pairs

- Element symbol: one atom and its position in the molecule ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)).
- Bond line: two electrons shared by the connected atoms.
- Dot pair on a bond: alternate way to show a shared pair.
- Lone pair: two valence electrons on one atom, drawn as dots.
- Charge bracket: for a polyatomic ion, the whole structure goes in brackets with the charge as a superscript outside.

The structure represents all valence electrons of the species; non-valence electrons are omitted because they do not take part in bonding ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). The total number of electrons in a neutral molecule equals the sum of the valence electrons of its atoms, not the maximum number the atoms could hold. A Lewis symbol for an atom is the element symbol plus its valence electrons as dots, so the structure begins with correct symbols and a correct electron count ([Lewis structures](https://web02.gonzaga.edu/faculty/cronk/chem101pub/Lewis_structures.html)).

### What the drawing can support

The drawing is a tool for the language of chemical bonding and molecular structure ([Lewis structures](https://web02.gonzaga.edu/faculty/cronk/chem101pub/Lewis_structures.html)). It helps show whether a combination of atoms can form a stable molecule or polyatomic ion, and it gives a basis for judging bonding patterns. The structure can also support simple polarity judgments when it is interpreted with a shape model. It does not show the true positions of electrons, orbital shapes, or the three-dimensional geometry by itself; those require other models ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)). The model is a simplified picture of valence-shell electrons, not a physical map of electron clouds ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)).

### Limits and alternate versions

A Lewis structure does not attempt to explain how bonds form or how electrons are shared between atoms ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)). It is the simplest and most limited theory of electronic structure in this sequence ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)). Different versions of the same structure can be drawn: a complete version is useful for learning, while a simpler version can convey the same bonding information to an experienced reader ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)). For ions, the bracket and charge notation keep the electron count clear ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)).

### Quick check

- Are all valence electrons accounted for? ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure))
- Are lone pairs shown on the correct atoms?
- Is each bond a line or a dot pair?
- Are non-valence electrons left out?
- Is an ion shown in brackets with its charge?

The dots are a bookkeeping shorthand for valence electrons in a simplified model ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)).

## Valence Electrons and the Octet Rule

Valence electrons are the electrons in the outermost shell of an atom. They are the electrons shown in a Lewis symbol and the ones counted for a Lewis structure ([Lewis structures](https://web02.gonzaga.edu/faculty/cronk/chem101pub/Lewis_structures.html)). For main-group elements, the count follows the periodic table: atoms in the same group have the same number of valence electrons, and their chemistry is similar. A Lewis symbol contains the element symbol and a dot pattern for those electrons.

### Counting valence electrons

| Element | Group | Valence electrons | Typical bonding note |
|---|---:|---:|---|
| H | 1 | 1 | One single bond; placed at the end of a chain ([Basic Lewis Structure "Rules"](https://ch301.cm.utexas.edu/section2.php?target=atomic/lewis-dot/lewis-rules.html)) |
| Be | 2 | 2 | Two bonds; incomplete octet common |
| B | 13 | 3 | Three bonds; incomplete octet common |
| C | 14 | 4 | Four bonds |
| N | 15 | 5 | Three bonds plus one lone pair |
| O | 16 | 6 | Two bonds plus two lone pairs |
| F | 17 | 7 | One bond plus three lone pairs |
| Ne | 18 | 8 | Filled octet; usually no bonds |
| P | 15 | 5 | Three bonds plus a lone pair, or five bonds in an expanded octet |
| S | 16 | 6 | Two bonds plus two lone pairs, or an expanded octet |
| Cl | 17 | 7 | One bond plus three lone pairs |

For a neutral molecule, the total electron count is the sum of the valence electrons on each atom, not the maximum possible count ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). This total is the number the finished drawing must contain.

### The octet rule

For second- and third-period elements, eight valence electrons fill the shell, and this is the basis of the octet rule ([Lewis structures](https://web02.gonzaga.edu/faculty/cronk/chem101pub/Lewis_structures.html)). Main-group elements commonly gain, lose, or share electrons until they reach a full octet ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). The octet rule is a guide for main-group elements in these periods. Some atoms have fewer than eight electrons. Boron and beryllium compounds can leave the central atom with six or four electrons, and some third-period and heavier elements can accommodate more than eight electrons in expanded octets.

### Hydrogen and helium

Hydrogen follows a duplet rule: it forms one bond to complete a valence shell of two electrons ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). Hydrogen forms only single bonds and sits at the end of a sequence of atoms ([Basic Lewis Structure "Rules"](https://ch301.cm.utexas.edu/section2.php?target=atomic/lewis-dot/lewis-rules.html)). Helium already has two electrons in its first shell and is generally unreactive as a neutral atom. The two-electron rule applies to both elements, but for hydrogen it means one bond.

### Why the count matters

For a polyatomic ion, the electron count changes: add one electron for each negative charge and subtract one for each positive charge ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). The entire ion structure is placed in brackets, and the charge is written as a superscript outside. A neutral molecule with an odd total electron count is a radical and will not have a simple closed-shell octet for every atom. The electron count drives every later step, so an error here carries through the whole drawing.

## The Step-by-Step Method for Drawing Lewis Structures

The method is a sequence of electron bookkeeping steps. It applies to neutral molecules and to polyatomic ions, with an electron adjustment for charge ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). The goal is a structure that satisfies the octet rule where possible and keeps the total electron count correct ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)).

![A hand arranges small magnets and metal rods on a dark desk to suggest shared electron pairs.](/article-images/illustrations/lewis-structure-1.webp)

### Step 1: Count all valence electrons

Add the valence electrons of every atom in the formula. For a neutral molecule, this sum is the number of electrons the drawing must contain ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). For a polyatomic ion, add one electron for each negative charge and subtract one for each positive charge. Keep the total visible; every later check uses it.

### Step 2: Choose a skeleton and connect atoms

Draw the element symbols in a reasonable order. Hydrogen forms only single bonds and belongs at the end of a sequence, not in the center ([Basic Lewis Structure "Rules"](https://ch301.cm.utexas.edu/section2.php?target=atomic/lewis-dot/lewis-rules.html)). Connect atoms with single bonds first. Each single bond uses two electrons from the total. For simple formulas, the least electronegative atom that is not hydrogen is often central; carbon is central in its compounds with hydrogen and heteroatoms.

### Step 3: Complete outer atoms with lone pairs

Give the atoms around the central atom enough lone pairs to reach an octet, or a duplet for hydrogen. Subtract each lone pair from the remaining electron count. Outer atoms are filled first because they have fewer bonding options ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure); [Lewis structures](https://web02.gonzaga.edu/faculty/cronk/chem101pub/Lewis_structures.html)).

### Step 4: Place remaining electrons on the central atom

After outer atoms are filled, put leftover electrons on the central atom as lone pairs. If electrons remain after the central atom has an octet, check the count and the skeleton. An extra electron may belong to an ion, or the skeleton may be wrong.

### Step 5: Form multiple bonds if octets are incomplete

If the central atom still lacks an octet and outer atoms are full, move lone pairs from outer atoms into shared pairs to make double or triple bonds. Each moved pair becomes one extra bond and reduces the lone-pair count on that outer atom. Repeat until the central atom reaches an octet or no further multiple bonds are possible ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)).

### Step 6: Check the total and every atom

Count all dots and bond lines as electrons; the total must match step 1 ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). Check each hydrogen for two electrons and each other atom for eight, allowing known exceptions. For ions, place the structure in brackets and write the charge as a superscript outside. Formal charge checks come next in a full analysis ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)).

| Step | Action | Check |
|---:|---|---|
| 1 | Count valence electrons | Total equals sum; adjust for ion charge ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)) |
| 2 | Connect atoms with single bonds | Hydrogen at the end, not central ([Basic Lewis Structure "Rules"](https://ch301.cm.utexas.edu/section2.php?target=atomic/lewis-dot/lewis-rules.html)) |
| 3 | Fill outer atoms with lone pairs | Outer atoms reach octet or duplet |
| 4 | Put remaining electrons on central atom | Leftover count is zero or explainable |
| 5 | Make multiple bonds | Central atom moves toward an octet ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)) |
| 6 | Recount electrons and check atoms | Total matches step 1 |

## At a Glance

| Molecule | Total valence electrons | Bonds drawn | Lone pairs on the central atom | Shape from its electron regions |
|---|---|---|---|---|
| H2O | 8 | two O-H single bonds | two on O | bent |
| NH3 | 8 | three N-H single bonds | one on N | trigonal pyramidal |
| CO2 | 16 | two C=O double bonds | none on C (two on each O) | linear |

Every Lewis structure in this article follows the same three moves: count the valence electrons, connect the atoms with single bonds, then turn the leftovers into lone pairs or extra bonds. The three examples differ only in how many electrons remain once the skeleton is built.

## Counting Electrons and Choosing the Central Atom

Two decisions come before a single dot is placed: the total number of valence electrons and the atom that sits in the middle of the diagram. Neither step is difficult, but an error in either one carries through the whole drawing.

### Sum the valence electrons

A neutral molecule contains as many electrons in its Lewis structure as the sum of the valence electrons of its separate atoms, not the maximum number the atoms could hold ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). Only valence electrons appear in the drawing; inner shell electrons take no part in bonding and are omitted.

For main group elements the count follows the group number.

| Element | Group | Valence electrons |
|---|---|---|
| H | 1 | 1 |
| B | 13 | 3 |
| C | 14 | 4 |
| N | 15 | 5 |
| O | 16 | 6 |
| F, Cl, Br, I | 17 | 7 |
| P | 15 | 5 |
| S | 16 | 6 |

### Adjust the count for charge

Polyatomic ions are drawn by the same method, with one correction. Negative ions carry extra electrons, so add one electron for each negative charge. Positive ions carry fewer, so subtract one for each positive charge ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)).

- Hydroxide, OH⁻: 6 (O) + 1 (H) + 1 = 8 electrons.
- Ammonium, NH₄⁺: 5 (N) + 4 (H) - 1 = 8 electrons.
- Carbonate, CO₃²⁻: 4 (C) + 18 (O) + 2 = 24 electrons.

When an ion is drawn, the whole structure sits inside brackets with the charge as a superscript at the upper right, outside the brackets ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)).

### Choose the least electronegative atom as the central atom

The central atom is normally the least electronegative element in the formula, and often the atom that appears only once. In H2O and NH3 the choice is obvious, since hydrogen can never be central. In CO2, carbon sits between the two oxygens. In a formula such as SO2, sulfur is less electronegative than oxygen and takes the center.

### Hydrogen and halogens sit at the edges

Hydrogen forms only one single bond, so it always sits at the end of a chain of atoms ([Basic Lewis Structure "Rules"](https://ch301.cm.utexas.edu/section2.php?target=atomic/lewis-dot/lewis-rules.html)). The halogens behave similarly in most structures: fluorine is always terminal, and chlorine, bromine and iodine usually are, because each needs only one additional electron to complete its octet.

### Carbon builds the central frame

Carbon forms four bonds, so it commonly links other atoms together in chains, rings and branched frameworks. In organic formulas the carbon skeleton is usually drawn first, with hydrogens attached to the carbons. The initial arrangement of atoms is called the skeletal structure ([Lewis structures](https://web02.gonzaga.edu/faculty/cronk/chem101pub/Lewis_structures.html)).

### Use symmetry to guide placement

When the formula is symmetric, draw it that way. Identical atoms generally occupy equivalent positions around the center, which keeps bond lengths, bond orders and formal charges consistent and makes later resonance checks easier.

## Placing Bonds and Lone Pairs

With the atom skeleton settled, the counted electrons are distributed. Bonds go in first, then remaining electrons become lone pairs, then the octets are checked and adjusted.

### A single bond uses one shared pair

A bonding pair is drawn as a line between two atom symbols, or as a pair of dots between them ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). Either notation means the same thing: two electrons shared by both atoms. Start by joining the central atom to each surrounding atom with a single bond, which costs two electrons per bond.

### Double and triple bonds share four or six electrons

When single bonds alone leave the central atom short of an octet, a lone pair from a neighboring atom is converted into a second shared pair.

| Bond | Shared electrons | Drawn as |
|---|---|---|
| Single | 2 | one line |
| Double | 4 | two parallel lines |
| Triple | 6 | three parallel lines |

### Lone pairs stay on the atoms that are not sharing them

After the bonds are placed, the leftover electrons go on as dots in pairs. Fill the outer atoms first, since they are usually more electronegative and need the octet sooner, then place any remainder on the central atom. Each hydrogen must end with two electrons, following the duplet rule rather than the octet ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)).

### Formal charges help choose the best layout

More than one arrangement can often be drawn from a given count. Formal charge separates the good ones from the poor ones. Compute it per atom as valence electrons minus nonbonding electrons minus half the bonding electrons ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)). The preferred structure keeps formal charges close to zero, and puts any negative formal charge on the more electronegative atom.

### Resonance spreads electrons over equivalent positions

Sometimes two or more valid structures differ only in where the lone pairs and double bonds sit, as in ozone or the nitrate ion ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)). Neither drawing is wrong on its own. The real molecule is a hybrid of them, and the structures are linked with a double-headed arrow to show that the electrons are shared over equivalent positions.

A final check closes the process: every atom reaches a full octet (or a duplet for hydrogen), the electron total matches the count from the formula, and the formal charges are as small as possible.

## Worked Example: H2O

Water is the standard first exercise because the numbers are small and every step is visible.

### Count the electrons

Oxygen contributes 6 valence electrons and each hydrogen contributes 1, so the neutral molecule holds 6 + 1 + 1 = 8 valence electrons ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). All eight must appear in the final drawing.

### Build the skeleton

Oxygen is less electronegative than hydrogen in the sense that matters here: hydrogen can form only one bond and must sit at the end of the sequence ([Basic Lewis Structure "Rules"](https://ch301.cm.utexas.edu/section2.php?target=atomic/lewis-dot/lewis-rules.html)). Oxygen therefore takes the center, with one hydrogen on each side.

H - O - H

### Place the bonds

Two single bonds connect oxygen to the two hydrogens, using 2 electrons each, for 4 electrons total. Four electrons remain.

### Assign the lone pairs

The four remaining electrons form two lone pairs on the oxygen atom. Each hydrogen now has two electrons around it, and oxygen has four bonding electrons plus four nonbonding electrons, giving a full octet.

| Atom | Electrons in bonds | Nonbonding electrons | Total around atom |
|---|---|---|---|
| O | 4 | 4 | 8 |
| H (each) | 2 | 0 | 2 |

Formal charges confirm the layout: oxygen is 6 - 4 - 4/2 = 0, and each hydrogen is 1 - 0 - 2/2 = 0. Every atom is neutral, so no alternative arrangement is needed.

### Read the shape

The Lewis structure shows connectivity and lone pairs, and on its own it does not explain geometry ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)). Shape comes from counting electron regions around the central atom: two bonds and two lone pairs make four regions. Four regions arrange themselves roughly tetrahedrally, and the two lone pairs occupy more space than the bonds, pushing the hydrogens closer together. The result is the familiar bent molecule with a bond angle near 104.5°, and a net dipole that makes water polar. The lone pairs also act as hydrogen bond acceptors, which is why water dissolves so many ionic compounds.

## Worked Example: NH3

Ammonia follows the same sequence as water, with one extra bond and one fewer lone pair.

### Count the electrons

Nitrogen contributes 5 valence electrons and the three hydrogens contribute 1 each, giving 5 + 3 = 8 valence electrons for the neutral molecule ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)).

### Connect nitrogen to the three hydrogens

Nitrogen is the only atom that can occupy the center, since each hydrogen forms a single bond and nothing else ([Basic Lewis Structure "Rules"](https://ch301.cm.utexas.edu/section2.php?target=atomic/lewis-dot/lewis-rules.html)). Three N-H single bonds use 6 of the 8 electrons, leaving 2.

### Give nitrogen the last pair

The remaining 2 electrons become one lone pair on nitrogen. Check the octets:

| Atom | Electrons in bonds | Nonbonding electrons | Total around atom |
|---|---|---|---|
| N | 6 | 2 | 8 |
| H (each) | 2 | 0 | 2 |

Every hydrogen holds a duplet and nitrogen holds a full octet, which satisfies the octet rule for the second period elements ([Lewis structures](https://web02.gonzaga.edu/faculty/cronk/chem101pub/Lewis_structures.html)). Formal charges are zero throughout: nitrogen is 5 - 2 - 6/2 = 0 and each hydrogen is 1 - 0 - 2/2 = 0.

### Read the shape

Nitrogen has four electron regions: three bonding pairs and one lone pair. The tetrahedral arrangement of those regions leaves three hydrogens and one lone pair at the corners, so the atoms form a trigonal pyramid with nitrogen at the apex. Lone pair repulsion compresses the H-N-H angles to about 107°, slightly below the tetrahedral 109.5°.

### What the lone pair does

That single pair of dots explains much of ammonia's chemistry. It accepts a proton to form the ammonium ion, NH₄⁺, whose Lewis structure has four equivalent N-H bonds and a positive formal charge on nitrogen ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). It also acts as a hydrogen bond acceptor and as a ligand in coordination compounds, where the pair is donated to a metal center.

## Worked Example: CO2

Carbon dioxide is a compact test of the method because it needs two double bonds. The formula is CO2, and the finished drawing is usually written O=C=O.

![Dry ice vapor drifts around a glass beaker in a cool laboratory with faint spherical reflections.](/article-images/illustrations/lewis-structure-2.webp)

### Count the valence electrons

Carbon is in group 14 and contributes 4 valence electrons. Each oxygen is in group 16 and contributes 6. The total is 4 + 6 + 6 = 16. For a neutral molecule, the total number of electrons shown in a Lewis structure equals the sum of the valence electrons on the individual atoms ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)).

| Atom | Valence electrons | Final role |
|---|---:|---|
| C | 4 | central atom, four shared pairs |
| O left | 6 | terminal atom, double bond plus two lone pairs |
| O right | 6 | terminal atom, double bond plus two lone pairs |
| Total | 16 | eight bonding electrons, eight lone-pair electrons |

### Build the skeleton

A skeletal structure places atoms in the order they are bonded ([Lewis structures](https://web02.gonzaga.edu/faculty/cronk/chem101pub/Lewis_structures.html)). Carbon sits between the two oxygen atoms, so start with O-C-O and two single bonds. Two single bonds use 4 electrons and leave 12.

Complete each oxygen octet with three lone pairs. That uses the remaining 12 electrons, but carbon still has only four electrons around it. Move one lone pair from each oxygen into the bond between that oxygen and carbon. No new electrons are added; the pairs simply become shared pairs. The result is two double bonds.

| Stage | Bonding electrons | Lone-pair electrons | Electrons left |
|---|---:|---:|---:|
| O-C-O single bonds | 4 | 0 | 12 |
| Fill oxygen octets | 4 | 12 | 0 |
| Shift one pair on each O into a bond | 8 | 8 | 0 |

### Check the final drawing

The final structure has O=C=O. Each double bond contains four electrons, so the two double bonds use 8 electrons. Each oxygen also carries two lone pairs, which account for the other 8 electrons. Carbon has four shared pairs and no lone pairs, giving it an octet. Each oxygen has two shared pairs and two lone pairs, also an octet. Lines stand for shared pairs and dot pairs stand for lone pairs in Lewis structures ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)).

The drawing is often set in a straight row because CO2 is linear. Keep the role of the model clear: a Lewis structure does not attempt to explain molecular geometry, how bonds form, or how electrons are shared ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)). It is an electron bookkeeping diagram, and the linear shape comes from other bonding models.

## Formal Charge and Resonance Checks

A Lewis structure can satisfy the octet rule and still be the wrong choice. Formal charge is the check. It compares the valence electrons of a free atom with the

## Related Guides

- [NH3 Formula: Ammonia Structure and Properties](/knowledge/molecular-biology/nh3-formula-ammonia-structure-and-properties)
- [Covalent Bonds: Definition, Types, and Examples](/knowledge/molecular-biology/covalent-bonds-definition-types-and-examples)
- [Ionic Chemical Bond: Definition, Formation, and Examples](/blog/guides/ionic-chemical-bond-definition-formation-and-examples)
- [Electronegativity Chart and Trends](/blog/guides/electronegativity-chart)
- [Water Molecule: Structure, Polarity and Hydrogen Bonds](/blog/guides/water-molecule)
- [Periodic Table of Elements: Groups, Periods and Trends](/blog/guides/periodic-table)
- [Molecule Definition: Types and Examples](/knowledge/molecular-biology/molecule-definition-types-and-examples)
- [Polar Biology Definition](/blog/careers/polar-biology-definition)
- [Isotopes: Definition, Examples and Uses](/blog/guides/isotopes)
- [What Is an Element in Science? Definition and Examples](/blog/guides/element-in-science)
- [Phosphate Group: Structure, Charge and Role in DNA and ATP](/blog/guides/phosphate-group)

## Frequently Asked Questions

### What is a Lewis structure?

A Lewis structure is a diagram of a covalently bonded molecule or polyatomic ion that shows every valence electron. Atom symbols give each atom's position, lines or dot pairs show shared bonding pairs, and leftover dots show lone pairs ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure); [Lewis structures](https://web02.gonzaga.edu/faculty/cronk/chem101pub/Lewis_structures.html)). Gilbert N. Lewis introduced the idea in his 1916 article, The Atom and the Molecule ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). Only valence electrons appear; inner-shell electrons are left out because they do not take part in bonding. The drawing follows the octet rule, with hydrogen obeying a duplet rule instead ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure); [Lewis structures](https://web02.gonzaga.edu/faculty/cronk/chem101pub/Lewis_structures.html)). A Lewis structure does not explain molecular geometry or how bonds form ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)).

### How do you draw a Lewis structure step by step?

Count valence electrons for every atom; for a neutral molecule the total is the sum over each atom ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). Write a skeletal structure showing how atoms connect ([Lewis structures](https://web02.gonzaga.edu/faculty/cronk/chem101pub/Lewis_structures.html)). Place two electrons, as a line or dot pair, between each bonded pair. Spread the remaining electrons as lone pairs, starting with the outer atoms. Check that every second-period atom has eight electrons and hydrogen has two ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure); [Basic Lewis Structure "Rules"](https://ch301.cm.utexas.edu/section2.php?target=atomic/lewis-dot/lewis-rules.html)). If an atom falls short, convert lone pairs into shared pairs to form multiple bonds. For ions, add electrons for negative charge, remove them for positive charge, and enclose the result in brackets with the charge outside.

### What is the Lewis structure of H2O?

Oxygen has six valence electrons and each hydrogen has one, so water has eight total ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). Oxygen sits in the center with one single bond to each hydrogen, and the four leftover electrons stay on oxygen as two lone pairs. Hydrogen forms only single bonds and always sits at the end of a chain, so no other skeleton fits ([Basic Lewis Structure "Rules"](https://ch301.cm.utexas.edu/section2.php?target=atomic/lewis-dot/lewis-rules.html)). The finished drawing is H-O-H with two dot pairs on the oxygen. The Lewis structure does not by itself show that water is bent; that comes from a separate geometry model ([Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures)).

### What is the Lewis structure of NH3?

Nitrogen has five valence electrons and each hydrogen has one, giving eight total ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). Nitrogen sits in the center, joined to three hydrogens by single bonds, which uses six electrons. The final two electrons remain on nitrogen as one lone pair. Each hydrogen is terminal because it forms only one bond ([Basic Lewis Structure "Rules"](https://ch301.cm.utexas.edu/section2.php?target=atomic/lewis-dot/lewis-rules.html)). The finished structure shows three N-H lines and one dot pair on nitrogen. All eight electrons are accounted for, and nitrogen holds a full octet. The lone pair is drawn separately from the bonding pairs.

### Why does CO2 have two double bonds in its Lewis structure?

Carbon has four valence electrons and each oxygen has six, giving sixteen total ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). With single bonds only, the O-C-O skeleton uses four electrons for bonds, and completing both oxygens with lone pairs leaves carbon surrounded by just four electrons. Carbon needs eight. Converting one lone pair on each oxygen into a shared pair turns each C-O single bond into a double bond without changing the sixteen-electron total. Each oxygen keeps two lone pairs, and every atom then satisfies the octet rule. No single-bond arrangement gives all three atoms full octets.

### What are common mistakes when drawing Lewis structures?

One common mistake is giving hydrogen an octet. Hydrogen follows a duplet rule, forms only one bond, and sits at the end of a chain ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure); [Basic Lewis Structure "Rules"](https://ch301.cm.utexas.edu/section2.php?target=atomic/lewis-dot/lewis-rules.html)). Another is miscounting valence electrons, such as ignoring the extra electron on a negative ion or the missing one on a positive ion ([Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure)). Some drawings leave an atom with fewer than eight electrons and never try a multiple bond, as with carbon in a single-bonded CO2 [S

## References and Further Reading

1. [Lewis structure](https://en.wikipedia.org/wiki/Lewis_structure), en.wikipedia.org
2. [Lewis Structures](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Physical_Properties_of_Matter/Atomic_and_Molecular_Properties/Lewis_Structures), chem.libretexts.org
3. [Basic Lewis Structure "Rules"](https://ch301.cm.utexas.edu/section2.php?target=atomic/lewis-dot/lewis-rules.html), ch301.cm.utexas.edu
4. [Lewis structures](https://web02.gonzaga.edu/faculty/cronk/chem101pub/Lewis_structures.html), web02.gonzaga.edu
5. [Lewis diagrams for molecules (video)](https://www.khanacademy.org/science/hs-chemistry/x2613d8165d88df5e:chemical-bonding/x2613d8165d88df5e:covalent-bonds/v/lewis-diagrams-for-molecules), khanacademy.org