Thin Lens Calculator
Enter any two of focal length, object distance, or image distance to solve the thin lens equation and compute magnification.
Lens Parameters
Positive = converging lens; negative = diverging lens.
Distance from object to the lens center.
Positive = real image; negative = virtual image.
Result
—
Magnification (m)
—
Image Type
—
All Values Summary
f (cm)
—
do (cm)
—
di (cm)
—
Ray Diagram
Schematic only — not to scale.
Select what to solve for, enter the two known values, and click Calculate.
Summary
Enter any two of focal length, object distance, or image distance to solve the thin lens equation and compute magnification.
How it works
- Select which quantity you want to find: focal length, object distance, or image distance.
- Enter the two known values in centimeters.
- Click Calculate to apply 1/f = 1/do + 1/di and get the unknown value.
- Read the magnification (m = -di/do) and image type — real or virtual, upright or inverted.
- Try different values to compare converging (positive f) and diverging (negative f) lenses.
Use cases
- Solve optics homework problems involving converging or diverging lenses.
- Find where an image forms given a known focal length and object placement.
- Determine what focal length a lens needs to produce an image at a target distance.
- Check whether an image is real or virtual for a given lens setup.
- Understand magnification in cameras, telescopes, and microscopes.
- Explore how object distance affects image size and orientation.
Frequently Asked Questions
Last updated: 2026-06-11 ·
Reviewed by Nham Vu