The oxidation numbers of all the atoms in a compound must add up to the charge of that compound. For example, if a compound has no charge, the oxidation numbers of each of its atoms must add up to zero; if the compound is a polyatomic ion with a charge of -1, the oxidation numbers must add up to -1, etc.