Roboculator
Online CalculatorsCategoriesDate & EventsNews
Get Started
Online CalculatorsCategoriesDate & EventsNewsGet Started
Roboculator

Smart calculators for every challenge. Free, fast, and private.

Categories

  • Finance
  • Health
  • Math
  • Construction
  • Conversion
  • Everyday Life

Popular Tools

  • Date & Events
  • Loan Calculator
  • BMI Calculator
  • Percentage Calc
  • Latest News
  • Search All

Resources

  • Glossary
  • Topic Tags
  • News & Insights

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Editorial Policy
  • Disclaimer
© 2026 Roboculator. All rights reserved.
Roboculator

roboculator.com

  1. Home
  2. /Physics
  3. /Geometric Optics Calculators
  4. /Snell's Law Calculator

Snell's Law Calculator

Last updated: March 17, 2026

Calculator

Results

Enter values to see results

Angle of Refraction θ₂

—

°

Critical Angle θc

—

°

Total Internal Reflection

—

Results

Enter values to see results

Angle of Refraction θ₂

—

°

Critical Angle θc

—

°

Total Internal Reflection

—

Snell's Law Calculator computes the angle of refraction when light passes from one medium to another, using the fundamental law of refraction. It also determines the critical angle for total internal reflection (TIR) and alerts you when TIR occurs — a phenomenon that underlies fiber optics, diamond brilliance, and mirages.

Snell's Law states $$n_1 \sin\theta_1 = n_2 \sin\theta_2$$ and is one of the most important equations in all of optics, governing how light bends at every interface between transparent materials.

How It Works

Snell's Law (also known as the law of refraction) relates the angles and refractive indices at an interface:

$$n_1 \sin\theta_1 = n_2 \sin\theta_2$$

Solving for the angle of refraction:

$$\theta_2 = \arcsin\left(\frac{n_1 \sin\theta_1}{n_2}\right)$$

Where:

  • n₁ — refractive index of the incident medium
  • θ₁ — angle of incidence (measured from the surface normal)
  • n₂ — refractive index of the refracted medium
  • θ₂ — angle of refraction

When light travels from a denser medium to a less dense medium (n₁ > n₂), the refracted ray bends away from the normal (θ₂ > θ₁). At a special angle called the critical angle, the refracted ray grazes along the interface (θ₂ = 90°):

$$\theta_c = \arcsin\left(\frac{n_2}{n_1}\right)$$

For angles of incidence greater than θc, no refraction occurs — all light is reflected back into the denser medium. This is total internal reflection (TIR), and it is the operating principle of optical fibers, which trap light inside a glass core by ensuring the incidence angle always exceeds the critical angle.

TIR only occurs when n₁ > n₂ (light going from a denser to a less dense medium). When n₁ < n₂, refraction always occurs and the light bends toward the normal.

Common refractive indices: air ≈ 1.000, water ≈ 1.333, glass ≈ 1.5–1.9, diamond ≈ 2.417. Diamond's extremely high refractive index gives a critical angle of only 24.4°, causing extensive TIR and the characteristic sparkle.

Understanding Your Results

The angle of refraction θ₂ shows the direction of the transmitted ray in the second medium. If the calculator returns −1 for θ₂, total internal reflection occurs and no refracted ray exists.

The critical angle is displayed only when n₁ > n₂ (TIR is possible). It is the maximum angle of incidence for which refraction still occurs. The TIR status tells you clearly whether total internal reflection is happening at the given angle.

Worked Examples

Glass to Air — Refraction Below Critical Angle

Inputs

n11.5
theta130
n21

Results

theta248.5904
critical angle41.8103
tir statusNo — Below critical angle (41.8°)

Light in glass (n = 1.5) hitting the air interface at 30° refracts to 48.6° in air. The critical angle is 41.8°, so TIR does not occur. The light bends away from the normal as expected when entering a less dense medium.

Glass to Air — Total Internal Reflection

Inputs

n11.5
theta150
n21

Results

theta2-1
critical angle41.8103
tir statusYES — Total Internal Reflection occurs

At 50° incidence (above the critical angle of 41.8°), sin(θ₂) = 1.5 × sin(50°)/1.0 = 1.149 > 1, which is impossible. Total internal reflection occurs — all light is reflected back into the glass.

Frequently Asked Questions

Snell's Law is the law of refraction: $$n_1 \sin\theta_1 = n_2 \sin\theta_2$$. It describes how light changes direction when passing between two media with different refractive indices. The law was formulated by Willebrord Snellius in 1621 and independently by René Descartes.

Total internal reflection (TIR) occurs when light travels from a denser medium to a less dense medium at an angle exceeding the critical angle. All light is reflected back — none is transmitted. TIR is the basis of fiber optics, prism-based periscopes, and the brilliance of diamonds.

The critical angle is $$\theta_c = \arcsin\left(\frac{n_2}{n_1}\right)$$. It only exists when n₁ > n₂. For glass (n = 1.5) to air (n = 1.0), θc = arcsin(1/1.5) = 41.8°. For diamond to air, θc = arcsin(1/2.417) = 24.4°.

The refractive index n = c/v is the ratio of the speed of light in vacuum to its speed in the medium. Air has n ≈ 1.000, water n ≈ 1.333, crown glass n ≈ 1.52, flint glass n ≈ 1.62, and diamond n ≈ 2.417. Higher n means light travels slower and bends more.

Yes. Snell's Law applies to any wave phenomenon at an interface between two media, including sound waves, seismic waves, and electromagnetic waves of all frequencies. The refractive indices are replaced by the appropriate wave speed ratios for each type of wave.

Diamond has a very high refractive index (n = 2.417), giving a critical angle of only 24.4°. Light entering the diamond undergoes multiple total internal reflections before exiting through the top facets. Combined with strong dispersion (different wavelengths refract differently), this creates the characteristic fire and brilliance.

Sources & Methodology

Hecht, E. (2017). Optics, 5th Edition. Pearson. | Born, M. & Wolf, E. (1999). Principles of Optics, 7th Edition. Cambridge University Press. | HyperPhysics — Snell's Law: http://hyperphysics.phy-astr.gsu.edu/hbase/geoopt/refr.html
R

Roboculator Team

The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.

How helpful was this calculator?

Be the first to rate!

Related Calculators

Lens Calculator

Geometric Optics Calculators

Mirror Equation Calculator

Geometric Optics Calculators

Magnification Calculator

Geometric Optics Calculators

Focal Length Calculator

Geometric Optics Calculators

Lens Maker Equation Calculator

Geometric Optics Calculators

Index of Refraction Calculator

Geometric Optics Calculators