Angle of Refraction (Snell’s Law) Calculator
Refraction & Boundary Evaluation
What Is an Angle of Refraction Calculator?
An angle of refraction calculator finds the angle at which light bends when it passes from one material into another. It uses Snell’s law, n1 sin θ1 = n2 sin θ2, with the two refractive indices and the angle of incidence. This tool also flags total internal reflection and shows the critical angle when it applies.
A refractive index (n) tells you how much a material slows light compared with a vacuum. Water has an index of about 1.333, so light travels slower in water than in air. When light crosses the boundary at an angle, that change in speed makes the ray bend.
Along with the refracted angle, the calculator shows how much the ray turned, the speed ratio between the two materials, and a label for the type of bending. It treats each material as having one fixed index. Real materials vary slightly with wavelength and temperature.
How the Snell’s Law Formula Works
Snell’s law links the angle of incidence to the angle of refraction:
The calculator solves for the refracted angle:
- n1: refractive index of Medium 1, where the light starts.
- n2: refractive index of Medium 2, where the light enters.
- θ1: angle of incidence, measured from the normal.
- θ2: angle of refraction, also measured from the normal.
The normal is an imaginary line at a right angle to the boundary surface. If (n1/n2) × sin θ1 is greater than 1, no refracted ray exists, and the calculator reports total internal reflection. When n1 is greater than n2, it also shows the critical angle:
The calculator also works out the angular deflection and the phase speed ratio:
The summary turns the speed ratio into a percentage. If light slows down, the change is (1 − n1/n2) × 100. If it speeds up, the change is (n1/n2 − 1) × 100.
Worked Example: Air to Water at 30°
The calculator starts with air (n1 = 1.000293), water (n2 = 1.333), and a 30° angle of incidence.
- Index ratio: 1.000293 ÷ 1.333 ≈ 0.7504.
- Sine of the incidence angle: sin 30° = 0.5.
- Multiply: 0.7504 × 0.5 ≈ 0.3752.
- Inverse sine: arcsin(0.3752) ≈ 22.04°.
The calculator then shows a deflection of 7.96° and a speed ratio of 0.7504×. The regime label reads “Bending Toward Normal,” and the summary says light slows down by 25.0%. No critical angle appears, because light is moving into a higher-index material.
How to Use the Angle of Refraction Calculator
- Pick Medium 1 (Incident) from the list. This fills in n1 for you.
- Or type your own value into Refractive Index (n1). It must be 1.0 or higher.
- Pick Medium 2 (Refracting), or type a value into Refractive Index (n2).
- Enter the Angle of Incidence (θ1), measured from the normal.
- Choose the Angle Unit: degrees or radians.
- Click Calculate Refraction. Click Reset to return to air, water, and 30°.
If you type an index that matches a preset, the menu switches to that material. Any other value switches it to Custom Index.
The large number at the top is the angle of refraction. Degrees show two decimal places, and radians show four. If the result reads “TIR (No Ray),” the light reflects back instead of passing through. An index below 1.0, a blank field, or an angle outside 0–90° (0–1.5708 rad) shows “Error.”
How to Read Your Refraction Result
Optical Regime Labels
| Label | When It Appears |
|---|---|
| Normal Incidence (Unrefracted) | The angle of incidence is 0°, so the ray goes straight through. |
| Bending Toward Normal | n2 is greater than n1. |
| Bending Away from Normal | n2 is less than n1. |
| Grazing / Critical Refraction (90°) | The refracted ray runs along the surface at 90°. |
| Normal Refraction | Both indices are equal, so the ray does not bend. |
| Total Internal Reflection | (n1/n2) × sin θ1 is greater than 1. |
Example Scenarios
| Setup | θ1 | Result | Critical Angle |
|---|---|---|---|
| Air → Water | 30° | 22.04° | Not shown |
| Water → Air | 30° | 41.78° | 48.63° |
| Water → Air | 60° | TIR (No Ray) | 48.63° |
In the last case, the calculated sin(θ2) is 1.1541. A sine cannot be greater than 1, so no refracted angle exists.
Preset Refractive Indices
| Material | Index (n) |
|---|---|
| Vacuum | 1.0 |
| Air (STP) | 1.000293 |
| Water (20°C) | 1.333 |
| Ethanol | 1.361 |
| Acrylic / PMMA | 1.49 |
| BK7 / Crown Glass | 1.517 |
| Polycarbonate | 1.586 |
| Dense Flint Glass | 1.65 |
| Diamond | 2.417 |
Common Mistakes
- Measuring from the surface. Both angles are measured from the normal. If your diagram measures 60° from the surface, enter 30°.
- Swapping the media. Medium 1 is where the light starts. Swapping them changes the answer and can create or remove total internal reflection.
- Mixing units. The angle unit applies to both your input and the results. In radians mode, enter 0.5236, not 30.
Frequently Asked Questions
What is Snell’s law?
Snell’s law describes how light bends at the boundary between two materials. It states that n1 sin θ1 = n2 sin θ2. If you know both refractive indices and the angle of incidence, you can solve for the angle of refraction. That is exactly what this calculator does.
What is total internal reflection?
Total internal reflection happens when light cannot leave a material and reflects back instead. It only occurs when light moves from a higher index to a lower one, such as from water to air. It also needs an angle of incidence above the critical angle. The calculator then shows “TIR (No Ray)” in place of an angle.
How do I find the critical angle?
The critical angle equals arcsin(n2/n1), and it only exists when n1 is greater than n2. For water to air, it is about 48.63°. The calculator shows it automatically whenever Medium 1 has the higher index. At exactly that angle, the refracted ray runs along the surface at 90°.
Why does light bend toward the normal in water?
Light bends toward the normal because it slows down when it enters a higher-index material. Water’s index is higher than air’s, so the ray turns closer to the normal line. Going the other way, from water into air, light speeds up and bends away from the normal.
Why must the refractive index be at least 1.0?
The calculator only accepts indices of 1.0 or higher, which matches a vacuum and ordinary transparent materials. An index of 1.0 means light travels at its vacuum speed. Values below 1.0 trigger an error message, so check your number if you see one.
Does the color of light change the result?
In real materials, yes, slightly. A material’s refractive index changes a little with wavelength, which is called dispersion. That is why prisms split white light into colors. This calculator uses one index per material, so it gives a single-wavelength result. For more precise work, enter the index for your exact wavelength as a custom value.