Calculate the angle of refraction using Snell's Law. Enter the angle of incidence and the refractive indices of the two media to find out how much a ray of light bends when it crosses the boundary. The calculator also shows the critical angle and flags total internal reflection.
When light passes from one transparent medium into another, it changes speed. This speed change causes the ray to bend at the boundary between the two media. The relationship between the incident angle and the refracted angle is given by Snell's Law:
Where n1 is the refractive index of the first medium, n2 is the refractive index of the second medium, theta1 is the angle of incidence (measured from the normal to the surface), and theta2 is the angle of refraction (also measured from the normal). Rearranging to solve for the angle of refraction:
Light travels from air (n1 = 1.000) and strikes a water surface at an angle of incidence of 30 degrees (measured from the normal).
The refracted ray travels at 22.03 degrees from the normal inside the water, bending towards the normal because water is optically denser than air (n2 > n1).
| Material | Refractive Index (n) | Notes |
|---|---|---|
| Vacuum | 1.000 (exact) | Speed of light is exactly c |
| Air (at STP) | 1.000293 | Treated as 1.000 for most calculations |
| Water at 20 degrees C | 1.333 | At 589 nm (sodium D-line) |
| Acrylic (PMMA) | 1.490 | Common in lenses and displays |
| Crown Glass | 1.520 | Standard optical glass |
| Flint Glass | 1.620 | Higher dispersion than crown glass |
| Diamond | 2.417 | High n causes strong sparkle (TIR inside gem) |
When light travels from a denser medium (higher n) to a less dense medium (lower n), there is a maximum angle of incidence beyond which no refracted ray exists and all light is reflected back into the denser medium. This is total internal reflection (TIR). The critical angle is given by:
For example, for glass (n = 1.520) to air (n = 1.000), the critical angle is arcsin(1/1.520) = 41.1 degrees. Any ray inside the glass hitting the surface at more than 41.1 degrees from the normal will be totally reflected. This principle is fundamental to the operation of optical fibres, prism binoculars, retroreflectors, and diamond cutting.
A common source of error is measuring angles from the surface rather than from the normal. The normal is an imaginary line perpendicular to the boundary surface at the point of incidence. All angles in Snell's Law must be measured from this normal line. An angle of incidence of 0 degrees means the ray hits the surface dead-on (perpendicular) and passes straight through with no bending, regardless of the refractive indices.
The refractive index of most materials is not exactly constant. It varies slightly with the wavelength (colour) of light, a phenomenon called dispersion. This is why a glass prism splits white light into a rainbow. The refractive indices listed in this calculator are standard values for the sodium D-line at 589 nm (yellow-orange). For precise optical design work, use wavelength-specific values from material datasheets.
Sources and method: Snell's Law (Willebrord Snellius, 1621; published by Rene Descartes, 1637). Refractive index values from CRC Handbook of Chemistry and Physics (standard sodium D-line, 589 nm). Critical angle derived from Snell's Law with theta2 = 90 degrees. This calculator applies to electromagnetic radiation (light) in isotropic, homogeneous media. Results assume monochromatic light at 589 nm unless otherwise noted.
This calculator provides results based on the standard Snell's Law formula. Real optical systems may be affected by surface coatings, material impurities, wavelength-dependent dispersion, temperature, and polarisation. For precision optical engineering, use manufacturer-supplied refractive index data and ray-tracing software.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use
Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.
© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.