anındahesapla

Thin lens equation calculator

Find the image distance, magnification and image type from a lens's focal length and object distance.

· Updated:

WhatsApp X Facebook

Place an object 30 cm in front of a lens with a 10 cm focal length, and its image appears 15 cm behind the glass with a magnification of -0.5. That answer comes from the thin lens equation. The picture is real and upside down. Enter two inputs, and the calculator returns three results at once, including whether the image can be projected onto a screen.

Physics homework brings this problem up all the time. Hobbyists meet it too when they set up a magnifier, a slide projector or a homemade telescope, and photographers meet it whenever a close subject forces the lens to be racked farther out from the camera body. Every case asks the same thing. As the object moves, where does the image land and how large does it become? Below, the equation, each input and the output are explained in turn, with a worked example and a short table of results.

cm
cm

Result

15 cm

Image distance: 15 cm · Magnification: -0.5

1/f = 1/do + 1/di

What the thin lens equation describes

The thin lens equation ties together three lengths for a lens whose thickness is small compared with its focal length. Written out, it reads 1/f = 1/do + 1/di. Know any two, solve the third. Treating the lens as thin means ignoring the short path light travels inside the glass, an approximation that keeps the arithmetic light and still predicts image positions well for ordinary spectacle, magnifier and camera lenses.

Each symbol has a job. The letter f is the focal length and reflects how strongly the lens bends light. Object distance do is the gap between the object and the lens, while image distance di measures how far the image sits from the lens. Magnification m equals di divided by do, with a minus sign in front. Negative values mean inversion. When its size is below one, the image is smaller than the object. Converging lenses take a positive focal length and diverging lenses a negative one, so the sign carries physical information about the shape of the glass. All lengths must share one unit: this tool works in centimetres.

Eyeglasses, magnifying glasses, microscopes, telescopes and cameras all form images in this way. This formula predicts where a projector screen should stand, how far a camera sensor belongs behind its lens and how the lens of the eye lands a scene on the retina at the back of the eyeball. On a lab optical bench, students check measured distances against it. Results usually agree closely. Small gaps between theory and measurement come from lens thickness, imperfect alignment and the difficulty of judging by eye when a projected picture is sharpest.

How to work out the image distance

Two inputs are needed. Type in the focal length and the distance from the object to the lens, both in centimetres, and the calculator solves the equation for the image distance before using that value to find the magnification and classify the image as real or virtual, upright or inverted.

  1. Fill in the focal length f, with a minus sign for a diverging lens.
  2. Add the object distance, measured from the object to the lens.
  3. Rearrange the equation to 1/di = 1/f − 1/do and solve for di.
  4. Divide di by do and flip the sign to get the magnification.
  5. Read off whether the image is real or virtual, upright or inverted.
OutputValue
Image distance (di)15 cm
Magnification (m)-0.5
Image typeReal, inverted

A common slip involves mixed units. Someone measures a bench setup in millimetres, types those readings into centimetre fields and gets distances that look absurd for a desk-sized arrangement of mounts and cardboard. Another limit appears when a target sits right at f: rays leave parallel, no picture forms anywhere, so the output becomes undefined.

Frequently Asked Questions

How do you use the thin lens equation?
Put both lengths in one unit and rearrange to 1/di = 1/f − 1/do. Take the reciprocal of that result to get di. Dividing di by do and changing the sign then gives the magnification.
What does a negative magnification mean?
It means the image is upside down relative to the object. Size of the number gives the scale. A value of -0.5 describes an inverted image half the height of the object.
What is the difference between a converging and a diverging lens?
Converging lenses bring rays together and have a positive focal length. Diverging lenses spread rays apart, so their focal length is negative. To model one, enter f with a minus sign.
How can I tell if an image is real or virtual?
If di is positive, the image forms on the far side and is real. Negative di puts it on the same side as the object, which makes it virtual. Only real images can be projected onto a screen.
What units should I use for lens calculations?
Any unit works as long as every length uses one. This tool expects centimetres. Millimetre or metre readings should be converted first, since a missed conversion silently skews every output.

Related calculations