The chemical formula for table salt is NaCl, which stands for sodium chloride. This means that table salt is composed of equal numbers of sodium and chloride ions; arranged in a cubic crystal lattice. Table salt is an ionic compound, which means that the sodium and chloride ions are held together by electrostatic attraction.
However, table salt may also contain other substances, such as anti-caking agents, iodine, or trace minerals, depending on its source or processing. These substances may affect the color, taste or purity of table salt.