Ions are electrically charged atoms formed by the gain or loss of electrons, resulting in cations (positively charged) and anions (negatively charged). Ionic compounds consist of these ions held together by strong ionic bonds, resulting in a neutral overall charge and characteristics such as high melting points and electrical conductivity in solution. The formula mass of an ionic compound can be calculated by summing the atomic masses of its constituent ions.