How it’s calculated
When light crosses the boundary between two transparent materials it changes speed and bends. Snell’s law relates the angles, measured from the normal (the line perpendicular to the surface), to the indices of refraction n = c/v of the two materials.
Going into a denser material (larger n) the ray bends toward the normal; into a less dense one it bends away. If n₁ > n₂ and θ₁ exceeds the critical angle there is total internal reflection: no light is refracted, which is how optical fibers and prisms work.
Example: light in air (n = 1.000293) hits water (n = 1.333) at 30°. sin θ₂ = 1.000293 × 0.5 ÷ 1.333 = 0.3752, so θ₂ = 22.04°. For diamond (2.419) into air, the critical angle is asin(1.000293 ÷ 2.419) = 24.426°, which is why diamonds sparkle.
Index values are from the OpenStax table (yellow light of about 589 nm; air at 0 °C and 1 atm, other materials at 20 °C) and vary slightly with wavelength and temperature.
Frequently asked questions
What is the angle of incidence measured from?
From the normal, an imaginary line at 90° to the surface, not from the surface itself. If you have the angle to the surface, subtract it from 90°.
What is total internal reflection?
When light travels from a denser to a less dense material (n₁ > n₂) at an angle larger than the critical angle, it cannot refract and is entirely reflected. The calculator reports this instead of an angle.
Why does a straw look bent in water?
Light from the part under water bends as it leaves the water, so the straw appears to be at a different position than it really is.
Can I use my own material?
Yes. Choose “Custom index…” for either medium and enter its refractive index, or pick “Unknown” for medium 2 and enter both angles to find n₂.
Embed this calculator
Add this free calculator to your own website. Copy the code below into your page’s HTML:
Need this calculator branded, changed or built around your own prices?See custom business solutions →
Sources
- University Physics Volume 3, §1.1 The Propagation of Light (Table 1.1: indices of refraction) — OpenStax
- University Physics Volume 3, §1.3 Refraction (Snell’s law) — OpenStax
- University Physics Volume 3, §1.4 Total Internal Reflection — OpenStax
Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.
Added · Last updated · How we check our calculators
Spotted a mistake or missing option? Report a problem· Suggest a calculator