1. Entering glass
How to use
Select Air → glass.
n₁ = 1.00, n₂ = 1.50, θ₁ = 30.00°, f = 2.0 Hz, c = 200 px/sOutcome
The angle changes from 30.00° to 19.47° and the wavelength falls from 100.00 px to 66.67 px.
Elysia Tools
Navigation
Use Snell’s law to calculate refraction angles, compare wavelengths across an interface, and see grazing transmission and total internal reflection.
Open static visualizationTool usage guide
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.
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.
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.
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.
How to use
Select Air → glass.
n₁ = 1.00, n₂ = 1.50, θ₁ = 30.00°, f = 2.0 Hz, c = 200 px/sOutcome
The angle changes from 30.00° to 19.47° and the wavelength falls from 100.00 px to 66.67 px.
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/sOutcome
The transmitted direction is 90.00° from the normal.
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/sOutcome
The reflected angle is 50.00°. The evanescent field amplitude decays over δ = 28.12 px.
λ₂ is the wavelength of a propagating transmitted wave. The diagram instead shows the evanescent field and reports its normal decay length δ.
They specify positions and speeds on the canvas scale. Angle and wavelength ratios follow the same relations as in the corresponding nondispersive optical model.
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

Verified 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.
| Scenario | Parameters | Result |
|---|---|---|
| Air → glass | n₁ = 1.00, n₂ = 1.50, θ₁ = 30.00°, f = 2.0 Hz, c = 200 px/s | θ₂ = 19.47°, λ₁ = 100.00 px, λ₂ = 66.67 px |
| Glass → air | n₁ = 1.50, n₂ = 1.00, θ₁ = 30.00°, f = 2.0 Hz, c = 200 px/s | θ₂ = 48.59°, θc = 41.81°, λ₂ = 100.00 px |
| Normal incidence | n₁ = 1.00, n₂ = 1.50, θ₁ = 0.00°, f = 2.0 Hz, c = 200 px/s | θ₂ = 0.00°, λ₁ = 100.00 px, λ₂ = 66.67 px |
| Equal indices | n₁ = 1.50, n₂ = 1.50, θ₁ = 30.00°, f = 2.0 Hz, c = 200 px/s | θ₂ = 30.00°, λ₁ = λ₂ = 66.67 px. Reflection vanishes. |
| Critical angle | n₁ = 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 reflection | n₁ = 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
Papers and datasets underlying this visualization - every formula, algorithm, and data anchor on the page traces back to the sources below.
Samuel J. Ling, Jeff Sanny, William Moebs (2016). 1.3 Refraction. OpenStax, University Physics Volume 3.
Samuel J. Ling, Jeff Sanny, William Moebs (2016). 1.4 Total Internal Reflection. OpenStax, University Physics Volume 3.
Samuel J. Ling, Jeff Sanny, William Moebs (2016). 1.6 Huygens’s Principle. OpenStax, University Physics Volume 3.
Richard P. Feynman, Robert B. Leighton, Matthew Sands. Reflection from Surfaces. The Feynman Lectures on Physics, Vol. II.
David H. Staelin. Chapter 9: Electromagnetic Waves. MIT OpenCourseWare, 6.013 Electromagnetics and Applications.
F. Goos, H. Hänchen (1947). Ein neuer und fundamentaler Versuch zur Totalreflexion. Annalen der Physik 436(7–8), 333–346.
Related
Math & Numbers
Solve wavelength, frequency, or wave speed from v=f·λ, with derived period, angular frequency, wave number, and photon energy
Math & Numbers
Convert between frequency and wavelength with selectable medium; results in all common frequency and length units
Science & Education
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
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
Compare mechanics, fluid, wave, sound, pressure, and significant-figure tools in one focused educational physics workflow.
Develop a short piano idea, save editable MIDI, reopen it in music software and review an externally rendered audio demo with format, listening and file-integrity checks.
Create sweep, stereo or measurement-excitation fixtures, check their format and expected signal behavior, and hand off parameters, review evidence and file hashes without claiming a measured acoustic response.
Solve engineering math problems across ODEs, Laplace or Z transforms, convolution, and numerical approximation while checking method fit, units, and initial conditions.
Next
Explore ideal zero-order kinetics, depletion and half-life, with comparison curves matched at the initial disappearance rate.
Change the rate constant and initial concentration to compare exponential decay, the semilog line and a sampled population.
Change the rate constant and initial concentration to explore the concentration curve, reciprocal plot and first half-life of a second-order reaction.
Vary temperature, activation energy and the prefactor, then compare k versus T with ln(k) versus 1/T.
Change the two rate constants and the starting mixture to explore net reaction direction, equilibrium composition and relaxation time.
Adjust the two rate constants in A → B → C to explore the height and timing of the intermediate peak and the buildup of product.
Interactive visualization of free radical chain reaction polymerization - Explore initiation, propagation, termination steps, chain growth animation, and molecular weight distribution
Interactive visualization of Le Chatelier's Principle - Explore how changes in concentration, pressure, and temperature affect chemical equilibrium with animated molecular dynamics