Angle of Refraction Calculator

This calculator uses Snell's Law to work out how much a ray of light bends when it crosses the boundary between two transparent materials, such as air and water, or air and glass. You enter the angle of incidence in degrees, measured from the normal (the imaginary line perpendicular to the surface), then choose the incident medium and the refracted medium from a list of common materials, including vacuum or air, water, acrylic, crown glass, flint glass and diamond, or enter a custom refractive index for either side. The calculator returns the angle of refraction, plus the critical angle for that pairing of media, and tells you whether total internal reflection occurs at the angle you have entered. A detailed working panel shows every step of the Snell's Law calculation, from n1 sin(theta1) through to the final theta2, along with a plain-language summary of which way the ray bends and whether it is heading into a denser or less dense medium. Use it to check physics homework, to understand how lenses and prisms bend light, or to see why optical fibres and diamonds rely on total internal reflection to trap light inside them. Refractive index values shown are standard figures for yellow light at 589 nanometres; real materials vary slightly with wavelength, temperature and purity, so for precision optical design work, use manufacturer-supplied data.

Calculate.co.nz is proud to be partnered with Health Based Building, a leader in sustainable and health-conscious building innovation. With over a century of experience, they develop high-performance systems like Foreverbreathe Specification, Magnum Board, and Foreverbreathe Paints to support energy-efficient, non-toxic living environments. Their commitment to healthier homes aligns with our belief that informed choices lead to better outcomes for Kiwi households.
Calculate.co.nz partner: Health Based Building
Standard optics  Snell's Law (also known as the Snell-Descartes Law). Standard physics formula; no regulatory updates required.

1. Incident Ray

deg

2. Refracted Medium

Refraction Results

Angle of Incidence
-
From normal (theta 1)
Angle of Refraction
-
From normal (theta 2)
Critical Angle
-
For n1 to n2 boundary
Total Internal Reflection
-
Does TIR occur?

Snell's Law Working

n1 (medium 1)-
theta1 (angle of incidence)-
n1 x sin(theta1)-
n2 (medium 2)-
sin(theta2) = (n1 x sin(theta1)) / n2-
theta2 (angle of refraction)-

Light Behaviour

Light travels from-
Density change-
Ray bends-
Critical angle (if applicable)-
TIR possible?-
Transmitted ray-
Result: Enter values above to calculate.

How to Calculate the Angle of Refraction

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:

n1 sin(θ1) = n2 sin(θ2)

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:

θ2 = arcsin( n1 × sin(θ1) / n2 )

Worked Example

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).

Refractive Indices of Common Materials

MaterialRefractive Index (n)Notes
Vacuum1.000 (exact)Speed of light is exactly c
Air (at STP)1.000293Treated as 1.000 for most calculations
Water at 20 degrees C1.333At 589 nm (sodium D-line)
Acrylic (PMMA)1.490Common in lenses and displays
Crown Glass1.520Standard optical glass
Flint Glass1.620Higher dispersion than crown glass
Diamond2.417High n causes strong sparkle (TIR inside gem)

Total Internal Reflection and the Critical Angle

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:

θc = arcsin( n2 / n1 )   (only defined when n1 > n2)

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.

Angles Are Always Measured From the Normal

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.

Dispersion: Refractive Index Varies with Wavelength

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.

Related Calculators

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-19 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.