Snell's Law Calculator Formula
Understand the math behind the snell's law calculator. Each variable explained with a worked example.
Formulas Used
Angle of Refraction
theta2 = asin(n1 * sin(theta1 * pi / 180) / n2) * 180 / piVariables
| Variable | Description | Default |
|---|---|---|
n1 | Refractive Index 1 | 1 |
theta1 | Angle of Incidence(°) | 30 |
n2 | Refractive Index 2 | 1.5 |
How It Works
Snell's Law
Snell's law describes how light bends when passing between media with different refractive indices.
Formula
n1 * sin(theta1) = n2 * sin(theta2)
Light bends toward the normal when entering a denser medium (higher n) and away from the normal when entering a less dense medium.
Worked Example
Light enters glass (n=1.5) from air (n=1) at 30 degrees.
n1 = 1theta1 = 30n2 = 1.5
- 01n1*sin(theta1) = n2*sin(theta2)
- 021*sin(30°) = 1.5*sin(theta2)
- 030.5 = 1.5*sin(theta2)
- 04sin(theta2) = 0.333
- 05theta2 = 19.47°
Ready to run the numbers?
Open Snell's Law Calculator