Snell's Law and Refraction Calculator
Angle of refraction between two media, the critical angle for total internal reflection and refractive index from two angles. Presets for air, water, glass and diamond.
Snell's law
When light passes from one transparent medium into another, its speed changes and its path bends. The relation between the angle of incidence and the angle of refraction is Snell's law:
n₁ × sin θ₁ = n₂ × sin θ₂
n₁ and n₂ are the refractive indices of the two media, θ₁ is the angle of incidence and θ₂ the angle of refraction. Both angles are measured from the normal, the line drawn perpendicular to the surface.
Refractive index
The refractive index is the ratio of the speed of light in vacuum to its speed in the medium: n = c / v. It is 1 in vacuum, 1.0003 in air, 1.333 in water, about 1.5 in glass and 2.419 in diamond. Light bends toward the normal when it enters a medium with a higher index and away from the normal when it enters one with a lower index.
Example
For light going from air into water at 45 degrees, sin θ₂ = 1 × sin 45° / 1.333 = 0.5305, so θ₂ = 32.0 degrees. The ray has moved 13 degrees closer to the normal. The speed of light in water is 299 792 / 1.333 = 224 900 km/s.
Critical angle and total internal reflection
Going from a higher index to a lower index, the angle of refraction is larger than the angle of incidence. As the angle of incidence grows, the refracted ray swings toward the surface, and at the critical angle given by sin θc = n₂ / n₁ it skims along it. At larger angles no light gets through at all: it is completely reflected. The critical angle is 48.6 degrees from water to air and 24.4 degrees from diamond to air. The sparkle of a diamond and optical fibres both rely on this effect.
Limits
The refractive indices are for yellow light of 589 nm and vary slightly with colour. The index of glass depends on the type, and the value in the list is approximate. The tool does not calculate the intensity of the reflected light.
Frequently asked questions
How do you calculate the angle of refraction from the angle of incidence?
Snell’s law gives a refracted angle of 19.47 degrees for incident angle 30 degrees and example refractive indices 1 and 1.5. Both angles are measured from the surface normal, the indices must suit the wavelength, and this ray model does not calculate reflected power or surface losses.
Related calculators
-
Physics
Lens and Mirror Equation Calculator
Image distance, magnification and image height for thin lenses and spherical mirrors: real or virtual, upright or inverted. Also finds focal length or object distance. -
Mathematics
Trigonometry Calculator: Sin, Cos, Tan and Inverses
Calculate sin, cos, tan, cot, sec and csc in degrees, radians or gradians. Use inverse functions to find angles within one turn. Free, no account needed. -
Physics
Wavelength, Speed and Frequency Calculator
Wavelength, frequency or wave speed from the wave equation v = f × λ. For sound, light, radio and water waves. With period and worked steps. -
Physics
Angular Velocity and Angular Acceleration Calculator
Angular velocity from angle and time, angular acceleration from a change in speed, final speed and number of turns, plus linear speed and accelerations. rpm and rad/s. -
Physics
Buoyant Force Calculator (Archimedes)
Buoyant force by Archimedes' principle. Will it float or sink, what fraction is submerged and what is its apparent weight. Density from weighing in air and in liquid. -
Physics
Circular Motion and Centripetal Force Calculator
Speed, angular velocity, period, frequency, centripetal acceleration and centripetal force in uniform circular motion. From speed, period, rpm or force.
Found a mistake or something missing?
If a value looks wrong, a size is missing or you need a feature, write to us and we will fix it.