Ans. The formal charge of an atom is calculated by subtracting the number of lone pair electrons and half the number of shared electrons from the valence electrons of the atom.