Calcium chloride is an ionic solid, or salt, and is composed of one calcium ion and two chloride ions. When appearing as a chemical formula it is written as CaCl2.
The formula of calcium chloride is CaCl2. It is because calcium lost two electrons, and chlorine atoms gain them. Each chlorine atom gains one electron.