Free tools & games for everyone
Free · No sign-up · No accounts
Draw ray diagrams for lenses and mirrors, find where the image forms and how big it is, and bend light with Snell's law and total internal reflection.
| Tab | Move between boxes, lists and sliders |
|---|---|
| ← → | Move a slider in small steps |
| Enter | Draw again after typing a number |
Lenses and mirrors use the thin-lens and mirror equation 1/f = 1/u + 1/v with the “real is positive” sign rule: converging lenses and concave mirrors have a positive focal length, diverging lenses and convex mirrors a negative one, and a negative image distance means a virtual image. Magnification is −v ÷ u. Rays are drawn as paraxial rays (close to the axis), so they bend at a flat line through the lens or mirror, as in school diagrams.
Refraction uses Snell’s law n₁ sin θ₁ = n₂ sin θ₂, the critical angle sin⁻¹(n₂ ÷ n₁), Brewster’s angle tan⁻¹(n₂ ÷ n₁) and the Fresnel equations for the share of unpolarised light that is reflected. Refractive indices are typical values for yellow light (589 nm); real materials vary a little.
The tests check the formulas against worked textbook cases and check that the three drawn rays really meet at the image. Everything runs on your device.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product