How to Decipher the Formulas of Ionic Compounds
When an ionic compound is formed, the cation and anion attract each other, resulting in a salt. An important thing to remember is that the compound must be neutral — have equal numbers of positive and negative charges.
Putting magnesium and bromine together
Suppose you want to know the formula, or composition, of the compound that results from reacting magnesium with bromine. You start by putting the two atoms side by side, with the metal on the left, and then adding their charges. The following figure shows this process.

Figuring the formula of magnesium bromide.
The electron configurations for magnesium and bromine are:
Magnesium, an alkaline earth metal, has two valence electrons that it loses to form a cation with a 2+ charge. The electron configuration for the magnesium cation is:
Bromine, a halogen, has seven valence electrons, so it gains one to complete its octet (eight valence electrons) and form the bromide anion with a 1- charge. The electron configuration for the bromide anion is
The compound must be neutral; it must have the same number of positive and negative charges so that, overall, it has a zero charge. The magnesium ion has a 2+, so it requires 2 bromide anions, each with a single negative charge, to balance the 2 positive charges of magnesium. So the formula of the compound that results from reacting magnesium with bromine is:
Using the crisscross rule
There’s a quick way to determine the formula of an ionic compound: Use the crisscross rule.
Look at the preceding figure for an example of using this rule:
Take the numerical value of the metal ion’s superscript (forget about the charge symbol) and move it to the bottom right-hand side of the nonmetal’s symbol — as a subscript.
Then take the numerical value of the nonmetal’s superscript and make it the subscript of the metal.
Note that if the numerical value is 1, it’s just understood and not shown.
So in this example, you make magnesium’s 2 a subscript of bromine and make bromine’s 1 a subscript of magnesium (but because it’s 1, you don’t show it), and you get the formula:
So what happens if you react aluminum and oxygen? The figure below shows the crisscross rule used for this reaction.

Figuring the formula of aluminum oxide.
Compounds involving polyatomic ions work exactly the same way. For example, here’s the compound made from the ammonium cation and the sulfide anion:
Notice that because two ammonium ions (two positive charges) are needed to neutralize the two negative charges of the sulfide ion, the ammonium ion is enclosed in parentheses and a subscript 2 is added.
The crisscross rule works very well, but there’s a situation where you have to be careful. Suppose that you want to write the compound formed when magnesium reacts with oxygen. Magnesium, an alkaline earth metal, forms a 2+ cation, and oxygen forms a 2- anion. So you might predict that the formula is:
But this formula is incorrect. After you use the crisscross rule, you need to reduce all the subscripts by a common factor, if possible. In this case, you divide each subscript by 2 and get the correct formula:
MgO

Chemistry Glossary
Archimedes Principle
A principle discovered by the Greek mathematician Archimedes which states that the volume of a solid is equal to the volume of water it displaces.

Chemistry Glossary
atomic number
The number of protons in the nucleus of an atom.

Chemistry Glossary
Bohr model
A model of atomic structure developed by Niels Bohr, a Danish scientist. In this model, electrons occur in orbits of differing energy levels around the nucleus of an atom.

Chemistry Glossary
condensation
The change in the physical state of matter from a gaseous state to a liquid state.

Chemistry Glossary
deposition
The change in the physical state of matter from a gaseous state to a solid state without ever becoming a liquid. The reverse of sublimation.

Chemistry Glossary
electrolytes
Substances that can conduct electricity either in the molten state or when dissolved in water.

Chemistry Glossary
electron configuration notation
A method used by chemists to represent electrons in bonding and chemical reactions.

Chemistry Glossary
electronegativity
A measure of an atom’s strength to attract a bonding pair of electrons to itself.

Chemistry Glossary
energy level diagram
A method used by chemists to diagram the electrons for an atom (including orbitals and subshells) in bonding and chemical reactions.

Chemistry Glossary
heterogeneous mixture
A mixture whose composition varies from position to position within a sample.

Chemistry Glossary
homogeneous mixture
A mixture whose composition is the same from position to position within a sample.

Chemistry Glossary
isotopes
Atoms of the same element that have varying numbers of neutrons.

Chemistry Glossary
mass number
The sum of the protons and neutrons in a particular isotope; also called atomic weight.

Chemistry Glossary
nonelectrolytes
Substances that do not conduct electricity in the molten state or when dissolved in water.

Chemistry Glossary
nuclear fission
A nuclear reaction in which an atom’s nucleus splits into smaller parts.

Chemistry Glossary
nuclear fusion
A process in which lighter nuclei of atoms join together into a heavier nucleus; essentially the opposite of nuclear fission.

Chemistry Glossary
nuclear reaction
Any reaction that involves a change in nuclear structure.

Chemistry Glossary
periodic table
A table that displays all known chemical elements in an arrangement that is based on the properties of the elements; changes over time as new elements are discovered.

Chemistry Glossary
quantum mechanical model
A model of atomic structure that is based on mathematics and can be used to explain observations made on complex atoms.

Chemistry Glossary
radioactivity
The spontaneous decay of an unstable nucleus in an atom.

Chemistry Glossary
SI system
A worldwide measurement system that is based on the older metric system. The SI comes from the French Systeme International.

Chemistry Glossary
sublimation
The change in the physical state of matter from a solid state to a gaseous state without ever becoming a liquid (such as dry ice).

Chemistry Glossary
valence electrons
The electrons in the outermost energy level of an atom, the farthest away from the nucleus.