calculator.onl
Categories50

Lewis formal charge and charge-sum checker

Calculate atom formal charges from explicit Lewis electron counts and compare their sum with a target molecular charge.

A worked example

Compare H₂O with H₃O⁺. Oxygen has one fewer lone pair and its formal charge changes from 0 to +1.

Σ(nFC)-1 eΣ(nFC) − qtarget0 eΣ(nFC) (+)0 eΣ(nFC) (−)-1 e
Atom rows: Separate list items with semicolons; decimal commas are allowed. Follow the item limit shown for the field.

e
qtarget: -1000…1000 e

Updates as you type

Use a dot or comma for decimals. No thousands separators.

YOUR RESULT

Σ(nFC)

-1 e

Calculated from your inputs

Σ(nFC) − qtarget0 e
Σ(nFC) (+)0 e
Σ(nFC) (−)-1 e
Σn5
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

When this calculator is useful

Assign half of bonding electrons and all nonbonding electrons to each atom. Subtract that total from neutral valence electrons. Multiply by the number of equivalent atoms and sum all rows; compare with the supplied target charge. Oxidation states use a different electron assignment. For a related calculation, try Oxidation number calculator: oxidation states.

What to enter

InputWhat it meansExample value
Atom rowsAtom rows: Separate list items with semicolons; decimal commas are allowed. Follow the item limit shown for the field.I;1;7;4;8 Cl;4;7;6;2
qtargetqtarget: -1000…1000 e-1 e

How the calculation works

  1. Change the inputs to explore your own scenario. Atom rows: Separate list items with semicolons; decimal commas are allowed. Follow the item limit shown for the field.; qtarget: -1000…1000 e.
  2. FC=V−N−B/2; q=Σ(nᵢFCᵢ); Δq=q−qtarget
  3. Each row is label;atom count;V;N;B. V is neutral-atom valence electrons, N is nonbonding electrons (not lone pairs), B is bonding electrons. Pair-bond Lewis bookkeeping requires even B; single/double/triple bonds contribute2/4/6. Counts and electron values are integers. A matching charge sum does not validate connectivity, octets, stability or actual charge distribution.
The formulaFC=V−N−B/2; q=Σ(nᵢFCᵢ); Δq=q−qtarget

A worked example

In the OpenStax ICl₄⁻ example, iodine has seven valence electrons, four nonbonding electrons and eight bonding electrons. Its formal charge is −1. Each of the four chlorines contributes zero, so the total matches the ion’s −1 charge. For CO, carbon contributes −1 and oxygen +1, giving zero overall.

Example you can load

What to enter
Result for this example · Σ(nFC)-1 e

This is a fixed example; changing the form above does not change these numbers.

Assumptions & limits

Each row is label;atom count;V;N;B. V is neutral-atom valence electrons, N is nonbonding electrons (not lone pairs), B is bonding electrons. Pair-bond Lewis bookkeeping requires even B; single/double/triple bonds contribute2/4/6. Counts and electron values are integers. A matching charge sum does not validate connectivity, octets, stability or actual charge distribution.

Frequently asked questions

Should I enter lone pairs or electrons?

Enter electrons. Three lone pairs mean N=6. B counts all electrons in bonds touching that atom, so a double bond contributes4.

Is formal charge an oxidation state?

No. Formal charge splits bond electrons equally; oxidation-state conventions assign them by different rules.

Does zero charge difference prove a valid molecule?

No. It checks only the sum of the supplied bookkeeping. Connectivity, allowed electronic structures and stability require separate assessment.