# Thin Lens Equation Calculator

1/f = 1/u + 1/v solved for f, u, or v: magnification, real/virtual image nature, and power in diopters.

> Canonical page: https://elysiatools.com/en/tools/thin-lens-equation

- **Category:** Science & Education

- **Keywords:** thin lens equation, lens formula, focal length, magnification, virtual image, diopters

## Overview

The Thin Lens Equation Calculator computes image distance, object distance, or focal length using the fundamental lens formula (1/f = 1/u + 1/v). It automatically determines optical power in diopters, lateral magnification, and whether the resulting image is real or virtual, inverted or upright.

## Inputs

- **Solve for** (select)
- **Focal length f (given)** (number): e.g. 10
- **Object distance u (given)** (number): e.g. 15
- **Image distance v (given)** (number): e.g. 30
- **Length unit** (select)

## When to use

- Determining the required screen distance or focal length when configuring optical projectors and cameras.
- Solving optics homework problems and verifying thin lens equations in physics classrooms.
- Calculating magnification and image position for simple magnifying glasses or reading lenses.

## How it works

- Select the unknown variable to solve for: image distance (v), focal length (f), or object distance (u).
- Enter the known values for the remaining two parameters along with your preferred measurement unit (mm, cm, or m).
- The tool applies the lens formula under the real-is-positive convention to calculate the missing distance, optical power (P = 1/f), magnification factor (m = −v/u), and image characteristics.

## Use cases

- Physics education: demonstrating how changing object distance transforms an image from real and inverted to virtual and upright.
- Optical bench setups: calculating exact sensor and lens positions for bench alignment.
- Magnifier analysis: determining visual magnification and virtual image location for reading aids.

## Frequently asked questions

### What sign convention does this calculator use?

It uses the standard real-is-positive convention, where real object and image distances are positive, and virtual image distances are negative.

### How is optical power calculated?

Optical power (P) is calculated as the reciprocal of the focal length in meters (P = 1/f) and is expressed in diopters (dpt).

### What does a negative magnification value mean?

A negative magnification indicates that the image is inverted relative to the object, whereas a positive magnification indicates an upright image.

### Which length units are supported?

You can enter values and view distances in millimeters (mm), centimeters (cm), or meters (m).

### When does a converging lens produce a virtual image?

A converging lens produces an upright, enlarged virtual image when the object is placed inside the focal length (u < f).

## Related tools

- [AI Face Compare (1:1)](https://elysiatools.com/en/tools/ai-face-compare): Compare two images, output embedding distance and match boolean by threshold, only compare the first face in each image
- [Image Emboss Effect](https://elysiatools.com/en/tools/image-emboss): Apply professional emboss effects with adjustable depth, angle, and lighting direction for 3D surface appearance
- [Blur Background Image Extender](https://elysiatools.com/en/tools/image-extend-blur-background): Extend image canvas with blurred background, perfect for portraits, product photos, and professional presentations
- [Gradient Image Extender](https://elysiatools.com/en/tools/image-extend-gradient): Extend image canvas with gradient backgrounds for modern design effects and smooth transitions
- [Image Gaussian Blur](https://elysiatools.com/en/tools/image-gaussian): Apply Gaussian blur kernel for smooth noise reduction and image softening with precise control
- [Image Laplacian Operator](https://elysiatools.com/en/tools/image-laplacian): Apply Laplacian operator for edge detection, sharpening, and image enhancement with different kernel variants
- [SERP & Social Preview Studio](https://elysiatools.com/en/tools/serp-social-preview-studio): Preview Google SERP (pixel-accurate desktop & mobile truncation), X (Twitter) Card, and OpenGraph card side by side, with pre-launch SEO diagnostics
- [Ampère Force Calculator](https://elysiatools.com/en/tools/ampere-force-calculator): F = B·I·L·sinθ for a current-carrying wire, with unit selectors, the force magnitude, the 90° reference, and the right-hand-rule direction.

## Samples

- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion
- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Web Image Processing Rust Samples](https://elysiatools.com/en/samples/web-image-processing-rust): Web Rust image processing examples including image read/save, scaling, and format conversion
