Chemical Name Calculator - Cation-Anion Naming and Formulas

Chemical name calculator for ionic compounds. Pick a cation and anion to get the IUPAC name, balanced formula, and Roman numeral oxidation state.

Updated: June 20, 2026 • Free Tool

Chemical Name Calculator

Pick the cation. Values ending in 1, 2, 3, 4 indicate the oxidation state for transition metals.

Pick the anion. Polyatomic ions keep their name and are auto-wrapped in parentheses when their subscript is greater than one.

Results

Ionic Formula
0
IUPAC Name 0
Cation Subscript 0
Anion Subscript 0
Charge Balance 0

What Is Chemical Name Calculator?

A chemical name calculator is an ionic-naming tool that pairs a cation with an anion and returns the charge-balanced formula and the IUPAC compound name using the criss-cross rules taught in general chemistry.

  • Homework and lab prep: Turn cation and anion choices from a worksheet into the formula and IUPAC name you actually turn in, including Roman numerals for transition metals.
  • Naming practice for exams: Drill ionic compound naming by changing the cation or anion and reading the new IUPAC name and formula subscripts.
  • Stoichiometry planning: Start a stoichiometry problem with the correct formula and IUPAC name before computing grams, moles, or limiting reactants.
  • Lab notebook documentation: Record salt names and formulas consistently, including polyatomic ions that need parentheses when their subscript is greater than one.

The calculator handles monatomic ions, transition metals with multiple oxidation states, and common polyatomic ions such as sulfate, nitrate, hydroxide, and phosphate.

Each output follows a small IUPAC rule set, so the same pair always returns the same name and smallest-integer formula that textbooks expect.

Once the names and formulas are in hand, the Chemical Equation Balancer Calculator takes the next step and turns unbalanced reaction equations into the smallest integer coefficients that preserve those ions on both sides.

How Chemical Name Calculator Works

The chemical name calculator reads the cation and anion charges from an IUPAC lookup table, applies the criss-cross rule to set the subscripts, and assembles the IUPAC name using cation-then-anion ordering plus Roman numerals for variable-oxidation-state metals.

cationSubscript = |anionCharge| / gcd(|cationCharge|, |anionCharge|) ; anionSubscript = |cationCharge| / gcd(|cationCharge|, |anionCharge|)
  • cationCharge: Magnitude of the positive charge carried by the chosen cation, taken from the IUPAC lookup table (for example 2 for Fe2+ or 3 for Al3+).
  • anionCharge: Magnitude of the negative charge carried by the chosen anion, taken from the IUPAC lookup table (for example 2 for O2- or 3 for PO4 3-).
  • gcd: Greatest common divisor of the two charge magnitudes, used to reduce the subscripts to the smallest positive integer pair.
  • cationName: Cation name from the lookup table, with a Roman numeral appended in parentheses when the cation has more than one common oxidation state.
  • anionName: Anion name, where monatomic anions take the -ide suffix and polyatomic anions keep their accepted IUPAC name.

The lookup table covers monatomic ions from hydrogen through lead, the polyatomic cations ammonium and hydronium, and common polyatomic anions such as hydroxide, nitrate, sulfate, carbonate, phosphate, and permanganate.

Polyatomic anions are auto-detected and wrapped in parentheses when their subscript exceeds one, so the result matches your textbook form for compounds such as (NH4)3PO4 or Al(OH)3.

Sodium chloride

Cation: Sodium (Na+, charge 1); Anion: Chloride (Cl-, charge 1)

gcd(1, 1) = 1; cation subscript = 1; anion subscript = 1

Formula: NaCl ; IUPAC name: Sodium Chloride

Both ions carry charge magnitude 1, so the subscripts are 1:1 and no Roman numeral is needed because sodium has one oxidation state.

Aluminum sulfate

Cation: Aluminum (Al3+, charge 3); Anion: Sulfate (SO4 2-, charge 2)

gcd(3, 2) = 1; cation subscript = 2; anion subscript = 3

Formula: Al2(SO4)3 ; IUPAC name: Aluminum Sulfate

The criss-cross rule moves each charge magnitude to the opposite ion, and the polyatomic sulfate is wrapped in parentheses because its subscript exceeds one.

Iron(III) oxide

Cation: Iron(III) (Fe3+, charge 3); Anion: Oxide (O2-, charge 2)

gcd(3, 2) = 1; cation subscript = 2; anion subscript = 3

Formula: Fe2O3 ; IUPAC name: Iron(III) Oxide

Iron needs the Roman numeral III because Fe2+ and Fe3+ both exist; the criss-cross rule then produces the 2:3 ratio.

According to IUPAC Red Book, the -ide suffix is reserved for monoatomic anions and polyatomic anions such as sulfate, nitrate, and hydroxide retain their accepted names

According to Encyclopaedia Britannica, a binary ionic compound forms when a metal transfers one or more electrons to a non-metal, producing a cation-anion lattice whose neutral formula balances the charges, as in sodium chloride (NaCl) and calcium chloride (CaCl2)

After the formula is in hand, Mole Molar Mass Calculator turns the IUPAC string into the molar mass you need for grams-to-moles work in the next stoichiometry step.

Key Concepts Explained

Four ideas from the IUPAC Red Book that govern how this calculator decides the formula and the name, and how each one is enforced in the code.

Charge neutrality

Every neutral ionic compound carries the same total positive charge as total negative charge. The criss-cross rule is a tidy way to reach that neutral total, and the calculator's chargeBalance row lets you verify it after every result.

Criss-cross method

The criss-cross rule sets each ion's subscript to the magnitude of the opposite ion's charge, then divides both subscripts by their greatest common divisor. It is the same shortcut taught in AP chemistry.

Roman numeral oxidation states

Cations that take more than one oxidation state, such as Fe2+ and Fe3+, Cu+ and Cu2+, get a Roman numeral in parentheses after the cation name. Main-group cations with a single common oxidation state, such as Na+, Mg2+, and Al3+, do not.

Polyatomic ion names and parentheses

Polyatomic anions keep their accepted IUPAC names, including sulfate, nitrate, hydroxide, and phosphate. The formula wraps them in parentheses whenever their subscript is greater than one.

These four rules together cover every result the calculator returns, and they match the convention your textbook will use on quizzes and lab reports.

When the formula you just built is needed inside a balanced reaction, Stoichiometry Reaction Calculator carries the same ion names through the limiting-reactant calculation.

How to Use This Calculator

Six steps that take you from a chosen cation and anion to a verified IUPAC name and charge-balanced formula, with a worked example.

  1. 1 Pick the cation: Open the Cation dropdown and choose the positively charged ion. Values ending in 1, 2, 3, or 4 name the oxidation state for transition metals such as Iron(II) and Copper(I).
  2. 2 Pick the anion: Open the Anion dropdown and choose the negatively charged ion. Polyatomic anions such as sulfate, nitrate, hydroxide, and phosphate are listed by their accepted IUPAC names.
  3. 3 Watch the formula update: The Ionic Formula row updates instantly. Subscripts are reduced by the greatest common divisor and polyatomic anions are auto-wrapped in parentheses when needed.
  4. 4 Read the IUPAC name: The IUPAC Name row shows the cation name first, then the anion name. Cations with multiple oxidation states include a Roman numeral; main-group cations do not.
  5. 5 Verify charge balance: Check the Charge Balance row. The two totals must match, because a neutral ionic compound has equal total positive and total negative charge.
  6. 6 Hand off the formula: Copy the Ionic Formula into the next stoichiometry, molar mass, or percent composition calculator without retyping subscripts or parentheses.

Pick Sodium (Na+) for the cation and Sulfate (SO4 2-) for the anion. The Ionic Formula becomes Na2SO4, the IUPAC Name reads Sodium Sulfate, and the Charge Balance row confirms 2+ on the cation side and 2- on the anion side.

Drop the IUPAC formula into the Grams to Moles Calculator when the next lab step turns the named compound into a measured mass of reagent.

Benefits of Using This Calculator

Why the same IUPAC rules, applied consistently, save time and prevent the small mistakes that cost points on homework and lab reports.

  • IUPAC names every time: Cation-first ordering, -ide suffix for monoatomic anions, and Roman numerals for variable-oxidation-state metals are applied in one step.
  • Smallest whole-number formulas: The criss-cross rule and greatest common divisor reduction always return the smallest-integer subscripts, matching the canonical form your instructor expects.
  • Polyatomic ion support: Sulfate, nitrate, hydroxide, carbonate, phosphate, permanganate, dichromate, and the chlor-oxygen family are first-class entries, with parentheses added automatically.
  • Visible charge balance: The Charge Balance row shows the running totals so you can confirm neutrality by eye instead of re-deriving the criss-cross step in your head.
  • Fast iteration across ions: Change the cation or anion and watch the formula, name, and charge balance update together, which is the cleanest way to practice naming a set of compounds.
  • Direct handoff to stoichiometry: The Ionic Formula output is the exact string you paste into molar mass, percent composition, or grams-to-moles tools without retyping.

When the named compound becomes one ingredient in a mixture, Mole Fraction Calculator takes the same cation-anion vocabulary and uses it to compute the mole fraction of each species.

Factors That Affect Your Results

Three things that change how the calculator behaves, plus the limits to respect when interpreting the output.

Cation oxidation state

Selecting Fe2+ versus Fe3+ changes both the Roman numeral in the IUPAC name and the anion subscript in the formula. Pick the oxidation state explicitly from the cation list.

Polyatomic ion shape

Anions with more than one capital letter, plus oxygen-containing ions such as hydroxide and peroxide, are auto-wrapped in parentheses when their subscript exceeds one. Monatomic anions never need parentheses.

Charge magnitude and ratio

When the cation and anion charges share a common factor greater than one, the criss-cross step reduces both subscripts. Calcium and oxide (2+ and 2-) reduce to 1:1 to give CaO, while aluminum and oxide (3+ and 2-) stay at 2:3 to give Al2O3.

  • The calculator covers common monatomic and polyatomic ions from the standard general-chemistry syllabus. Exotic organometallic or rare-earth ions are not in the lookup table and will return an error.
  • It produces the IUPAC formula and name for one ionic compound at a time. Mixed salts and hydrates such as CuSO4*5H2O are not expanded automatically.
  • The compound built from H+ and Cl- is hydrogen chloride (a gas), while the aqueous solution would be called hydrochloric acid; the calculator returns the compound name and lets you decide which context applies.

According to OpenStax Chemistry 2e (7.1 Ionic Bonding), ionic compounds must be electrically neutral, so the formula represents the simplest ion ratio that gives identical total positive and total negative charge, as in Al2O3 where (2 × +3) + (3 × −2) = 0, which is the electroneutrality condition the criss-cross method enforces

When the named salt is dissolved into a working solution, Dilution Formula Calculator takes the IUPAC formula and computes the concentration needed for the next bench step.

Chemical name calculator showing the IUPAC name and charge-balanced ionic formula for selected cation and anion
Chemical name calculator showing the IUPAC name and charge-balanced ionic formula for selected cation and anion

Frequently Asked Questions

Q: What is a chemical name calculator?

A: It is a tool that takes a cation and an anion, applies the IUPAC criss-cross rule to set the subscripts, and returns the charge-balanced ionic formula together with the IUPAC name of the compound, including any Roman numeral oxidation state for transition metal cations.

Q: How are ionic compounds named?

A: Ionic compound names are written with the cation name first and the anion name second. Monoatomic anions take the -ide suffix, polyatomic anions keep their accepted IUPAC names, and cations that take more than one oxidation state get a Roman numeral in parentheses.

Q: How does the criss-cross method give the formula of an ionic compound?

A: The criss-cross method sets the cation subscript to the absolute value of the anion charge and the anion subscript to the absolute value of the cation charge, then divides both subscripts by their greatest common divisor so the formula uses the smallest whole numbers that still balance charge.

Q: When is a Roman numeral used in an ionic compound name?

A: A Roman numeral is used for any cation that has more than one common oxidation state, so Iron(II) and Iron(III), Copper(I) and Copper(II), or Lead(II) and Lead(IV) all carry a Roman numeral, while main-group cations such as Na+, Mg2+, and Al3+ do not.

Q: Do polyatomic ions keep their name when forming ionic compounds?

A: Yes. Polyatomic anions such as sulfate, nitrate, hydroxide, carbonate, phosphate, permanganate, and dichromate keep their accepted IUPAC names, and the calculator wraps them in parentheses whenever their subscript in the formula is greater than one.

Q: What is the chemical name of sodium chloride and what is its formula?

A: Sodium chloride is the IUPAC name of the compound formed from the sodium cation and the chloride anion, with the smallest-integer formula NaCl. The 1:1 ratio comes from the equal charge magnitudes, and no Roman numeral is needed because sodium only forms the +1 ion.