Predicting the bend at a material boundary

A ray of light that crosses from one transparent material into another bends at the boundary. Optics problems usually give the two materials and the direction of the incoming ray, then ask where the ray goes next. This page answers that single step. You supply the refractive index of the material the light comes from, the index of the material it enters, and the incident angle, and the page returns the angle of the transmitted ray. Both angles are measured from the normal, the imaginary line perpendicular to the surface at the point of contact, not from the surface itself. That convention matters because a ray hitting straight on has an incident angle of zero and passes through without bending, whatever the two indices are.

The equation behind it

Snell's law states that n1 × sin(θ1) = n2 × sin(θ2). Solving for the transmitted angle gives sin(θ2) = n1 × sin(θ1) / n2, and the page takes the inverse sine of that ratio and converts radians to degrees. When the second index is larger than the first, the ratio is smaller than the sine of the incident angle, so the ray bends toward the normal. When the second index is smaller, the ray bends away from it. The sine, not the angle itself, is what scales with the index ratio, which is why doubling an angle does not double the bend. The law is named for Willebrord Snellius, who worked it out in the early 1600s, and Ibn Sahl described a version of it around 984.

Light entering index 2 at 30 degrees

The page opens with light leaving a material of index 1 and entering one of index 2 at an incident angle of 30 degrees. The sine of 30 degrees is 0.5, so the ratio is 1 × 0.5 / 2 = 0.25, and the inverse sine of 0.25 is about 14.4775 degrees. The ray therefore steepens toward the normal by roughly 15.5 degrees. An index of 2 is higher than ordinary glass and close to dense flint glass or cubic zirconia, so the example shows a strong effect. You can verify the result by hand: the sine of 14.4775 degrees is 0.25 to the precision of a pocket calculator.

Air into water, glass into air

A common case is light passing from air, with an index near 1.00, into water, with an index near 1.33. At 45 degrees incidence the ratio is 1 × 0.7071 / 1.33, about 0.5316, and the refracted angle is roughly 32.1 degrees. Reverse the situation with a ray inside glass of index 1.5 meeting air at 30 degrees. The ratio is 1.5 × 0.5 / 1 = 0.75, and the ray leaves at about 48.6 degrees, bending away from the normal. This is why a pencil standing in a glass of water appears bent at the surface and why objects underwater look closer to the surface than they are. The two examples use illustrative index values, so replace them with the figures for your own materials.

Where refractive indices come from

The refractive index of a material is the speed of light in vacuum divided by the speed of light in that material, so it is a pure ratio with no unit. Vacuum is exactly 1 by definition, and air at ordinary conditions is about 1.0003, which most coursework rounds to 1. Water sits near 1.33, common window glass near 1.5, and diamond near 2.42. Published values depend on wavelength and temperature, so tables usually quote a reference wavelength such as the yellow sodium line at 589 nanometers. Use the value from your textbook, a manufacturer data sheet or a refractive index database, and keep the same wavelength for both materials if you can.

When no refracted ray exists

Going from a higher index to a lower one, the ratio can climb above one, and the inverse sine of a number greater than one has no real value. Physically, all the light is reflected back into the first material, which is total internal reflection. The smallest incident angle at which this happens is the critical angle, whose sine equals n2 / n1. For glass of index 1.5 against air it is about 41.8 degrees, and for water against air about 48.6 degrees. The page does not return a transmitted angle in that case, and any angle you see should be read as the edge of the refracting range, not as a real refracted ray. Optical fibers rely on total internal reflection to keep light inside the core.

Checking your inputs

Three mistakes account for most wrong answers. The first is measuring the angle from the surface instead of the normal, which gives the complement of the angle the page expects: a ray 20 degrees above the surface has an incident angle of 70 degrees. The second is swapping the indices, which turns a bend toward the normal into a bend away from it. The first index always belongs to the side the light comes from. The third is entering a radian value where degrees are expected. An angle written as 0.52 is about 30 degrees only if it is in radians, and the page reads it as half a degree. Angles must be between 0 and 90 degrees for the ray to approach the surface.

Where the calculation turns up in practice

Refraction at a flat boundary is the building block of lens and prism design, since each surface of a lens is treated locally as a small flat interface. Optical fibers use the critical angle to trap light in a core of higher index surrounded by a cladding of lower index, and a rough estimate of the acceptance angle starts from the same equation. Swimming pool depth looks shallower than it is, and a spearfisher aims below the apparent position of a fish for the same reason. Photographers meet it in the way a camera port changes the field of view underwater. A student can also use the page to test a measured result on an optics bench, comparing the angle read from a protractor with the value the law predicts for glass or acrylic.

One flat boundary between uniform materials

The page treats a single flat boundary between two uniform, isotropic materials and uses one index value per side. It does not model dispersion, where the index changes with wavelength and splits white light into colors. It also does not compute how much light is reflected and how much is transmitted, which depends on polarization and is given by the Fresnel equations. Curved surfaces, thin films, birefringent crystals and layered media call for more than one application of the law. The result is a scalar educational estimate, suited to problem sets and quick geometry checks, and it is not a substitute for lens design software.