ToolPatch

One page. One job. Done.

← Back to all tools
Physics

Lens Imaging Calculator

Solve thin-lens image distance, magnification, and orientation.

Formula reviewed: 2026-02-14 Physics

Lens Imaging Calculator applies the thin-lens equation to relate focal length, object distance, and image distance. Focal length is the distance from the lens to the focal point for parallel incoming light, object distance is the distance from the object to the lens, and image distance is where the image forms. Magnification compares image height with object height; its sign and size indicate whether the image is inverted or upright and enlarged or reduced. Real images can be projected onto a screen, while virtual images appear to come from a location where rays do not physically converge. The thin-lens model is useful for optics coursework and camera intuition, but thick lenses, aberrations, aperture, and sensor geometry can affect real optical systems.

Permalink

Input Pattern

Enter values in the left panel, keep units explicit, run the calculation, then copy or share the result. Invalid fields are highlighted immediately.

How to use this tool

  1. Enter Focal length f (cm), Object distance do (cm), Object height ho (cm) for the lens imaging calculator, keeping units, dates, or text format consistent with the form labels.
  2. Confirm all units and known variables before running the calculation so the formula is applied consistently.
  3. Click "Run the tool" and review Thin Lens Inputs, Result for the primary output.
  4. Verify units and assumptions, especially before using the result for design, lab, or safety-sensitive work.

Thin Lens Inputs

Result

Image distance di: 15.00000000 cm

Magnification m: -0.50000000

Image height hi: -1.00000000 cm

Image type: Real

Orientation: Inverted

Thin Lenses and Image Formation

Bending Light to Form Images

A lens forms images by refracting light. A converging lens brings parallel rays toward a focal point, while a diverging lens spreads rays as if they came from a focal point. The thin-lens model simplifies a real lens into an ideal element with a focal length and negligible thickness.

The thin-lens equation relates object distance, image distance, and focal length. It captures where an image forms when an object is placed at a given distance. The model is a first-order approximation, but it explains cameras, magnifiers, eyeglasses, projectors, and basic optical instruments.

Real and Virtual Images

A real image forms where light rays actually converge and can be projected onto a screen or sensor. A virtual image forms where rays appear to originate when traced backward; it cannot be projected directly onto a screen. A magnifying glass used close to an object creates a virtual enlarged image. A camera lens forms a real image on the sensor.

The distinction depends on object position relative to focal length. For a converging lens, objects outside the focal length form real images on the opposite side. Objects inside the focal length form virtual images on the same side as the object.

Magnification and Sign Conventions

Magnification compares image size with object size. A negative magnification often indicates an inverted image under common sign conventions; a positive value indicates upright orientation. The magnitude tells how much larger or smaller the image is.

Sign conventions vary across textbooks and optical design contexts. The physical interpretation is more important than memorizing a convention. A ray diagram can confirm whether an image is real or virtual, upright or inverted, enlarged or reduced.

Limits of the Thin-Lens Model

Real lenses have thickness, aperture limits, aberrations, dispersion, coatings, curvature details, and alignment errors. Spherical aberration, chromatic aberration, distortion, field curvature, and diffraction can all affect image quality. Multi-element lens systems exist to control these imperfections.

The thin-lens equation remains useful because it gives the paraxial starting point: where the image should form and how large it should be under ideal conditions. Practical optics then refines that baseline for real materials and finite apertures.

How to interpret the result

Confidence and limitations

Formula References

Assumptions

Explore more versions

Tailored guides for specific audiences, regions, and scenarios.

Related tools and workflows