Snell's Law Calculator
Calculate angle of refraction
n₁ × sin(θ₁) = n₂ × sin(θ₂)
n₁ × sin(θ₁) = n₂ × sin(θ₂)What Is Snell's Law?
Snell's Law (also called the Law of Refraction) describes how light bends when it crosses the boundary between two media with different indices of refraction. When light moves from one medium to another, it changes speed and direction — this bending is refraction.
Formulated by Dutch mathematician Willebrord Snellius in 1621, the law relates the angle of incidence to the angle of refraction through the refractive indices of the two media. It is essential in optics, lens design, fiber optics, and corrective eyewear prescription calculations.
How to Use Snell's Law Calculator
- Enter the refractive index of the first medium (n₁). Air ≈ 1.0003, glass ≈ 1.5, water ≈ 1.33.
- Enter the angle of incidence (θ₁) in degrees — the angle between the incoming ray and the surface normal.
- Enter the refractive index of the second medium (n₂).
- Click Calculate to get the angle of refraction (θ₂) in degrees.
Formula & Explanation
n₁ × sin(θ₁) = n₂ × sin(θ₂)
θ₂ = arcsin(n₁ × sin(θ₁) / n₂)
n₁ = refractive index of medium 1
n₂ = refractive index of medium 2
θ₁ = angle of incidence (degrees)
θ₂ = angle of refraction (degrees)Total internal reflection occurs when n₁ > n₂ and θ₁ exceeds the critical angle θ_c = arcsin(n₂/n₁). This is the principle behind optical fibers.
Worked Examples
Air to Glass
Light hits glass (n₂ = 1.5) from air (n₁ = 1.0) at 45°. sin(θ₂) = 1.0 × sin(45°) / 1.5 = 0.7071 / 1.5 = 0.4714. θ₂ = arcsin(0.4714) ≈ 28.1°. The ray bends toward the normal as it enters the denser medium.
Water to Air
Light travels from water (n₁ = 1.33) to air (n₂ = 1.0) at 30°. sin(θ₂) = 1.33 × sin(30°) / 1.0 = 1.33 × 0.5 = 0.665. θ₂ = arcsin(0.665) ≈ 41.7°. The ray bends away from the normal entering the less dense medium.
Total Internal Reflection in Fiber Optics
Glass fiber (n₁ = 1.5) in air (n₂ = 1.0). Critical angle = arcsin(1.0/1.5) = arcsin(0.667) ≈ 41.8°. Any light hitting the fiber wall at > 41.8° is totally internally reflected — this is how data travels in fiber optic cables.