Skip to content

Tool · charge balance

Ionic compound formula and naming

Pick a cation and an anion. We balance the charges and give you the formula and the name, step by step.

1 · Cation (positive)

2 · Anion (negative)

How to write the formula

An ionic compound has no overall charge. The total positive charge of the cations must equal the total negative charge of the anions. So find the lowest common multiple of the two charges. Divide it by the cation’s charge to get the number of cations, and by the anion’s charge to get the number of anions.

Example: Al³⁺ and SO₄²⁻. LCM(3, 2) = 6. 6 ÷ 3 = 2 aluminum ions, 6 ÷ 2 = 3 sulfate ions. Sulfate is a polyatomic ion, so it goes in brackets: Al₂(SO₄)₃, aluminum sulfate.

This tool writes the formula from charge balance alone. Not every pair of ions forms a real, stable solid. We flag a few well-known exceptions in the result. Each element page lists the oxidation states the element can take.

Polyatomic ions

IonFormulaCharge
HydroxideOH⁻−1
NitrateNO₃⁻−1
NitriteNO₂⁻−1
CyanideCN⁻−1
AcetateCH₃COO⁻−1
Hydrogen carbonateHCO₃⁻−1
Hydrogen sulfateHSO₄⁻−1
PermanganateMnO₄⁻−1
HypochloriteClO⁻−1
ChlorateClO₃⁻−1
PerchlorateClO₄⁻−1
SulfateSO₄²⁻−2
SulfiteSO₃²⁻−2
CarbonateCO₃²⁻−2
ChromateCrO₄²⁻−2
DichromateCr₂O₇²⁻−2
PhosphatePO₄³⁻−3
AmmoniumNH₄⁺+1

Hydrogen carbonate is also called bicarbonate, and hydrogen sulfate bisulfate.

Frequently asked questions

How do you write the formula of an ionic compound?

Make the total positive charge of the cations equal the total negative charge of the anions. Find the lowest common multiple (LCM) of the two charges. For Al³⁺ and O²⁻ the LCM is 6: you need 2 aluminum ions (+6) and 3 oxide ions (−6), so the formula is Al₂O₃.

What is the criss-cross method?

The number of the cation’s charge becomes the anion’s subscript, and the number of the anion’s charge becomes the cation’s subscript. Then the subscripts are reduced. Ca²⁺ and O²⁻ criss-cross to Ca₂O₂, which reduces to CaO.

When do you use brackets in a formula?

When a formula needs more than one of a polyatomic ion, the ion goes in brackets and the number goes outside: Ca(OH)₂, (NH₄)₂SO₄. Single-atom ions never need brackets.

What does the Roman numeral in iron(III) oxide mean?

For metals that can form ions with different charges, the Roman numeral gives the charge of the metal ion. Iron(II) is Fe²⁺ and iron(III) is Fe³⁺, so FeO is iron(II) oxide and Fe₂O₃ is iron(III) oxide.

How are ionic compounds named?

Name the cation first, then the anion. A single-atom anion ends in -ide: chloride, oxide, sulfide. Polyatomic ions keep their own names: sulfate, nitrate, hydroxide.

See also: molar mass calculator, what is an oxidation state?, electron configuration.