Skip to content
Tezmy Tools

Lens Equation Calculator

Find where a lens forms its image, and how big it is

Image distance

15

Magnification
-0.5
Image type
Real (can be shown on a screen)
Orientation
Upside down
Size compared with the object
0.5 times

Thin lens equation: 1 ÷ f = 1 ÷ object distance + 1 ÷ image distance. Magnification = −image distance ÷ object distance. Use one unit for all lengths.

Runs in your browser. Nothing is uploaded.

About the Lens Equation Calculator

A lens bends light to form an image. The thin lens equation links the focal length of the lens, the distance of the object and the distance of the image. This calculator solves it in two ways: from the focal length and the object distance it gives the image distance, magnification, whether the image is real or virtual and whether it is upright or upside down. Or from the two distances it finds the focal length. Type the focal length and the object distance, or the object and image distances and the image distance appears at once, with a few related figures underneath, and you can copy the result with one tap. The sums run in your browser, so nothing you enter is uploaded.

Updated October 2026

How to use the Lens Equation Calculator

  1. 1Enter the focal length and the object distance, or the object and image distances.
  2. 2Pick the units or options from the menus if the image distance tool offers them.
  3. 3Read the image distance in the large result box.
  4. 4Look at the extra rows for related figures.
  5. 5Press Copy result to keep the answer.

When you need the image distance

Students use the equation for optics homework, photographers to understand focusing and enlarging, and hobbyists to build telescopes, projectors and magnifiers. The sign of the result tells you where to put a screen or whether you need to look through the lens.

A real image can be caught on a screen; a virtual image cannot, but you can see it by looking through the lens. A diverging lens always gives a smaller, upright, virtual image of a real object.

    How the image distance is worked out

    1 ÷ f = 1 ÷ object distance + 1 ÷ image distance. Magnification = −image distance ÷ object distance. A positive focal length is a converging lens; a negative one is diverging. A converging lens with f = 10 cm and an object 30 cm away forms a real image 15 cm behind the lens, half the size and upside down (magnification −0.5). With the object at 5 cm, inside the focal length, the image is virtual, 10 cm on the same side, upright and twice the size: a magnifying glass.

    Every answer on this page comes from that one rule, so you can check any result by hand with a calculator. The figures shown underneath, such as other units, are conversions of the same answer.

    • Image and focal length modes
    • Real or virtual, upright or inverted
    • Lens power in dioptres

    Mistakes to avoid with image distance

    Use the same unit for every length. The equation works for thin lenses and for rays close to the axis. Thick lenses and wide beams have aberrations that the formula ignores. If the object is exactly at the focal point, the image is at infinity and no finite answer exists.

      On phone and computer

      On a phone, type into the boxes one after another and read the image distance underneath; Copy result puts it on the clipboard for a message or a note. On a computer the inputs sit on the left and the answer on the right, so you can change one figure and watch the image distance move. The lens equation calculator works the same on both. Lens maths pairs well with other light calculations. Check bending at a surface with the Snell's Law Calculator, find the wavelength of light with the Wavelength Calculator, and use the Trigonometry Calculator for angles.

        Features

        • Same unit everywhere
        • Positive f converges
        • Object at f gives no image
        • Clear messages when the image distance inputs make no sense
        • Copy the result with one tap
        • Private: nothing is uploaded

        Frequently asked questions

        How do I calculate image distance?

        1 ÷ f = 1 ÷ object distance + 1 ÷ image distance. Magnification = −image distance ÷ object distance. A positive focal length is a converging lens; a negative one is diverging. A converging lens with f = 10 cm and an object 30 cm away forms a real image 15 cm behind the lens, half the size and upside down (magnification −0.5). With the object at 5 cm, inside the focal length, the image is virtual, 10 cm on the same side, upright and twice the size: a magnifying glass.

        What is the formula for image distance?

        1 ÷ f = 1 ÷ object distance + 1 ÷ image distance. Magnification = −image distance ÷ object distance. A positive focal length is a converging lens; a negative one is diverging. The lens equation calculator applies it exactly and rounds only the displayed answer to six significant figures.

        What does a negative image distance mean?

        The image is virtual, on the same side of the lens as the object.

        What is a negative magnification?

        The image is upside down. A positive value means upright.

        How do I find the power of a lens?

        Power in dioptres is 1 divided by the focal length in metres. The focal-length mode shows it.

        Is this lens equation calculator free and private?

        Yes. It is free, needs no account and runs in your browser, so the numbers you type are not uploaded or stored.

        Related tools