🔬 Lewis Structure Visualizer
Generate Lewis dot structures for any molecule. The tool counts valence electrons, places atoms, distributes lone pairs, and checks the octet rule automatically.
Quick:
Compound Information
FormulaH2O
PubChem CID962
Molecular Weight18.015 g/mol
IUPAC NameWater
How the Algorithm Works
- Count valence electrons — sum of valence electrons for each atom.
- Identify the central atom — the element with the lowest electronegativity (excluding hydrogen).
- Connect atoms — single bonds between the central atom and surrounding atoms.
- Distribute remaining electrons — fill octets of terminal atoms first, then the central atom.
- Form multiple bonds — if the central atom lacks an octet, convert lone pairs into double/triple bonds.
- Calculate formal charges — verify the most stable structure.