IntoChemistry · General Chemistry

How to Write Ionic Compound Formulas

Use ion charges and the lowest whole-number ratio to write neutral ionic compounds with confidence.

◎ Clear explanations◉ Worked examples▤ Practice problems⬇ Free resources

Ions combine to make electrically neutral compounds

An ionic compound contains positively charged cations and negatively charged anions. A correct ionic formula gives the simplest whole-number ratio of ions whose charges add to zero.

Illustrated How to Write Ionic Compound Formulas study overview
IntoChemistry visual guide. Follow the worked examples below for the complete reasoning.

A reliable four-step method

  1. Identify the correct cation, anion, and their charges.
  2. Find the smallest total charge magnitude divisible by both charges (least common multiple).
  3. Determine how many of each ion are needed to reach equal positive and negative charges.
  4. Write the cation first, use lowest whole-number subscripts, and place parentheses around a polyatomic ion when you need more than one of it.

Why calcium nitrate needs parentheses

A 2+ calcium cation combines with two 1-minus nitrate anions to make neutral Ca(NO3)2.
Two nitrate ions (−1 each) balance one calcium ion (+2): Ca(NO₃)₂.

Three worked examples

Worked example 1

Aluminum oxide

  1. Aluminum forms Al³⁺; oxide is O²⁻.
  2. The lowest common multiple of 3 and 2 is 6.
  3. Use two Al³⁺ ions (+6) and three O²⁻ ions (−6).

Formula: Al₂O₃.

Worked example 2

Calcium nitrate

  1. Ca²⁺ and nitrate NO₃⁻ have charges +2 and −1.
  2. Use one Ca²⁺ and two nitrate ions.
  3. Nitrate stays intact: enclose it in parentheses before the 2.

Formula: Ca(NO₃)₂, not CaNO₆.

Worked example 3

Iron(III) oxide

  1. Roman numeral III specifies Fe³⁺, not Fe²⁺.
  2. Two Fe³⁺ ions balance three O²⁻ ions.
  3. Write the simplest ion ratio, not a molecular formula.

Formula: Fe₂O₃.

Common naming and formula errors

  • Skipping charge balance: CaCl is not neutral; Ca²⁺ needs two Cl⁻, giving CaCl₂.
  • Forgetting parentheses: Ca(NO₃)₂ has two complete nitrate ions.
  • Using Roman numerals as subscripts: iron(III) means Fe³⁺, not Fe₃.
  • Applying ionic rules to covalent compounds: CO₂ is molecular and must not be predicted using ion charge crisscrossing.

Check your understanding

Why is Mg₂O₂ not the standard formula for magnesium oxide?

It represents a reducible 2:2 ion ratio. The lowest whole-number ratio of Mg²⁺ to O²⁻ is 1:1, so the formula is MgO.

When are parentheses required?

When a polyatomic ion is repeated. One sulfate: Na₂SO₄ (no parentheses). Two nitrates: Ca(NO₃)₂ (parentheses).

Interactive How to Write Ionic Compound Formulas Practice

Apply what you have learned using immediate feedback.

Interactive chemistry practice

Write the ionic formula

Use the cation and anion charges to write a neutral, lowest-whole-number formula. Capitals matter.