CalcMountain

Snell's Law Calculator

Calculate the angle of refraction when light passes between two media using Snell's Law. Also determines the critical angle for total internal reflection.

Snell's Law describes how light bends when it crosses between transparent media of different optical density. Discovered by Ibn Sahl in 984 AD (rediscovered by Willebrord Snellius in 1621), it is the foundation of every optical system — lenses, prisms, fiber optics, microscopes, eyeglasses, cameras, and the human eye. The law is mathematically simple: n₁sin(θ₁) = n₂sin(θ₂), where n is the refractive index and θ the angle measured from the surface normal.

The refractive index n quantifies how much light slows down in a medium relative to vacuum. For vacuum n = 1. Air n ≈ 1.0003 (treated as 1.0). Water 1.33. Glass 1.45-1.95. Diamond 2.42. Higher n means light travels slower, refracts more, and bends more sharply when crossing into the medium from a lower-n medium.

When light enters a denser medium, it bends *toward* the normal (smaller refraction angle). Entering a less dense medium, it bends *away* from the normal. The reverse case has a critical angle: at certain angles, light entering a less dense medium can't refract out at all — it reflects entirely (total internal reflection). This is how optical fibers trap light: cladding has lower n than core, so light bounces back inside.

Refraction also explains everyday phenomena: a straw in a glass of water appearing bent, the apparent shifting position of an object underwater, fish looking closer than they are, rainbow colors from prism dispersion (n varies with wavelength), and mirages on hot roads (air density gradient bends light).

Common applications: lens and prism design, fiber optic engineering, eyeglass prescriptions, camera optics, microscope design, gemstone identification (refractive index varies by gem), and any optics problem.

Inputs

Results

Refracted Angle

19.47°

Critical Angle

N/A

TIR

No

Snell's Law Results

ParameterValue
Refractive Index n₁1
Refractive Index n₂1.5
Angle of Incidence30°
Angle of Refraction19.4712°
sin(θ₂)0.333333
Critical AngleN/A (n₁ ≤ n₂)
Total Internal ReflectionNo
Formulan₁sin(θ₁) = n₂sin(θ₂)
Last updated:

Formula

**Snell's Law:** n₁ × sin(θ₁) = n₂ × sin(θ₂) Where: - n₁, n₂ = refractive indices of media 1 and 2 - θ₁ = angle of incidence (from normal to surface) - θ₂ = angle of refraction (from normal in second medium) **Solve for refraction angle:** θ₂ = arcsin(n₁ × sin(θ₁) / n₂) **Worked example: light from air into glass** n₁ = 1.0 (air), n₂ = 1.5 (typical glass), θ₁ = 30°. sin(θ₂) = (1.0 × sin(30°)) / 1.5 = 0.5 / 1.5 = 0.333 θ₂ = arcsin(0.333) ≈ 19.5° Light bends from 30° to 19.5° (toward the normal) — entering denser medium. **Critical angle (total internal reflection):** When going from denser (n₁) to less dense (n₂), with n₁ > n₂: θ_c = arcsin(n₂ / n₁) If θ₁ > θ_c: total internal reflection. Light bounces back, no refraction. **Worked example: critical angle for glass-air** n₁ = 1.5, n₂ = 1.0. θ_c = arcsin(1.0/1.5) = arcsin(0.667) ≈ 41.8° Glass-air critical angle ~42°. Light hitting glass-air interface at >42° from normal stays inside the glass (basis of fiber optics, light pipes, retroreflectors). **Refractive indices of common materials:** | Medium | n (visible) | |---|---| | Vacuum | 1.0000 | | Air | 1.0003 | | Water (20°C) | 1.333 | | Acetone | 1.359 | | Ethanol | 1.361 | | Olive oil | 1.467 | | Crown glass | 1.52 | | Flint glass | 1.62 | | Sapphire | 1.77 | | Cubic zirconia | 2.16 | | Diamond | 2.42 | | Rutile (TiO₂) | 2.70 | | Silicon (IR) | 3.50 | **Refractive index varies with wavelength (dispersion):** n depends on color. Higher dispersion = more rainbow effect. | Glass type | n_violet | n_red | Δn | |---|---|---|---| | Crown | 1.532 | 1.515 | 0.017 | | Flint | 1.640 | 1.612 | 0.028 | | Heavy flint | 1.785 | 1.747 | 0.038 | Why prisms separate white light into rainbows — different colors refract at different angles. **Refractive index from speed of light:** n = c / v_medium Where c = 3 × 10⁸ m/s (speed of light in vacuum), v = speed in medium. Water: v = 3e8 / 1.333 ≈ 2.25 × 10⁸ m/s (75% of vacuum). Glass: v = 3e8 / 1.5 ≈ 2.0 × 10⁸ m/s (67%). Diamond: v = 3e8 / 2.42 ≈ 1.24 × 10⁸ m/s (41%). **Critical angles for common interfaces:** | Interface | Critical angle | |---|---| | Water-air | 48.6° | | Acetone-air | 47.4° | | Crown glass-air | 41.1° | | Flint glass-air | 37.4° | | Diamond-air | 24.4° | | Diamond-water | 33.4° | Diamond's low critical angle (24°) is why it sparkles — most light entering bounces around inside until exiting close to perpendicular. **Bending direction rule:** - **Going into denser medium** (n increases): light bends toward normal (θ decreases). - **Going into less dense** (n decreases): light bends away from normal (θ increases). A vertical pole partly in water appears bent because light from underwater bends away from normal as it exits to air. **Apparent depth (image distortion):** For object directly below water surface: apparent depth = real depth × (n_air / n_water) ≈ real depth × 0.75 A pool that looks 2 m deep is actually 2.67 m. A fish at apparent depth 1 m is at real depth 1.33 m. **Lens formulas (apply Snell's law twice):** For a thin lens with focal length f: 1/f = (n_lens − 1) × (1/R₁ + 1/R₂) Snell's law at each surface determines focal length. **Fiber optic propagation:** Light propagates in fiber core (n_core ≈ 1.46) through total internal reflection at core-cladding interface (n_clad ≈ 1.44). Maximum acceptance angle: θ_max = arcsin(√(n_core² − n_clad²)) ≈ 14° for standard fiber. This is the numerical aperture (NA) — fiber accepts light within this cone. **Brewster's angle (related):** At a specific angle, reflected light is fully polarized: tan(θ_B) = n₂ / n₁ For glass-air: θ_B ≈ 56.3°. Used in polarizing optics, photography. **Snell's law in matrix form (advanced):** For ray tracing, use Snell's law in vector form with surface normals. Standard in optical design software.

How to use this calculator

  1. Enter refractive index of incoming medium (air = 1.0, water = 1.33, glass = 1.5).
  2. Enter refractive index of second medium.
  3. Enter angle of incidence in degrees (measured from normal to surface).
  4. Calculator returns angle of refraction.
  5. If going to less dense medium, calculator also returns critical angle for total internal reflection.
  6. For prism/dispersion problems, use n appropriate to wavelength of interest.

Worked examples

Light into water

**Scenario:** Sunlight enters a swimming pool at 30° from vertical. Refraction angle? **Calculation:** n₁ = 1.0 (air), n₂ = 1.33 (water). θ₂ = arcsin(sin(30°)/1.33) = arcsin(0.376) ≈ 22.1°. **Result:** Light bends from 30° to 22.1° upon entering water — closer to vertical (toward normal). This is why a straw appears bent in a glass of water — light from underwater bends as it exits to air, creating displaced apparent position.

Total internal reflection in fiber

**Scenario:** Optical fiber core n = 1.46, cladding n = 1.44. Critical angle? **Calculation:** θ_c = arcsin(1.44/1.46) = arcsin(0.9863) ≈ 80.5°. **Result:** Light hitting core-cladding interface at >80.5° (from normal) stays inside via total internal reflection. This high critical angle means most light entering the fiber is trapped and propagates along the core for kilometers. Foundation of all modern long-distance fiber communications.

Diamond sparkle

**Scenario:** Diamond (n = 2.42) cut with specific facet angles. Critical angle? **Calculation:** θ_c = arcsin(1.0/2.42) = arcsin(0.413) ≈ 24.4°. **Result:** Very low critical angle. Light entering the top of a diamond is largely trapped because the steep facets below reflect at angles >24°. After bouncing several times internally, light exits through specific facets giving the "brilliant" sparkle. Diamond cutters precisely tune facet angles to maximize sparkle.

When to use this calculator

**Use Snell's Law for:**

- **Lens design**: telescopes, microscopes, eyeglasses. - **Prism analysis**: dispersion, beam steering. - **Fiber optics**: numerical aperture, mode design. - **Gemstone evaluation**: refractive index identifies gems. - **Optical instruments**: cameras, projectors. - **Atmospheric optics**: rainbows, halos, mirages. - **Underwater visibility**: photography, periscopes. - **Light steering**: total internal reflection prisms.

**Two key principles:**

1. **Light bends toward normal when entering denser medium** (n increases). 2. **Critical angle exists only when going from dense to less dense**.

**Refractive index measurement:**

- **Abbe refractometer**: gemology and chemistry lab. - **Critical angle method**: most accurate for liquids. - **Direct measurement of refraction angle**: simple but less precise. - **Interferometry**: very precise (gas analysis).

**Gemstone identification:**

Each gem has characteristic n: - Quartz: 1.54. - Topaz: 1.62. - Emerald: 1.58. - Ruby/sapphire: 1.77. - Cubic zirconia: 2.16. - Diamond: 2.42.

Combined with other properties (specific gravity, hardness), n identifies gems definitively.

**Dispersion phenomena:**

White light contains multiple wavelengths. Since n varies with λ: - Prisms separate colors into a spectrum. - Rainbows form from droplet dispersion. - Camera lenses have "chromatic aberration" — corrected with multi-element designs. - Telescopes use achromatic doublets (crown + flint) to correct chromatic aberration.

**Atmospheric refraction:**

Earth's atmosphere has n that varies with altitude (denser air at low altitudes): - Sun appears ~0.5° higher than actual position near horizon. - Stars "twinkle" due to atmospheric turbulence varying n. - Mirages form when air temperature gradients create steep n gradients.

**Lens equations:**

Thin lens formula: 1/f = 1/v − 1/u (or 1/f = 1/d_image − 1/d_object, sign conventions vary)

Magnification m = v/u.

For a thin lens of glass: 1/f = (n − 1) × (1/R₁ + 1/R₂)

Where R = radii of curvature.

**Fiber optic design:**

Numerical aperture NA = sin(θ_max) = √(n_core² − n_clad²)

Standard single-mode fiber: NA ≈ 0.14 (small acceptance cone). Standard multi-mode fiber: NA ≈ 0.275 (larger cone).

Smaller NA = lower coupling efficiency but better signal quality.

**Common applications:**

- **Eyeglasses**: refraction prescription corrects vision. - **Camera lenses**: complex multi-element designs. - **Microscopes**: high-NA objectives for resolution. - **Telescope objectives**: large aperture for light gathering. - **Binoculars**: prisms for image erection. - **Periscopes**: total internal reflection prisms. - **Light fixtures**: lenses focus or diffuse light. - **Solar concentrators**: lenses focus sunlight. - **Endoscopes**: medical fiber optic imaging.

**Special angles:**

- **Brewster's angle**: tan(θ_B) = n₂/n₁ — fully polarized reflection. - **Critical angle**: arcsin(n₂/n₁) — onset of total internal reflection. - **Achromatic angle**: balance for dispersion in prisms.

**Software:**

- **Zemax / OpticStudio**: industry-standard optical design. - **Code V**: pro-grade optical design. - **Comsol**: full electromagnetic simulation. - **POV-Ray / Blender**: ray-traced rendering uses Snell's law.

**Pitfalls:**

- **Angle from normal vs surface**: convention is from normal (perpendicular). - **Wavelength dependence**: n varies with λ; use right value. - **Critical angle only one way**: only dense → less dense. - **Total internal reflection**: 100% (no transmission), unlike Fresnel partial reflection. - **Polarization effects**: Fresnel equations needed for intensities (not just angles). - **Curved surfaces**: Snell still applies but need to find normal at each point.

Common mistakes to avoid

  • Measuring angle from surface instead of normal.
  • Forgetting refractive index varies with wavelength (dispersion).
  • Looking for critical angle when going to denser medium (doesn't exist).
  • Using arcsin of value > 1 (signals total internal reflection condition).
  • Confusing reflection with refraction.
  • Ignoring Fresnel intensity equations for partial reflection.
  • Treating curved surfaces with flat-surface formulas (need to find local normal).
  • Mixing degrees and radians in trig functions.

Frequently Asked Questions

Sources & further reading

SponsoredShop Top Deals on AmazonSupport CalcMountain — browse top-rated products at no extra cost to you.

Related Calculators