The thin lens equation tells you where an image forms for a thin lens:

1f=1do+1di\frac{1}{f} = \frac{1}{d_o} + \frac{1}{d_i}

Here ff is the focal length, dod_o is the object distance, and did_i is the image distance. In intro physics, you use this equation when the lens can be treated as thin, the surrounding medium is usually air, and the rays stay close to the principal axis. If an answer seems strange, the sign convention is usually the reason: the equation itself stays the same, but the meaning of a positive or negative distance depends on the convention your class uses.

What Each Symbol Means

For a thin lens in air with paraxial rays:

  • ff is the focal length of the lens.
  • dod_o is the distance from the lens to the object.
  • did_i is the distance from the lens to the image.

In a common introductory sign convention:

  • do>0d_o > 0 for a real object placed in front of the lens.
  • di>0d_i > 0 for a real image formed on the opposite side of the lens.
  • di<0d_i < 0 for a virtual image on the same side as the object.
  • f>0f > 0 for a converging lens and f<0f < 0 for a diverging lens.

If your class uses a different convention, the physics is the same but the signs can change. That is usually where confusion starts.

Why The Equation Behaves The Way It Does

The thin lens equation is more than a plug-in rule; it predicts how the image moves as the object moves. Reading the relation 1/f=1/do+1/di1/f = 1/d_o + 1/d_i as the object position changes:

  • If a converging lens has an object far away, 1/do1/d_o is small, so 1/di1/f1/d_i \approx 1/f and the image forms close to the focal plane.
  • If the object moves closer to the focal point, 1/do1/d_o grows toward 1/f1/f, so 1/di1/d_i shrinks and the image moves farther away.
  • If the object is inside the focal length of a converging lens, 1/do>1/f1/d_o > 1/f, forcing 1/di1/d_i negative, so the image becomes virtual with di<0d_i < 0.

That last case is exactly why a magnifying glass can make an enlarged upright virtual image. The signs in the convention are not bookkeeping for its own sake; they track real physical changes in where and what kind of image forms.

Worked Example: Find The Image Distance

Suppose a converging lens has focal length f=10 cmf = 10\ \mathrm{cm}, and an object is placed 30 cm30\ \mathrm{cm} in front of the lens. Using the convention above, f=+10 cmf = +10\ \mathrm{cm} and do=+30 cmd_o = +30\ \mathrm{cm}. Start with the lens equation:

1f=1do+1di\frac{1}{f} = \frac{1}{d_o} + \frac{1}{d_i}

Substitute:

110=130+1di\frac{1}{10} = \frac{1}{30} + \frac{1}{d_i}

Solve for did_i:

1di=110130=230=115di=15 cm\frac{1}{d_i} = \frac{1}{10} - \frac{1}{30} = \frac{2}{30} = \frac{1}{15} \quad\Rightarrow\quad d_i = 15\ \mathrm{cm}

So the image forms 15 cm15\ \mathrm{cm} on the far side of the lens. Because did_i is positive, the image is real in this sign convention. For the image size, use magnification:

m=dido=1530=0.5m = -\frac{d_i}{d_o} = -\frac{15}{30} = -0.5

So the image is inverted and half as tall as the object.

Practice Check

Try the same lens but move the object to 8 cm8\ \mathrm{cm} from the lens. Solve for did_i and read its sign. Since 8 cm8\ \mathrm{cm} is inside the 10 cm10\ \mathrm{cm} focal length, you should get a negative did_i, the signal that the image is virtual rather than real.

Calculation Traps With The Thin Lens Formula

  • Mixing sign conventions from different textbooks or teachers.
  • Treating all image distances as positive, even for virtual images.
  • Forgetting that the thin lens equation is an approximation, not an exact law for every thick or strongly curved lens system.
  • Using the focal length of a converging lens as negative, or a diverging lens as positive, without checking the chosen convention.
  • Solving for did_i correctly but then misreading what the sign says about real versus virtual images.

When You Can Use The Lens Equation

This equation is used in basic ray optics for cameras, magnifiers, microscopes, telescopes, and simple eye-lens models. It works best when the lens thickness is small compared with the other distances and the rays stay near the principal axis. For real optical systems, thickness effects and aberrations can matter; there the thin lens equation is still a useful model, but not the whole story.

Frequently Asked Questions

What is the thin lens equation?
The thin lens equation is one over f equals one over the object distance plus one over the image distance. Here f is the focal length, the object distance is measured from the lens to the object, and the image distance from the lens to the image. It applies when the lens is thin, the medium is usually air, and rays stay close to the principal axis.
What do the signs mean in the lens equation?
In a common introductory convention, object distance is positive for a real object in front of the lens, image distance is positive for a real image on the opposite side and negative for a virtual image on the same side as the object. Focal length is positive for a converging lens and negative for a diverging lens. Different classes may use different conventions.
How do you find the image distance with the lens equation?
Substitute the known focal length and object distance, then solve for the image distance. For a converging lens with focal length 10 cm and an object 30 cm in front, one over the image distance equals one over 10 minus one over 30, giving a positive real image distance. A negative result would indicate a virtual image.
When does a converging lens form a virtual image?
If the object is placed inside the focal length of a converging lens, the image becomes virtual, so the image distance is negative in the standard convention. This case explains why a magnifying glass can produce an enlarged, upright, virtual image when you hold it close to an object.
Why does my lens equation answer look wrong?
If your answer seems strange, the sign convention is usually the reason. The equation itself stays the same, but the meaning of a positive or negative distance depends on the convention your class uses. Confirm which signs your course assigns to object distance, image distance, and focal length before substituting numbers.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →