Thin Lens and Mirror Equation Calculator

Find where a lens or curved mirror forms an image and what the image looks like. Enter the focal length and the object distance and the calculator applies the thin lens (or mirror) equation, gives the magnification and image height, and describes the image as real or virtual, upright or inverted, magnified or diminished.

Inputs

Results

Image distance
15
Magnification
-0.5
Image height (negative = inverted)
-1
Image
Real, inverted, diminished; on the far side of the lens
Optical power
10
dioptres (m⁻¹)

    RefPHY-OPT-001
    Method1/f = 1/dₒ + 1/dᵢ, m = −dᵢ/dₒ (real-is-positive)
    UnitsSI
    Date2026-11-24

    Working

    Calculated in SI base units; inputs are converted from the units you choose.

    1. Signed focal lengthf > 0 converging lens or concave mirror, f < 0 diverging lens or convex mirrorConverging (convex) lens: f = 10 cm
    2. Image distance1/dᵢ = 1/f − 1/dₒ1/dᵢ = 1/10 − 1/30 → dᵢ = 15 cm
    3. Magnification and image heightm = −dᵢ/dₒ, hᵢ = m·hₒm = −15 / 30 = -0.5, hᵢ = -1 cm
    4. Optical powerP = 1/f (f in metres)P = 10 D

    The real-is-positive sign convention

    Distances to real objects and real images are positive; virtual images have negative image distances. Converging lenses and concave mirrors have positive focal lengths, diverging lenses and convex mirrors negative ones. A negative magnification means the image is inverted. An object inside the focal length of a converging lens gives an upright, magnified, virtual image, which is how a magnifying glass works.

    Assumptions and limits

    • Thin lens or spherical mirror with paraxial rays (small angles to the axis).
    • Lens surrounded by the same medium on both sides.
    • Single element; for systems, use the image of one element as the object for the next.

    References

    • Hecht, E., Optics, 5th ed., Pearson, 2017, chapter on geometrical optics.
    • Halliday, D., Resnick, R. and Walker, J., Fundamentals of Physics, 12th ed., Wiley, 2021, chapter on images.

    Questions

    Where is the image of an object 30 cm from a 10 cm converging lens?
    15 cm on the other side of the lens. It is real, inverted and half the size (m = −0.5), so a 2 cm object gives a 1 cm image.
    What does a magnifying glass do?
    With the object inside the focal length, for example 5 cm from a 10 cm lens, the image is virtual, upright and twice the size, 10 cm from the lens on the object side.

    This calculator is a design aid. Check results against the governing code or standard and have critical work verified by a qualified engineer. Read the disclaimer.