Snell’s Law Refraction Calculator
Calculate the angle of refraction when light passes between two materials, the critical angle and whether total internal reflection occurs.
This calculator applies an idealised textbook model with SI units. Real systems can differ because of friction, air resistance, temperature, material properties and measurement uncertainty.
How to use this calculator
Enter the refractive index of the material the light starts in and the material it enters, and the angle between the incoming ray and the normal (the line perpendicular to the surface). Common values: vacuum 1, air 1.0003, water 1.333, glass 1.5, diamond 2.42. The calculator gives the refracted angle, or reports total internal reflection.
Formula
Snell's law: n₁ sin θ₁ = n₂ sin θ₂, so θ₂ = arcsin(n₁ sin θ₁ ÷ n₂). Critical angle (when n₁ > n₂): θc = arcsin(n₂ ÷ n₁). Speed of light in a medium v = c ÷ n.
Calculator credits
Calculator developmentJulia Edwards
Editorial supervisionSamad Aslam Khan
Expert reviewHiraMPhil Physics, Computational Physicist
Published byThe Calculatorz
Last updated
Read how we research, test, review and correct our calculators in our editorial policy.
Frequently asked questions
Why does light bend?
Light travels at different speeds in different materials. When one side of a wavefront enters a slower material first, the wave turns, just as a car slows when one wheel hits sand.
Does light bend towards or away from the normal?
Towards the normal when it slows down (entering a higher index), and away from it when it speeds up.
What is total internal reflection?
When light tries to leave a denser material at more than the critical angle, none of it escapes and it all reflects. Optical fibres use this to carry light.
What is the refractive index?
The ratio of the speed of light in a vacuum to its speed in the material. Water's 1.333 means light travels 1.333 times slower in water.
Why do pools look shallower than they are?
Light from the bottom bends away from the normal as it leaves the water, so the bottom appears higher, about three quarters of its real depth.
Why does diamond sparkle?
Its high refractive index (2.42) gives a small critical angle of about 24°, so light reflects internally many times before escaping.
References & methodology sources
These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.
- Ling, S. J., Moebs, W., & Sanny, J. (2016). Refraction. In University physics volume 3 (Section 1.3). OpenStax. View source
- Urone, P. P., & Hinrichs, R. (2022). College physics 2e. OpenStax. View source
- Mohr, P. J., Newell, D. B., Taylor, B. N., & Tiesinga, E. (2025). CODATA recommended values of the fundamental physical constants: 2022. Journal of Physical and Chemical Reference Data, 54, 033105. View source
- Bureau International des Poids et Mesures. (2019). The International System of Units (SI) (9th ed.). View source