Index of Refraction Calculator
Water slows light to 224,900,569 m/s, so its index of refraction is 1.3330 at 589 nm. Light hitting water at 40 degrees bends to 28.8 degrees, and the critical angle is 48.6 degrees. The same math explains a bent straw and a pool that looks shallow.
Pick a mode, type the numbers, and read the index, the bending angle, or how deep the water looks.
| Index of refraction | |
| Speed of light inside | |
| Share of the vacuum speed | |
n = c / v with c = 299,792,458 m/s. Snell's law: n1 sin(theta1) = n2 sin(theta2). Apparent depth = real depth / n, for looking straight down. All calculations run in your browser, and nothing you type is uploaded or stored.
Find the index of refraction from a light speed, predict a bending angle with Snell's law, or see how deep a pool looks from above.
Key takeaways
- n = c / v, so water at 224,900,569 m/s gives 299,792,458 / 224,900,569 = 1.3330
- Snell's law is n1 sin(theta1) = n2 sin(theta2); 40 degrees in air becomes 28.8 degrees in water
- The critical angle for water to air is 48.6 degrees, for diamond to air only 24.4 degrees
- A pool 2.4 m deep looks 1.80 m deep, because apparent depth is real depth divided by n
- Index values are quoted at 589 nm and 20 C, and they shift a little with color and temperature
On this page
- What the index of refraction measures
- Light speed and index in everyday materials
- Snell's law: why a straw looks broken
- Total internal reflection and the critical angle
- Pools, glasses, and windows: the shallow water effect
- Dispersion: why a prism splits white light
- Using the calculator and what it assumes
What the index of refraction measures
Every clear material has a number that says how much it slows light down. That number is the index of refraction, written n, and the formula fits on one line: n = c / v. Here c is the speed of light in a vacuum, 299,792,458 m/s, and v is the speed inside the material.
A vacuum gets n = 1 because light moves at full speed there. Air comes in at 1.000293, water at 1.3330 and diamond at 2.417. A larger number means a slower beam and a sharper bend when the light crosses a surface.
Worked example. Light travels through water at 224,900,569 m/s. Divide the vacuum speed by that: 299,792,458 / 224,900,569 = 1.3330. So water's index is 1.3330, which means light moves 1.333 times slower in water than in a vacuum, or at 75.0 percent of the vacuum speed.
The number carries no units, since it is one speed divided by another, and it doubles as a ratio: light moves 1.333 times slower and its wavelength shrinks by the same factor.
One catch: n drifts with the color of the light. Labs quote it at a stated wavelength, and the usual choice is the yellow sodium D line at 589.3 nm, measured at 20 C. The NIST reference entry for liquid water gives 1.3330 under those conditions, and that is the figure used on this page.
Light speed and index in everyday materials
The table below puts five materials side by side. The speed column comes straight from n = c / v, so it costs nothing extra to fill in once the index is known.
| Material | Index n at 589 nm | Speed of light inside | Share of c |
|---|---|---|---|
| Vacuum | 1.0000 | 299,792,458 m/s | 100.0 percent |
| Air (0 C, 1 atm) | 1.000293 | 299,704,645 m/s | 100.0 percent |
| Water (20 C) | 1.3330 | 224,900,569 m/s | 75.0 percent |
| Crown glass | 1.52 | 197,231,880 m/s | 65.8 percent |
| Diamond | 2.417 | 124,034,943 m/s | 41.4 percent |
Air sits so close to 1 that a beam crossing a room barely bends: the index differs from vacuum by 0.03 percent. Water and glass are where the effect turns visible, and diamond is in a class of its own, at 41.4 percent of the vacuum speed.
The glass figure is a typical value for crown glass, the ordinary optical glass used in windows and simple lenses. Different recipes land between about 1.50 and 1.54. The HyperPhysics index table from Georgia State University lists 1.52 for typical crown glass and 2.417 for diamond, both measured at 589 nm.
The vacuum speed is not something you look up: the metre is defined by fixing c at exactly 299,792,458 m/s, as the BIPM definition of the metre states. Every speed in the table is that exact number divided by a measured index, so the index carries all of the uncertainty.
Snell's law: why a straw looks broken
Light changes direction at a boundary because it changes speed. The rule that predicts the new direction is Snell's law: n1 sin(theta1) = n2 sin(theta2). Both angles are measured from the normal, the line perpendicular to the surface, not from the surface itself.
Worked example. A laser in air hits water at 40 degrees from the normal. The air index is 1.0003, so n1 sin(theta1) = 1.0003 x 0.6428 = 0.6430. Divide by water's 1.3330 and sin(theta2) = 0.4824. The inverse sine gives 28.8 degrees, so the beam leaves the surface steeper than it arrived.
| Angle in air (degrees from normal) | Angle in water (degrees) | Sine of the water angle |
|---|---|---|
| 10 | 7.5 | 0.130 |
| 20 | 14.9 | 0.257 |
| 30 | 22.0 | 0.375 |
| 40 | 28.8 | 0.482 |
| 50 | 35.1 | 0.575 |
| 60 | 40.5 | 0.650 |
| 70 | 44.8 | 0.705 |
| 80 | 47.6 | 0.739 |
A beam at 10 degrees barely moves, one at 60 degrees loses almost 20 degrees, and one at 80 degrees comes out at 47.6 degrees. The change grows as the beam gets closer to lying flat on the surface.
The direction rule is easy to keep straight. Going into the material with the higher index, the ray bends toward the normal. Coming out into the lower index, it bends away. A beam that arrives at 0 degrees, straight down the normal, does not bend at all, which is why a light aimed straight down into a pool still looks straight.
Total internal reflection and the critical angle
Turn the beam around. Light inside water heading for the surface speeds up as it leaves, so it bends away from the normal. Past a certain starting angle the math asks for a sine above 1, which has no solution, and the light cannot escape at all. It reflects back into the water as if the surface were a mirror.
That cutoff is the critical angle, found by setting the outgoing angle to 90 degrees: sin(thetac) = n2 / n1, with n1 the material the light starts in and n2 the material outside. The formula only works when n1 is the larger of the two. Light going from air into water never hits total internal reflection, no matter how flat the angle.
Worked example. Water to air: sin(thetac) = 1.0003 / 1.3330 = 0.7504, and the inverse sine is 48.6 degrees. Diamond to air: 1.0003 / 2.417 = 0.4139, which gives 24.4 degrees.
| Light leaving | Index of the outside | Critical angle | Past the cutoff |
|---|---|---|---|
| Water | 1.0003 (air) | 48.6 degrees | The surface turns into a mirror |
| Crown glass | 1.0003 (air) | 41.2 degrees | Light stays trapped in the glass |
| Diamond | 1.0003 (air) | 24.4 degrees | Most light bounces back inside |
Diamond's small critical angle is the reason a cut stone sparkles. Light that enters through the top facet strikes the inside walls at angles well past 24.4 degrees, bounces several times, and leaves through the top toward your eye instead of leaking out the sides.
Fiber optic cables use the same trick with glass: light launched down the core meets the cladding past the critical angle and stays inside for miles. A swimmer looking up sees a bright circle of sky roughly 97 degrees wide, with mirror-like water outside it.
Pools, glasses, and windows: the shallow water effect
Stand at the edge of a pool and the bottom looks closer than it is. Light from the bottom bends away from the normal as it leaves the water, and your eye traces the ray back along a straight line that meets the surface at a nearer point. The result is an apparent depth you can work out with one division: apparent depth = real depth / n.
Worked example. A pool 2.4 m deep: 2.4 / 1.3330 = 1.80 m. The bottom looks 1.80 m down, about 60 cm closer than the true depth. In feet, an 8 ft pool looks 6.0 ft deep. The same shift is why a spearfisher aims below the fish rather than straight at it.
That simple division only holds when you look straight down. At an angle the shift depends on both angles, and the bottom appears to tilt as you move your head. The depth mode in the calculator uses the straight-down case and says so in the result.
Eyeglasses use the same rule at two curved surfaces: a material with n near 1.5 bends each ray, and the curve sets how strongly the rays converge. A higher index does the same job with a thinner lens, which is why strong prescriptions use high-index plastic.
Even a flat window pane shifts what you see: a 6 mm pane at 45 degrees moves the image sideways by about 2 mm.
Dispersion: why a prism splits white light
The index is not one fixed number per material. It rises as the wavelength gets shorter, a behavior called dispersion. Blue light near 450 nm sees a slightly higher index than red light near 650 nm, so blue bends more at every boundary it crosses.
That is what a prism does: white light enters, each color takes a slightly different path, and the colors fan out. Raindrops do the same job in the sky with one internal reflection added, which is how a rainbow forms.
Diamond's quoted 2.417 belongs to the 589 nm line. Across the visible range the value moves by a few percent, and that spread is what a jeweler calls fire: the stone throws different colors back at slightly different angles.
For everyday work the practical point is short. If a number matters to four decimals, use the index at the wavelength you care about, not a generic table value. A lens designed for infrared light will not focus red light at the same point, and that mismatch is called chromatic aberration. Camera lenses fix it by stacking glass elements with different dispersion.
Using the calculator and what it assumes
The calculator has three modes. Index from speed takes the speed of light inside a material and returns n. Snell's law takes two indexes and one angle and returns the angle on the other side, plus the critical angle when light is trying to leave the denser material. Apparent depth takes an index and a real depth and returns how deep it looks.
Every mode also reports the speed of light in the material and its share of c, so you can check the index against the table above.
Four assumptions sit behind the numbers. The boundary is flat and the two materials are uniform, so a curved lens surface or a mixture will not match. The light is a single wavelength, because n changes with color. The temperature is 20 C, which is where the standard water and glass values are quoted. Nothing absorbs or scatters the beam, which rules out foggy water and tinted glass.
Within those limits the math is exact: n = c / v and Snell's law are definitions and geometry, not fits to data.
Frequently asked questions
What is the index of refraction in plain terms?
It is how many times slower light moves in a material than in a vacuum. Water's index of 1.3330 means light travels 224,900,569 m/s there instead of 299,792,458 m/s.
What is Snell's law in one line?
n1 sin(theta1) = n2 sin(theta2), with both angles measured from the normal. A beam going from air into water at 40 degrees comes out at 28.8 degrees.
What is the critical angle for water?
48.6 degrees. sin(thetac) = 1.0003 / 1.3330 = 0.7504, and the inverse sine of that is 48.6 degrees. Past that angle, light inside water reflects off the surface instead of leaving.
Why does a pool look shallower than it is?
Light bends as it leaves the water, so your eye traces it back to a point closer to the surface. A pool 2.4 m deep looks 1.80 m deep, since 2.4 / 1.3330 = 1.80.
What is the index of refraction of air?
About 1.000293 at 589 nm, 0 C and 1 atm. Light in air is only 0.03 percent slower than in a vacuum, which is why we usually round air to 1.00.
What is the index of refraction of diamond?
2.417 at 589 nm. Light crosses diamond at 124,034,943 m/s, or 41.4 percent of c, and the critical angle against air is 24.4 degrees.
Why do tables list a wavelength next to the index?
Because the index changes with color. The standard is the sodium D line at 589.3 nm, measured at 20 C, so a number without a wavelength is only approximate.
Does the index of refraction have units?
No. It is a speed divided by a speed, so the units cancel and you are left with a pure number. That is also why it doubles as a ratio for wavelength inside the material.
Can the index of refraction be below 1?
Not for visible light in ordinary materials, since nothing travels faster than c. Values below 1 do appear in special cases such as x-rays passing through matter, where the simple speed picture stops working.
How much does glass slow light down?
Crown glass at 1.52 slows light to 197,231,880 m/s, about 65.8 percent of the vacuum speed. That is roughly 1.14 times slower than water.
What happens exactly at the critical angle?
The refracted ray runs along the surface at 90 degrees from the normal, and almost none of the light crosses. A fraction of a degree past it, all of the light reflects back inside.
How do I find an index from two measured angles?
Rearrange Snell's law: n2 = n1 sin(theta1) / sin(theta2). A beam going from air at 40 degrees to 28.8 degrees in water gives n2 = 1.0003 x 0.6428 / 0.4824 = 1.333.
Why does a straw look bent in a glass of water?
The part of the straw under water sends light that bends at the surface. Your eye assumes the light traveled in a straight line, so the underwater half appears shifted sideways from its true position.
Spotted a wrong number or a broken result?
More Everyday tools
- 1 Hour Cycling Calories Calculator
- 1 Hour Lunch Break Calculator
- 1 Million in Numbers
- 1 Weeks Ago From Today
- 1 in 60 Rule Calculator
- 10 Day Payoff Calculator
- 10 Hour Shift Schedule Calculator
- 10 Minutes From Now
- 10 Months Ago From Today
- 10 to 1 Arm Workout Calculator
- 10207 2: Log Base 2 Calculator
- 1099 Hourly Rate Calculator
- 11 Months Ago From Today
- 11 Weeks Ago From Today
- 12 Hour Shift Pay Calculator
- 12 Months Ago From Today
Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.