This is a list of molecules that have been detected in the interstellar medium and circumstellar envelopes, grouped by the number of component atoms. The chemical formula is listed for each detected compound, along with any ionized form that has also been observed.
The molecules listed below were detected by spectroscopy. Their spectral features are generated by transitions of component electrons between different energy levels, or by rotational or vibrational spectra. Detection usually occurs in radio, microwave, or infrared portions of the spectrum.
Interstellar molecules are formed by chemical reactions within very sparse interstellar or circumstellar clouds of dust and gas. Usually this occurs when a molecule becomes ionized, often as the result of an interaction with a cosmic ray. This positively charged molecule then draws in a nearby reactant by electrostatic attraction of the neutral molecule's electrons. Molecules can also be generated by reactions between neutral atoms and molecules, although this process is generally slower. The dust plays a critical role of shielding the molecules from the ionizing effect of ultraviolet radiation emitted by stars.
The chemistry of life may have begun shortly after the Big Bang, 13.8 billion years ago, during a habitable epoch when the Universe was only 10–17 million years old.
The first carbon-containing molecule detected in the interstellar medium was the methylidyne radical (CH) in 1937. From the early 1970s it was becoming evident that interstellar dust consisted of a large component of more complex organic molecules (COMs), probably polymers. Chandra Wickramasinghe proposed the existence of polymeric composition based on the molecule formaldehyde (H2CO).Fred Hoyle and Chandra Wickramasinghe later proposed the identification of bicyclic aromatic compounds from an analysis of the ultraviolet extinction absorption at 2175 Å, thus demonstrating the existence of polycyclic aromatic hydrocarbon molecules in space.