Science

Snell's Law Calculator

Calculate the angle of refraction when light passes between two media. Also determines the critical angle for total internal reflection.

Quick Answer

n × sin(θ₁) = n × sin(θ₂). Enter the refractive indices and angle of incidence to find the angle of refraction and check for total internal reflection.

Calculate

Enter the refractive indices and the angle of incidence in degrees.

Refractive index

Degrees from normal

Refractive index

Angle of Refraction (θ₂)
19.204897°
Deviation Angle
10.795103°

Common Refractive Indices

MediumRefractive Index (n)
Vacuum1
Air (STP)1.000293
Water1.333
Glass (crown)1.52
Glass (flint)1.62
Diamond2.417
Ice1.31
Ethanol1.361
Glycerine1.473
Sapphire1.77
Cubic Zirconia2.15
Silicon3.42

About This Tool

The Snell's Law Calculator determines how light bends when it passes from one transparent medium to another. By entering the refractive indices of the two media and the angle at which light strikes the interface, you get the exact angle of refraction, the deviation angle, and whether total internal reflection occurs. This tool is indispensable for physics students, optical engineers, and anyone working with lenses, prisms, or fiber optics.

How Refraction Works

When light crosses the boundary between two media with different refractive indices, it changes speed. Because the wavefront enters the new medium at an angle, one side of the wavefront slows down (or speeds up) before the other, causing the entire beam to change direction. This bending is called refraction. The amount of bending depends on the ratio of the refractive indices and the angle of incidence, as described precisely by Snell's Law: n × sin(θ₁) = n × sin(θ₂). When light moves from a less dense medium (lower n) to a denser medium (higher n), it bends toward the normal. When moving from denser to less dense, it bends away from the normal.

Total Internal Reflection

When light travels from a denser medium to a less dense one (for example, from glass to air), there exists a critical angle beyond which no light passes through the boundary. Instead, all light is reflected back into the denser medium. This phenomenon, called total internal reflection, is the operating principle behind optical fibers that carry internet data across oceans, the reflective coating inside binoculars, and the brilliant sparkle of gemstones. The critical angle depends only on the ratio of the two refractive indices: θc = arcsin(n/n).

Refractive Index Explained

The refractive index of a material measures how much it slows light relative to the speed of light in a vacuum. Vacuum has a refractive index of exactly 1.0, while air is so close to vacuum (1.0003) that it is often approximated as 1.0. Water has a refractive index of about 1.333, meaning light travels at roughly 75% of its vacuum speed in water. Dense optical materials like diamond (n = 2.417) slow light to less than half its vacuum speed, producing dramatic refraction effects that account for diamond's famous fire and brilliance.

Applications in Optics and Engineering

Snell's Law is the cornerstone of geometric optics. Every lens in a camera, microscope, telescope, or pair of eyeglasses is designed using Snell's Law to precisely control where light rays converge or diverge. Prisms use refraction to separate white light into its component colors (dispersion), which is the basis of spectrometers used in chemical analysis and astronomy. Anti-reflective coatings on screens and lenses are designed using multilayer refraction calculations rooted in Snell's Law. Fiber optic engineers use total internal reflection to guide light signals through hair-thin glass fibers over thousands of kilometers with minimal loss.

Dispersion and Wavelength Dependence

The refractive index of a material actually varies with the wavelength (color) of light. This phenomenon, called dispersion, is why prisms create rainbows and why camera lenses must be designed to minimize chromatic aberration. Shorter wavelengths (blue/violet light) typically experience a higher refractive index than longer wavelengths (red light) in most transparent materials. This wavelength dependence is described by empirical formulas like the Cauchy equation or the more precise Sellmeier equation. Our calculator uses a single refractive index value, which is typically specified for the sodium D-line wavelength (589 nm) as a standard reference.

Beyond Simple Refraction

While Snell's Law describes the direction of refraction, a complete optical analysis also considers how much light is reflected versus transmitted at a boundary. The Fresnel equations describe this intensity splitting and depend on the polarization of the light. At the Brewster angle, reflected light becomes perfectly polarized, which is exploited in polarizing filters and laser optics. For very thin films or structured surfaces, wave interference effects become important, leading to thin-film interference used in soap bubbles, oil slicks, and optical coatings.

Frequently Asked Questions

What is Snell's Law?
Snell's Law (also called the law of refraction) describes how light bends when passing from one medium to another with a different refractive index. The formula is n₁ × sin(θ₁) = n₂ × sin(θ₂), where n₁ and n₂ are the refractive indices of the two media, and θ₁ and θ₂ are the angles of incidence and refraction measured from the normal (perpendicular) to the surface. It was described by Ibn Sahl in 984 AD and rediscovered by Willebrord Snellius in 1621.
What is the critical angle?
The critical angle is the angle of incidence above which total internal reflection occurs when light travels from a denser medium (higher refractive index) to a less dense medium (lower refractive index). At the critical angle, the refracted ray travels along the surface (90° refraction angle). It is calculated as θc = arcsin(n₂/n₁) where n₁ > n₂. For glass-to-air (n=1.52 to n=1.0), the critical angle is about 41.1°.
What is total internal reflection?
Total internal reflection (TIR) occurs when light hits a boundary from the denser side at an angle greater than the critical angle. Instead of refracting, all light is reflected back into the denser medium. TIR is the operating principle behind fiber optic cables, binoculars with Porro prisms, and the sparkle of diamonds. It only happens when going from a medium with a higher refractive index to one with a lower refractive index.
What is the refractive index?
The refractive index (n) of a medium is the ratio of the speed of light in vacuum to the speed of light in that medium: n = c/v. It is always greater than or equal to 1 (vacuum = 1.0, air ≈ 1.0003). Higher refractive indices mean light travels more slowly and bends more. Diamond has a high refractive index of 2.417, which is why it bends light so dramatically and produces such vivid fire and brilliance when cut properly.
Why does light bend when entering a new medium?
Light bends because it changes speed when entering a medium with a different refractive index. Think of a marching band walking from pavement onto sand at an angle: the side that hits the sand first slows down, causing the line to pivot. Similarly, when a light wavefront enters glass at an angle, the part entering first slows down while the rest continues at the original speed, causing the wavefront to change direction. This is described precisely by Huygens' principle and Fermat's principle of least time.
How is Snell's Law used in real-world optics?
Snell's Law is the foundation of lens and prism design, including eyeglasses, camera lenses, microscopes, and telescopes. It governs fiber optic communications, which carry nearly all internet traffic via total internal reflection. It explains why pools appear shallower than they are, why rainbows form, and why stars twinkle (atmospheric refraction). Engineers use it to design anti-reflective coatings, optical sensors, and laser systems.

Was this tool helpful?