Measurement

Optics & Lens Ray Tracing Simulator

Simulate thin convex and concave lenses with real-time geometric ray tracing, candle flame real/virtual image formation, and Snell's Law refraction with total internal reflection.

Free to use No sign-up Runs in your browser

Tool workspace

Classic Optical Device Presets

Interactive Geometric Ray Tracing Diagram

Principal ray paths: Parallel through focus (red), through optical center (blue), and through near focus (green).

Real Image (Can be captured on screen)
FF'ObjectImage
Optical Principle:u > 2f: Inverted, diminished real image formed between f and 2f (Camera / Human Eye principle).

Lens & Object Parameters

10 cm
25 cm

Imaging Results

Image Distance (v)
16.67 cm
Magnification (M)
-0.67×
Real
Inverted
Diminished

What is the Optics & Lens Simulator?

The Optics & Lens Simulator is an interactive physics tool for geometric optics and light refraction. Using the Gaussian thin lens formula (1/f = 1/u + 1/v) and transverse magnification (M = -v/u), it demonstrates the optical operating principles of human eyes, cameras, projectors, magnifying glasses, and eyeglasses through dynamic three-ray geometric construction.

How to Use the Simulator

  1. 1Select an optical preset (such as Camera, Projector, Magnifying Glass, or Myopia Glasses) or manually set focal length and object distance.
  2. 2Drag the candle object along the optical bench to watch the three principal rays refract dynamically through the lens.
  3. 3Check the image characterization badges indicating real vs. virtual, upright vs. inverted, and magnified vs. diminished.
  4. 4Switch to Snell's Law tab to explore light bending between different media and verify critical angles for total internal reflection.

Everyday Physics & Optical Engineering

Camera and Human Eye Lens Action

Understand how the crystalline lens forms inverted, diminished real images on the retina or digital CMOS sensor when u > 2f.

Slide Projector and Cinema Projection

Demonstrate why slides must be loaded upside-down into projectors so the inverted magnified image appears upright on the screen.

Fiber Optic Communications Total Internal Reflection

Calculate critical angles for glass-core fiber optics (n = 1.52) in air or cladding (n = 1.33) ensuring zero signal leakage.

Frequently asked questions

What is the difference between a real image and a virtual image?

A real image is formed by the actual convergence of refracted light rays and can be projected onto a physical screen. A virtual image is formed where diverging light rays only appear to originate when traced backwards; it cannot be cast onto a screen but can be perceived by the human eye.

What condition is required for Total Internal Reflection (TIR)?

Total internal reflection can only occur when light travels from an optically denser medium (higher refractive index n1) into an optically rarer medium (lower index n2), and the angle of incidence exceeds the critical angle θc = arcsin(n2 / n1).

Why does a concave lens always produce a virtual image?

Because a concave lens has a negative focal length (f < 0), incident parallel rays diverge outwards upon refraction. Their backward extensions always intersect on the same side as the object, resulting in v < 0 and an upright, diminished virtual image for any positive object distance.