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.