Snell's Law Calculator
Calculate refracted angle or index of refraction using Snell's law. Supports air, water, glass, and custom media with step-by-step optics.
Snell's Law Calculator
Background.
The Snell's law calculator determines the angle of refraction when light passes from one transparent medium into another, or solves for the unknown refractive index when the angles are measured experimentally. It is the fundamental quantitative relationship of geometric optics at planar interfaces, governing everything from the apparent bending of a swimming-pool straw to the design of fiber-optic cables, camera lenses, and ophthalmic implants. Because refractive index varies with wavelength, Snell's law also underlies the dispersion of white light into spectra by prisms. Students in physics, chemistry, and engineering programs encounter this law in introductory optics, and professionals in photonics, materials science, and vision science use it routinely to model light propagation across boundaries.
The search audience includes high school students completing ray-diagram assignments, undergraduate physics majors verifying critical-angle calculations for total internal reflection, and optical engineers computing prism deviation angles. Divers and spearfishers search for refraction calculators to understand why objects underwater appear closer than they are. Gemologists use refractive index measurements to identify minerals. The calculation itself requires only two angles and two refractive indices, but the conceptual richness—phase velocity, optical path length, evanescent waves at supercritical angles—makes Snell's law a gateway to deeper optics. Calculator demand is therefore steady rather than seasonal, driven by perennial curricula and ongoing technical applications.
The law is named after Willebrord Snellius, who discovered the relationship between angles and refractive powers around 1621, though he did not publish it in the modern sine form. René Descartes derived the law theoretically in 1637 using a particle model of light and the conservation of momentum parallel to the interface, publishing it in La Dioptrique. The correct derivation from wave theory, which explains why light slows in denser media, was provided by Christiaan Huygens in 1678 using his principle of secondary wavelets. The modern understanding based on Maxwell's equations and boundary conditions confirms that the tangential component of the wave vector is continuous across the interface, which is equivalent to the constancy of n sin θ.
In contemporary metrology, refractive indices are tabulated by NIST and other national laboratories for standard wavelengths such as the helium d-line at 587.6 nanometers and the mercury e-line at 546.1 nanometers. These values are essential for designing achromatic lens systems where different wavelengths must focus at the same point. Snell's law also governs acoustic and seismic wave refraction, with the refractive index replaced by the ratio of wave speeds in the two media. The calculator focuses on optical applications but the underlying mathematics applies to any wave crossing a boundary between media with different propagation speeds. Fiber-optic communication networks exploit total internal reflection, a direct consequence of Snell's law, to guide light through glass fibers with losses below 0.2 decibels per kilometer. In ophthalmology, surgeons calculate refraction at the cornea-aqueous humor interface when planning laser-assisted in situ keratomileusis procedures, where reshaping the corneal curvature changes its effective refractive power according to Snell's law at each tissue boundary. Gemological laboratories use refractive index measured via Snell's law as a primary identification criterion, with values accurate to ±0.001 distinguishing natural diamonds from cubic zirconia simulants.
What is snell's law calculator?
Snell's law relates the angles of incidence and refraction for a wave crossing a planar interface between two isotropic media. In optics, it is expressed as n₁ sin θ₁ = n₂ sin θ₂, where n₁ and n₂ are the refractive indices of the first and second media, θ₁ is the angle of incidence measured from the normal to the interface, and θ₂ is the angle of refraction also measured from the normal. The refractive index n of a medium is the ratio of the speed of light in vacuum c to the phase velocity v of light in the medium, n = c/v. It is dimensionless and typically ranges from 1.00029 for air at standard conditions to 2.42 for diamond at visible wavelengths.
The law assumes monochromatic light and isotropic, homogeneous media. For anisotropic crystals such as calcite, the refractive index depends on polarization and propagation direction, and Snell's law must be generalized. At grazing incidence or when n₁ > n₂, there exists a critical angle θ_c = arcsin(n₂/n₁) beyond which no refracted ray exists and total internal reflection occurs. This phenomenon is the basis of fiber-optic communication and prism binoculars. The law is exact within classical electromagnetism and holds for any wave type, including sound and water waves, provided the phase velocity changes at the boundary.
How to use this calculator.
- Identify the refractive index n₁ of the medium from which the light is incident.
- Measure or specify the angle of incidence θ₁ from the surface normal.
- Identify the refractive index n₂ of the medium into which the light enters.
- Enter the three known values into the calculator.
- Select the unknown quantity: refracted angle, incident angle, or either refractive index.
- Review the computed angle, noting whether it is real or indicates total internal reflection.
- For dispersive media, verify that the refractive index corresponds to your wavelength of interest.
The formula.
Snell's law can be derived from Maxwell's equations by enforcing electromagnetic boundary conditions at a planar interface. The tangential components of the electric and magnetic fields must be continuous across the boundary. For a plane wave incident at angle θ₁, the phase matching condition requires that the projection of the wave vector onto the interface be the same on both sides. Since the magnitude of the wave vector in medium i is k_i = n_i ω/c, the tangential component is k_i sin θ_i. Equating the tangential components gives n₁ sin θ₁ = n₂ sin θ₂, which is Snell's law.
An alternative derivation, due to Fermat, uses the principle of least time. Light traveling from a fixed point in medium 1 to a fixed point in medium 2 will take the path that minimizes the total travel time. If the interface is planar, the time is t = (n₁ d₁)/c + (n₂ d₂)/c, where d₁ and d₂ are the geometric path lengths in each medium. Minimizing t with respect to the point where the ray crosses the interface yields precisely n₁ sin θ₁ = n₂ sin θ₂. This variational derivation shows that Snell's law is not a consequence of force laws but of the wave nature of light and the stationarity of optical path length.
The critical angle for total internal reflection follows directly from Snell's law. When n₁ > n₂, the maximum possible value of sin θ₂ is 1, occurring when θ₂ = 90 degrees. Setting sin θ₂ = 1 gives sin θ_c = n₂/n₁. For angles of incidence greater than θ_c, the sine of the refracted angle would exceed 1, which is impossible for a real angle. The refracted wave then becomes evanescent, decaying exponentially away from the interface rather than propagating into the second medium. This evanescent field is exploited in total internal reflection fluorescence microscopy and in prism couplers for integrated optics.
A worked example.
A beam of yellow light strikes the flat surface of a swimming pool from air at an angle of 30.0 degrees measured from the vertical normal. The refractive index of air is approximately 1.00 and that of water is 1.33. Applying Snell's law, n₁ sin θ₁ = n₂ sin θ₂, substitute the known values: 1.00 × sin(30.0°) = 1.33 × sin θ₂. Since sin(30.0°) equals 0.500, the right side becomes 1.33 sin θ₂ = 0.500. Divide both sides by 1.33 to obtain sin θ₂ = 0.37594. Taking the inverse sine gives θ₂ = 22.08 degrees, which rounds to 22.1 degrees. The refracted ray bends toward the normal because water is optically denser than air. This result explains why a swimming-pool floor appears closer to the surface than it actually is: the brain interprets the light as having traveled in a straight line, misjudging the object's true depth by the angular compression caused at the air-water interface.
Frequently asked questions.
What is the refractive index and how is it measured?
Why does light bend when entering a different medium?
What is total internal reflection and when does it occur?
Does Snell's law apply to all types of waves?
How does wavelength affect refraction?
What is the critical angle for a glass-to-air interface?
Can Snell's law predict the path of light through a lens?
Why do objects underwater appear closer to the surface than they are?
What happens at normal incidence?
Is Snell's law consistent with the conservation of energy?
References& sources.
- [1]Hecht, E. (2017). Optics, 5th ed. Pearson. Ch. 4.
- [2]NIST (2010). "Refractive Index of Silica Glass." NIST Standard Reference Data.
- [3]Born, M. & Wolf, E. (1999). Principles of Optics, 7th ed. Cambridge University Press. Ch. 1.
- [4]Huygens, C. (1690). Traité de la Lumière. Pierre van der Aa. (English trans., Treatise on Light, 1912, Dover).
- [5]Pedrotti, F.L., Pedrotti, L.M., & Pedrotti, L.S. (2007). Introduction to Optics, 3rd ed. Pearson. Ch. 2.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled