PPolySim OS
For Educators · Snell's Law

Snell's Law for a mirage

Built for educators teaching it to a class. Drop a live demo into a lecture or assign it as a shareable link — no lab installs. Simulate a mirage live below — adjust the inputs and watch it respond, right in your browser.

Snell's Law — RefractionLive

Controls

Light bends when it crosses between media. Going into a slower medium it bends toward the normal; going the other way past the critical angle it reflects entirely.

Presets

▶ Run in Python

Data Inspector

n₁ → n₂1 → 1.5
Critical anglen/a
Snelln₁sinθ₁ = n₂sinθ₂

Governing equation

Reading this result: Into a denser, slower medium: the ray bends toward the normal, so the refracted angle is smaller than the incidence angle.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →

More with Snell's Law

Frequently asked questions

Is this good for educators?
Yes — this version of "Snell's Law for a mirage" is framed for educators teaching it to a class. Drop a live demo into a lecture or assign it as a shareable link — no lab installs.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.