Toolvito

Works on this device

Formal Charge Calculator

Work out the formal charge of one atom, or of every atom in a Lewis structure. Type the element, its lone pair electrons and its bonds; the tool finds the valence electrons from the periodic table group.

Enter your values

For example nitrogen in the ammonium ion: 5 valence electrons, no lone pairs, 4 bonds.

Your values

A main-group element symbol, such as C, N, O, S or Cl.

Electrons in lone pairs on this atom: 2 for each lone pair, 1 for an unpaired electron.

Count each bond to this atom: a single bond 1, a double bond 2, a triple bond 3.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. For one atom, choose Formal charge of one atom, type the element, its non-bonding electrons and its number of bonds.
  2. For a whole structure, choose Formal charge of each atom in a structure. Add one row for each atom. The menu Example structures fills in nitrate, carbon monoxide, ozone, ammonium or cyanide.
  3. Count a lone pair as 2 electrons. Count a double bond as 2 bonds and a triple bond as 3.
  4. Type the charge of the whole structure if you want a check, then choose Calculate.

The formula

Formal charge = V − N − B ÷ 2, where V is the number of valence electrons of the free atom, N the number of non-bonding (lone pair) electrons on the atom, and B the number of bonding electrons around it. B ÷ 2 is the same as the number of bonds.

Valence electrons of a main-group element come from its group: groups 1 and 2 have 1 and 2; groups 13 to 18 have the group number minus 10 (so C has 4, N 5, O 6, F 7). Helium has 2.

The formal charges of all atoms add up to the charge of the molecule or ion.

Worked example: the nitrate ion

In one Lewis structure of NO3−, nitrogen has no lone pairs and 4 bonds (one double, two single). Its formal charge is 5 − 0 − 4 = +1.

The oxygen with the double bond has 4 lone pair electrons and 2 bonds: 6 − 4 − 2 = 0. Each oxygen with a single bond has 6 lone pair electrons and 1 bond: 6 − 6 − 1 = −1.

The sum is +1 + 0 − 1 − 1 = −1, the charge of the ion.

Second-row atoms

Atoms of period 2 (B, C, N, O, F) hold at most 8 electrons around them, and hydrogen holds 2. The table shows the electrons around each atom (lone pair electrons + 2 for each bond), and the result warns when a structure goes over these limits.

Limits you should know

  • The valence electron rule covers main-group elements only. For a transition metal, use one atom and type the number of valence electrons yourself.
  • A formal charge is bookkeeping for a drawn structure. It is not the real charge on the atom, which is spread out by polar bonds and resonance.
  • The tool checks counts. It does not draw structures or choose the best one.

Related tools