Optics
How To Calculate Refractive Index
Refractive index answers a simple question: how much more slowly does light travel in a given material than in a vacuum? The answer is a single dimensionless ratio, yet it governs how lenses focus, how prisms split light and how optical fibres guide signals. This page shows the division, the related speed fraction and reduction, and the frequency check that keeps the arithmetic honest.
Quick Answer
n = c / v
- n
- Refractive index of the material, a dimensionless number at least one
- c
- Speed of light in a vacuum, very nearly 300,000,000 metres per second
- v
- Speed of light in the material, always lower than c in ordinary matter
Divide the speed of light in a vacuum by its speed in the material to obtain the refractive index. The material speed as a fraction of the vacuum speed is the reciprocal of that index, and one minus this fraction is the speed reduction. Frequency is unchanged across a boundary, so the frequency ratio is one. With a vacuum speed of 300,000,000 and a material speed of 200,000,000 metres per second, the index is 1.5.
What Is Refractive Index?
The refractive index of a material is the factor by which light travels more slowly in it than in a vacuum. It is defined as the speed of light in a vacuum divided by the speed of light in the material, and it is normally written as n. Because both the numerator and the denominator are speeds, n is a pure number with no units. A vacuum has an index of exactly one, and ordinary transparent materials have indices somewhat above one: water is around 1.33 and common glass around 1.5. The larger the number, the more the material slows light down. This single ratio is the starting point for understanding lenses, prisms and optical fibres.
The numerator is the speed of light in a vacuum, very nearly 300,000,000 metres per second and often denoted by the letter c. The denominator is the phase velocity of light inside the material, which is always lower for ordinary matter. In the worked example the material speed is 200,000,000 metres per second, exactly two thirds of the vacuum value. Both speeds must be expressed in the same units, because the index is a ratio and any common unit cancels out. Using kilometres per second for one speed and metres per second for the other would give an answer a thousand times too large. Stating the units explicitly before dividing removes this risk.
Because it is a ratio of like quantities, the refractive index carries no units at all. It is also, for conventional materials, never less than one: light does not travel faster in a transparent medium than it does in a vacuum. Values of n at or just above one correspond to thin gases such as air, while dense materials such as diamond reach about 2.4. Exotic engineered metamaterials can display an effective index below one at certain frequencies, but those are special cases outside everyday optics. For normal work, an index below one is a reliable sign that the division was performed the wrong way round.
Dividing the material speed by the vacuum speed gives the speed fraction, the proportion of the vacuum speed that light actually achieves in the medium. In the worked case this is 0.6666666666666666, or about two thirds. The speed fraction is simply the reciprocal of the refractive index, so the two numbers carry the same information in opposite forms. Multiplying them together always returns one, which is a quick way to check the arithmetic. A high refractive index corresponds to a small speed fraction and therefore to a large slowing effect.
The speed reduction is one minus the speed fraction. With a fraction of 0.6666666666666666, the reduction works out at 0.33333333333333337, meaning light travels about one third more slowly than it would in a vacuum. The long tail of decimal places is a genuine consequence of binary floating-point arithmetic and should not be treated as a mistake or quietly shortened at an intermediate stage. The reduction fraction is useful when describing the size of the slowing effect in plain language. It also leads directly to the change in wavelength described further down this page.
When light crosses a boundary, its frequency does not change. Frequency is set by the source and counts how many wave crests arrive each second; a boundary cannot create or destroy crests, so the count is conserved. Multiplying the speed fraction by its reciprocal, material speed over vacuum speed times vacuum speed over material speed, therefore gives exactly one. This frequency ratio of 1.0 is a useful consistency check on any refractive-index calculation. What does change at the boundary is the wavelength, which shrinks in the same proportion as the speed.
Since wave speed equals frequency multiplied by wavelength, and frequency is fixed at a boundary, a fall in speed must produce a proportional fall in wavelength. Light entering a material of index n has a wavelength reduced by a factor of n compared with its vacuum wavelength. In the worked case the wavelength inside the material is two thirds of the vacuum value, matching the speed fraction of 0.6666666666666666. This is why colours are unaffected by refraction even though the wave is compressed: colour depends on frequency, not on the wavelength inside the medium. The relationship links this calculation directly to the wave-speed and wavelength topics listed among the related pages.
The practical consequence of a change in speed is refraction, the bending of a ray as it passes from one medium into another. Snell's law states that the refractive index of the first medium times the sine of the incident angle equals the index of the second medium times the sine of the refracted angle. A ray entering a material of higher index bends toward the normal, while one entering a lower index bends away from it. The refractive index therefore governs not only how fast light travels but also where it goes. Lenses rely on this bending, and the focal length of a thin lens follows from the index together with the curvatures of its two surfaces.
A few qualifications matter in precise work. The simple ratio uses phase velocity, whereas the speed of a pulse or signal, known as the group velocity, can differ when a material is dispersive and its index varies with frequency. That dispersion is what splits white light into a spectrum in a prism. Absorption can also give the index an imaginary part, describing attenuation rather than just slowing. Within its limits, however, the ratio is remarkably widely used: it identifies unknown substances, designs anti-reflection coatings and underpins the numerical aperture of optical fibres. Mastering this one division therefore opens the door to most of geometrical optics.
Formula
n = c / v
Formula page →The defining ratio. Divide the speed of light in a vacuum by the speed of light in the material. Both quantities are speeds, so the result is dimensionless and at least one for ordinary materials.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| c | Speed of light in vacuum | m/s | Very nearly 300,000,000 metres per second; use the same units as v. |
| v | Speed of light in material | m/s | The phase velocity inside the medium, lower than c in ordinary matter. |
| n | Refractive index | dimensionless | The dimensionless ratio c/v; never below one for conventional materials. |
s = v / c = 1 / n
Formula page →The speed fraction is the reciprocal of the refractive index, the share of the vacuum speed that light reaches in the medium. One minus this fraction gives the speed reduction, which is 0.33333333333333337 in the worked case.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| s | Speed fraction | dimensionless | Proportion of the vacuum speed achieved in the material; reciprocal of n. |
| v | Speed of light in material | m/s | The reduced speed measured inside the medium. |
| c | Speed of light in vacuum | m/s | The reference speed used as the denominator. |
R = (v / c) x (c / v) = 1
Formula page →The speed fraction and its reciprocal cancel, so the frequency ratio is exactly one. Frequency is set by the source and is unchanged when light enters a new medium, even though speed and wavelength both fall.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| R | Frequency ratio across the boundary | dimensionless | Material speed over vacuum speed times its reciprocal; equals one. |
| v | Speed of light in material | m/s | Appears once as a numerator and once as a denominator, so it cancels. |
| c | Speed of light in vacuum | m/s | Cancels with v, leaving the frequency ratio exactly one. |
How To Calculate Refractive Index
- 1
Identify the two speeds in matching units
Write down the speed of light in a vacuum, usually taken as 300,000,000 metres per second, and the speed of light inside the material. The vacuum value is the numerator and the material value is the denominator. Convert both to the same unit before doing anything else, because a ratio of unlike units is meaningless. In the worked case the two values are 300,000,000 and 200,000,000 metres per second.
- 2
Divide the vacuum speed by the material speed
Compute n = c / v. With the worked values this is 300,000,000 divided by 200,000,000, giving a refractive index of 1.5. The answer has no units because the metres per second cancel. Sanity-check the direction: the vacuum speed is the larger number, so an ordinary material must produce a result above one.
- 3
Find the speed fraction
Compute s = v / c, the material speed divided by the vacuum speed. For the worked values this gives 0.6666666666666666, so light travels at roughly two thirds of its vacuum speed in the material. This number is the reciprocal of the refractive index, so multiplying 0.6666666666666666 by 1.5 returns one.
- 4
Work out the speed reduction
Subtract the speed fraction from one to get the proportion by which light is slowed: 1 − 0.6666666666666666 = 0.33333333333333337. Keep the full value during the calculation rather than rounding it to 0.33, since the long tail is a real floating-point result. Expressed in words, the medium slows light by about one third compared with a vacuum.
- 5
Check frequency invariance and the wavelength change
Multiply the speed fraction by its reciprocal, (v / c) x (c / v), and confirm that the frequency ratio comes out at 1.0. Frequency is unchanged at a boundary, so any other value means an inversion or a unit error. The wavelength, by contrast, shrinks by the factor n, falling to two thirds of its vacuum value in the worked case.
Examples
Example 1: Glass-like material — vacuum 300,000,000 and material 200,000,000 m/s
- vacuumSpeed
- 300000000
- materialSpeed
- 200000000
| Step | Calculation | Result |
|---|---|---|
| Speed fraction | 200000000 / 300000000 | 0.6666666666666666 |
| Speed reduction | 1 - 0.6666666666666666 | 0.33333333333333337 |
| Frequency ratio | (200000000 / 300000000) x (300000000 / 200000000) | 1.0 |
| Refractive index | 300000000 / 200000000 | 1.5 |
Result: The refractive index is 1.5. Light travels at 0.6666666666666666 of its vacuum speed, a reduction of 0.33333333333333337, and the frequency ratio across the boundary is 1.0.
Example 2: Water-like material — vacuum 300,000,000 and material 225,000,000 m/s
- vacuumSpeed
- 300000000
- materialSpeed
- 225000000
| Step | Calculation | Result |
|---|---|---|
| Speed fraction | 225000000 / 300000000 | 0.75 |
| Speed reduction | 1 - 0.75 | 0.25 |
| Frequency ratio | (225000000 / 300000000) x (300000000 / 225000000) | 1.0 |
| Refractive index | 300000000 / 225000000 | 1.3333333333333333 |
Result: The refractive index is 1.3333333333333333, about four thirds. The speed fraction is 0.75 and the speed reduction is 0.25, while the frequency ratio stays at 1.0.
Example 3: Diamond-like material — vacuum 300,000,000 and material 125,000,000 m/s
- vacuumSpeed
- 300000000
- materialSpeed
- 125000000
| Step | Calculation | Result |
|---|---|---|
| Speed fraction | 125000000 / 300000000 | 0.4166666666666667 |
| Speed reduction | 1 - 0.4166666666666667 | 0.5833333333333333 |
| Frequency ratio | (125000000 / 300000000) x (300000000 / 125000000) | 1.0 |
| Refractive index | 300000000 / 125000000 | 2.4 |
Result: The refractive index is 2.4. Light travels at 0.4166666666666667 of its vacuum speed, a reduction of 0.5833333333333333, and the frequency ratio remains 1.0.
Calculator
Refractive index
1.5
- Speed fraction
- 0.6667
- Speed reduction
- 0.3333
- Frequency ratio
- 1
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
Prefer a full-width tool? Open the Refractive Index calculator page.
Common Mistakes
Dividing the speeds the wrong way round
The refractive index is vacuum speed divided by material speed, not the other way about. Inverting the fraction for the worked values gives 0.6666666666666666, a number below one that cannot be an ordinary refractive index. An index below one is a clear signal to check the order of the division.
Assuming frequency changes at the boundary
Frequency is fixed by the source and does not change when light enters a new medium. It is speed and wavelength that adjust. If a calculation shows a frequency ratio other than 1.0, something has been inverted. Confusing frequency with wavelength here also leads to the wrong account of why colour is unchanged by refraction.
Mixing speed units
Both speeds must use the same units. Entering the vacuum speed in kilometres per second and the material speed in metres per second multiplies the index by a factor of one thousand. Convert one value to match the other before dividing, and write the units beside each number to catch the error early.
Attaching units to the refractive index
The index is a ratio of two speeds, so it is dimensionless. Writing metres per second after the result suggests a misunderstood formula. Speed fraction and speed reduction are dimensionless for the same reason, and only the two input speeds carry units.
Rounding the long decimals too early
Values such as 0.33333333333333337 are genuine floating-point outputs, not typos. Replacing them with 0.33 at an intermediate step introduces a small error that grows in later optics calculations. Carry the full value through the arithmetic and round only when presenting a final, human-readable figure.
Using a single index in a dispersive material
The index generally depends on frequency, so one number cannot describe every colour. The ratio computed here is a phase index at one frequency, while a short pulse travels at the group velocity and may see a different index. For precision work with broad spectra, state the wavelength at which the index applies.
FAQ
What is refractive index in simple terms?
It is the factor by which a material slows light compared with a vacuum. An index of 1.5 means light travels 1.5 times more slowly in that material than it does in empty space. It is a plain number with no units, and it also tells you how much a ray will bend when it enters the material.
Why is the refractive index never less than one?
Because the vacuum speed is the largest speed at which light travels, dividing it by the speed in an ordinary material gives a number at or above one. Air is only just above one, water is around 1.33 and diamond about 2.4. An answer below one almost always means the two speeds were divided in the wrong order.
Does the frequency of light change when it enters a material?
No. The source fixes the frequency, and a boundary cannot add or remove wave crests, so the frequency ratio is one. The speed falls and the wavelength shortens in equal proportion, which keeps the relationship speed equals frequency times wavelength consistent on both sides of the boundary.
How are speed fraction and speed reduction related to the index?
The speed fraction is the material speed divided by the vacuum speed, which is the reciprocal of the refractive index. The speed reduction is one minus that fraction. For an index of 1.5 the fraction is 0.6666666666666666 and the reduction is 0.33333333333333337.
How does refractive index explain bending?
Snell's law links the indices on either side of a boundary to the incident and refracted angles. A ray entering a higher-index medium slows down and bends toward the normal, while one entering a lower-index medium bends away from it. Lenses are shaped so that this bending brings rays to a focus.
Why do the worked answers have such long decimal tails?
The values come from floating-point division, so 1 minus two thirds is stored as 0.33333333333333337 rather than a clean fraction. The tail is mathematically real for the computation and is kept verbatim so that the calculator and the written examples agree exactly. Round only at the final presentation stage.
References
- [1]Wikipedia, Refractive index — https://en.wikipedia.org/wiki/Refractive_index
- [2]Wikipedia, Speed of light — https://en.wikipedia.org/wiki/Speed_of_light
- [3]Wikipedia, Snell's law — https://en.wikipedia.org/wiki/Snell%27s_law
