This can be determined by considering the overall charge of the compound and the oxidation states of the other elements. Hg2Cl2 is a neutral compound, so the sum of the oxidation states of Hg and Cl must be zero. Cl has an oxidation state of -1, so the oxidation state of Hg must be +1 in order to balance the charges.