For Chemistry Students

Lewis Dot Structure Generator & Lewis Structure Maker

Use this AI Lewis structure generator to draw electron dot diagrams for molecules and ions. Show valence electrons, bonding pairs, lone pairs, single, double, and triple bonds, formal charges, and resonance. Free to preview with a watermark; clean download with credits.

Valence electrons & the octet ruleBonding pairs, lone pairs & bond order

Lewis Dot Structure Generator

Describe the molecule or ion
0 / 20,000 characters

Free to try ·

Preview

Lewis Structure Examples

Electron dot concepts — bonding pairs, lone pairs, bond order, formal charge, and resonance

View:

Resonance & Delocalized Bonds

Benzene illustrates resonance — the alternating double bonds are really delocalized electrons spread evenly around the ring.

resonancedouble bondsaromatic

Lone Pairs & Charges

Electron-dot notation in action: the lone pairs on the hydroxide and the negative charge on the leaving bromide are shown explicitly.

lone pairsformal chargeelectron dots

Single Bonds & Bonding Pairs

Glucose is held together almost entirely by single covalent bonds — each line is one shared bonding pair of electrons.

single bondsbonding pairsoxygen

Single vs Double Bonds

A clear contrast of bond orders: the C=O carbonyl is a double bond while the surrounding C–O and C–C linkages are single bonds.

double bondssingle bondsfunctional groups

Bonds, Lone Pairs & Resonance

A worked example combining lone pairs, a C=O double bond, and the two resonance structures of the amide linkage.

resonancelone pairsdouble bonds

What is a Lewis dot structure?

A Lewis dot structure — also called an electron dot diagram or Lewis structure — is a simple drawing that shows how the valence electrons in a molecule or ion are arranged. Each atom is written as its element symbol, dots represent the outer-shell (valence) electrons, and lines represent the pairs of electrons shared in a bond. The diagram makes the bonding visible: you can see which atoms are connected, how many bonds join them, where the unshared electrons sit, and whether any atom carries a charge. This Lewis structure generator turns a molecule or ion you describe into exactly that kind of clearly labeled electron diagram.

Valence electrons and the octet rule

Everything in a Lewis structure starts from valence electrons — the electrons in an atom's outermost shell. A neutral main-group atom has the same number of valence electrons as its group number on the periodic table (carbon has 4, oxygen has 6, hydrogen has 1). The octet rule says that atoms tend to gain, lose, or share electrons until they are surrounded by eight valence electrons, the stable configuration of a noble gas. Hydrogen is the exception — it follows a duet rule and is happy with two. Counting up the total valence electrons available is always the first step, because every dot and every bond line in the finished diagram must come from that total.

Bonding pairs, lone pairs, and bond order

  • Bonding pairs are electrons shared between two atoms; each shared pair is drawn as a line and counts toward both atoms' octets.
  • Lone pairs (non-bonding pairs) are valence electrons that stay on a single atom and are drawn as a pair of dots — for example, the two lone pairs on the oxygen in water.
  • A single bond is one shared pair, a double bond is two shared pairs, and a triple bond is three shared pairs — bond order rises and the bond gets shorter and stronger.
  • When more electrons are needed to complete octets, lone pairs are converted into extra bonds, which is how double and triple bonds (as in O2, CO2, or N2) appear.

How to draw a Lewis dot structure step by step

  • Count the total valence electrons from every atom, then add one for each negative charge or subtract one for each positive charge on an ion.
  • Pick the central atom (usually the least electronegative, never hydrogen) and connect the surrounding atoms to it with single bonds.
  • Distribute the remaining electrons as lone pairs, completing the octets of the outer atoms first, then the central atom.
  • If the central atom is short of an octet, shift lone pairs from neighboring atoms to form double or triple bonds.
  • Check formal charges and, where more than one valid arrangement exists, draw the resonance structures.

Worked examples: H2O, CO2, NH3, and NO3⁻

  • Water (H2O): 2 × 1 + 6 = 8 valence electrons. Oxygen is the central atom with two single bonds to hydrogen, which uses 4 electrons; the other 4 become two lone pairs on oxygen. Every atom is satisfied (hydrogen has 2, oxygen has 8) and all formal charges are zero.
  • Carbon dioxide (CO2): 4 + 2 × 6 = 16 valence electrons. Single bonds leave carbon with only 4 electrons, so one lone pair from each oxygen is shifted into a bond, giving O=C=O with two lone pairs on each oxygen. Formal charges are all zero.
  • Ammonia (NH3): 5 + 3 × 1 = 8 valence electrons. Three N–H single bonds use 6 electrons and the last 2 sit as one lone pair on nitrogen, which is why the molecule is trigonal pyramidal rather than flat.
  • Nitrate ion (NO3⁻): 5 + 3 × 6 + 1 = 24 valence electrons. Nitrogen is central with one N=O double bond and two N–O single bonds; the double bond can sit on any of the three oxygens, so there are three equivalent resonance structures. The nitrogen carries a formal charge of +1 and each single-bonded oxygen carries −1, which sum to the ion’s overall 1− charge.

Octet rule exceptions

  • Incomplete octet: boron compounds such as BF3 (24 valence electrons) leave boron with only six electrons around it. Textbooks usually draw three B–F single bonds with boron at six electrons, although some also describe B=F resonance structures, so follow the convention your course uses.
  • Expanded octet: atoms from period 3 and below can hold more than eight electrons. PCl5 puts ten electrons around phosphorus (40 valence electrons in total) and SF6 puts twelve around sulfur (48 valence electrons).
  • Odd-electron molecules: nitric oxide (NO, 11 valence electrons) and nitrogen dioxide (NO2, 17) have an unpaired electron, so no arrangement can give every atom a full octet. These are drawn with a single dot for the unpaired electron.
  • When you describe one of these in the prompt, say so explicitly (for example “SF6 with an expanded octet on sulfur”) and check the result against your textbook, because an AI drawing may default to a full octet.

Larger molecules: benzene and glucose

Benzene (C6H6) has 6 × 4 + 6 × 1 = 30 valence electrons. Each carbon forms single bonds to two neighboring carbons and one hydrogen, and the six remaining electrons are drawn as alternating double bonds. There are two equally valid Kekulé structures, and the real molecule is a resonance hybrid with the six π electrons delocalized around the ring, so draw both structures joined by a double-headed arrow. Glucose (C6H12O6) has 6 × 4 + 12 × 1 + 6 × 6 = 72 valence electrons. In the open-chain form it is a carbon backbone with one aldehyde C=O, five hydroxyl (–OH) groups, and two lone pairs on every oxygen. For molecules this size, ask for the skeletal or condensed form and check the lone pairs on each oxygen one by one.

Lewis structures and molecular geometry (VSEPR)

A Lewis structure is flat, but it tells you what you need to predict the 3D shape. Count the electron groups around the central atom, where each bond (single, double, or triple) and each lone pair counts as one group. Two groups give a linear shape (CO2), three give trigonal planar (BF3), and four give a tetrahedral arrangement of electron groups (CH4). Lone pairs push the bonded atoms closer together, so water, with two bonds and two lone pairs, is bent at about 104.5°, and ammonia, with three bonds and one lone pair, is trigonal pyramidal. This generator draws a 2D diagram; you can ask for the geometry and bond angles to be labeled, but as the drawing is AI-generated the labels are not guaranteed, so check them, and it does not produce an interactive 3D model.

Formal charge and resonance

Formal charge is a bookkeeping tool that tells you whether the electrons in a structure are distributed sensibly. For each atom it is calculated as: valence electrons − non-bonding electrons − half the bonding electrons. The best Lewis structure is usually the one where formal charges are closest to zero, and any negative formal charge sits on the most electronegative atom. When a molecule or ion can be drawn correctly in more than one way — such as ozone (O3), the nitrate ion (NO3⁻), or the carbonate ion (CO3²⁻) — those equivalent structures are called resonance structures, and the real molecule is a blend (resonance hybrid) of them. The double-headed arrow between resonance structures means the electrons are delocalized, not flipping back and forth.

Using this tool in chemistry class

Lewis structures are a foundation of general and organic chemistry: they are the starting point for predicting molecular geometry with VSEPR theory, for judging polarity, and for following electrons through reaction mechanisms. This generator is built to help with homework, lab reports, study guides, flashcards, and lecture slides — describe the molecule or ion and get a clean, labeled electron diagram in seconds. Because the diagrams are AI-generated, treat them as a study and visualization aid rather than an authority: always count the valence electrons yourself and verify the bonds, lone pairs, and formal charges before relying on a diagram for graded work.

Frequently Asked Questions