Sub topic 6
Refraction and Snell's law
This chapter assumes you know the laws of reflection, basic trigonometry (sine, and the small-angle approximation), and algebra with signed quantities. Everything later in ray optics (lenses, prisms, total internal reflection) starts from the single law introduced here.
What refraction is
Refraction is the bending of a light ray when it passes from one transparent medium into another. It happens because light travels at different speeds in different media. The frequency of the light stays fixed, because it is set by the source. The speed and wavelength change together, since v = fλ.
Angles are always measured from the normal, the line perpendicular to the surface at the point where the ray hits. They are never measured from the surface itself. This is the most common source of mistakes in this topic.
- The incident ray, the refracted ray and the normal lie in the same plane.
- A ray entering a medium where light is slower bends toward the normal.
- A ray entering a medium where light is faster bends away from the normal.
- A ray along the normal (angle of incidence 0°) does not bend.
Refractive index
The absolute refractive index of a medium is the ratio of the speed of light in vacuum to the speed in the medium:
n = c / v
Because v is never greater than c, n is at least 1. Air is about 1.0003, so in most problems you treat it as exactly 1. Water is about 1.33, and typical glass is 1.5.
Some typical values:
| Medium | Approximate n | Speed of light (×10⁸ m/s) |
|---|---|---|
| Vacuum | 1.00 | 3.00 |
| Water | 1.33 | 2.26 |
| Crown glass | 1.50 | 2.00 |
| Diamond | 2.42 | 1.24 |
A medium with a larger n is called optically denser. Optical density is not the same as mass density. Turpentine, for example, has a higher refractive index than water but a lower mass density.
The relative refractive index of medium 2 with respect to medium 1 is
n₂₁ = n₂ / n₁ = v₁ / v₂
Note the order: the speeds are inverted compared with the indices.
Snell's law
Snell's law relates the angles in the two media:
n₁ sin θ₁ = n₂ sin θ₂
Here θ₁ is the angle of incidence in medium 1 and θ₂ is the angle of refraction in medium 2. Equivalently, sin θ₁ / sin θ₂ = n₂ / n₁ = v₁ / v₂ = λ₁ / λ₂.
The law tells you the direction of bending. If n₂ > n₁, then sin θ₂ < sin θ₁, so θ₂ < θ₁ and the ray bends toward the normal. If n₂ < n₁, the ray bends away from the normal.
Worked example
A ray in air strikes a glass surface (n = 1.5) at 60° to the normal. Find the angle of refraction.
- Write Snell's law: 1 × sin 60° = 1.5 × sin θ₂.
- sin θ₂ = 0.866 / 1.5 = 0.577.
- θ₂ = 35.3°.
The ray bends toward the normal, as expected for entry into a denser medium. The following code checks the result and handles the case where no refracted ray exists.
import math
def refract(n1, n2, theta1_deg):
s = n1 * math.sin(math.radians(theta1_deg)) / n2
if abs(s) > 1:
return None # no refracted ray: total internal reflection
return math.degrees(math.asin(s))
print(round(refract(1.0, 1.5, 60), 1)) # 35.3
print(round(refract(1.5, 1.0, 60), 1)) # None
print(round(refract(1.5, 1.0, 30), 1)) # 48.6The second call returns None because 1.5 × sin 60° / 1 = 1.30, and sine cannot exceed 1. No refracted ray exists in that case, which is the topic of the total internal reflection chapter.
What changes and what does not
When light crosses a boundary, three quantities behave differently.
| Quantity | Changes on entering a denser medium? |
|---|---|
| Frequency | No |
| Speed | Decreases |
| Wavelength | Decreases (λ = λ₀ / n) |
Questions often ask for the colour of light in water. Colour depends on frequency, so it does not change, even though the wavelength does.
Refraction through a parallel-sided slab
For a ray passing from air into a slab and back into air, Snell's law at the first surface gives sin i = n sin r. At the second surface the ray makes angle r inside the slab, because the two normals are parallel, and the ray leaves at angle e with n sin r = sin e. So sin e = sin i, which gives e = i.
The emergent ray is parallel to the incident ray but shifted sideways. The lateral shift is covered in the apparent depth chapter. This reversibility is general: a ray retraces its path if its direction is reversed.
Successive media
If light passes through several parallel layers, apply Snell's law at each boundary. The products n sin θ for consecutive layers are equal, so n₁ sin θ₁ = n₂ sin θ₂ = n₃ sin θ₃. The intermediate media drop out: the ray in the last medium depends only on n₁, θ₁ and n₃. This is useful for light travelling through the atmosphere in layers of changing density, which explains why the Sun appears slightly higher than it really is near the horizon.
Small angles and common errors
For small angles measured in radians, sin θ ≈ θ, and Snell's law becomes n₁θ₁ ≈ n₂θ₂. Paraxial formulas for lenses and spherical surfaces rely on this.
Common errors to avoid:
- Measuring angles from the surface instead of from the normal. If a problem says the ray makes 30° with the surface, the angle of incidence is 60°.
- Swapping n₁ and n₂ in the formula. Pair each index with the angle in its own medium.
- Believing that a denser medium always means a higher mass density.
- Saying that the frequency or colour changes in a new medium.
- Forgetting that sin θ₂ cannot exceed 1. A value above 1 means there is no refracted ray.
Practice
Exercise
Light of wavelength 600 nm in vacuum enters glass with n = 1.5. What are its wavelength and frequency in the glass, and what is its speed? Use c = 3 × 10⁸ m/s.
Show answer
The frequency is the same as in vacuum: f = c / λ₀ = (3 × 10⁸) / (600 × 10⁻⁹) = 5 × 10¹⁴ Hz. The speed is v = c / n = 2 × 10⁸ m/s. The wavelength is λ = λ₀ / n = 600 / 1.5 = 400 nm. Check: v / f = (2 × 10⁸) / (5 × 10¹⁴) = 4 × 10⁻⁷ m = 400 nm.
Exercise
A ray in water (n = 1.33) hits the water–air boundary so that it makes 40° with the surface. Does it emerge into the air? If so, at what angle to the normal?
Show answer
The angle of incidence is 90° − 40° = 50°. Then sin θ₂ = 1.33 × sin 50° / 1 = 1.33 × 0.766 = 1.02. This is greater than 1, so no refracted ray exists, and the ray is totally reflected back into the water.
Exercise
A ray passes from air through a layer of water (n = 1.33) into a glass slab (n = 1.5). It hits the water at 45° to the normal, and the surfaces are parallel. Find the angle in the glass.
Show answer
The intermediate medium drops out: 1 × sin 45° = 1.5 × sin θ₃. So sin θ₃ = 0.707 / 1.5 = 0.471, and θ₃ = 28.1°. The water layer does not change this angle.