Here's why:
* Potassium (K) is a metal in group 1 of the periodic table, meaning it has a +1 charge when it forms an ion.
* Chlorine (Cl) is a nonmetal in group 17 of the periodic table, meaning it has a -1 charge when it forms an ion.
To form a neutral compound, one potassium ion (K+) combines with one chloride ion (Cl-), resulting in the formula KCl.