Skip to main content

Lens Optics Calculator

Calculate image distance, focal length, or object distance using the thin lens equation. Get magnification, image type, and orientation instantly.

Ad (leaderboard)
f

Thin Lens Equation

1/f = 1/do + 1/di

Positive = converging, Negative = diverging

Positive = real, Negative = virtual

Rate this tool
0.0 / 5 · 0 ratings

Embed This

Add this calculator to your website for free. Copy the single line of code below and paste it into your HTML. The calculator auto-resizes to fit your page.

<script src="https://calchammer.com/embed.js" data-calculator="lens-optics-calculator" data-category="physics"></script>
data-theme "light", "dark", or "auto"
data-values Pre-fill inputs, e.g. "amount=1000"
data-max-width Max width, e.g. "600px"
data-border "true" or "false"
Or use an iframe instead
<iframe src="https://calchammer.com/embed/physics/lens-optics-calculator" width="100%" height="500" style="border:none;border-radius:12px;" title="Lens Optics Calculator"></iframe>

Preview

yoursite.com/blog
Lens Optics Calculator auto-resizes here
Ad (in_results)

Understanding the Thin Lens Equation

The thin lens equation (1/f = 1/do + 1/di) is one of the most fundamental relationships in geometric optics. It connects the focal length of a lens to the distances of the object and its image. First formalized in the 17th century, this equation remains essential for designing cameras, telescopes, microscopes, eyeglasses, and countless other optical instruments. The equation assumes that the lens is thin enough that all refraction occurs at a single plane, which is an excellent approximation for most everyday lenses.

This calculator lets you solve for any one of the three variables: focal length, object distance, or image distance. It also computes the magnification (m = -di/do), which tells you how large the image is relative to the object and whether it is upright or inverted. The sign conventions used here follow the standard physics convention: positive image distances correspond to real images, and positive focal lengths correspond to converging lenses.

Real vs. Virtual Images

A real image forms when light rays actually converge at a point after passing through the lens. Real images have positive image distances and can be projected onto a screen. A virtual image forms where diverging rays appear to originate; it has a negative image distance and cannot be captured on a screen but can be seen by looking through the lens. Converging lenses produce real images when the object is beyond the focal point, and virtual images when the object is between the lens and the focal point.

Magnification and Image Characteristics

The magnification tells you three things about the image: its size relative to the object (|m| > 1 means enlarged, |m| <1 means reduced

>

Related Calculators

You Might Also Need

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and should not be considered professional expert advice. Consult a qualified professional before making decisions based on these calculations. See our full Disclaimer.

Recommended Reading