Mass spectrometry can be used to determine the molecular mass and formula of organic compounds from a small sample without the use of light. During mass spectrometry, molecules are ionized by bombarding them with high-energy electrons which causes bond breaking. The masses of the fragment ions and their relative abundances provide information about the molecular structure. Mass spectrometry involves ionizing molecules, separating the ions by mass, and detecting them to produce a mass spectrum that reveals the molecular mass.