Loading…

Thin Lens Equation Tool

Physics Optics • Geometric Optics Basics

View all topics

Solve the thin lens equation \(\frac{1}{f}=\frac{1}{d_o}+\frac{1}{d_i}\), compute magnification \(m=-\frac{d_i}{d_o}\), classify the image, and inspect an animated ray diagram for converging or diverging lenses.

Inputs
Sign convention used here: converging lenses use \(f>0\), diverging lenses use \(f<0\), and a real object on the left has \(d_o>0\). A positive \(d_i\) means a real image on the right; a negative \(d_i\) means a virtual image on the left.
Animation
Ready
Ready
Animated lens diagram
Two standard rays are traced from the top of the object: one parallel to the axis and one through the lens center. Their intersection, or the intersection of their backward extensions, locates the image.
Drag to pan. Use the mouse wheel to zoom. Fit view restores the default framing.
Enter values and click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

How does the calculator tell whether the image is real or virtual?

It uses the sign of di. A positive di means the image forms on the right side of the lens and is real. A negative di means the image stays on the same side as the object and is virtual.

Why is the focal length negative for a diverging lens?

A diverging lens makes parallel rays spread out as if they came from a focal point on the object side, so the standard thin-lens sign convention assigns it a negative focal length.

What does a negative magnification mean for a lens image?

A negative magnification means the image is inverted. A positive magnification means the image is upright.

What happens when the object is at the focal point of a converging lens?

The refracted rays leave parallel to one another, so the image moves to infinity and the calculator reports an infinite image distance.