Ionic Compound Formula Builder – Write, Name and Check Ionic Formulas
An ionic compound is built from cations (positive ions, usually metals) and anions (negative ions, usually nonmetals or groups of atoms). The compound as a whole is always electrically neutral, so the total positive charge must cancel the total negative charge. This tool does that bookkeeping for you: it writes the formula, names it, converts names to formulas and back, and tags each salt as soluble or not.
The criss-cross method
To write a formula, take the charge of each ion and swap the numbers: the cation's charge becomes the anion's subscript and the anion's charge becomes the cation's subscript. Then divide by any common factor. Criss-cross is really a shortcut for the lowest common multiple of the two charges.
Al³⁺ + O²⁻ swap → Al₂O₃ (2 : 3, nothing to reduce)
Pb⁴⁺ + O²⁻ swap → Pb₂O₄ → ÷ 2 → PbO₂ (2 : 4 reduces to 1 : 2)Polyatomic ions and parentheses
Groups such as sulfate SO₄²⁻ or ammonium NH₄⁺ behave as one unit. When a polyatomic ion appears more than once, put it in parentheses so the subscript applies to the whole group: Fe₂(SO₄)₃ and (NH₄)₂SO₄. With a count of one there are no parentheses, as in NH₄NO₃.
Naming: fixed and variable charges
Metals such as sodium, calcium and aluminum form one common ion, so their names carry no numeral: sodium chloride, calcium oxide. Metals that form several ions, such as iron, copper, tin and lead, need a Roman numeral in the Stock name, written with no space: iron(III) sulfate, copper(I) oxide. Older classical names use the endings -ous (lower charge) and -ic (higher charge): ferrous and ferric, cuprous and cupric.
Hydrates
Many salts crystallise with water. The water is written after a dot and named with a Greek prefix: CuSO₄·5H₂O is copper(II) sulfate pentahydrate, and CaSO₄·½H₂O is calcium sulfate hemihydrate. The water carries no charge, so it never changes the ion ratio, but it does change the molar mass.
Traps to watch for
Solubility rules
Every result carries a verdict from the general rules: all group 1 and ammonium salts, nitrates and acetates are soluble; most chlorides, bromides and sulfates are soluble with a few well-known exceptions; carbonates, phosphates, hydroxides and most sulfides are not. These are classroom rules at about 25 °C, so for borderline salts use the Solubility Product Calculator and the real Ksp.