Skip to main content
physics

Thin Lens Calculator

Calculate image distance and magnification using the thin lens equation 1/f = 1/dₒ + 1/dᵢ. Analyze converging and diverging lenses for optics, photography, and vision correction applications.

Reviewed by Christopher FloiedUpdated

This free online thin lens calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Thin Lens Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Thin Lens Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

Thin Lens Calculator Formula

See calculator inputs for the governing equation

Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.

When to Use This Calculator

  • Use the Thin Lens Calculator when you need accurate results quickly without the risk of manual computation errors or unit conversion mistakes.
  • Use it to verify calculations made by hand or in spreadsheets — an independent check can catch errors before they lead to costly decisions.
  • Use it to explore how changing input parameters affects the output — a quick way to develop intuition and identify the most influential variables.
  • Use it when collaborating with others to ensure everyone is working from the same numbers and applying the same assumptions.

About This Calculator

The Thin Lens Calculator is a free, browser-based calculation tool for engineers, students, and technical professionals. Calculate image distance and magnification using the thin lens equation 1/f = 1/dₒ + 1/dᵢ. Analyze converging and diverging lenses for optics, photography, and vision correction applications. It implements standard formulas and supports both metric (SI) and imperial unit systems with automatic unit conversion. All calculations are performed instantly in your browser with no data sent to a server. Use this calculator as a quick reference and sanity-check tool during design, analysis, and learning. Always verify results against primary engineering references and applicable standards for any safety-critical application.

About Thin Lens Calculator

The Thin Lens Calculator uses the fundamental thin lens equation to determine where an image forms and how large it appears. This equation, 1/f = 1/dₒ + 1/dᵢ, governs all single-lens imaging systems from magnifying glasses to camera lenses to corrective eyeglasses. Positive focal lengths describe converging (convex) lenses; negative focal lengths describe diverging (concave) lenses. The sign of the image distance reveals whether the image is real or virtual, while magnification tells you if it is enlarged, reduced, inverted, or upright.

The Math Behind It

The thin lens equation assumes the lens thickness is negligible compared to the focal length and object/image distances. **Sign conventions** (standard): - Distances measured in the direction of light propagation are positive - Object distance dₒ is positive (object is on the incoming side) - Positive dᵢ: real image (opposite side from object) - Negative dᵢ: virtual image (same side as object) - Positive f: converging lens (convex) - Negative f: diverging lens (concave) **Image characteristics from magnification M = −dᵢ/dₒ**: - |M| > 1: enlarged image - |M| < 1: reduced image - M > 0: upright (virtual) image - M < 0: inverted (real) image **Special cases for converging lenses**: - Object at infinity (dₒ → ∞): image at focal point - Object at 2f: image at 2f, M = −1 (same size, inverted) - Object between f and 2f: image beyond 2f, enlarged, inverted - Object at f: image at infinity (no image forms) - Object inside f: virtual, upright, enlarged (magnifying glass) **Diverging lenses**: Always produce virtual, upright, reduced images regardless of object position. Used to correct nearsightedness. **Lensmaker's equation**: 1/f = (n−1)[1/R₁ − 1/R₂], where n is the refractive index and R₁, R₂ are the radii of curvature. This connects focal length to the physical shape of the lens. **Lens combinations**: For two thin lenses in contact, 1/f_total = 1/f₁ + 1/f₂. Optical power in diopters = 1/f (meters).

Formula Reference

Thin Lens Equation

1/f = 1/dₒ + 1/dᵢ

Variables: f = focal length, dₒ = object distance, dᵢ = image distance

Magnification

M = −dᵢ/dₒ

Variables: Negative M means inverted image

Worked Examples

Example 1: Converging Lens

f = 10 cm, object at 25 cm

Step 1:1/dᵢ = 1/10 − 1/25 = 0.1 − 0.04 = 0.06
Step 2:dᵢ = 16.67 cm
Step 3:M = −16.67/25 = −0.667

Real image at 16.67 cm, reduced and inverted (M = −0.667).

Example 2: Magnifying Glass

f = 10 cm, object at 7 cm (inside focal length)

Step 1:1/dᵢ = 1/10 − 1/7 = 0.1 − 0.143 = −0.043
Step 2:dᵢ = −23.33 cm
Step 3:M = −(−23.33)/7 = +3.33

Virtual image at −23.33 cm, enlarged 3.33× and upright.

Example 3: Diverging Lens

f = −15 cm, object at 30 cm

Step 1:1/dᵢ = 1/(−15) − 1/30 = −0.0667 − 0.0333 = −0.1
Step 2:dᵢ = −10 cm
Step 3:M = −(−10)/30 = +0.333

Virtual image at −10 cm, reduced to 1/3 size, upright.

Common Mistakes & Tips

  • !Forgetting sign conventions — diverging lenses have negative focal lengths, virtual images have negative dᵢ.
  • !Placing the object at exactly the focal point where the equation gives dᵢ = infinity (image does not form).
  • !Confusing magnification sign with image size — negative M means inverted, not smaller.
  • !Applying the thin lens equation to thick lenses or lens systems without modification.

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

What makes an image real vs virtual?

A real image forms where light rays actually converge — you can project it on a screen. A virtual image forms where rays appear to diverge from — you cannot project it. Your reflection in a flat mirror is a virtual image.

How do eyeglasses correct vision?

Nearsightedness: diverging lenses (negative f) reduce the eye's excess converging power. Farsightedness: converging lenses (positive f) add converging power the eye lacks. Lens power in diopters = 1/f (meters).

Why does the equation fail at dₒ = f?

When the object is at the focal point, light exits the lens as parallel rays — they never converge to form an image. Mathematically, 1/dᵢ = 0, meaning dᵢ = ∞. This principle is used in collimating light.