Atoms are given a different weight based on the number of protons and neutrons in the nucleus and electrons in the surrounding cloud. The same electromagnetic force that keeps a single atom together can also hold two or more atoms together to form a molecule, while numerous molecules join together to form matter.