Skip to content
Omnikalc

Formal charge calculator: what is the formal charge of an atom in a molecule?

Choose the atom and enter its lone-pair and bonding electrons to get the formal charge, the number of electrons around it, the lone pairs and the bonds.

Updated on
Your inputs

Value out of range

Value out of range

Results

Formal charge

1

Positive formal charge
Electrons around the atom
8
Lone pairs
0.0
Bonds
4.0

Formal charge is a quick check on a Lewis structure. The formal charge calculator takes an atom (through its valence electrons), its lone-pair electrons and its bonding electrons and gives the formal charge, the number of electrons around the atom, the lone pairs and the number of bonds, with a note on whether the atom is neutral, positive or negative.

How the calculation works

  • Formal charge = valence electrons of the free atom − non-bonding electrons − half of the bonding electrons.
  • Valence electrons are the electrons in the outer shell of the neutral atom: 1 for hydrogen, 4 for carbon, 5 for nitrogen and 6 for oxygen.
  • Non-bonding electrons are those in lone pairs on the atom, and bonding electrons are those in the bonds around it, two for each single bond, four for a double bond and six for a triple bond.
  • The formal charges of all the atoms in a molecule or ion add up to its overall charge.

Example

For the nitrogen atom of the ammonium ion NH₄⁺, the atom has 5 valence electrons, 0 non-bonding electrons and four single bonds, that is 8 bonding electrons. The formal charge is 5 − 0 − 8 ÷ 2 = +1. There are 8 electrons around the atom, 0 lone pairs and 4 bonds, so the nitrogen carries the positive charge of the ion.

Why it matters

Formal charge is taught in every general chemistry course. It helps to draw correct Lewis structures for ions such as ammonium, nitrate and sulfate, and to see which resonance form contributes most.

Good to know

Formal charge is a counting convention and not a measured charge. Check the whole structure: the formal charges must add up to the charge of the species, and every atom needs its proper number of bonds and electrons. Several valid structures can exist, and the best one is that with the lowest formal charges on the most suitable atoms.

The mole fraction calculator describes the composition of a mixture and the boiling point elevation calculator shows the effect of a solute on a solvent.

Frequently asked questions

What is formal charge?

It is the charge an atom would have if the electrons in each bond were shared equally between the two atoms. It is a bookkeeping tool for Lewis structures, used to decide which arrangement of bonds and lone pairs is the most plausible. The sum of the formal charges equals the charge of the molecule or ion.

How do I choose between two Lewis structures?

Prefer the structure in which the formal charges are as close to zero as possible, in which any negative charge sits on the more electronegative atom, and in which neighbouring atoms do not carry charges of the same sign. These rules often identify the main resonance form.

Is formal charge the real charge on an atom?

No. Real charge distributions depend on electronegativity and are spread over the molecule. Formal charge assumes pure covalent sharing, and oxidation numbers assume pure ionic bonds. The truth is between the two, and neither number is the measured charge of an atom.

What if the atom breaks the octet?

Atoms of the third period and below, such as sulfur and phosphorus, can hold more than 8 electrons around them. The formula still works. Boron often has only 6 electrons, and its formal charge is 0 when it makes three bonds. The calculator reports the electrons around the atom so that you can check the octet.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.