Skip to content
Physics Simple #snell#refraction

Snell's Law and Refraction

Light bends when entering a denser medium - n1 sin(theta1) = n2 sin(theta2).

A free, animated snell's law and refraction you can read here or embed on any website, from Scrollchart.

Snell's Law and Refraction

Snell's Law and Refractionn1 sin(theta1) = n2 sin(theta2): light bends toward the normal in a denser mediumAir (n1 = 1.00)Glass (n2 = 1.52)NormalIncident rayReflected (partial)Refracted raytheta1 = 45°theta2 = 28°

Light ray crossing air-glass interface. Angle of incidence and refraction labeled. Index-of-refraction values for common media.

Good for

  • Wave optics and geometric optics courses introducing refraction and critical angles
  • Photonics and fiber-optics articles explaining total internal reflection in waveguides
  • Atmospheric physics explainers on rainbows, mirages, and astronomical refraction

Source & accuracy

This snell's law and refraction is an editorial illustration built to represent the concept accurately. Where it shows figures, they are typical or representative values chosen to make the relationship clear, not a single underlying dataset. The diagram and its explainer are reviewed and maintained centrally, and updated over time as understanding improves.

Refractive index governs the bending angle

When light travels from one medium to another with different refractive indices, it bends at the boundary. Snell's law states n1 sin(theta1) = n2 sin(theta2), where theta1 and theta2 are the angles from the normal (perpendicular) to the surface. The refractive index n describes how much slower light travels in that medium compared to vacuum (c/v). Water has n = 1.33, so light bends toward the normal when entering water from air. Diamond has n = 2.42, causing dramatic bending and the characteristic 'sparkle' as light is severely bent and internally reflected. At a critical angle, light traveling from a denser medium to a less dense one is completely reflected (total internal reflection), the basis of fiber optics: light trapped in an optical fiber bounces off the cylindrical surface and travels without loss to the far end.

Optics and everyday phenomena

A pencil submerged in water appears bent because light from the submerged part refracts as it exits the water, creating an illusion of an offset position. Mirages in deserts arise from a gradient in air temperature creating a continuous gradient in refractive index: light from the sky bends as it passes through hotter, less dense air near the ground, creating an inverted image that looks like a reflection in water. Rainbows form when sunlight enters water droplets, refracts inward, reflects off the back surface, and refracts outward again. Different wavelengths refract at slightly different angles (dispersion), separating sunlight into its spectrum colors. Understanding refraction is essential for designing telescopes, microscopes, cameras, and any optical instrument where light must be focused or imaged precisely.

Embed this diagram

Add this animated snell's law and refraction to your own site. Copy one line of HTML, or use the embed builder for theme and sizing options.

Reference

What this is
A free, embeddable, animated snell's law and refraction for any website.
Who uses it
Physics educators.
How to embed
Copy one line of HTML. No signup. No watermark. Works in WordPress, Webflow, Ghost, Substack, plain HTML.
File size
iframe embed, ~80 KB gzipped (loads on demand, does not block your page paint).
License
Free forever. Editorial explainer text included; updated centrally over time.

Embed format options

Copy the universal HTML snippet, the WordPress shortcode, or an iframe fallback - see the WordPress plugin page for details. Any format keeps the same Core Web Vitals profile and the same explainer text.

Embed snippet
<div data-scrollchart="snells-law" data-scrollchart-v="1"></div>
<script src="https://scrollchart.com/embed.js" async></script>

Frequently asked questions

Where can I get a free animated "Snell's Law and Refraction" for my website?
Scrollchart provides "Snell's Law and Refraction" as a free, embeddable animated diagram you can add to any website with one line of HTML. No signup is required and there is no watermark. The diagram and its explainer text are served from scrollchart.com, so the embed stays current without any maintenance on your end.
How do I embed a snell's law and refraction in WordPress or a static site?
Paste the HTML snippet from the Scrollchart diagram page into your WordPress post (in HTML/code view), your Webflow embed block, or directly into a static HTML file. No plugin is needed. The diagram loads from scrollchart.com and paints in as the reader scrolls.