Loading...

Glossary term: Spectrum

Redirected from Spectral Line

Description: A rainbow forms when water droplets split light into elementary colors, from purple, blue, and green, to yellow, orange, and red. Each color corresponds to a range of wavelengths, and the rainbow colors are arranged in order of increasing wavelength from violet to red. This kind of decomposed light, or more generally of electromagnetic radiation, by wavelength is called a spectrum.

Electromagnetic radiation is a mixture of light particles called "photons". Creating a spectrum amounts to sorting photons by energy and documenting how many photons there are in each given energy range. By a basic law of quantum mechanics, this is equivalent to sorting light by frequency – yet another way of documenting a spectrum.

If the amount of energy varies smoothly with wavelength (or photon energy, or frequency), the spectrum is called continuous. In contrast, sharp dips or peaks in a spectrum at certain wavelengths are called absorption and emission lines, respectively. Such lines arise due to transitions between different energy levels within atoms or molecules (or even atomic nuclei), either absorbing or emitting radiation at specific wavelengths. For example, in visible light, stars show continuous spectra with absorption lines. The lines carry information about a star's chemical composition. The analysis of spectra is known as spectroscopy; instruments that allow for the recording of spectra are called spectroscopes, spectrometers, or spectrographs.

Related Terms:



See this term in other languages

Term and definition status: This term and its definition have been approved by a research astronomer and a teacher

The OAE Multilingual Glossary is a project of the IAU Office of Astronomy for Education (OAE) in collaboration with the IAU Office of Astronomy Outreach (OAO). The terms and definitions were chosen, written and reviewed by a collective effort from the OAE, the OAE Centers and Nodes, the OAE National Astronomy Education Coordinators (NAECs) and other volunteers. You can find a full list of credits here. All glossary terms and their definitions are released under a Creative Commons CC BY-4.0 license and should be credited to "IAU OAE".

Related Media


A composite showing four rainbows. Each is centred on different points

24 Hours of Rainbow

Caption: This panoramic view taken with a smartphone of Livorno, Italy, showcases a series of vivid rainbows captured on three different days in December 2021. Rainbows are the result of sunlight being refracted by water droplets suspended in the air, typically after rainfall or during misty conditions. The water droplets act like a prism, breaking up (refracting) the sunlight into the various colours. The different wavelengths of light are refracted by different amounts, which is why we see this layering of colours. The photographer skillfully merged the most remarkable shots taken on different days to highlight the diverse sizes and brilliance of these rainbows. The locations at which the rainbows appear to be centred are different because each rainbow appeared when the Sun was at a different position in the sky. This composite image beautifully captures the transient yet mesmerising allure of rainbows, illustrating their fleeting appearance and gradual dissipation influenced by the shifting atmospheric conditions.
Credit: Fabrizio Guasconi/IAU OAE (CC BY 4.0)

License: CC-BY-4.0 Creative Commons Attribution 4.0 International (CC BY 4.0) icons

Related Diagrams


A smooth line declining at longer wavelengths with a few sharp dips.

Spectrum of an O-type star

Caption: The spectrum of the O-type star HD 235673 with wavelength in nanometers on the x-axis and flux on the y-axis. The top part of the plot shows the same spectrum but with bright patches for wavelengths with high flux and dark patches for wavelengths with low flux. The colour of the line between 400 nm and 700 nm roughly corresponds to the colour the human eye would see light of that wavelength. Below 400 nm and above 700 nm, where the human eye can see little to no light, the lines are coloured blue and red respectively. The black lines show spectral absorption lines caused by atoms and ions of different elements in the star’s atmosphere. These atoms and ions absorb at specific wavelengths, causing sharp, dark lines in the spectra. How strong these lines are depends on the temperature of the star’s atmosphere. Two stars made from the same mix of elements could have spectra with vastly different sets of lines in their spectra if they have different temperatures in their atmospheres. For O-type stars the most important features are a small number of lines caused by ionized helium. These lines are stronger in O-type stars than in cooler stars. Lines from helium atoms and hydrogen atoms also appear in the spectrum. The spectrum has more flux at the blue end of the spectrum than at the red end of the spectrum.
Credit: IAU OAE/SDSS/Niall Deacon

License: CC-BY-4.0 Creative Commons Attribution 4.0 International (CC BY 4.0) icons


A smooth line declining at longer wavelengths with a few sharp dips.

Spectrum of a B-type star

Caption: The spectrum of the B-type star HD 258982. The colour of the line between 400 nm and 700 nm roughly corresponds to the colour the human eye would see light of that wavelength. Below 400 nm and above 700 nm, where the human eye can see little to no light, the lines are coloured blue and red respectively. The black lines show spectral absorption lines caused by atoms and ions of different elements in the star’s atmosphere. These atoms and ions absorb at specific wavelengths, causing sharp, dark lines in the spectra. How strong these lines are depends on the temperature of the star’s atmosphere. Two stars made from the same mix of elements could have spectra with vastly different sets of lines in their spectra if they have different temperatures in their atmospheres. For B-type stars the most important lines are caused by helium atoms. These lines are strongest in B-type stars and weaker in hotter and cooler types. Lines from hydrogen atoms are also present but are not as strong as in cooler A-type stars.
Credit: IAU OAE/SDSS/Niall Deacon

License: CC-BY-4.0 Creative Commons Attribution 4.0 International (CC BY 4.0) icons


A smooth line peaking about 420 nm then declining at longer wavelengths with a few fairly broad dips.

Spectrum of an A-type star

Caption: The spectrum of the A-type star BD-11 1212. The colour of the line between 400 nm and 700 nm roughly corresponds to the colour the human eye would see light of that wavelength. Below 400 nm and above 700 nm, where the human eye can see little to no light, the lines are coloured blue and red respectively. The black lines show spectral absorption lines caused by atoms and ions of different elements in the star’s atmosphere. These atoms and ions absorb at specific wavelengths, causing sharp, dark lines in the spectra. How strong these lines are depends on the temperature of the star’s atmosphere. Two stars made from the same mix of elements could have spectra with vastly different sets of lines in their spectra if they have different temperatures in their atmospheres. Lines from hydrogen atoms dominate the spectra of A-type stars and are strongest at this spectral type.
Credit: IAU OAE/SDSS/Niall Deacon

License: CC-BY-4.0 Creative Commons Attribution 4.0 International (CC BY 4.0) icons


A relatively smooth line peaking about 430 nm then declining at longer wavelengths with a few fairly broad dips.

Spectrum of an F-type star

Caption: The spectrum of the F-type star 2MASS J22243289+4937443. The colour of the line between 400 nm and 700 nm roughly corresponds to the colour the human eye would see light of that wavelength. Below 400 nm and above 700 nm, where the human eye can see little to no light, the lines are coloured blue and red respectively. The black lines show spectral absorption lines caused by atoms and ions of different elements in the star’s atmosphere. These atoms and ions absorb at specific wavelengths, causing sharp, dark lines in the spectra. How strong these lines are depends on the temperature of the star’s atmosphere. Two stars made from the same mix of elements could have spectra with vastly different sets of lines in their spectra if they have different temperatures in their atmospheres. The lines from hydrogen atoms that are strongest in A-type stars are still relatively strong in F-type stars but lines from metals, particularly ionised calcium begin to become strong at this spectral type.
Credit: IAU OAE/SDSS/Niall Deacon

License: CC-BY-4.0 Creative Commons Attribution 4.0 International (CC BY 4.0) icons


A quite ragged line peaking about 470 nm then declining at longer wavelengths with a few deeper dips.

Spectrum of a G-type star

Caption: The spectrum of the G-type star UCAC4 700-069569. The colour of the line between 400 nm and 700 nm roughly corresponds to the colour the human eye would see light of that wavelength. Below 400 nm and above 700 nm, where the human eye can see little to no light, the lines are coloured blue and red respectively. The black lines show spectral absorption lines caused by atoms and ions of different elements in the star’s atmosphere. These atoms and ions absorb at specific wavelengths, causing sharp, dark lines in the spectra. How strong these lines are depends on the temperature of the star’s atmosphere. Two stars made from the same mix of elements could have spectra with vastly different sets of lines in their spectra if they have different temperatures in their atmospheres. In G-type stars lines from hydrogen atoms are weaker than in F-type stars and lines from ionised calcium stronger. Lines from metal atoms such as atoms of iron, sodium and calcium also begin to become prominent.
Credit: IAU OAE/SDSS/Niall Deacon

License: CC-BY-4.0 Creative Commons Attribution 4.0 International (CC BY 4.0) icons


A ragged line peaking about 580 nm then declining at longer wavelengths with a few deeper dips.

Spectrum of a K-type star

Caption: The spectrum of the K-type star 2MASS J19554455+4754531. The colour of the line between 400 nm and 700 nm roughly corresponds to the colour the human eye would see light of that wavelength. Below 400 nm and above 700 nm, where the human eye can see little to no light, the lines are coloured blue and red respectively. The black lines show spectral absorption lines caused by atoms and ions of different elements in the star’s atmosphere. These atoms and ions absorb at specific wavelengths, causing sharp, dark lines in the spectra. How strong these lines are depends on the temperature of the star’s atmosphere. Two stars made from the same mix of elements could have spectra with vastly different sets of lines in their spectra if they have different temperatures in their atmospheres. The spectra of K-type stars are dominated by metal atoms such as iron, sodium and calcium atoms. There are so many lines from metal atoms, far too many to mark individually, that the spectrum has a choppy, ragged appearance. The lines of hydrogen atoms and calcium ions are much weaker than in the hotter G-type stars.
Credit: IAU OAE/SDSS/Niall Deacon

License: CC-BY-4.0 Creative Commons Attribution 4.0 International (CC BY 4.0) icons


A choppy line increasing at longer wavelengths with large wide dips and a few sharper dips.

Spectrum of an M-type star

Caption: The spectrum of the M-type star 2MASS J15581272+8457104. The colour of the line between 400 nm and 700 nm roughly corresponds to the colour the human eye would see light of that wavelength. Below 400 nm and above 700 nm, where the human eye can see little to no light, the lines are coloured blue and red respectively. The black lines show spectral absorption lines caused by atoms, ions and molecules of different elements in the star’s atmosphere. These atoms, ions and molecules absorb at specific wavelengths, causing sharp, dark lines in the spectra. How strong these lines are depends on the temperature of the star’s atmosphere. Two stars made from the same mix of elements could have spectra with vastly different sets of lines in their spectra if they have different temperatures in their atmospheres. The atmospheres of M-type stars are cool enough for some chemical compounds to form. These are often referred to as molecules in astronomy, even if they are not strictly molecules in chemistry. These molecules produce so many lines in an M-type star’s spectrum that the lines appear to merge together in huge bands that remove large chunks from the spectrum. In M-type stars, titanium oxide has a large number of these bands in visible light, dominating huge regions of the spectrum.
Credit: IAU OAE/SDSS/Niall Deacon

License: CC-BY-4.0 Creative Commons Attribution 4.0 International (CC BY 4.0) icons


Seven lines. The peak of each line moves from short wavelengths for the top line to longer wavelengths for the bottom line.

Stellar spectral types

Caption: The spectra of seven stars ordered by spectral type ranging from the hottest (O-type) at the top to the coolest (M-type at the bottom). The x-axis shows the wavelength of light and the y-axis is a measure of the flux of light received at that wavelength. Each spectrum is normalized (the flux at each wavelength is divided by the maximum flux in that spectrum) and the spectra are then offset from each other along the y-axis to make the plot easier to view. The colour of the lines between 400 nm and 700 nm roughly corresponds to the colour the human eye would see light of that wavelength. Below 400 nm and above 700 nm, where the human eye can see little to no light, the lines are coloured blue and red respectively. The hotter stars have more of their flux at the bluer end of the spectrum and the cooler stars have more of their flux at the redder end. However the total amount of flux a star emits depends on its size and temperature. Due to this, a hot star will emit more red light than a cool star of the same size even if the cool star emits almost all its light in red light but this is not visible in this plot due to the normalization mentioned above. The sharp, narrow drops in the spectra are absorption lines caused by atoms and ions in the stars’ atmospheres. The strength of a spectral line depends on the temperature of a star’s atmosphere. Take the hydrogen line at 656.5 nm as an example. All of the stars in this plot are primarily made of hydrogen, but the 656.5 nm hydrogen line is weak for the hottest and coolest stars but strongest for spectral types A and F. This is because hydrogen absorbs more light at 656.5 nm at the temperatures of A and F stars’ atmospheres than in hotter or cooler stars. The coolest star here, the M-type star, has wide absorption bands in its spectra. This is because this star is cool enough to have compounds such as titanium oxide in its atmosphere. These compounds, often called molecules in astronomy, produce wider spectral absorption features than atoms or ions.
Credit: IAU OAE/SDSS/Niall Deacon

License: CC-BY-4.0 Creative Commons Attribution 4.0 International (CC BY 4.0) icons


Seven bands with bright and dark patches. The brightest part of the band moves from blue in the top band to red at the bottom

Stellar spectral types - bands

Caption: The spectra of seven stars ordered by spectral type ranging from the hottest (O-type) at the top to the coolest (M-type at the bottom). The x-axis shows the wavelength of light while the brightness or darkness at each wavelength corresponds to the flux of light received from the star at that wavelength with darker patches having less flux and brighter patches more. Each spectrum is normalized (the flux at each wavelength is divided by the maximum flux for that spectrum) so that the maximum flux should appear with the same brightness for all the spectra. The colour plotted between 400 nm and 700 nm roughly corresponds to the color the human eye would see light of that wavelength. Below 400 nm and above 700 nm, where the human eye can see little to no light, the lines are coloured blue and red respectively. The hotter stars have more of their flux at the bluer end of the spectrum and the cooler stars have more of their flux at the redder end. However the total amount of flux a star emits depends on its size and temperature. Due to this, a hot star will emit more red light than a cool star of the same size even if the cool star emits almost all its light in red light but this is not visible in this plot due to the normalization mentioned above. The dark, narrow patches in the spectra are absorption lines caused by atoms and ions in the stars’ atmospheres. The strength of a spectral line depends on the temperature of a star’s atmosphere. Take the hydrogen line at 656.5 nm as an example. All of the stars in this plot are primarily made of hydrogen, but the 656.5 nm hydrogen line is weak for the hottest and coolest stars but strongest for spectral types A and F. This is because hydrogen absorbs more light at 656.5 nm at the temperatures of A and F stars’ atmospheres than in hotter or cooler stars. The coolest star here, the M-type star, has wide absorption bands in its spectra. This is because this star is cool enough to have compounds such as titanium oxide in its atmosphere. These compounds, often called molecules in astronomy, produce wider spectral absorption features than atoms or ions.
Credit: IAU OAE/SDSS/Niall Deacon

License: CC-BY-4.0 Creative Commons Attribution 4.0 International (CC BY 4.0) icons

Related Activities


Hunting for spectra

Hunting for spectra

astroEDU educational activity (links to astroEDU website)
Description: Learn about light and spectra building a spectroscope with a CD!

License: CC-BY-4.0 Creative Commons Attribution 4.0 International (CC BY 4.0) icons

Tags: Hands-on , Experiment , prism
Age Ranges: 8-10 , 10-12 , 12-14 , 14-16 , 16-19
Education Level: Informal , Middle School , Primary , Secondary
Areas of Learning: Guided-discovery learning
Costs: Low Cost
Duration: 1 hour
Group Size: Individual
Skills: Asking questions , Constructing explanations , Planning and carrying out investigations

Reading the Rainbow

Reading the Rainbow

astroEDU educational activity (links to astroEDU website)
Description: By understanding how rainbows work, you can discover about light and its properties, learning about stars, nebulae, galaxies, and our Universe.

License: CC-BY-4.0 Creative Commons Attribution 4.0 International (CC BY 4.0) icons

Age Ranges: 14-16 , 16-19 , 19+
Education Level: Informal , Middle School , Secondary , University
Areas of Learning: Interactive Lecture , Observation based , Social Research
Costs: Low Cost
Duration: 1 hour 30 mins
Group Size: Group
Skills: Analysing and interpreting data , Asking questions , Engaging in argument from evidence

Find the hidden rainbows

Find the hidden rainbows

astroEDU educational activity (links to astroEDU website)
Description: Let’s reveal hidden rainbows around us and the physical processes that make them!

License: CC-BY-4.0 Creative Commons Attribution 4.0 International (CC BY 4.0) icons

Age Ranges: 10-12 , 12-14 , 14-16
Education Level: Middle School , Secondary
Areas of Learning: Interactive Lecture , Observation based , Social Research
Costs: Medium Cost
Duration: 1 hour