Diffraction Grating Calculator

Created by Bogna Szyk
Last updated: Oct 27, 2021

This diffraction grating calculator will help you find out what happens when the light hits a structure with multiple openings (slits or rulings). The light ray gets diffracted in various directions. Our tool determines the paths that light takes with the use of a simple diffraction grating formula.

Keep reading to learn how diffraction works, or take a look at the Snell's law calculator if you're interested in other optics phenomena.

What is diffraction?

Diffraction is a wave phenomenon that happens when a light ray hits an obstacle or a slit. After the light has traveled through the aperture, it changes its direction, what usually results in the wave spreading out.

waves creating a diffraction pattern

What is diffraction grating?

Diffraction grating happens when the light hits an obstacle with uniformly distributed apertures. Then, the rays get diffracted - each of them goes in a slightly different direction.

The effects of diffraction are only visible if the spacing between apertures is larger than the wavelength of the incident ray.

Diffraction grating equation

diffraction grating diagram

If the incident light ray is perpendicular to the grating, you can use the following diffraction grating equation to find the directions in which the rays are diffracted:

a * λ = d * sin(Θₐ)

where:

  • λ is the wavelength of the incident ray,
  • d is the grating spacing,
  • Θₐ is the angle between the initial and diffracted direction of light for ray a, and
  • a is an integer - the order of the diffracted image. a = 1, 2, 3...

If the incident ray meets the apertures at an angle Θₒ, you also need to include it in your calculations:

a * λ = d * [sin(Θₒ) + sin(Θₐ)]

For example, for the ray incident at the angle of 30° (sin 30° = 0.5), the equations for first three diffracted images will have the following form:

λ = d * [0.5 + sin(Θ₁)]

2λ = d * [0.5 + sin(Θ₂)]

3λ = d * [0.5 + sin(Θ₃)]

You can calculate the directions manually or use this diffraction grating calculator to do it for you!

Bogna Szyk
Wavelength
nm
Grating density
lines/
mm
Angle of incidence
deg
Diffracted images
First order
deg
Second order
deg
Third order
deg
Fourth order
deg
Fifth order
deg
People also viewed…

Christmas tree

Welcome to the Christmas tree calculator, where you will find how to decorate your Christmas tree in the best way. Take a look at the perfect Christmas tree formula prepared by math professors and improved by physicists. Plan in advance how many lights and decorations you'll need!

Free space path loss

The free space path loss calculator allows you to predict the strength of a radio frequency signal emitted by an antenna at any given distance.

Volume to mass

The volume to mass calculator has dozens of item densities that will allow you to convert volume to mass or mass to volume whenever you need.
main background