Atoms are the smallest particles that make up all matter. Molecules are formed when two or more atoms bond together. Ions are formed when atoms gain or lose electrons, acquiring an electric charge. Chemical formulas represent the composition of molecules and ions in terms of the symbols of their constituent elements.