Lewis structures (also known as Lewis dot diagrams, electron dot diagrams, Lewis dot structures, and electron dot structures) are diagrams that show the bonding between atoms of a molecule and the lone pairs of electrons that may exist in the molecule. A Lewis structure can be drawn for any covalently bonded molecule, as well as coordination compounds. The Lewis structure was named after Gilbert N. Lewis, who introduced it in his 1916 article The Atom and the Molecule. They are similar to electron dot diagrams in that the valence electrons in lone pairs are represented as dots, but they also contain lines to represent shared pairs in a chemical bond (single, double, triple, etc.).
Lewis structures show each atom and its position in the structure of the molecule using its chemical symbol. Lines are drawn between atoms that are bonded to one another (pairs of dots can be used instead of lines). Excess electrons that form lone pairs are represented as pairs of dots, and are placed next to the atoms.
Although main group elements of the second period and beyond react by gaining, losing or sharing electrons until they have achieved a valence shell electron configuration with a full octet of (8) electrons, other elements obey different rules depending on their valence shells. Hydrogen (H) conforms instead to a duet rule wherein it fills its first (and outermost) shell with just two electrons or empties it completely, while transition metals conform to a dodectet (12) rule (e.g., compounds such as the permanganate ion).
An interesting class of compounds, however, are compounds that are intermediate of ionic and covalent character. Examples are boron trifluoride, silicon tetrafluoride, boron trioxide and silicon dioxide, which are usually classified as covalent but are actually highly ionic. In such cases, they can still be drawn with full octets as the electron-deficiency on the central atom is not due to a lack of formal bonding interactions but due to the high ionicity of the bonds.
Counting electrons 
The total number of electrons represented in a Lewis structure is equal to the sum of the numbers of valence electrons on each individual atom. Non-valence electrons are not represented in Lewis structures.
Once the total number of available electrons has been determined, electrons must be placed into the structure. They should be placed initially as lone pairs: one pair of dots for each pair of electrons available. Lone pairs should initially be placed on outer atoms (other than hydrogen) until each outer atom has eight electrons in bonding pairs and lone pairs; extra lone pairs may then be placed on the central atom. When in doubt, lone pairs should be placed on more electronegative atoms first.
Once all lone pairs are placed, atoms, especially the central atoms, may not have an octet of electrons. In this case, the atoms must form a double bond; a lone pair of electrons is moved to form a second bond between the two atoms. As the bonding pair is shared between the two atoms, the atom that originally had the lone pair still has an octet; the other atom now has two more electrons in its valence shell.
Lewis structures for polyatomic ions may be drawn by the same method. When counting electrons, negative ions should have extra electrons placed in their Lewis structures; positive ions should have fewer electrons than an uncharged molecule.
When the Lewis structure of an ion is written, the entire structure is placed in brackets, and the charge is written as a superscript on the upper right, outside the brackets.
A simpler method has been proposed for constructing Lewis structures eliminating the need for electron counting: the atoms are drawn showing the valence electrons, bonds are then formed by pairing up valence electrons of the atoms involved in the bond-making process and anions and cations are formed by adding or removing electrons to/from the appropriate atoms.
A trick is to count up valence electrons, then count up the number of electrons needed to complete the octet rule (or with Hydrogen just 2 electrons), then take the difference of these two numbers and your answer is the number of electrons that make up the bonds. The rest of the electrons just go and fill all the other atoms' octets.
Another simple and general procedure to write Lewis structures and resonance forms has been proposed.
Before beginning this procedure it is necessary to know the basic geometry of the molecule, i.e. whether it is cyclic or noncyclic, and which atoms are connected to which. Several worked examples for the determination of the Lewis structures of simple and more complicated species using the above described method can be found on the following website.
Formal charge 
In terms of Lewis structures, formal charge is used in the description, comparison and assessment of likely topological and resonance structures by determining the apparent electronic charge of each atom within, based upon its electron dot structure assuming exclusive covalency or non-polar bonding. It has uses in determining possible electron re-configuration when referring to reaction mechanisms, and often results in the same sign as the partial charge of the atom, with exceptions. In general, the formal charge of an atom can be calculated using the following formula, assuming non-standard definitions for the markup used:
- is the formal charge.
- represents the number of valence electrons in a free atom of the element.
- represents the number of unshared electrons on the atom.
- represents the total number of bonds the atom has with another.
The formal charge of an atom is computed as the difference between the number of valence electrons that a neutral atom would have and the number of electrons that belong to it in the Lewis structure. Electrons in covalent bonds are split equally between the atoms involved in the bond. The total of the formal charges on an ion should be equal to the charge on the ion, and the total of the formal charges on a neutral molecule should be equal to zero..
For some molecules and ions, it is difficult to determine which lone pairs should be moved to form double or triple bonds. This is sometimes the case when multiple atoms of the same type surround the central atom, and is especially common for polyatomic ions.
When this situation occurs, the molecule's Lewis structure is said to be a resonance structure, and the molecule exists as a resonance hybrid. Each of the different possibilities is superimposed on the others, and the molecule is considered to have a Lewis structure equivalent to an average of these states.
The nitrate ion (NO3−), for instance, must form a double bond between nitrogen and one of the oxygen's to satisfy the octet rule for nitrogen. However, because the molecule is symmetrical, it does not matter which of the oxygen's forms the double bond. In this case, there are three possible resonance structures. Expressing resonance when drawing Lewis structures may be done either by drawing each of the possible resonance forms and placing double-headed arrows between them or by using dashed lines to represent the partial bonds.
When comparing resonance structures for the same molecule, usually those with the fewest formal charges contribute more to the overall resonance hybrid. When formal charges are necessary, resonance structures that have negative charges on the more electronegative elements and positive charges on the less electronegative elements are favored.
Single bonds can also be moved in the same way to create resonance structures for hypervalent molecules such as sulfur hexafluoride, which is the correct description according to quantum chemical calculations instead of the common expanded octet model.
The resonance structure should not be interpreted to indicate that the molecule switches between forms, but that the molecule acts as the average of multiple forms.
The formula of the nitrite ion is NO2−.
- Nitrogen is the less electronegative atom of the two, so it is the central atom by multiple criteria.
- Count valence electrons. Nitrogen has 5 valence electrons; each oxygen has 6, for a total of (6 × 2) + 5 = 17. The ion has a charge of −1, which indicates an extra electron, so the total number of electrons is 18.
- Place lone pairs. Each oxygen must be bonded to the nitrogen, which uses four electrons — two in each bond. The 14 remaining electrons should initially be placed as 7 lone pairs. Each oxygen may take a maximum of 3 lone pairs, giving each oxygen 8 electrons including the bonding pair. The seventh lone pair must be placed on the nitrogen atom.
- Satisfy the octet rule. Both oxygen atoms currently have 8 electrons assigned to them. The nitrogen atom has only 6 electrons assigned to it. One of the lone pairs on an oxygen atom must form a double bond, but either atom will work equally well. We therefore must have a resonance structure.
- Tie up loose ends. Two Lewis structures must be drawn: Each structure has one of the two oxygen atoms double-bonded to the nitrogen atom. The second oxygen atom in each structure will be single-bonded to the nitrogen atom. Place brackets around each structure, and add the charge (−) to the upper right outside the brackets. Draw a double-headed arrow between the two resonance forms.
Alternative formats 
Chemical structures may be written in more compact forms, particularly when showing organic molecules. In condensed structural formulas, many or even all of the covalent bonds may be left out, with subscripts indicating the number of identical groups attached to a particular atom. Another shorthand structural diagram is the skeletal formula (also known as a bond-line formula or carbon skeleton diagram). In skeletal formulae, carbon atoms are not signified by the symbol C but by the vertices of the lines. Hydrogen atoms bonded to carbon are not shown — they can be inferred by counting the number of bonds to a particular carbon atom — each carbon is assumed to have four bonds in total, so any bonds not shown are, by implication, to hydrogen atoms.
Other diagrams may be more complex than Lewis structures, showing bonds in 3D using various forms such as space-filling diagrams.
See also 
- Valence shell electron pair repulsion theory
- Molecular geometry
- Structural formula
- Natural bond orbital
- IUPAC definition of Lewis formula
- Zumdahl, S. (2005) Chemical Principles Houghton-Mifflin (ISBN 0-618-37206-7)
- Miessler, G. L., Tar, D. A., (2003) Inorganic Chemistry 2nd ed. Pearson Prentice–Hall (ISBN 0-130-35471-6)
- Lewis, G. N. "The Atom and the Molecule". J. Am. Chem. Soc. 1916, 38, 762–785. doi:10.1021/ja02261a002
- Weinhold, Frank; Landis, Clark R. (2005). Valency and bonding: A Natural Bond Orbital Donor-Acceptor Perspective. Cambridge: Cambridge University Press. pp. 381–383. ISBN 0-521-83128-8.
- Ronald J. Gillespie (1998). "Covalent and Ionic Molecules: Why Are BeF2 and AlF3 High Melting Point Solids whereas BF3 and SiF4 Are Gases?". Journal of Chemical Education 75 (7): 923. doi:10.1021/ed075p923.
- "Simplified Lewis Structure Drawing for Non-science Majors" Miburo, Barnabe B. J. Chem. Educ. 1993 75 317. Link
- "Lewis Structures and the Octet Rule" Lever, A. B. P. J. Chem. Educ. 1972 49 819. Link
- Chemistry Net Link
- Miessler, G. L., Tar, D. A., (2003), p. 53 – Explanation of formal charge usage.