Guide

THE TOOLBOX / SCHOOL & PHYSICS OPTICS

Thin Lens Equation Calculator —
1/f = 1/dₒ + 1/dᵢ & Interactive Ray Diagram.

Solve the thin-lens and spherical-mirror equation for image distance (dᵢ), focal length (f), or object distance (dₒ), calculate lateral magnification and diopters, and visualize live principal ray diagrams.

Physics Presets:
1. Optical Element
2. Solve For
45 cm
Interactive Principal Ray Diagram
FF'ObjImg
■ Object (hₒ = 8 cm)■ Image (Real Image, Inverted)— Parallel Ray— Chief / Vertex Ray
Image Distance (dᵢ)
22.5 cm
Magnification (M)
-0.5×
Image Height (hᵢ)
-4 cm
Optical Power (P)
6.67 D
Image Type
Real Image
Orientation & Scale
Inverted · Reduced (0.5×)
Thin-Lens Equation Substitution
1/f = 1/dₒ + 1/dᵢ → 1/(15) = 1/(45) + 1/(22.5)
M = −dᵢ / dₒ = −(22.5) / (45) = -0.5×

GEOMETRIC OPTICS REFERENCE

Sign conventions and image formation rules for lenses and spherical mirrors.

1. Thin-Lens & Magnification Formulas

Use 1/f = 1/dₒ + 1/dᵢ to relate focal length, object distance, and image distance, and M = hᵢ / hₒ = −dᵢ / dₒ to find magnification and orientation.

2. Real vs. Virtual Image Signs

dᵢ > 0 (Real): Light rays actually converge at the image location (opposite side for lenses, same side for mirrors). dᵢ < 0 (Virtual): Rays diverge as if coming from behind the optic (always upright for a single lens or mirror).

3. Quick Converging Lens Cases

dₒ > 2f: Real, inverted, reduced (camera). dₒ = 2f: Real, inverted, same size. f < dₒ < 2f: Real, inverted, magnified (projector). dₒ < f: Virtual, upright, magnified (magnifying glass).

Frequently Asked Questions

What is the thin lens equation?

The thin lens equation is 1/f = 1/dₒ + 1/dᵢ, where f is the focal length, dₒ is the object distance, and dᵢ is the image distance. The exact same formula applies to spherical concave and convex mirrors using standard sign conventions.

What do positive and negative signs mean for f, dᵢ, and magnification M?

A positive focal length (f > 0) indicates a converging lens or concave mirror; a negative focal length (f < 0) indicates a diverging lens or convex mirror. A positive image distance (dᵢ > 0) means a real image (projectable on a screen), while dᵢ < 0 means a virtual image. Negative magnification (M < 0) indicates an inverted image; M > 0 indicates an upright image.

What happens when an object is placed exactly at the focal point (dₒ = f)?

When dₒ = f for a converging lens or concave mirror, 1/dᵢ = 1/f − 1/f = 0, so dᵢ approaches infinity. The refracted or reflected rays exit parallel to each other and no sharp image is formed at a finite distance.

How is optical power in diopters (D) calculated?

Optical power equals the reciprocal of focal length in meters: P = 1 / f(m) = 100 / f(cm). A converging lens with f = +20 cm has a power of +5.0 diopters, while a diverging lens with f = −25 cm has a power of −4.0 diopters.