Audited ·Last updated 27 Jul 2026·5 citations·Tier 1·0 uses

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

Solve for
Solved unknown (angle or refractive index)
22.0824

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.

  1. Identify the refractive index n₁ of the medium from which the light is incident.
  2. Measure or specify the angle of incidence θ₁ from the surface normal.
  3. Identify the refractive index n₂ of the medium into which the light enters.
  4. Enter the three known values into the calculator.
  5. Select the unknown quantity: refracted angle, incident angle, or either refractive index.
  6. Review the computed angle, noting whether it is real or indicates total internal reflection.
  7. For dispersive media, verify that the refractive index corresponds to your wavelength of interest.

The formula.

n₁ sin θ₁ = n₂ sin θ₂

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.

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.

n11
n21.33
theta130
theta222.08

Frequently asked questions.

What is the refractive index and how is it measured?
The refractive index n of a material is the ratio of the speed of light in vacuum c to the phase velocity v of light in the material, expressed as n = c/v. Because v is always less than c in material media, n is always greater than 1 for transparent substances at optical frequencies. It is measured experimentally by determining the ratio of the sine of the incident angle to the sine of the refracted angle at an interface with a medium of known index, using Snell's law directly. Precision refractometers achieve uncertainties of 10⁻⁵ or better by measuring the critical angle for total internal reflection at a prism-sample interface. NIST and other national laboratories maintain calibrated refractive index data for standard glasses and optical liquids at specific spectral lines such as the helium d-line at 587.6 nanometers.
Why does light bend when entering a different medium?
Light bends because its phase velocity changes at the boundary. In a denser medium, light interacts with the electrons of the material, causing the wavefront to lag relative to the portion still in the less dense medium. If the wavefront approaches the interface at an oblique angle, the part that enters first slows down while the part still in the first medium continues at the higher speed, pivoting the wavefront direction toward the normal. This wave-optics explanation, first articulated by Huygens in 1678 using his construction of secondary wavelets, is equivalent to the boundary-condition derivation from Maxwell's equations. The bending is not caused by a force on photons but by the continuity of the wave's phase across the interface combined with the change in propagation speed.
What is total internal reflection and when does it occur?
Total internal reflection occurs when light traveling in a medium with higher refractive index n₁ strikes an interface with a lower-index medium n₂ at an angle of incidence exceeding the critical angle θ_c = arcsin(n₂/n₁). Under these conditions, Snell's law would require sin θ₂ > 1, which is impossible for a real propagating wave in the second medium. Instead, the incident energy is entirely reflected back into the first medium, with an evanescent wave decaying exponentially into the second medium over a distance of roughly one wavelength. This phenomenon is the operating principle of optical fibers, where light is trapped inside a high-index core by total internal reflection at the core-cladding boundary. It is also used in prism binoculars to fold the optical path and in fingerprint sensors that detect frustrated total internal reflection at a glass-air interface.
Does Snell's law apply to all types of waves?
Yes, Snell's law applies to any wave that changes speed at a boundary between two media, provided the media are homogeneous and isotropic. Seismic waves refract at boundaries between geological layers with different acoustic impedances, a principle used in oil exploration and earthquake studies. Ocean waves refract as they move from deep to shallow water because their phase velocity depends on depth. Sound waves refract at temperature gradients in the atmosphere, causing sound to carry farther downwind than upwind. In each case, the generalized Snell's law relates the angles to the ratio of wave speeds, with the refractive index replaced by the ratio v₁/v₂. Anisotropic media, where wave speed depends on direction, require a tensor generalization of the law.
How does wavelength affect refraction?
The refractive index of most transparent materials varies with wavelength, a property called dispersion. Shorter wavelengths, such as blue light, typically experience a higher refractive index than longer wavelengths, such as red light. Consequently, blue light bends more sharply at an interface than red light. In a prism, this differential bending separates white light into a spectrum. Snell's law itself contains no wavelength dependence, but the values of n₁ and n₂ must be specified at the wavelength of interest. For precise optical design, engineers use dispersion formulas such as the Sellmeier equation, which models n(λ) as a function of wavelength using coefficients fitted to measured data for each glass type.
What is the critical angle for a glass-to-air interface?
For crown glass with refractive index n = 1.52 at visible wavelengths and air with n ≈ 1.00, the critical angle is θ_c = arcsin(1.00/1.52) = arcsin(0.6579) = 41.1 degrees. Any ray inside the glass striking the surface at an angle greater than 41.1 degrees from the normal undergoes total internal reflection. Flint glass, with a higher index near 1.66, has a smaller critical angle of about 37.0 degrees. Diamond, with n = 2.42, has a critical angle of only 24.4 degrees, which causes light to reflect multiple times inside a cut gemstone before exiting, contributing to its brilliance. The critical angle is independent of the polarization of light for isotropic media but depends on the specific wavelength because n varies with color.
Can Snell's law predict the path of light through a lens?
Snell's law determines the refraction at each spherical surface of a lens, and the thin-lens equation is essentially the integrated result of applying Snell's law twice in the paraxial limit. At each surface, the incident angle is determined by the ray height and the surface slope. Snell's law gives the refracted angle inside the glass, and the process repeats at the second surface. For thin lenses, these two applications combine algebraically into the lensmaker's equation. For thick lenses or lenses with large apertures, ray-tracing software applies Snell's law iteratively at many points across each surface to compute the exact ray paths, accounting for spherical aberration and coma that the thin-lens approximation ignores.
Why do objects underwater appear closer to the surface than they are?
When light from an underwater object reaches the eye, it refracts away from the normal as it passes from water into air because air has a lower refractive index. The eye's visual system assumes light travels in straight lines and traces the rays backward along the incoming direction, intersecting at a virtual image point that is shallower than the actual object. For a flat water surface and small viewing angles, the apparent depth d_apparent equals the real depth divided by the refractive index of water, approximately 1.33. A fish at 2.00 meters depth therefore appears to be only about 1.50 meters below the surface. This angular compression is a direct consequence of Snell's law and is responsible for the optical illusion experienced by spearfishers and divers.
What happens at normal incidence?
At normal incidence, the angle of incidence θ₁ is zero degrees, so sin θ₁ = 0. Snell's law then requires n₂ sin θ₂ = 0, which means θ₂ is also zero degrees. The light continues undeflected through the interface, traveling along the normal. Although there is no bending, the wavelength and phase velocity change according to λ_medium = λ_vacuum/n and v = c/n. The reflection and transmission coefficients at normal incidence depend on the refractive indices and are given by the Fresnel equations. For light traveling from air to glass at normal incidence, approximately 4 percent of the intensity is reflected and 96 percent is transmitted, a ratio that determines the design of anti-reflection coatings.
Is Snell's law consistent with the conservation of energy?
Yes. The conservation of energy across the interface is expressed through the Fresnel equations, which determine the fractions of incident power reflected and transmitted. These equations are derived from Maxwell's boundary conditions and satisfy energy conservation exactly: the sum of reflected and transmitted power equals the incident power, minus negligible absorption in transparent media. Snell's law itself ensures phase matching along the interface, which is a kinematic constraint on the wave vectors. The dynamic conservation of energy is enforced separately by the field amplitudes. In total internal reflection, where no power propagates into the second medium, the incident power is entirely reflected, and the evanescent field carries no time-averaged energy away from the interface.

References& sources.

  1. [1]Hecht, E. (2017). Optics, 5th ed. Pearson. Ch. 4.
  2. [2]NIST (2010). "Refractive Index of Silica Glass." NIST Standard Reference Data.
  3. [3]Born, M. & Wolf, E. (1999). Principles of Optics, 7th ed. Cambridge University Press. Ch. 1.
  4. [4]Huygens, C. (1690). Traité de la Lumière. Pierre van der Aa. (English trans., Treatise on Light, 1912, Dover).
  5. [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
Coming soon