The metal in an ionic compound is always the first in the formula, since they always have positive ions. Nonmetals are always negatively charged, so they come after the metals in the name and formula. Polyatomic ions are almost always negatively charged, so they are named after the metal