ToolNimba

Formal Charge Formula: How to Calculate It Step by Step

By ToolNimba Editorial Team June 22, 2026 9 min read

Illustration of a molecule with atoms, bonds, and lone pair electrons showing how formal charge is distributed

Quick answer

Formal charge = valence electrons minus nonbonding electrons minus half of the bonding electrons. In symbols that is FC = V - N - B/2, where V is the free atom valence electron count, N is the number of lone pair electrons on the atom, and B is the number of bonding electrons (so B/2 is just the number of bonds). The formal charges of every atom add up to the overall charge of the molecule or ion.

Formal charge is the bookkeeping tool chemists use to track where electrons sit in a Lewis structure. It answers a simple question: if every bond were shared perfectly evenly, would this atom have more or fewer electrons than a neutral free atom of the same element? That comparison helps you spot the most reasonable Lewis structure, balance charges in a polyatomic ion, and reason about reactivity. This guide covers the formula, a clean worked example, a reference table for common atoms, and the mistakes that trip people up.

The formal charge formula

The formula has three inputs, and all three come straight from a drawn Lewis structure:

The formula

formal charge = ( valence electrons of the free atom ) minus ( nonbonding lone pair electrons ) minus ( half of the bonding electrons )

  • Valence electrons (V) is the number of outer shell electrons a neutral, free atom of that element has. For main group elements it equals the group number, so oxygen has 6 and nitrogen has 5.
  • Nonbonding electrons (N) is the count of lone pair electrons sitting on that specific atom, where each lone pair is two electrons.
  • Bonding electrons (B) is the total number of electrons in the bonds attached to that atom. Since every bond holds two electrons, B/2 is simply the number of bonds, counting a double bond as two and a triple bond as three.

Because B/2 is just the number of bonds, many chemists write the formula in a faster form: formal charge equals valence electrons minus lone pair electrons minus number of bonds. Both versions give the same answer. If you are comfortable with how to calculate a percentage, this arithmetic will feel even easier, since it is only subtraction.

Counting electrons the right way

The whole formula rests on splitting an atom's electrons into two groups. Lone pair electrons belong entirely to that atom, so they count fully. Bonding electrons are shared, so for formal charge purposes you assign exactly half of each bond to the atom. This even split is what makes formal charge a model rather than a true physical charge, but it is a remarkably useful model.

  1. Draw a valid Lewis structure showing all bonds and lone pairs.
  2. Pick one atom and look up its free atom valence electron count, V.
  3. Count the lone pair electrons on that atom to get N, with two electrons per pair.
  4. Count the bonds on that atom and multiply by two to get the bonding electrons B, then take B/2.
  5. Subtract: FC = V minus N minus B/2.

A worked example, step by step

Consider the carbon atom in carbon dioxide, with the structure O double bonded to C double bonded to O. The carbon has no lone pairs and two double bonds. Here is the calculation:

  1. Valence electrons of carbon: V equals 4, since carbon is in group 14.
  2. Nonbonding electrons on carbon: N equals 0, because carbon has no lone pairs here.
  3. Bonding electrons: carbon has two double bonds, which is four bonds total, so B equals 8 and B/2 equals 4.
  4. Subtract: FC equals 4 minus 0 minus 4, which equals 0.

Carbon carries a formal charge of zero, which is exactly what we want for a stable, low energy structure. Now check one oxygen: V equals 6, it has two lone pairs so N equals 4, and one double bond gives B/2 equals 2. That is 6 minus 4 minus 2, which equals 0 as well. Every atom is zero, so the formal charges sum to zero, matching the neutral molecule.

Conceptual illustration of an atom with lone pair electrons and shared bonding electrons being split for formal charge counting
Formal charge assigns all lone pair electrons and exactly half of each bond to the atom.

The dots and lines shortcut

Once a Lewis structure is in front of you, there is a faster way to read formal charge straight off the page without converting anything to electron counts. Because each lone pair is one pair of dots and each bond is one line, you can rewrite FC = V - N - B/2 in a form that uses the picture directly. This shortcut is popular in organic chemistry because it lets you scan a whole structure and spot the charged atoms in seconds.

The shortcut

Formal charge = valence electrons - dots - lines. Count the lone pair dots on the atom (each lone pair is 2 dots, so a pair counts as 2), then count the lines, where a single bond is 1 line, a double bond is 2 lines, and a triple bond is 3 lines. Subtract both from the free atom valence count. This is identical to FC = V - N - B/2, just read off the drawing.

For example, the oxygen of a hydroxide ion has three lone pairs (6 dots) and one bond (1 line), so its formal charge is 6 - 6 - 1 = -1. The shortcut and the full formula always agree, because dots are exactly the nonbonding electrons N and lines are exactly the number of bonds B/2. Pick whichever feels more natural; many students draw the structure, count the dots and lines out loud, and move on.

A polyatomic ion example: nitrate

Neutral molecules are the easy case. The nitrate ion, NO3 with a charge of minus one, shows how formal charge handles a charged species and how it reveals resonance. Draw nitrogen in the center bonded to three oxygens: one oxygen with a double bond and two oxygens with single bonds, each single bonded oxygen carrying an extra lone pair. Now work through every atom.

  1. Nitrogen: V equals 5, it has no lone pairs so N equals 0, and it forms four bonds (one double plus two single) so B/2 equals 4. FC equals 5 minus 0 minus 4, which equals +1.
  2. Double bonded oxygen: V equals 6, it has two lone pairs so N equals 4, and one double bond gives B/2 equals 2. FC equals 6 minus 4 minus 2, which equals 0.
  3. Each single bonded oxygen: V equals 6, three lone pairs give N equals 6, and one single bond gives B/2 equals 1. FC equals 6 minus 6 minus 1, which equals -1.
  4. Add them up: +1 from nitrogen, 0 from the double bonded oxygen, and -1 on each of the two single bonded oxygens gives a total of -1, matching the ion's charge.

The negative formal charge sits on oxygen, the more electronegative atom, which is exactly where it belongs. Notice that the double bond could equally be drawn to any of the three oxygens, so nitrate has three equivalent resonance structures. Formal charge confirms each one is valid and that the real ion is an average of all three, with the negative charge spread evenly across the oxygens.

Formal charge reference for common atoms

Once you have done a few by hand, patterns emerge for the everyday atoms in organic and inorganic structures. The table below lists common bonding situations and the formal charge they produce. Use it as a sanity check, not a substitute for the formula.

Common atoms and their formal charges in typical structures

Atom and situationVN (lone pair electrons)BondsFormal charge
Oxygen with 2 bonds, 2 lone pairs (water)6420
Oxygen with 1 bond, 3 lone pairs (hydroxide O)661-1
Oxygen with 3 bonds, 1 lone pair (hydronium O)623+1
Nitrogen with 3 bonds, 1 lone pair (ammonia)5230
Nitrogen with 4 bonds, 0 lone pairs (ammonium)504+1
Carbon with 4 bonds, 0 lone pairs (methane)4040
Carbon with 3 bonds, 1 lone pair (carbanion)423-1

Reading the table, you can see the logic at a glance. An oxygen with only one bond and an extra lone pair gains a negative formal charge, while a nitrogen that forms a fourth bond and gives up a lone pair gains a positive one. These recurring patterns make checking a structure fast once they become familiar.

Using formal charge to pick the best Lewis structure

Many molecules can be drawn more than one way, and formal charge is the deciding tool. When you have competing structures, the preferred one follows a short set of rules. This is where formal charge earns its keep, because it turns a vague sense of which drawing looks right into a concrete comparison.

  • The best structure keeps formal charges as close to zero as possible across all atoms.
  • Fewer atoms carrying a nonzero formal charge is better than more.
  • Any negative formal charge should sit on the most electronegative atom, the one most able to hold extra electron density.
  • Avoid placing like charges on adjacent atoms, and avoid large charges such as plus or minus two when a better arrangement exists.

Because the formal charges always sum to the overall charge of the species, you also get a built in check. If you draw a neutral molecule and your charges do not add to zero, you have miscounted somewhere. For a polyatomic ion, they must add up to the ion's charge instead. This connects naturally to other counting skills in chemistry, such as the empirical formula and percent yield, where careful tallying is just as important.

Formal charge vs oxidation number

Students often blur formal charge and oxidation number, but they answer different questions. Formal charge splits every bond evenly, giving each bonded atom one electron from each bond. Oxidation number does the opposite extreme: it hands both electrons of a bond to the more electronegative atom. Neither is the true charge on the atom, which lies somewhere in between, but each is useful for its own purpose. Formal charge guides Lewis structure choice, while oxidation number tracks electron transfer in redox reactions.

Common mistakes to avoid

  • Counting lone pairs as single electrons. Each lone pair is two electrons, so a nitrogen with one lone pair contributes 2 to N, not 1.
  • Forgetting to halve the bonding electrons. You assign only half of each bond to the atom. Counting full bonding electrons doubles the wrong number and ruins the result.
  • Using the wrong valence count. V is the group based valence electron count of the neutral free atom, not the number of electrons it ends up with in the molecule.
  • Ignoring double and triple bonds. A double bond counts as two bonds and a triple as three when you tally B/2, even though it is one line or one connection on paper.
  • Not checking the sum. The formal charges must add up to the overall charge. If they do not, a count is off and the structure needs another look.

Good to know

Formal charge is a model, not a measured quantity. It does not say an atom literally carries that whole charge, only that the bookkeeping under the equal sharing assumption lands there. The real distribution of electron density depends on electronegativity differences, which is why the most electronegative atom is the preferred home for any negative formal charge.

Why formal charge matters

Beyond choosing the right Lewis structure, formal charge helps you predict where a molecule will react, which resonance form contributes most, and how to draw stable ions correctly. Organic chemistry leans on it constantly to track intermediates and arrow pushing mechanisms. Master the simple subtraction in FC equals V minus N minus B/2, keep your lone pair and bond counts honest, and remember to confirm the charges sum to the overall charge. With those habits, formal charge becomes one of the fastest and most reliable checks in your chemistry toolkit.

Frequently asked questions

What is the formal charge formula?

Formal charge equals the valence electrons of the free atom minus the nonbonding lone pair electrons minus half of the bonding electrons, written as FC = V - N - B/2. Since B/2 is just the number of bonds, you can also say formal charge equals valence electrons minus lone pair electrons minus number of bonds.

How do you calculate the formal charge of an atom?

Draw the Lewis structure, then for the atom find V, its free atom valence electrons. Count its lone pair electrons as N, with two per pair. Count its bonds and multiply by two for the bonding electrons B. Subtract: FC equals V minus N minus B/2. The result is that atom's formal charge.

Do formal charges have to add up to anything?

Yes. The formal charges of all atoms in a species must add up to the overall charge of that species. For a neutral molecule they sum to zero, and for a polyatomic ion they sum to the ion's charge. If your sum does not match, you have miscounted electrons somewhere in the structure.

How does formal charge help choose the best Lewis structure?

The best Lewis structure keeps formal charges as close to zero as possible and on as few atoms as possible. When a negative formal charge is unavoidable, it should sit on the most electronegative atom. Comparing competing structures by these rules tells you which drawing is the most reasonable.

What is the difference between formal charge and oxidation number?

Formal charge splits each bond evenly between the two atoms, while oxidation number gives both bonding electrons to the more electronegative atom. Formal charge guides Lewis structure choice, and oxidation number tracks electron transfer in redox reactions. Neither equals the true physical charge, which lies between the two extremes.

Can a formal charge be negative?

Yes. A formal charge can be positive, negative, or zero. An atom gets a negative formal charge when it holds more electrons than its neutral free atom would, which happens when it has extra lone pairs and few bonds. For example, an oxygen with one bond and three lone pairs carries a formal charge of minus one.

What is the formal charge shortcut for Lewis structures?

Use formal charge equals valence electrons minus dots minus lines. Count the lone pair dots on the atom, where each pair is two dots, then count the bond lines, where a double bond is two lines and a triple is three. Subtract both from the valence electron count. This reads the same answer as FC = V - N - B/2 directly off the drawing.

What is the formal charge of hydrogen?

Hydrogen almost always has a formal charge of zero. It has one valence electron, no lone pairs, and forms one bond, so FC equals 1 minus 0 minus 1, which equals zero. The exceptions are a bare proton with a plus one charge or a hydride ion with a lone pair and no bond, which carries a minus one formal charge.

Keep reading