Focal Length Calculator
Enter any two of focal length, object distance, or image distance to solve the thin lens equation (1/f = 1/d₀ + 1/dᵢ) and find the unknown.
Lens Parameters
Use the same unit for all values (mm, cm, or m).
Positive = converging; negative = diverging.
Distance from object to lens center.
Positive = real image; negative = virtual image.
Result
—
Magnification (m)
—
Image Type
—
All Three Values
f
—
do
—
di
—
Equation Check
Ray Diagram
Schematic — not to scale.
Select what to solve for, enter the two known values, then click Calculate.
Summary
Enter any two of focal length, object distance, or image distance to solve the thin lens equation (1/f = 1/d₀ + 1/dᵢ) and find the unknown.
How it works
- Choose which variable to solve for: focal length (f), object distance (d₀), or image distance (dᵢ).
- Enter the two known values in the input fields (any consistent unit — mm, cm, m).
- Click Calculate. The tool applies 1/f = 1/d₀ + 1/dᵢ and returns the unknown.
- Review the magnification (m = −dᵢ/d₀) and the image type (real vs. virtual, upright vs. inverted).
- Adjust any input and recalculate to explore how changing one variable affects the others.
Use cases
- Determine the focal length of an unknown lens by measuring where an image forms.
- Find the required object distance to place a specimen for a desired image position.
- Calculate image distance for a projector or camera with a known focal length.
- Verify optics homework or lab results quickly.
- Explore how converging and diverging lenses behave under different setups.
- Cross-check magnification for microscopes, telescopes, or camera macro setups.
Frequently Asked Questions
Last updated: 2026-07-23 ·
Reviewed by Nham Vu