When these two ions combine to form an ionic compound, they do so in a ratio that results in a neutral compound. Since barium has a +2 charge and hydroxide has a -1 charge, we need two hydroxide ions to balance the charge of one barium ion.
Therefore, the formula for barium hydroxide is Ba(OH)₂.