TSE.
MathematicsFinanceHealthPhysicsEngineeringBrowse all

Physics · Optics · Optics & Light

Snell's Law Calculator

Calculates the refraction angle of light passing between two media using Snell's Law and their indices of refraction.

Calculator

Advertisement

Formula

n₁ is the refractive index of the first medium (dimensionless), θ₁ is the angle of incidence measured from the normal to the interface (degrees), n₂ is the refractive index of the second medium (dimensionless), and θ₂ is the angle of refraction in the second medium (degrees). The formula expresses conservation of the tangential component of the wave vector at a planar interface.

Source: Hecht, E. (2017). Optics (5th ed.). Pearson. Chapter 4.

How it works

When a wavefront moves from one transparent medium into another, its speed changes in proportion to the refractive index of each material. The refractive index n is defined as the ratio of the speed of light in a vacuum (c ≈ 3 × 10⁸ m/s) to the speed of light in the medium (v), so n = c/v. A higher refractive index means light travels more slowly in that medium. At a flat interface between medium 1 (index n₁) and medium 2 (index n₂), the boundary condition for the wave's electric field enforces that the tangential phase velocity must be continuous — which is exactly what Snell's Law encodes.

The governing equation is n₁ sin(θ₁) = n₂ sin(θ₂), where θ₁ is the angle of incidence and θ₂ is the angle of refraction, both measured from the normal (a line perpendicular to the surface). When light passes from a lower-index medium into a higher-index medium (e.g., air into glass), it bends toward the normal (θ₂ < θ₁). The reverse is also true: moving from a denser optical medium to a less dense one bends the ray away from the normal. This calculator also computes the critical angle θ_c = arcsin(n₂/n₁), which applies when n₁ > n₂. At incidence angles equal to or greater than θ_c, no transmitted ray exists and total internal reflection occurs — the physical principle behind optical fiber communication. Additionally, the Fresnel reflectance for both TE (s-polarized) and TM (p-polarized) light is computed using the Fresnel equations, giving the fraction of intensity reflected at the interface.

Practical applications span every branch of optics: designing camera lenses and microscope objectives requires precise ray tracing through multiple refracting surfaces, each governed by Snell's Law. In ophthalmology, corrective lens prescriptions depend on the refraction of light in the eye. In geophysics, the same law governs seismic wave refraction at subsurface boundaries. In fiber optics, total internal reflection keeps light trapped inside the core, enabling gigabit data transmission over thousands of kilometers.

Worked example

Problem: A ray of light travels through air (n₁ = 1.000) and strikes the flat surface of a glass block (n₂ = 1.520) at an angle of incidence of 45.0°. Find the angle of refraction.

Step 1 — Write Snell's Law: n₁ sin(θ₁) = n₂ sin(θ₂).

Step 2 — Substitute known values: 1.000 × sin(45.0°) = 1.520 × sin(θ₂).

Step 3 — Evaluate sin(45.0°): sin(45.0°) ≈ 0.7071.

Step 4 — Solve for sin(θ₂): sin(θ₂) = 0.7071 / 1.520 ≈ 0.4652.

Step 5 — Find θ₂: θ₂ = arcsin(0.4652) ≈ 27.7°. The ray bends toward the normal, as expected when entering a denser medium.

Critical angle check: Since n₂ > n₁ here, total internal reflection is not possible for light traveling in this direction. However, for light traveling from the glass back into air, θ_c = arcsin(1.000 / 1.520) ≈ 41.1° — any ray inside the glass hitting the surface beyond this angle is totally internally reflected.

Fresnel reflectance: At 45.0° incidence from air into glass (n = 1.520), the TE reflectance ≈ 9.2% and TM reflectance ≈ 3.8%. These values matter in anti-reflection coating design for camera lenses and solar panels.

Limitations & notes

Snell's Law in its standard form applies strictly to planar, isotropic, homogeneous interfaces between non-absorbing media. For absorbing materials (metals, semiconductors), the refractive index becomes complex, and the angle of refraction is no longer a simple real number — a generalized form using complex angles or transfer-matrix methods is needed. In anisotropic crystals (such as calcite or quartz), the refractive index depends on the polarization direction, leading to birefringence and double refraction that Snell's Law alone cannot describe. Very thin films, diffraction gratings, and meta-surfaces can redirect light in ways governed by modified phase-matching conditions rather than the classical law. Finally, at extremely high intensities (ultrafast lasers), nonlinear optical effects alter the effective refractive index dynamically. This calculator assumes lossless, isotropic media and angles strictly between 0° and 90°; entering an angle of 0° (normal incidence) is valid and produces θ₂ = 0°. If the computed sin(θ₂) exceeds 1, the result is undefined — indicating total internal reflection.

Frequently asked questions

What is the refractive index of common materials?

Vacuum has n = 1.000 exactly; air at standard conditions is approximately 1.0003. Common crown glass is around 1.52, flint glass 1.60–1.90, water at 20 °C is 1.333, and diamond is 2.417. Optical fiber cores typically use silica glass with n ≈ 1.46.

What happens when the angle of incidence exceeds the critical angle?

When light travels from a higher-index medium into a lower-index medium and the incident angle equals or exceeds the critical angle θ_c = arcsin(n₂/n₁), no transmitted ray exists — all light is reflected back into the first medium. This is called total internal reflection (TIR) and is the principle that keeps light guided inside optical fibers and produces the sparkle of diamonds.

How does Snell's Law relate to Fermat's Principle?

Fermat's Principle states that light travels between two points along the path that takes the least (or stationary) time. Snell's Law is a direct mathematical consequence: minimizing the travel time across an interface with differing wave speeds yields exactly the n₁ sin(θ₁) = n₂ sin(θ₂) relation. Both descriptions are equivalent and self-consistent.

Why is the angle measured from the normal rather than the surface?

Using the normal (perpendicular to the surface) as the reference direction is a universal convention in optics because it makes the law symmetric and valid regardless of the surface orientation. Measuring from the surface itself would require different formulas for different surface tilts. The normal-based convention also connects naturally to the physics of wave propagation and the boundary conditions of Maxwell's equations.

Can Snell's Law be applied to sound waves or seismic waves?

Yes — the same mathematical form applies to any wave crossing an interface between media with different propagation speeds. For seismic waves, n₁ and n₂ are replaced by the inverse wave speeds in each geological layer, and the refracted wave bends in exact analogy with light. This principle underlies seismic refraction surveys used in earthquake science and petroleum exploration.

Last updated: 2025-01-15 · Formula verified against primary sources.