PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Optics & Light

Other simulators in this category — or see all 44.

View category →
School

Total Internal Reflection

Find the critical angle. Fiber optics analogy.

Launch Simulator
FeaturedSchool

Lens Simulator

Converging and diverging lenses with ray diagrams and image formation.

Launch Simulator
NewSchool

Simple Eye (Thin Lens)

P_total = P_eye + P_glasses; 1/v = P − 1/u vs retina; blur cue.

Launch Simulator
NewSchool

Thin Lens Equation

Hyperbola d_i(d_o), pole at d_o = f, schematic + 1/d check.

Launch Simulator
NewSchool

Prism & Dispersion

White light through a prism creating a rainbow spectrum.

Launch Simulator
NewSchool

Thin-Film Interference

Wedge fringes: n, d, θ; cos²(δ/2) colors and I(λ) at mid thickness.

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Optics & Light/Refraction

Refraction

Rays crossing a flat boundary between media with different refractive indices. Snell’s law relates incident and refracted angles; total internal reflection appears at grazing exit angles.

Who it's for: High-school and college optics; Snell’s law and critical angle.

Key terms

  • Snell’s law
  • refractive index
  • refraction
  • total internal reflection
  • critical angle

Media & incidence

1
1.52
35°

Horizontal boundary: light in medium 1 (above) refracts into medium 2 (below). If n₁ > n₂ and θᵢ exceeds the critical angle, you get total internal reflection.

Shortcuts

  • •Adjust n₁, n₂ and angle of incidence

Measured values

θᵢ35°
θₜ22.2°
θ_crit (n₁>n₂)—

How it works

Snell’s law n₁ sin θᵢ = n₂ sin θₜ relates angles measured from the surface normal. When sin θₜ would exceed 1 (light going from the optically denser medium toward a rarer one at a large angle), all energy is reflected—total internal reflection.

Key equations

n₁ sin θᵢ = n₂ sin θₜ
θ_crit = arcsin(n₂/n₁) (n₁ > n₂)