Elysia Tools

Navigation

Physics

Wave Refraction Simulator | Snell’s Law and Total Internal Reflection

Use Snell’s law to calculate refraction angles, compare wavelengths across an interface, and see grazing transmission and total internal reflection.

Open static visualization

Tool usage guide

Learn when to use this tool, what it supports, and how real users apply it.

Overview

Follow a light wave across a flat interface. Compare the ray directions and the spacing of successive crests, then increase the incident angle to see how a transmitted wave becomes an evanescent field.

How speed and wavelength set the angle

The incident and transmitted waves share the same frequency f at a stationary interface. Each medium has speed v = c/n and wavelength λ = v/f, so a higher index gives a shorter wavelength. Measure the spacing perpendicular to the wavefronts.

Phase matching at the interface fixes the tangential component of the wave vector. This gives n₁ sin θ₁ = n₂ sin θ₂, with both angles measured from the normal. The colored front lines trace the crests of the individual incident, reflected, and transmitted components.

Where total internal reflection begins

When n₁ > n₂, the critical angle is θc = arcsin(n₂/n₁). At this angle the transmitted wave travels parallel to the interface. With a larger incident angle, the second medium supports an evanescent field whose amplitude decays exponentially with depth.

The decay length δ is the depth where the amplitude falls to 1/e of its interface value. At a single lossless boundary, the evanescent field carries time-averaged power along the interface and the normal incident power returns in the reflected wave.

How it works

  1. 1Choose a preset or set both indices and the incident angle. Compare θ₁ and θ₂ relative to the dashed normal.
  2. 2Pause and compare the wavefront spacing on both sides. The Wavefronts and Rays checkboxes can be used separately.
  3. 3Change the frequency with the indices held fixed. Higher frequency shortens the wavelengths of the propagating waves while the Snell angles stay the same.

Edge cases & common failures

  • Normal incidence

    The ray crosses straight through, while a change in index still changes the wavelength.

  • Equal indices

    In the modeled media, both speeds and wavelengths coincide. There is a single straight path and zero reflected field.

  • Higher index in medium 2

    When n₂ > n₁, all available incidence angles give a real transmitted direction.

Examples

1. Entering glass

How to use

Select Air → glass.

n₁ = 1.00, n₂ = 1.50, θ₁ = 30.00°, f = 2.0 Hz, c = 200 px/s

Outcome

The angle changes from 30.00° to 19.47° and the wavelength falls from 100.00 px to 66.67 px.

2. Grazing the interface

How to use

Select Critical angle to set the slider to the full-precision threshold.

n₁ = 1.50, n₂ = 1.00, θ₁ = θc ≈ 41.81°, f = 2.0 Hz, c = 200 px/s

Outcome

The transmitted direction is 90.00° from the normal.

3. Beyond the threshold

How to use

Select Total reflection and pause to inspect the field below the boundary.

n₁ = 1.50, n₂ = 1.00, θ₁ = 50.00°, f = 2.0 Hz, c = 200 px/s

Outcome

The reflected angle is 50.00°. The evanescent field amplitude decays over δ = 28.12 px.

FAQ

Why is λ₂ blank during total reflection?

λ₂ is the wavelength of a propagating transmitted wave. The diagram instead shows the evanescent field and reports its normal decay length δ.

Do the px and px/s readings represent physical measurements?

They specify positions and speeds on the canvas scale. Angle and wavelength ratios follow the same relations as in the corresponding nondispersive optical model.

How does this relate to optical fiber?

A higher-index core and lower-index cladding can guide light by total internal reflection. This diagram shows the behavior at one planar interface.

At a Glance

Interactive Preview

Wave Refraction Simulator | Snell’s Law and Total Internal Reflection
Static preview of this visualization. Use the interactive panel above to explore it.

Verified Results

Typical Experiments and Results

Every parameter set and result below is a fixed output of this page's built-in model (each asserted before delivery) and reproduces directly: set the Parameters column in the interactive panel.

ScenarioParametersResult
Air → glassn₁ = 1.00, n₂ = 1.50, θ₁ = 30.00°, f = 2.0 Hz, c = 200 px/sθ₂ = 19.47°, λ₁ = 100.00 px, λ₂ = 66.67 px
Glass → airn₁ = 1.50, n₂ = 1.00, θ₁ = 30.00°, f = 2.0 Hz, c = 200 px/sθ₂ = 48.59°, θc = 41.81°, λ₂ = 100.00 px
Normal incidencen₁ = 1.00, n₂ = 1.50, θ₁ = 0.00°, f = 2.0 Hz, c = 200 px/sθ₂ = 0.00°, λ₁ = 100.00 px, λ₂ = 66.67 px
Equal indicesn₁ = 1.50, n₂ = 1.50, θ₁ = 30.00°, f = 2.0 Hz, c = 200 px/sθ₂ = 30.00°, λ₁ = λ₂ = 66.67 px. Reflection vanishes.
Critical anglen₁ = 1.50, n₂ = 1.00, θ₁ = θc ≈ 41.81°, f = 2.0 Hz, c = 200 px/sθ₂ = 90.00°, λ₂ = 100.00 px. Propagation along the interface.
Total reflectionn₁ = 1.50, n₂ = 1.00, θ₁ = 50.00°, f = 2.0 Hz, c = 200 px/sθᵣ = 50.00°, δ = 28.12 px. Evanescent decay in the second medium.

Sources

References

Papers and datasets underlying this visualization - every formula, algorithm, and data anchor on the page traces back to the sources below.

  1. [1]

    Samuel J. Ling, Jeff Sanny, William Moebs (2016). 1.3 Refraction. OpenStax, University Physics Volume 3.

    View source→ n₁ sin θ₁ = n₂ sin θ₂; v = c/n; Example 1.3
  2. [2]

    Samuel J. Ling, Jeff Sanny, William Moebs (2016). 1.4 Total Internal Reflection. OpenStax, University Physics Volume 3.

    View source→ θc = arcsin(n₂/n₁), n₁ > n₂; θᵣ = θ₁
  3. [3]

    Samuel J. Ling, Jeff Sanny, William Moebs (2016). 1.6 Huygens’s Principle. OpenStax, University Physics Volume 3.

    View source→ v₁/v₂ = sin θ₁/sin θ₂; Figure 1.29
  4. [4]

    Richard P. Feynman, Robert B. Leighton, Matthew Sands. Reflection from Surfaces. The Feynman Lectures on Physics, Vol. II.

    View source→ ωᵢ = ωᵣ = ωₜ; k∥ conservation; exp(−κy)
  5. [5]

    David H. Staelin. Chapter 9: Electromagnetic Waves. MIT OpenCourseWare, 6.013 Electromagnetics and Applications.

    View source→ TE Fresnel coefficients; κ = √(k∥² − k₂²); §9.2.2–9.2.3
  6. [6]

    F. Goos, H. Hänchen (1947). Ein neuer und fundamentaler Versuch zur Totalreflexion. Annalen der Physik 436(7–8), 333–346.

    View source→ Experimental evidence for penetration at θ₁ > θc

Related

Related tools and workflows

Math & Numbers

Wavelength Calculator (λ = v/f, period, wave number, angular frequency)

Solve wavelength, frequency, or wave speed from v=f·λ, with derived period, angular frequency, wave number, and photon energy

Math & Numbers

Frequency ⇄ Wavelength Converter (Hz/kHz/MHz/GHz/THz ⇄ m/cm/mm/nm)

Convert between frequency and wavelength with selectable medium; results in all common frequency and length units

Science & Education

de Broglie Wavelength Calculator

Matter-wave λ = h/p via particle & speed (γmv optional), direct momentum, or electron voltage (relativistic + h/√(2mE) comparison). Units from m to fm/Å with wavelength scale.

Education

STEM Physics — Kinematics Velocity-Time Graph Tutor

Kinematics visualisation tutor: velocity-time curve (constant-acceleration SUVAT solver with displacement-area shading), projectile parabola (adjustable g + air-resistance toggle), and free-fall timing

Next

More visualizations nearby

Cookie settings

Essential cookies keep the site running. Analytics and personalized ads are optional.

Cookie policy