The formal charge is the charge assigned to an atom in a molecule based on the assumption that electrons in all chemical bonds are evenly shared across atoms, independent of relative electronegativity.
It is the difference between the number of valence electrons an atom has in its neutral free state and the number assigned to it in a Lewis structure.
The formula for formal charge:
Here, is the formal charge, is number of valence electrons, is number of nonbonding valence electrons and is total number of electrons shared in bonds.
Formal charge on Carbon atom in
In carbon dioxide , carbon double bonded to both oxygen atoms.
The valence electron of carbon is four.
The number of nonbonding valence electron is zero.
The total number of electrons shared in bonds is eight.
The formal charge on carbon atom in :
The formal charge on carbon atom in is zero:
Formal charge on oxygen atom in
The valence electron of oxygen is six.
The number of nonbonding valence electron is four.
The total number of electrons shared in bonds is four.