Skip to main content
Physics LibreTexts

4.5: Diffraction Gratings

  • Page ID
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)
    Learning Objectives

    By the end of this section, you will be able to:

    • Discuss the pattern obtained from diffraction gratings
    • Explain diffraction grating effects

    Analyzing the interference of light passing through two slits lays out the theoretical framework of interference and gives us a historical insight into Thomas Young’s experiments. However, most modern-day applications of slit interference use not just two slits but many, approaching infinity for practical purposes. The key optical element is called a diffraction grating, an important tool in optical analysis.

    Diffraction Gratings: An Infinite Number of Slits

    The analysis of multi-slit interference in Interference allows us to consider what happens when the number of slits N approaches infinity. Recall that \(N - 2\) secondary maxima appear between the principal maxima. We can see there will be an infinite number of secondary maxima that appear, and an infinite number of dark fringes between them. This makes the spacing between the fringes, and therefore the width of the maxima, infinitesimally small. Furthermore, because the intensity of the secondary maxima is proportional to \(1/N^2\), it approaches zero so that the secondary maxima are no longer seen. What remains are only the principal maxima, now very bright and very narrow (Figure \(\PageIndex{1}\)).

    Figure a shows a graph of I versus sine theta. It has two vertical lines at sine theta equal to lambda by D and minus lambda by D. Figure b shows a bright red spot on a black background in the center. This is surrounded on either side by progressively dimmer spots, going outwards.
    Figure \(\PageIndex{1}\): (a) Intensity of light transmitted through a large number of slits. When N approaches infinity, only the principal maxima remain as very bright and very narrow lines. (b) A laser beam passed through a diffraction grating. (credit b: modification of work by Sebastian Stapelberg)

    In reality, the number of slits is not infinite, but it can be very large—large enough to produce the equivalent effect. A prime example is an optical element called a diffraction grating. A diffraction grating can be manufactured by carving glass with a sharp tool in a large number of precisely positioned parallel lines, with untouched regions acting like slits (Figure \(\PageIndex{2}\)). This type of grating can be photographically mass produced rather cheaply. Because there can be over 1000 lines per millimeter across the grating, when a section as small as a few millimeters is illuminated by an incoming ray, the number of illuminated slits is effectively infinite, providing for very sharp principal maxima.

    Figure shows a rectangular flat block with thin, parallel grooves. The grooves are cut at regular spacings d.
    Figure \(\PageIndex{2}\): A diffraction grating can be manufactured by carving glass with a sharp tool in a large number of precisely positioned parallel lines.

    Diffraction gratings work both for transmission of light, as in Figure \(\PageIndex{3}\), and for reflection of light, as on butterfly wings and the Australian opal in Figure \(\PageIndex{4a}\). Natural diffraction gratings also occur in the feathers of certain birds such as the hummingbird. Tiny, finger-like structures in regular patterns act as reflection gratings, producing constructive interference that gives the feathers colors not solely due to their pigmentation. This is called iridescence.

    Figure shows a vertical line on the left. This has five grooves. A ray enters from the left and five rays emerge from the right, one from each groove. These point to squares which are labeled, from top to bottom: second order rainbow, first order rainbow, central white, first order rainbow, second order rainbow. The first order rainbows shown in the squares are brighter than the second order rainbows.
    Figure \(\PageIndex{3}\): (a) Light passing through a diffraction grating is diffracted in a pattern similar to a double slit, with bright regions at various angles. (b) The pattern obtained for white light incident on a grating. The central maximum is white, and the higher-order maxima disperse white light into a rainbow of colors.
    Figure a is a photograph of an opal pendant reflecting various colours. Figure b is the photograph of a butterfly.
    Figure \(\PageIndex{4}\): (a) This Australian opal and (b) butterfly wings have rows of reflectors that act like reflection gratings, reflecting different colors at different angles. (credit a: modification of work by "Opals-On-Black"/Flickr; credit b: modification of work by “whologwhy”/Flickr)

    Applications of Diffraction Gratings

    Where are diffraction gratings used in applications? Diffraction gratings are commonly used for spectroscopic dispersion and analysis of light. What makes them particularly useful is the fact that they form a sharper pattern than double slits do. That is, their bright fringes are narrower and brighter while their dark regions are darker. Diffraction gratings are key components of monochromators used, for example, in optical imaging of particular wavelengths from biological or medical samples. A diffraction grating can be chosen to specifically analyze a wavelength emitted by molecules in diseased cells in a biopsy sample or to help excite strategic molecules in the sample with a selected wavelength of light. Another vital use is in optical fiber technologies where fibers are designed to provide optimum performance at specific wavelengths. A range of diffraction gratings are available for selecting wavelengths for such use.

    Example \(\PageIndex{1}\): Calculating Typical Diffraction Grating Effects

    Diffraction gratings with 10,000 lines per centimeter are readily available. Suppose you have one, and you send a beam of white light through it to a screen 2.00 m away.

    1. Find the angles for the first-order diffraction of the shortest and longest wavelengths of visible light (380 and 760 nm, respectively).
    2. What is the distance between the ends of the rainbow of visible light produced on the screen for first-order interference? (Figure \(\PageIndex{5}\)).
    3. A vertical line on the left is labeled grating and one on the right is labeled screen. They are a distance x equal to 2 meters apart. Four arrows radiate from the grating to the screen. The first and second from the top make angles theta R and theta V respectively with the central axis. The points where they fall on the screen are at distances yR and yV respectively from the central axis. Rainbows are formed on the screen between the first and second arrow and between the third and fourth arrow.
      Figure \(\PageIndex{5}\): (a) The diffraction grating considered in this example produces a rainbow of colors on a screen a distance \(x = 2.00 \, m\) from the grating. The distances along the screen are measured perpendicular to the x-direction. In other words, the rainbow pattern extends out of the page.

    (b) In a bird’s-eye view, the rainbow pattern can be seen on a table where the equipment is placed.


    Once a value for the diffraction grating’s slit spacing \(d\) has been determined, the angles for the sharp lines can be found using the equation

    \[d \, \sin \, \theta = m\lambda \nonumber \]

    for \(m = 0, \pm1, \pm2, ... \).

    Since there are 10,000 lines per centimeter, each line is separated by 1/10,000 of a centimeter. Once we know the angles, we an find the distances along the screen by using simple trigonometry.

    1. The distance between slits is \(d = (1 \, cm)/10,000 = 1.00 \times 10^{-4} \, cm\) or \(1.00 \times 10^{-6} m\). Let us call the two angles \(\theta_V\) for violet (380 nm) and \(\theta_R\) for red (760 nm). Solving the equation \(d \, \sin \theta_V = m\lambda\) for \(\sin \, \theta_V\),

      \[\sin \, \theta_V = \frac{m\lambda_V}{d},\nonumber \]

      where m = 1 for the first-order and \(\lambda_V = 380 \, nm = 3.80 \times 10^{-7}m\). Substituting these values gives

      \[\sin \, \theta_V = \frac{3.80 \times 10^{-7}m}{1.00 \times 10^{-6}m} = 0.380.\nonumber \]

      Thus the angle \(\theta_V\) is

      \[\theta_V = \sin^{-1} 0.380 = 22.33°.\nonumber \]


      \[\sin \, \theta_R = \frac{7.60 \times 10^{-7}m}{1.00 \times 10^{-6}m} = 0.760.\nonumber \]

      Thus the angle \(\theta_R\) is

      \[\theta_R = \sin^{-1} 0.760 = 49.46°. \nonumber \]

      Notice that in both equations, we reported the results of these intermediate calculations to four significant figures to use with the calculation in part (b).
    2. The distances on the screen are labeled \(y_V\) and \(y_R\) in Figure \(\PageIndex{5}\). Notice that \(tan \, \theta = y/x\). We can solve for \(y_V\) and \(y_R\). That is,

      \[y_V = x \, \tan \, \theta_V = (2.00 \, m)(\tan \, 22.33°) = 0.815 \, m \nonumber \]


      \[y_R = x \, \tan \, \theta_R = (2.00 \, m)(\tan \, 49.46°) = 2.338 \, m. \nonumber \]

      The distance between them is therefore

      \[y_R - y_V = 1.523 \, m \nonumber \]


    The large distance between the red and violet ends of the rainbow produced from the white light indicates the potential this diffraction grating has as a spectroscopic tool. The more it can spread out the wavelengths (greater dispersion), the more detail can be seen in a spectrum. This depends on the quality of the diffraction grating—it must be very precisely made in addition to having closely spaced lines.

    Exercise \(\PageIndex{1}\)

    If the line spacing of a diffraction grating \(d\) is not precisely known, we can use a light source with a well-determined wavelength to measure it. Suppose the first-order constructive fringe of the \(H_{\beta}\) emission line of hydrogen (\(\lambda = 656.3 \, nm\)) is measured at 11.36° using a spectrometer with a diffraction grating. What is the line spacing of this grating?


    \(3.332 \times 10^{-6} m\) or 300 lines per millimeter

    Take the same simulation we used for double-slit diffraction and try increasing the number of slits from \(N = 2\) to \(N = 3, 4, 5, ...\). The primary peaks become sharper, and the secondary peaks become less and less pronounced. By the time you reach the maximum number of \(N = 20\), the system is behaving much like a diffraction grating.

    This page titled 4.5: Diffraction Gratings is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform.