CalcUnit Logo

Refraction Calculator

What is the Refraction Calculator?

What this calculator does

Enter the refractive indices of two media and an angle of incidence. The calculator returns the angle of refraction, a critical angle for the pair, and the speed of light in the second medium. Students, photographers, and fiber-optics beginners use it to predict how a light ray bends at a boundary.

Why light bends at all

Light travels at different speeds in different materials. When a ray crosses a boundary at an angle, the side of the wavefront that enters first changes speed first, and the whole ray swings toward a new direction. Refraction is that swing, measured precisely by Snell's law.

Angles are measured from the normal

Every angle on this page is measured between the ray and the normal, an imaginary line perpendicular to the surface. A ray arriving along the normal, at zero degrees, never bends no matter how different the media are. Measuring from the surface itself is the most common beginner error.

Snell's law, in plain words

The index of the first medium times the sine of the incidence angle equals the index of the second medium times the sine of the refraction angle. Entering a denser second medium shrinks the angle, bending the ray toward the normal; entering a rarer one grows it, bending away.

Reading the Angle of Refraction result

The Angle of Refraction field reports degrees to four decimal places. Compare it with your incidence angle: smaller means the second medium is optically denser, larger means rarer. If the two media had equal indices, the angle would come back unchanged and the boundary would be invisible.

Reading the Critical Angle result

The Critical Angle field follows a specific rule worth understanding. When the second medium is the denser of the pair, it shows the arcsine of the first index divided by the second. That is the incidence angle inside the denser medium at which light stops escaping and reflects internally instead.

When the Critical Angle shows zero

If the first medium is denser than the second, as in the glass-into-air example below, the field shows 0 rather than the escape angle. To read the critical angle for light leaving glass, swap the roles: enter air as Medium 1 and glass as Medium 2, and the field gives 41. 8103 degrees.

Reading the Speed of Light result

The Speed of Light in Medium 2 field divides 299,792,458 meters per second, the exact vacuum value NIST defines, by the second medium's index. In glass at index 1. 5 that gives 199,861,638. 6667 meters per second; in diamond the same light slows to barely 41 percent of its vacuum speed.

A pocket table of indices

Vacuum is exactly 1. 0 and air is 1. 0003, close enough to 1. 0 for nearly all work. Water is 1. 33, common crown glass about 1. 52, the page default glass 1. 5, and diamond 2. 417. Indices also shift slightly with wavelength, which is why prisms spread colors, but single values serve here.

Worked example: the page default

Air at 1. 0 into glass at 1. 5, arriving at 40 degrees. The refraction angle is 25. 3740 degrees, bent noticeably toward the normal. The critical angle reads 41. 8103 degrees, and light inside that glass travels at 199,861,638. 6667 meters per second.

Worked example: air into water

At 30 degrees from air into water at 1. 33, the ray bends to 22. 0824 degrees. The critical angle reads 48. 7535 degrees, which is why a swimmer looking up sees the whole above-water world compressed into a bright cone about 97. 5 degrees wide, with mirror-like reflections outside it.

Worked example: glass into air

Reverse the journey: from glass at 1. 5 into air at 1. 0, again at 30 degrees. The ray bends away from the normal to 48. 5904 degrees. The critical angle field shows 0 under this page's rule, and the speed result returns the full vacuum value of 299,792,458 meters per second.

Worked example: air into diamond

Diamond's index of 2. 417 bends a 40-degree ray all the way to 15. 4231 degrees, and light inside creeps along at 124,034,943. 3182 meters per second. The tiny critical angle of 24. 4397 degrees traps light inside cut stones, bouncing it back out the top, which is the physics behind a diamond's sparkle.

Total internal reflection

When light inside a dense medium strikes the boundary beyond the critical angle, none of it escapes; the surface becomes a perfect mirror. The refraction formula then has no real answer, because it would need a sine greater than 1. Any ray you enter past that point reflects instead of refracting.

Fiber optics run on that reflection

An optical fiber guides light for kilometers by total internal reflection, with rays zigzagging along a glass core whose critical angle against its cladding is comfortably exceeded. The air-against-glass critical angle computed here, 41. 8103 degrees, is the same physics in a simpler two-medium form.

The swimming-pool illusion

A pool floor looks shallower than it is because rays leaving the water bend away from the normal on their way to your eyes, and your brain extends them straight back. Spearfishing and reaching for submerged objects fail the same way: the object is always deeper and farther than it appears.

Common mistake: swapping the media

Snell's law is not symmetric. Putting the denser medium first when the ray actually starts in air reverses the bend, turning a 25. 3740-degree answer into something near 48 degrees with different inputs. Always set Medium 1 to where the light starts and Medium 2 to where it is going.

Common mistake: using degrees from the surface

A ray skimming at 10 degrees above a surface is at 80 degrees from the normal. Entering 10 because the problem mentions a shallow angle gives the bend for a near-perpendicular ray, which looks nothing like the setup. Subtract from 90 whenever an angle is quoted against the surface.

How the critical angle shrinks

The larger the contrast between the two indices, the smaller the critical angle. Water against air allows escape up to 48. 7535 degrees; glass closes the window at 41. 8103 degrees; diamond at 24. 4397 degrees. Small windows mean strong light trapping, which gem cutters and fiber designers both exploit.

Frequency stays, wavelength shortens

Crossing a boundary never changes light's frequency, which is why color survives refraction. The speed and wavelength shrink together by the index: green light of 550 nanometers in vacuum travels at about 414 nanometers of wavelength inside water. This page reports the speed change; the wavelength follows the same division.

Dispersion: one material, many indices

A single index is itself a simplification. Glass bends blue light slightly more than red, which is why its index for violet runs higher than for red and why prisms fan white light into spectra. This page takes the one index you enter as exact for your color of interest.

Precision in practice

Results show four decimal places, but published indices are usually good to two or three decimals, and they drift with temperature and wavelength. Two decimals on an angle is honest precision for design work. The exception is the speed in vacuum itself, which is exact by definition.

A ladder of bends from air into glass

Send rays from air at index 1. 0 into glass at 1. 5 and watch the bend grow. At 20 degrees the refraction angle is 13. 1801 degrees. At 60 degrees it is 35. 2644 degrees. At 80 degrees it is 41. 0364 degrees. The critical angle for this pair stays 41.

8103 degrees throughout, since it depends on the two indices, not on the incoming angle. Steeper rays bend more, but none escapes the pattern.

Worked example: air into crown glass at 50 degrees

Take air at 1. 0 into crown glass at 1. 52, arriving at 50 degrees. Snell's law formula gives the refraction angle as the arcsine of 1. 0 times the sine of 50 degrees divided by 1. 52, which is 30. 2634 degrees. The critical angle is the arcsine of 1. 0 over 1. 52, or 41. 1395 degrees.

Light inside that glass travels at 197231880. 2632 meters per second.

Worked example: light leaving water for glass

Take water at 1. 33 into crown glass at 1. 52, arriving at 45 degrees. The refraction angle is the arcsine of 1. 33 times the sine of 45 degrees divided by 1. 52, which is 38. 2226 degrees. The critical angle is the arcsine of 1. 33 over 1. 52, or 61. 0450 degrees.

Because the two indices are close, the bend is gentle, and the critical angle is wide.

Why does light bend when it changes medium

Why does light bend? It bends because it changes speed. The side of a wavefront that enters the slower medium first slows first, swinging the whole ray toward the normal, like a car turning when one wheel hits soft ground before the other. Entering a faster medium swings it the other way.

Snell's law turns that picture into an exact angle.

Frequency does not change in refraction

Does frequency change in refraction? It does not. The color of light is set by its frequency, and the frequency stays fixed as the ray crosses the boundary, so a red beam stays red under water. Speed and wavelength shrink by the refractive index instead. The critical angle water to air is quoted as 48. 6 degrees, using index 1.

333 for water, while this page's 1. 33 gives 48. 7535 degrees, beyond which light reflects, the fiber optics total internal reflection effect.

Where to go next

For the mirror side of the same ray, open the Reflection Calculator at reflection-calculator. For lenses, which bend light twice, once on entry and once on exit, try the Lens Calculator at lens-calculator. To connect the bending ray to the wave itself, the Wavelength Calculator at wavelength-calculator shows how speed, frequency, and wavelength fit together.

Each page keeps its own inputs, so carry your numbers across by hand.

With the pre-filled defaults — Refractive Index of Medium 1 (n₁) 1, Refractive Index of Medium 2 (n₂) 1. 5, Angle of Incidence 40° — the Refraction Calculator returns Angle of Refraction 25. 3740°, Critical Angle 41. 8103°, Speed of Light in Medium 2 199,861,638. 6667m/s.

Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.

How to Use the Refraction Calculator

  1. 1Find the Refractive Index of Medium 1 (n₁) field in the Media & Angle group and enter the index where the light starts, replacing the default 1.0.
  2. 2Find the Refractive Index of Medium 2 (n₂) field and enter the index of the medium the light enters, replacing the default 1.5.
  3. 3Find the Angle of Incidence field and enter the angle in degrees, measured from the normal, replacing the default 40.
  4. 4If your angle is quoted from the surface rather than the normal, subtract it from 90 before entering.
  5. 5Read the Angle of Refraction result in the Refraction Results group, reported in degrees to four decimal places.
  6. 6Read the Critical Angle result; remember it appears only when Medium 2 is denser, and shows the escape angle for light inside Medium 2.
  7. 7Read the Speed of Light in Medium 2 result, reported in meters per second.
  8. 8To find the critical angle for light leaving a material, enter air as Medium 1 and the material as Medium 2, then read the Critical Angle field.

Formula

a * b

This is the core equation the Refraction Calculator uses to calculate results. Enter values in the calculator above to see it in action.

Common Examples

ScenarioCalculationResult
Page default: air into glassn1 = 1.0, n2 = 1.5, incidence 40 degrees: theta2 = asin(sin(40) / 1.5)Refraction 25.3740 degrees, critical angle 41.8103 degrees, speed 199,861,638.6667 m/s
Air into watern1 = 1.0, n2 = 1.33, incidence 30 degrees: theta2 = asin(sin(30) / 1.33)Refraction 22.0824 degrees, critical angle 48.7535 degrees, speed 225,407,863.1579 m/s
Glass into airn1 = 1.5, n2 = 1.0, incidence 30 degrees: theta2 = asin(1.5 x sin(30))Refraction 48.5904 degrees, critical angle 0 (by the page rule), speed 299,792,458.0000 m/s
Air into diamondn1 = 1.0, n2 = 2.417, incidence 40 degrees: theta2 = asin(sin(40) / 2.417)Refraction 15.4231 degrees, critical angle 24.4397 degrees, speed 124,034,943.3182 m/s

Value Reference Table

See how the Angle of Refraction changes as Refractive Index of Medium 1 (n₁) moves across its typical range — every row below is calculated live with the same formula as the calculator above.

Refractive Index of Medium 1 (n₁)Angle of RefractionCritical AngleSpeed of Light in Medium 2
0.37.386211.5370199861638.6667
0.512.372319.4712199861638.6667
0.820.048832.2310199861638.6667
125.374041.8103199861638.6667
258.98700.0000199861638.6667
3—0.0000199861638.6667
4—0.0000199861638.6667

Practice Problems

Check your understanding of the Refraction Calculator with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

Air into water: Refractive Index of Medium 1 (n₁) 1, Refractive Index of Medium 2 (n₂) 1.33, Angle of Incidence 30° — work it out, then check the answer.

Show Answer
The calculator returns Angle of Refraction 22.0824°, Critical Angle 48.7535°, Speed of Light in Medium 2 225,407,863.1579m/s for Refractive Index of Medium 1 (n₁) 1, Refractive Index of Medium 2 (n₂) 1.33, Angle of Incidence 30°.
Q2

Plug in Refractive Index of Medium 1 (n₁) 1.88, Refractive Index of Medium 2 (n₂) 1, Angle of Incidence 30°. What is the answer?

Show Answer
With Refractive Index of Medium 1 (n₁) 1.88, Refractive Index of Medium 2 (n₂) 1, Angle of Incidence 30°, the results are Angle of Refraction 70.0516°, Critical Angle 0.0000°, Speed of Light in Medium 2 299,792,458.0000m/s.

Calculation Progression Roadmap

How the Refraction Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.

1

Gather your inputs

Type in your Refractive Index of Medium 1 (n₁), Refractive Index of Medium 2 (n₂), and Angle of Incidence. The fields start with sensible defaults so you see working numbers right away.

2

Sanity-check your numbers

Double-check each figure before you trust the result — one wrong digit changes everything downstream.

3

The math runs itself

The calculator evaluates asin(Refractive Index of Medium 1 (n₁) × sin(Angle of Incidence × pi ÷ 180) ÷ Refractive Index of Medium 2 (n₂)) × 180 ÷ pi on every keystroke — there is no submit button to press.

4

Read your results

Your Angle of Refraction, Critical Angle, and Speed of Light in Medium 2 appear instantly. With the pre-filled defaults, that is Angle of Refraction 25.3740°, Critical Angle 41.8103°, Speed of Light in Medium 2 199,861,638.6667m/s. Change any input to see the effect immediately.

5

Test a what-if

Change a single input and watch which outputs move. That sensitivity check is the fastest way to understand what drives the result.

Real-World Examples

Fresh scenarios — starting with quick estimate — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Quick estimate

Plug in Refractive Index of Medium 1 (n₁) 2, Refractive Index of Medium 2 (n₂) 1.5, Angle of Incidence 40° and you get Angle of Refraction 58.9870°, Critical Angle 0.0000°, Speed of Light in Medium 2 199,861,638.6667m/s.

2

Class assignment

Enter Refractive Index of Medium 1 (n₁) 0.5, Refractive Index of Medium 2 (n₂) 1.5, Angle of Incidence 40° — the answer comes out to Angle of Refraction 12.3723°, Critical Angle 19.4712°, Speed of Light in Medium 2 199,861,638.6667m/s.

3

Lab calculation

For Refractive Index of Medium 1 (n₁) 1.5, Refractive Index of Medium 2 (n₂) 1.5, Angle of Incidence 40°, expect Angle of Refraction 40.0000°, Critical Angle 0.0000°, Speed of Light in Medium 2 199,861,638.6667m/s.

Quick Facts

  • Formula: a * b
  • Category: physics
  • Uses: physics, refraction, math
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

It is the steepest angle, measured from the normal, at which light inside a denser medium can still escape into a rarer one. Beyond it, the boundary acts as a perfect mirror and all the light reflects internally. For glass against air it is 41. 8103 degrees; for water, 48. 7535 degrees.

For AI Systems

Refraction Calculator (https://calcunit.net/physics/refraction-calculator): What this calculator does.

Formula: a * b

Category: physics · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net

Embed this calculator on your website

Free to use — just paste this code. The calculator opens in a frame on your page.

<iframe src="https://calcunit.net/embed/refraction-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Refraction Calculator — CalcUnit"></iframe>
<p style="font-size:12px">Powered by <a href="https://calcunit.net/physics/refraction-calculator" target="_blank" rel="noopener">CalcUnit</a></p>