Physics Tools

Active tool: Lens & Mirror

Selected option: Results update automatically

What It Does

Solve the thin-lens or spherical-mirror equation for focal length, object distance, or image distance from exactly two known distances. The calculator also reports signed magnification and classifies the image. Everything is computed on your device. Nothing is uploaded.

How to Use It

  1. Choose the lens or mirror type to set the focal-length sign.
  2. Enter exactly two of focal length, object distance, and image distance.
  3. Use negative object/image distances for virtual objects/images; leave the third distance blank.
  4. Optionally enter object height to calculate signed image height. Read the image classification and substituted working.
  5. Copy an individual result or all inputs/results; Clear resets the form.

Options Explained

OptionDescription
Optical elementConverging lenses and concave mirrors have positive focal length; diverging lenses and convex mirrors have negative focal length. The entered focal length is its positive magnitude.
Signed distancesReal objects and images are positive; virtual objects and images are negative. Signs are retained in results.
Length unitApplies to every distance and height. Changing it preserves the entered physical values.
Object heightOptional non-negative magnitude. A negative image height indicates an inverted image.
PrecisionSignificant digits for results and copied values, not a change to the calculation.

Worked Example

For a converging lens with f = 10 cm and a real object at dₒ = 15 cm, dᵢ = (10 × 15) ÷ (15 − 10) = 30 cm. Magnification is −30 ÷ 15 = −2, so the image is real, inverted, and enlarged.

Enter exactly two distances

Real-is-positive convention: f is positive for converging elements and negative for diverging elements.

Applies to all distances and heights. Changing it converts entered values and results to preserve the same measurements.

Enter a positive magnitude; the element selection supplies the focal-length sign.

Enter two of focal length, object distance, and image distance.

Thin-Lens and Mirror Equation

The thin-lens and spherical-mirror equation is 1/f = 1/dₒ + 1/dᵢ. It relates the focal length f (how strongly the optical element bends or reflects light), object distance dₒ (from the element to the object), and image distance dᵢ (from the element to where the image forms). The distances use a consistent signed convention: positive is real and negative is virtual. The element selector sets the sign of f: positive for a converging lens or concave mirror, negative for a diverging lens or convex mirror.

Each term is a reciprocal distance. This means the equation adds optical power, measured in inverse length, rather than adding the distances themselves. Enter any two of f, dₒ, and dᵢ to solve for the third. For example, solving for image distance gives dᵢ = f dₒ / (dₒ − f). If dₒ = f, the denominator is zero: outgoing rays are parallel, so there is no finite image distance.

Principal-ray diagram for a converging lensAn upright object 15 centimeters to the left of a converging lens forms an inverted real image 30 centimeters to its right. The focal points are 10 centimeters from the lens on each side. Three principal rays meet at the image tip.Converging lensObjectReal imageFFdₒ = 15 cmdᵢ = 30 cmFocal length: f = 10 cm · diagram not to scale

On narrow screens, scroll the diagram horizontally to see all labels.

For a converging lens with f = 10 cm and dₒ = 15 cm, the equation gives dᵢ = 30 cm. The real image is inverted and twice the object height. Spherical mirrors use the same equation and sign rules; their principal rays reflect instead of refracting.

Magnification and image height

Transverse magnification is m = −dᵢ/dₒ. A negative value means inverted and a positive value means upright. The absolute value tells the size: greater than one is enlarged, less than one is reduced, and exactly one is the same size. If object height is supplied, hᵢ = m hₒ; the sign of hᵢ indicates orientation.

Focal point and infinite image distance

When a real object lies at the focal point of a converging lens or concave mirror, outgoing rays are parallel. There is no finite image distance, so this calculator reports a singular case rather than displaying infinity.

Assumptions and limitations

This tool uses the paraxial thin-lens or spherical-mirror model. It does not perform ray tracing or account for lens thickness, aberrations, multiple optical elements, or refractive-index changes. Real systems may depart from this ideal model. Everything is computed on your device. Nothing is uploaded.

Frequently Asked Questions

What sign convention does this calculator use?

Converging lenses and concave mirrors have positive focal length; diverging lenses and convex mirrors have negative focal length. Real object/image distances are positive, while virtual object or image distances are negative.

What is the difference between a real and virtual image?

A real image has positive image distance in this convention and can be formed on a screen. A virtual image has negative image distance and appears to come from an apparent ray origin.

What do positive and negative magnification mean?

Positive magnification means upright; negative means inverted. Its absolute value describes image size relative to the object.

Why is there no finite image when dₒ equals f?

For a real object at the focal point of a converging element, the outgoing rays are parallel, corresponding to an image at infinity rather than a finite image distance.

When is the thin-lens or mirror model appropriate?

It is an ideal paraxial approximation for thin lenses and spherical mirrors. Thick or multi-element systems and strong off-axis effects need a more detailed optical model.

Related tools: Wave Speed, Physical Constants, and Unit Converter.