Refraction Calculator (Snell's Law)

Calculate angles of refraction when light passes between different media using Snell's Law. Determine how light bends at material boundaries.

degrees

Quick Reference

Air
n = 1.0003
At standard conditions
Water
n = 1.33
At 20 degrees C
Glass
n = 1.50
Crown glass typical
Diamond
n = 2.42
Highest natural n

Frequently Asked Questions

What is Snell's Law and how does it work?

Snell's Law describes the relationship between angles of incidence and refraction when light passes between two media with different refractive indices. The formula is n1 sin(theta1) = n2 sin(theta2), where n1 and n2 are the refractive indices and theta1 and theta2 are the angles measured from the normal. This law allows us to predict exactly how much light will bend at any interface between transparent materials.

What is the refractive index?

The refractive index (n) is a dimensionless number that describes how fast light travels through a medium compared to vacuum. Vacuum has n=1, air is approximately 1.0003, water is 1.33, and diamond is 2.42. Higher refractive indices mean light travels slower in that medium. The refractive index determines how much light bends when entering that material.

What is total internal reflection?

Total internal reflection occurs when light traveling from a denser medium to a less dense medium hits the boundary at an angle greater than the critical angle. Instead of refracting, all light reflects back into the denser medium. This principle is used in fiber optics, diamond cutting, and prisms for binoculars and periscopes.

How do I calculate the critical angle?

The critical angle can be calculated using the formula: critical angle = arcsin(n2/n1), where n1 is the refractive index of the denser medium and n2 is the refractive index of the less dense medium. For example, the critical angle for water-to-air is arcsin(1.0003/1.33) = 48.6 degrees. This angle only exists when light travels from a denser to a less dense medium.

Why does light bend when entering a different medium?

Light bends because it travels at different speeds in different media. When light enters a denser medium at an angle, the part of the wavefront that enters first slows down while the rest continues at the original speed, causing the wave to change direction. This is similar to how a car turns when one wheel enters sand before the other, or how marching soldiers turn when one side hits mud first.

What are common applications of refraction?

Refraction has numerous practical applications: eyeglasses and contact lenses correct vision by bending light before it enters the eye; camera lenses focus images; microscopes and telescopes magnify distant or tiny objects; fiber optic cables transmit data using total internal reflection; prisms split white light into rainbow colors; and diamond cutting maximizes brilliance through strategic internal reflections.

What happens when light enters a denser medium?

When light enters a denser medium (one with a higher refractive index), it bends toward the normal line - the perpendicular to the surface. The angle of refraction will be smaller than the angle of incidence. For example, light entering water from air bends toward the normal, making objects underwater appear closer to the surface than they actually are.

Can the angle of refraction be greater than 90 degrees?

No, the angle of refraction cannot exceed 90 degrees. When the calculated angle would exceed 90 degrees (which happens when light travels from a denser to less dense medium at angles beyond the critical angle), total internal reflection occurs instead, and no refraction takes place. All the light reflects back into the original medium rather than passing through the boundary.

What is the index of refraction and how is it measured?
The refractive index (n) of a material is the ratio of the speed of light in vacuum to the speed of light in that material. Definition: n = c / v. Where c = speed of light in vacuum (≈ 2.998 × 10⁸ m/s) and v = phase velocity of light in the medium. Because light is always slower in a material than in vacuum, n ≥ 1 for all transparent materials. Key values: vacuum: n = 1.000 (exact). Air: n ≈ 1.000293 (so close to 1, usually approximated as 1). Water: n ≈ 1.333 at 20°C. Crown glass: n ≈ 1.52. Diamond: n ≈ 2.417. How it's measured experimentally: Snell's Law method: measure angles of incidence and refraction at a known interface; solve n₂ = n₁ sin θ₁ / sin θ₂. Minimum deviation prism method: send a beam through a prism; measure the minimum deviation angle; calculate n using the prism formula. Interferometry: compare optical path lengths; very precise for research. Critical angle method: find the angle at which total internal reflection begins; calculate n = 1/sin(θc) for a medium-to-air interface. Factors that affect refractive index: wavelength (dispersion): n varies with the wavelength of light — this is why prisms spread white light into a spectrum. Diamond's high dispersion creates the colorful "fire" visible in cut gems. Temperature: for most materials, n decreases slightly with increasing temperature. For glass, the change is about 10⁻⁵ per °C. Pressure: affects n in gases significantly; minor effect in solids/liquids. Composition: glass composition dramatically changes n — adding lead oxide increases n (flint glass vs. crown glass).
What is total internal reflection and what causes it?
Total internal reflection (TIR) occurs when light traveling in a denser medium (higher n) strikes the interface with a less dense medium (lower n) at an angle greater than the critical angle. In TIR, 100% of the light is reflected back into the denser medium — none passes through. The critical angle (θc) is the minimum angle of incidence at which TIR occurs: θc = arcsin(n₂ / n₁), where n₁ > n₂. Example: glass (n=1.52) to air (n=1.00): θc = arcsin(1.00/1.52) = arcsin(0.658) ≈ 41.1°. Any ray in glass hitting the glass-air interface at more than 41.1° from the normal undergoes TIR. Applications of total internal reflection: optical fiber communications (most important application): light guided inside a glass fiber (n≈1.46) surrounded by cladding (n≈1.44). Critical angle ≈ 8–10°. Light entering at a shallow angle bounces down the fiber for kilometers with minimal loss. Fiber optics carry internet data, telephone signals, and medical imaging. Diamond brilliance: diamond's very high refractive index (n=2.417) gives a critical angle of only 24.4°. Expert cuts (brilliant cut) ensure that light entering the top exits through the top after multiple TIRs — creating maximum sparkle. Optical prisms: used in binoculars, periscopes, and cameras to redirect light using TIR instead of mirrors. Retroreflectors: road signs and bicycle reflectors use corner-cube prisms that return light directly to the source via TIR. Medical endoscopes: flexible fiber bundles transmit images from inside the body. Everyday example: if you look up from underwater at an angle greater than 48.6° from vertical, you see the bottom reflected — not the surface. At steeper angles, you see the sky above. The boundary creates a cone of "window" surrounded by reflection.
Why does light bend when entering water or glass?
Light bends when it crosses from one medium to another because it changes speed at the interface, and the direction change is geometrically necessary to maintain the wave's coherent phase across the wavefront. The physical reason: light travels at different speeds in different materials. In vacuum: 299,792 km/s. In water (n=1.333): 224,900 km/s — about 75% of vacuum speed. In glass (n=1.52): 197,000 km/s — about 66% of vacuum speed. When a light wavefront hits the interface at an angle: part of the wavefront slows down before the rest. Just like a row of soldiers marching at an angle from fast to slow terrain, the wavefront pivots. This pivot is what we observe as bending. Why the frequency doesn't change (but wavelength does): frequency is determined by the source (the oscillating electrons/atoms that emit the light). When light enters a new medium, the frequency of oscillation stays the same — the new medium's atoms must oscillate at the same frequency to "hand off" the wave. But since speed = frequency × wavelength, and speed decreases while frequency stays the same, the wavelength must decrease proportionally: λmedium = λvacuum / n. Everyday examples of refraction: straw appearing "bent" in water: due to the refraction of light from submerged straw traveling from water to air at the surface. Objects in water appearing shallower: apparent depth = actual depth × (n_water ÷ n_air) = depth ÷ 1.33. A 3 m deep pool appears only ~2.25 m deep. Mirages: hot air near the ground has lower density and lower n than cooler air above; light bends upward, creating inverted images (sky visible on the road). Rainbows: different colors of light have slightly different n in water droplets, so they refract at different angles — dispersing white sunlight into the visible spectrum.

Key Takeaways

  • Snell's Law relates the angles and refractive indices when light crosses media boundaries
  • Light bends toward the normal when entering a denser medium (higher n)
  • Light bends away from the normal when entering a less dense medium (lower n)
  • Total internal reflection occurs when the angle exceeds the critical angle
  • The refractive index of vacuum is exactly 1.0; air is approximately 1.0003
  • Applications include fiber optics, lenses, prisms, and vision correction

What Is Refraction? Understanding How Light Bends

Index of Refraction Reference (Common Materials at 589 nm, ~20°C)
Material Refractive Index (n) Speed of Light in Medium (km/s) Notes
Vacuum1.000000299,792Exact; defined value
Air (dry, sea level)1.000293299,705Negligible difference from vacuum
Water (liquid, 20°C)1.333224,900Classic example; temperature dependent
Ice1.310228,840Slightly lower than liquid water
Glass (crown)1.52197,230Standard optical glass
Glass (flint)1.62185,050Denser; stronger dispersion
Acrylic (PMMA)1.49201,200Common optical plastic
Polycarbonate1.586189,000Used in eyeglass lenses
Diamond2.417124,030Very high; responsible for brilliance
Silicon3.9675,700Infrared optics
Sapphire (Al₂O₃)1.77169,400High hardness; watch crystals
Ethanol1.361220,340Common lab solvent
Glycerin1.473203,500—
Amber1.546194,010—
Snell's Law Reference
Quantity Symbol Formula Notes
Snell's Law—n₁ sin θ₁ = n₂ sin θ₂Core equation of refraction
Refraction angle (θ₂)θ₂θ₂ = arcsin(n₁ sin θ₁ / n₂)Solve for transmitted angle
Critical angle (θc)θcθc = arcsin(n₂/n₁), where n₁ > n₂Angle at which total internal reflection begins
Total internal reflectionTIROccurs when θ₁ > θc and n₁ > n₂Light trapped in denser medium; fiber optics principle
Refractive index (n)nn = c/vc = speed of light in vacuum; v = phase velocity in medium
Apparent depthd′d′ = d × (n₂/n₁)Objects in water appear shallower
Snell's Law (wavelength form)—λ₁/λ₂ = n₂/n₁Frequency is unchanged; wavelength varies
Critical Angle and Total Internal Reflection Reference
Material Pair (n₁ → n₂) n₁ n₂ Critical Angle (θc) Application
Glass → Air (crown glass)1.521.0041.1°Optical prisms; total internal reflection
Diamond → Air2.4171.0024.4°Diamond brilliance via multiple TIR
Water → Air1.3331.0048.6°Snorkeling; fish view from underwater
Glass fiber → Cladding~1.46~1.44~8–10°Fiber optic light guidance
Sapphire → Air1.771.0034.4°—
Silicon → Air3.961.0014.6°IR waveguides

Refraction is the bending of light as it passes from one transparent medium to another. This phenomenon occurs because light travels at different speeds in different materials. When a light wave crosses the boundary between two media at an angle, the change in speed causes the wave to change direction - much like how a car turns slightly when one wheel hits sand before the other.

The refractive index (n) of a material describes how much slower light travels in that medium compared to a vacuum. A higher refractive index means light travels more slowly. For example, light travels about 25% slower in water (n = 1.33) than in air (n = 1.0003), and almost 60% slower in diamond (n = 2.42).

Snell's Law Formula Explained

n1 sin(theta1) = n2 sin(theta2)
n1 = Refractive index of medium 1
theta1 = Angle of incidence
n2 = Refractive index of medium 2
theta2 = Angle of refraction

This elegant relationship, discovered by Dutch mathematician Willebrord Snellius in 1621, allows us to predict exactly how much light will bend at any interface. The angles are always measured from the normal - an imaginary line perpendicular to the surface at the point where light strikes.

How to Calculate Angle of Refraction (Step-by-Step)

1

Identify the Refractive Indices

Determine n1 (the medium light is traveling FROM) and n2 (the medium light is traveling INTO). For example, light going from air to water: n1 = 1.0003, n2 = 1.33.

2

Measure the Angle of Incidence

Measure the angle (theta1) between the incoming light ray and the normal line. Remember, the normal is perpendicular to the surface, not parallel to it.

3

Apply Snell's Law

Calculate sin(theta2) = (n1/n2) x sin(theta1). For our example with 45 degree incidence: sin(theta2) = (1.0003/1.33) x sin(45) = 0.532

4

Find the Angle of Refraction

Take the inverse sine (arcsin) of your result: theta2 = arcsin(0.532) = 32.1 degrees. The light bends toward the normal because water is denser than air.

Practical Example: Light Entering Water

Medium 1 (Air) n = 1.0003
Incidence Angle 45 degrees
Medium 2 (Water) n = 1.33

Result: Angle of Refraction = 32.1 degrees (light bends toward normal)

Common Refractive Indices Reference Table

Use this table to find refractive indices for common materials when using our calculator:

Material Refractive Index (n) Notes
Vacuum 1.0000 (exact) Reference standard
Air 1.0003 At sea level, 20 degrees C
Water 1.33 Pure water at 20 degrees C
Ice 1.31 At 0 degrees C
Ethanol 1.36 Pure alcohol
Olive Oil 1.47 Cooking oil
Crown Glass 1.52 Common optical glass
Flint Glass 1.62 Higher dispersion glass
Sapphire 1.77 Watch crystals
Cubic Zirconia 2.15 Diamond simulant
Diamond 2.42 Highest natural n

Total Internal Reflection and Critical Angle

When light travels from a denser medium (higher n) to a less dense medium (lower n), something special can happen. If the angle of incidence exceeds a certain value called the critical angle, no light passes through - instead, all of it reflects back into the denser medium. This is total internal reflection.

Critical Angle = arcsin(n2 / n1)
Only applies when n1 > n2 (light going from denser to less dense medium)

For water to air, the critical angle is about 48.6 degrees. This is why you can see a mirror-like reflection when looking up from underwater at steep angles - the surface becomes a perfect mirror!

Pro Tip: Fiber Optics and Total Internal Reflection

Fiber optic cables exploit total internal reflection to transmit light over long distances with minimal loss. The glass core has a higher refractive index than the surrounding cladding, keeping light bouncing along the fiber even around curves. This technology enables high-speed internet and telecommunications worldwide.

Applications of Total Internal Reflection

  • Fiber Optic Communications: Transmit data at the speed of light across continents
  • Diamond Cutting: Strategic cuts maximize internal reflections for brilliance
  • Prisms: Used in binoculars and periscopes to redirect light
  • Medical Endoscopes: Allow doctors to see inside the body
  • Fingerprint Scanners: Detect ridges by their optical contact with glass

Common Mistakes When Calculating Refraction

Avoid These Common Errors

  • Measuring from the surface: Angles must be measured from the NORMAL (perpendicular line), not from the surface itself
  • Swapping n1 and n2: n1 is always the medium light is coming FROM; n2 is where it's going TO
  • Forgetting to convert degrees to radians: Many calculators require radian input for trig functions
  • Ignoring total internal reflection: If sin(theta2) would exceed 1, the calculation is invalid - TIR occurs instead
  • Using wavelength-dependent n values: Refractive index varies with light color; use appropriate values for accurate results
  • Assuming light always bends: At 0 degrees incidence (perpendicular), light passes straight through without bending

Real-World Applications of Refraction

Vision Correction

Eyeglasses and contact lenses work by refracting light before it enters the eye. Nearsighted people need diverging (concave) lenses that spread light rays, while farsighted people need converging (convex) lenses. LASIK surgery actually reshapes the cornea to change how it refracts light, eliminating the need for external lenses.

Photography and Cameras

Camera lenses use multiple glass elements with different refractive indices to focus light precisely onto the sensor. Wide-angle lenses, telephoto lenses, and zoom lenses all achieve their effects through carefully calculated refraction. High-quality lenses use special glass types to minimize chromatic aberration - the color fringing that occurs because different wavelengths refract differently.

Atmospheric Refraction

The atmosphere's density gradient causes continuous refraction. This explains why:

  • The sun appears oval at sunset (more refraction at the bottom)
  • Stars twinkle (turbulent air causes varying refraction)
  • Mirages appear on hot roads (air density gradients bend light)
  • We can see the sun after it has geometrically set below the horizon

Pro Tip: Underwater Photography

Objects underwater appear about 25% closer and larger than they actually are due to refraction at the water-air interface. Professional underwater photographers must account for this optical illusion when composing shots and estimating distances.

What significant figures should I use?
Match your significant figures to your least precise input. If you measured a length to 3 sig figs, report your answer to 3 sig figs regardless of how many decimal places the calculator shows. Excess decimal places imply false precision and are misleading in scientific reporting.