Sub topic 4
Refractive index: how fast light travels in a material
This chapter defines the refractive index and shows how to compute with it. It assumes you know basic trigonometry, speed as distance divided by time, and the idea of light as a ray or a wave. You do not need Snell's law yet. The next chapters build on the index to explain why rays bend.
What the refractive index measures
Light travels fastest in vacuum, at c = 299 792 458 m/s (about 3.00 × 10⁸ m/s). In a transparent material such as water or glass, light travels more slowly. The refractive index n of a material says how much slower:
n = c / v
Here v is the speed of light in the material. The index is a ratio of two speeds, so it has no units. Three consequences follow directly:
- n is at least 1 for ordinary transparent materials, because v is at most c.
- A larger n means slower light.
- Vacuum has n = 1 by definition.
Rearranging gives the speed in a material: v = c / n.
Typical values
The values below are for visible light near 589 nm (yellow sodium light), which is the usual reference wavelength.
| Material | Refractive index n | Speed of light v (× 10⁸ m/s) |
|---|---|---|
| Vacuum | 1 (exactly) | 3.00 |
| Air (sea level, 15 °C) | 1.0003 | 3.00 |
| Water (20 °C) | 1.33 | 2.26 |
| Ordinary glass (crown) | 1.52 | 1.97 |
| Flint glass | 1.62 | 1.85 |
| Diamond | 2.42 | 1.24 |
Air is so close to 1 that most textbook problems treat it as exactly 1. That approximation is good to about three parts in ten thousand. Keep it in mind if a problem asks for very high precision, for example in astronomy or surveying.
Worked example: speed in water
Find the speed of light in water, using n = 1.33.
- Write the definition: v = c / n.
- Substitute: v = (3.00 × 10⁸ m/s) / 1.33.
- Compute: v ≈ 2.26 × 10⁸ m/s.
Light in water travels at about 75% of its vacuum speed, since 1 / 1.33 ≈ 0.75.
The same calculation in code:
C = 299_792_458 # speed of light in vacuum, m/s
def speed_in_medium(n):
"""Speed of light in a medium of refractive index n, in m/s."""
if n < 1:
raise ValueError("Refractive index below 1 is not used for this model")
return C / n
for name, n in [("air", 1.0003), ("water", 1.33), ("glass", 1.52), ("diamond", 2.42)]:
print(f"{name:8s} n = {n:<6} v = {speed_in_medium(n):.3e} m/s")Running it prints one line per material. The water line shows v ≈ 2.254e+08 m/s. This is slightly below the rounded 2.26 in the table, because the table rounds c to 3.00 × 10⁸ m/s.
Why light slows down in a material
It is tempting to picture light as a particle that bumps into atoms and loses speed. That picture is wrong. The accepted model is wave-based.
A light wave is an oscillating electric field. When it passes through a transparent material, it makes the charges in the atoms oscillate. Those oscillating charges radiate their own small waves. The original wave and the re-radiated waves add together. The sum is a single wave that moves forward at a speed below c. Photons are not slowed down individually. The wave pattern as a whole advances more slowly.
Materials respond differently to the field, and that difference sets n. A material whose charges respond strongly has a larger index.
Frequency stays the same, wavelength changes
When light crosses from one medium into another, its frequency f does not change. The frequency is set by the source, and the boundary cannot create or destroy wave crests. The relationship v = fλ holds in every medium, where λ is the wavelength. If v drops and f stays fixed, the wavelength must shrink.
Let λ₀ be the wavelength in vacuum. Then:
- In vacuum: c = f λ₀
- In the material: v = f λ
Dividing the second equation by the first gives v / c = λ / λ₀, so:
λ = λ₀ / n
Green light with λ₀ = 550 nm has a wavelength of 550 / 1.33 ≈ 414 nm in water. The color you see underwater does not change, because color is tied to frequency, not wavelength.
def wavelength_in_medium(lambda_vacuum_nm, n):
"""Wavelength in nm inside a medium of index n."""
return lambda_vacuum_nm / n
print(wavelength_in_medium(550, 1.33)) # about 413.5This is why a wave model matters for the later chapters. The shrinking wavelength is what makes wavefronts change direction at a tilted boundary.
Comparing two materials: relative index
Often you care about the ratio between two media rather than the value against vacuum. If light goes from medium 1 (index n₁) to medium 2 (index n₂), the relative refractive index is:
n₂₁ = n₂ / n₁ = v₁ / v₂
Notice that the speeds appear in the opposite order from the indices. The medium with the larger index has the smaller speed. When light goes from air into glass, n₂₁ = 1.52 / 1.00 = 1.52, and light slows by that factor. When it goes from water into glass, n₂₁ = 1.52 / 1.33 ≈ 1.14, a much smaller change.
Snell's law, in the next chapters, uses exactly this ratio. A boundary between two materials with similar indices bends light only slightly. This explains why a glass rod nearly disappears when you submerge it in a liquid with the same index. Light sees no change in speed at the boundary, so the surface is invisible.
def relative_index(n1, n2):
"""Index of medium 2 relative to medium 1 (how much light slows going 1 -> 2)."""
return n2 / n1
print(relative_index(1.00, 1.52)) # 1.52
print(relative_index(1.33, 1.52)) # about 1.143Optical path length
Because light is slower in a material, it takes longer to cross a layer of material than to cross an equal thickness of vacuum. The optical path length (OPL) captures this. For a layer of thickness d and index n:
OPL = n d
It is the distance light would travel in vacuum in the same time. The travel time is t = d / v = n d / c = OPL / c.
For example, light crossing 2.0 cm of glass with n = 1.52 takes the same time as light crossing 3.04 cm of vacuum. For a path through several layers, add up n d for each layer. This quantity returns in the chapter on Fermat's principle, where light chooses the path of least time.
def travel_time(layers):
"""Total time in seconds for light crossing layers given as (thickness_m, n) pairs."""
C = 299_792_458
return sum(n * d for d, n in layers) / C
# 2 cm of glass followed by 5 cm of water
print(travel_time([(0.02, 1.52), (0.05, 1.33)]))How the index depends on conditions
The index of a material is not one fixed number. Several factors change it.
Wavelength
For most transparent materials, n is slightly larger for shorter wavelengths. In crown glass, n is about 1.53 for violet light and about 1.51 for red light. This dependence is called dispersion, and a later chapter covers it. The tables above quote values at 589 nm so that comparisons are fair. Always state the wavelength when you quote a precise index.
Temperature and pressure
Heating a gas makes it less dense, which lowers n slightly. Air above a hot road has a lower index than the cooler air higher up. That gradient bends light and produces the shimmering effect over hot pavement. For liquids and solids, temperature changes of a few degrees shift n in the fourth decimal place, which is usually negligible in exercises but matters in precision instruments.
Material composition
Adding dissolved sugar or salt to water raises its index. Refractometers use this: they measure how much light bends in a sample and read off the sugar content of juice or the salinity of seawater.
Common errors
- Using n < 1. For ordinary transparent materials in these chapters, n ≥ 1. If your calculation gives an index below 1, you have probably inverted the ratio and computed v / c.
- Treating the wavelength as constant. The wavelength changes by 1/n when light enters a material. Only the frequency is constant.
- Treating n as unrelated to speed. A larger n always means slower light. When comparing two materials, the one with the larger index is the "optically denser" one.
- Confusing optical density with mass density. "Optically denser" means a higher refractive index. It does not always follow mass density. Some oils float on water yet have a higher index than water.
- Rounding air to 1 without thinking. This is fine for classroom problems and wrong for precision work.
Can the index be less than 1?
There are subtleties. The phase speed of a wave can exceed c in some materials at some frequencies, notably for X-rays in many substances, which gives n slightly below 1. This does not break relativity, because information and energy travel at the group velocity, which does not exceed c. For visible light in everyday transparent materials, the safe rule is n ≥ 1.
Putting it together
The three results in the diagram are all you need before the next chapter. Light slows by the factor n, its wavelength shrinks by the same factor, and its frequency stays fixed. When a wavefront meets a tilted boundary, one edge slows down before the other. That difference in speed is what bends the ray.
Exercises
Exercise
Light has a wavelength of 600 nm in vacuum. It enters a piece of glass with n = 1.50. Find (a) its speed in the glass, (b) its wavelength in the glass, and (c) its frequency in the glass.
Show answer
(a) v = c / n = (3.00 × 10⁸ m/s) / 1.50 = 2.00 × 10⁸ m/s. (b) λ = λ₀ / n = 600 nm / 1.50 = 400 nm. (c) The frequency is the same as in vacuum: f = c / λ₀ = (3.00 × 10⁸) / (600 × 10⁻⁹) = 5.00 × 10¹⁴ Hz. Check: v / λ = (2.00 × 10⁸) / (400 × 10⁻⁹) = 5.00 × 10¹⁴ Hz, which matches.
Exercise
Light travels through 3.0 cm of water (n = 1.33) and then 2.0 cm of glass (n = 1.52). What is the total optical path length, and how long does the light take to cross both layers?
Show answer
OPL = (1.33)(3.0 cm) + (1.52)(2.0 cm) = 3.99 cm + 3.04 cm = 7.03 cm = 0.0703 m. The time is t = OPL / c = 0.0703 m / (3.00 × 10⁸ m/s) ≈ 2.34 × 10⁻¹⁰ s, or about 0.23 ns.
Exercise
Light is measured to travel at 2.25 × 10⁸ m/s in a clear liquid. What is the liquid's refractive index, and which material in the table is it closest to?
Show answer
n = c / v = (3.00 × 10⁸) / (2.25 × 10⁸) ≈ 1.33. This matches water.