When writing formulas follow this format. MgCl2 When writing names follow this format. Magnesium chloride