A spectrometer (pronunciation: /spɛkˈtrɒmɪtər/) is a scientific instrument originally used to split light into an array of separate colors, called a spectrum. Spectrometers were developed in early studies of physics, astronomy, and chemistry. The capability of spectroscopy to determine chemical composition drove its advancement and continues to be one of their primary uses. Spectrometers are used in astronomy to analyze the chemical composition of stars and planets, and spectrometers gather data on the origin of the universe.
The concept of a spectrometer now encompasses instruments that do not examine light. Spectrometers separate particles, atoms, and molecules by their mass, momentum, or energy. These types of spectrometers are used in chemical analysis and particle physics.