When metals and nonmetals form compounds, the metal atoms donate electrons to the nonmetal atoms. The metal atoms become positive ions due to their loss of negatively charged electrons, and the nonmetal atoms become negative ions. Ions exhibit attractive forces for ions of opposite charge -- hence the adage that “opposites attract.” The force of attraction between oppositely charged ions follows Coulomb’s law: F = k * q_{1} * q_{2} / d^{2}, where F represents the force of attraction in Newtons, q_{1} and q_{2} represents the charges of the two ions in coulombs, d represents the distance between the ions’ nuclei in meters and k is a proportionality constant of 8.99 x 10^{9} Newton square meters per square coulomb.

- Table of common ions (see Resources)
- Table of ionic radii (see Resources)
- Scientific calculator
Numbers such as 1.9 x 10

^{-19}represent scientific notation. In this case, the number reads as “one point nine times ten to the negative nineteenth power.” You can easily enter these values into a scientific calculator using the scientific notation button, usually labeled EE.

Refer to a table of ions to find the charges of the positive and negative ions in the compound. Chemical formulas, by convention, list the positive ion first. In the compound calcium bromide, or CaBr_{2}, for example, the calcium represents the positive ion and exhibits a charge of +2. Bromine represents the negative ion and exhibits a charge of -1. Therefore, q_{1} = 2 and q_{2} = 1 in the Coulomb’s law equation.

Convert the charges on the ions to coulombs by multiplying each charge by 1.9 x 10^{-19}. The +2 calcium ion therefore exhibits a charge of 2 * 1.9 x 10^{-19} = 3.8 x 10^{-19} coulombs, and bromine exhibits a charge of 1.9 x 10^{-19} coulombs.

Determine the distance between the ions by referring to a table of ionic radii. When they form solids, ions normally sit as close to each other as possible. The distance between them is found by adding together the radii of the positive and negative ions. In the example calcium bromide, Ca^{2+} ions exhibit a radius of about 1.00 angstroms and Br- ions exhibit a radius of about 1.96 angstroms. The distance between their nuclei is therefore 1.00 + 1.96 = 3.96 angstroms.

Convert the distance between the ions’ nuclei to units of meters by multiplying the value in angstroms by 1 x 10^{-10}. Continuing the previous example, the distance of 3.96 angstroms converts to 3.96 x 10^{-10} meters.

Calculate the force of attraction according to F = k * q_{1} * q_{2} / d^{2}.

Using the previously obtained values for calcium bromide and using 8.99 x 10^{9} as the value for k gives F = (8.99 x 10^{9}) * (3.8 x 10^{-19}) * (1.9 x 10^{-19}) / (3.96 x 10^{-10})^{2}. Under the rules of the scientific order of operations, the squaring of the distance must be carried out first, which gives F = (8.99 x 10^{9}) * (3.8 x 10^{-19}) * (1.9 x 10^{-19}) / (1.57 x 10^{-19}). Performing the multiplication and division then gives F = 4.1 x 10^{-9} Newtons. This value represents the force of attraction between the ions.