Diffraction Grating Calculator – Wavelength, Angle & Orders
Connect line spacing, wavelength and diffraction order to the angle of a bright maximum.
Quick Answer
For normal incidence, diffraction maxima satisfy d sin θ = mλ. Here d is the spacing between adjacent lines, m is the order and λ is the wavelength. An order exists only when |mλ/d| is at most 1.

Convert a grating specification before finding the angle
A grating has 500 lines per millimetre, giving a spacing of one five-hundredth of a millimetre, or two micrometres. Light with a wavelength of 0.50 micrometre gives a first-order sine value of 0.25 at normal incidence. Its angle is about 14.5 degrees from the normal. Keeping both lengths in micrometres avoids a hidden factor of one thousand.
Trigonometry Functions
Trigonometry developed around 200 BC from a need to determine distances and to calculate the measures of angles in the fields of astronomy and surveying. Trigonometry is about the relationships (or ratios) of angle measurements to side lengths in primarily right triangles. However, trigonometry is useful in calculating missing side lengths and angles in other triangles and many applications.
Trigonometry is based on three functions. We title these functions using the following abbreviations:
Letting which is the hypotenuse of a right triangle, we have table. The functions are given in terms of , , and , and in terms of sides relative to the angle, like opposite, adjacent, and the hypotenuse.
We will be applying the sine function, cosine function, and tangent function to find side lengths and angle measurements for triangles we cannot solve using any of the techniques we have studied to this point. In diagram, we have an illustration mainly to identify and the sides labeled and .
An angle sweeps out in a counterclockwise direction from the positive -axis and stops when the angle reaches the desired measurement. That ray extending from the origin that marks is called the terminal side because that is where the angle terminates. Regardless of the information given in the triangle, we can find all missing sides and angles using the trigonometric functions. For example, in diagram, we will solve for the missing sides.
Let’s use the trigonometric functions to find the sides and . As long as your calculator mode is set to degrees, you do not have to enter the degree symbol. First, let’s solve for .
We have and Then,
Next, let’s find . This is the cosine function. We have Then,
Now we have all sides, You can also check the sides using the ratio of table is a list of common angles, which you should find helpful.
Using Trigonometric Functions
Find the lengths of the missing sides for the triangle (diagram).
Solution
We have a angle, and the length of the triangle on the -axis is 6 units.
Step 1: To find the length of , we can use the cosine function, as We manipulate this equation a bit to solve for :
Step 2: We can use the Pythagorean Theorem to find the length of . Prove that your answers are correct by using other trigonometric ratios:
Step 3: Now that we have , we can use the sine function to prove that is correct. We have
To find angle measurements when we have two side measurements, we use the inverse trigonometric functions symbolized as or The –1 looks like an exponent, but it means inverse. For example, in the previous example, we had and To find what angle has these values, enter the values for the inverse cosine function in your calculator:
You can also use the inverse sine function and enter the values of in your calculator given and We have
Finally, we can also use the inverse tangent function. Recall We have
Solving for Lengths in a Right Triangle
Solve for the lengths of a right triangle in which and (diagram).
Solution
Step 1: To find side , we use the sine function:
Step 2: To find , we use the cosine function:
Step 3: Since this is a triangle and side should equal if we input 3 for , we have Put this in your calculator and you will get
Finding Altitude
A small plane takes off from an airport at an angle of to the ground. About two-thirds of a mile (3,520 ft) from the airport is an 1,100-ft peak in the flight path of the plane (diagram). If the plane continues that angle of ascent, find its altitude when it is above the peak, and how far it will be above the peak.
Solution
To solve this problem, we use the tangent function:
The plane’s altitude when passing over the peak is 2,140 ft, and it is 1,040 ft above the peak.
Finding Unknown Sides and Angles
Suppose you have two known sides, but do not know the measure of any angles except for the right angle (diagram). Find the measure of the unknown angles and the third side.
Solution
Step 1: We can find the third side using the Pythagorean Theorem:
Now, we have all three sides.
Step 2: To find we will first find
The angle is the angle whose sine is
Step 3: To find , we use the inverse sine function:
Step 4: To find the last angle, we just subtract: .
Angle of Elevation and Angle of Depression
Other problems that involve trigonometric functions include calculating the angle of elevation and the angle of depression. These are very common applications in everyday life. The angle of elevation is the angle formed by a horizontal line and the line of sight from an observer to some object at a higher level. The angle of depression is the angle formed by a horizontal line and the line of sight from an observer to an object at a lower level.
Finding the Angle of Elevation
A guy wire of length 110 meters runs from the top of an antenna to the ground (diagram). If the angle of elevation of an observer to the top of the antenna is how high is the antenna?
Solution
We are looking for the height of the tower. This corresponds to the -value, so we will use the sine function:
The tower is 75 m high.
Finding Angle of Elevation
You are sitting on the grass flying a kite on a 50-foot string (diagram). The angle of elevation is How high above the ground is the kite?
Solution
We can solve this using the sine function,
Converting Between Degrees and Radians
Dividing a circle into 360 parts is an arbitrary choice, although it creates the familiar degree measurement. We may choose other ways to divide a circle. To find another unit, think of the process of drawing a circle. Imagine that you stop before the circle is completed. The portion that you drew is referred to as an arc. An arc may be a portion of a full circle, a full circle, or more than a full circle, represented by more than one full rotation. The length of the arc around an entire circle is called the circumference of that circle.
The circumference of a circle is
If we divide both sides of this equation by we create the ratio of the circumference to the radius, which is always regardless of the length of the radius. So the circumference of any circle is times the length of the radius. That means that if we took a string as long as the radius and used it to measure consecutive lengths around the circumference, there would be room for six full string-lengths and a little more than a quarter of a seventh, as shown in diagram.
This brings us to our new angle measure. One radian is the measure of a central angle of a circle that intercepts an arc equal in length to the radius of that circle. A central angle is an angle formed at the center of a circle by two radii. Because the total circumference equals times the radius, a full circular rotation is radians. So
See diagram. Note that when an angle is described without a specific unit, it refers to radian measure. For example, an angle measure of 3 indicates 3 radians. In fact, radian measure is dimensionless, since it is the quotient of a length (circumference) divided by a length (radius) and the length units cancel out.
Relating Arc Lengths to Radius
An arc length is the length of the curve along the arc. Just as the full circumference of a circle always has a constant ratio to the radius, the arc length produced by any given angle also has a constant relation to the radius, regardless of the length of the radius.
This ratio, called the radian measure, is the same regardless of the radius of the circle—it depends only on the angle. This property allows us to define a measure of any angle as the ratio of the arc length to the radius See diagram.
If then
To elaborate on this idea, consider two circles, one with radius 2 and the other with radius 3. Recall the circumference of a circle is where is the radius. The smaller circle then has circumference and the larger has circumference
Now we draw a 45° angle on the two circles, as in diagram.
Notice what happens if we find the ratio of the arc length divided by the radius of the circle.
Since both ratios are the angle measures of both circles are the same, even though the arc length and radius differ.
Using Radians
Because radian measure is the ratio of two lengths, it is a unitless measure. For example, in diagram, suppose the radius were 2 inches and the distance along the arc were also 2 inches. When we calculate the radian measure of the angle, the “inches” cancel, and we have a result without units. Therefore, it is not necessary to write the label “radians” after a radian measure, and if we see an angle that is not labeled with “degrees” or the degree symbol, we can assume that it is a radian measure.
Considering the most basic case, the unit circle (a circle with radius 1), we know that 1 rotation equals 360 degrees, 360°. We can also track one rotation around a circle by finding the circumference, and for the unit circle These two different ways to rotate around a circle give us a way to convert from degrees to radians.
Identifying Special Angles Measured in Radians
In addition to knowing the measurements in degrees and radians of a quarter revolution, a half revolution, and a full revolution, there are other frequently encountered angles in one revolution of a circle with which we should be familiar. It is common to encounter multiples of 30, 45, 60, and 90 degrees. These values are shown in diagram. Memorizing these angles will be very useful as we study the properties associated with angles.
Now, we can list the corresponding radian values for the common measures of a circle corresponding to those listed in diagram, which are shown in diagram. Be sure you can verify each of these measures.
Finding a Radian Measure
Find the radian measure of one-third of a full rotation.
Solution
For any circle, the arc length along such a rotation would be one-third of the circumference. We know that
So,
The radian measure would be the arc length divided by the radius.
Converting between Radians and Degrees
Because degrees and radians both measure angles, we need to be able to convert between them. We can easily do so using a proportion.
This proportion shows that the measure of angle in degrees divided by 180 equals the measure of angle in radians divided by Or, phrased another way, degrees is to 180 as radians is to
Converting Radians to Degrees
Convert each radian measure to degrees.
- ⓐ
- ⓑ 3
Solution
Because we are given radians and we want degrees, we should set up a proportion and solve it.
- ⓐ We use the proportion, substituting the given information.
- ⓑ We use the proportion, substituting the given information.
Converting Degrees to Radians
Convert degrees to radians.
Solution
In this example, we start with degrees and want radians, so we again set up a proportion and solve it, but we substitute the given information into a different part of the proportion.
