AP Syllabus focus: 'For a thin lens, image location depends on focal length and object distance from the lens midline, as described by the thin-lens equation.'
The thin-lens equation connects where an object is placed to where its image appears. In AP Physics 2 Algebra, it is the main algebraic tool for predicting image location in lenses.
The core relationship
Thin-lens model
In a thin lens, image position is not guessed from a picture alone. It is found by relating the lens's focal length to the object's distance from the lens. This relationship is algebraic, so it can be used even when a scale ray diagram is not practical.
Thin lens: A lens idealized so that refraction is treated as occurring at a single plane, allowing distances to be measured from the lens midline.
Because the lens is treated as thin, distances are measured from one reference position rather than through the full lens thickness. This lets one equation describe where the image will be located for any chosen object position.
Thin-lens equation
= focal length of the lens, in the same unit as the other distances
= object distance measured from the lens midline
= image distance measured from the lens midline
The thin-lens equation shows that image location depends on two inputs: the lens's focal length and the object's distance from the lens.

Ray diagram for a converging (convex) thin lens showing the principal rays and the labeled distances , , and focal length . The figure reinforces that both and are measured from the same reference plane (the lens midline), which is exactly the distance convention used in . The object and image heights (, ) are also shown, linking ray geometry to magnification ideas. Source
Once and are known, the equation can be solved for . In AP Physics 2 Algebra, this equation is usually kept in reciprocal form because it makes the connection between object distance and image distance clear. All distances must be expressed in the same unit.
How object position changes image location
The equation predicts that moving the object changes the image location in a nonlinear way. Since the variables appear as reciprocals, equal changes in object distance do not usually produce equal changes in image distance.

Graph of image distance versus object distance for a thin converging lens (and a companion diverging-lens plot). The curve makes the reciprocal behavior visible: for large , the image distance approaches , while as approaches the image distance grows without bound. This visual is especially useful for predicting whether is finite, very large, or negative (virtual) as object position changes. Source
If the object is very far from the lens, then is very small, so is close to . Distant objects therefore form images near the focal region.
If the object is moved closer to the lens while still remaining farther away than the focal length, increases. The image forms farther from the lens.
If the object reaches the focal distance, so that , then . This means the image distance becomes extremely large rather than staying at a finite position.
If the object is placed closer than the focal length, the equation still gives an algebraic value for . The meaning of the sign of that value is handled by the lens sign convention used in the course.
A useful way to think about the equation is as a balance. The focal length sets the lens's basic ability to redirect light, while the object distance determines how strongly the incoming light is already spreading or converging when it reaches the lens. The image distance adjusts so that the reciprocal relationship is satisfied.
Measuring from the lens midline
Lens midline: The reference plane of a thin lens from which object distance and image distance are measured.
The phrase from the lens midline matters because the equation is based on one reference location. In the thin-lens model, object distance and image distance are not measured from the front surface, the back surface, or the edge of the lens. They are measured from the lens's central plane. This keeps the geometry consistent and makes the algebra match the physical setup. In laboratory work, students often make mistakes by measuring from the lens holder or from a nearby ruler zero instead of from the lens itself.
Keeping units consistent is equally important. If is given in centimeters, then and should also be in centimeters. If one distance is written in meters and another in centimeters, the numerical result will be wrong even if the algebra is correct.
Using the thin-lens equation effectively
The main goal is to determine image location, so the algebra should stay organized. In many problems, the known values are and , and the unknown is . Rearranging carefully avoids sign and reciprocal errors.
Write the thin-lens equation first rather than trying to remember a shortcut form.
Substitute the known focal length and object distance using one consistent unit.
Solve the reciprocal equation step by step for the unknown image distance.
Check whether the result is physically reasonable for the chosen object position.
Interpret the final value using the sign convention required by your course.
One common algebra check is to ask whether the answer fits the object position. For example, when the object is very far away, an image distance close to the focal length is sensible. When the object is near the focal distance, a much larger image distance is expected. Thinking this way helps connect the equation to the behavior of the lens instead of treating it as a purely symbolic formula.
FAQ
It assumes the lens is thin enough that all refraction can be treated as happening at one plane, and it works best for rays close to the principal axis.
If a lens is thick, or if rays pass far from the center, the actual image location can shift because of lens thickness and optical aberrations. In those cases, the simple thin-lens model becomes less accurate.
Near the focal length, the difference between $d_o$ and $f$ becomes very small. That makes the predicted image distance change very rapidly for even tiny changes in object position.
In practice, this means a small ruler error or a slight motion of the object can produce a large change in the calculated or observed image location. This is why measurements near the focal point are often the least stable.
Yes. If you measure an object distance and the corresponding image distance, you can solve for the focal length using $ f=\dfrac{d_od_i}{d_o+d_i} $.
A better lab method is to repeat the measurement for several object positions and compare the results. Multiple trials help reduce random error and give a more reliable focal length than a single measurement.
In the thin-lens model, the lens is treated as if its optical effect happens at one central plane. Measuring from the midline matches that model directly.
Using a surface would be less consistent because the front and back surfaces are curved and separated by a small thickness. The midline provides one clean reference point for both object distance and image distance.
It means the emerging light is nearly parallel, so the image forms very far from the lens. This often happens when the object is close to the focal distance.
In a classroom or lab, the image may form beyond the available space, so you might not be able to catch it on a screen nearby. The calculation still has physical meaning: the lens is sending the light toward a very distant image location.
Practice Questions
A thin lens has focal length 15 cm. An object is placed 60 cm from the lens midline. Use to determine the image distance.
1 mark for correct substitution:
1 mark for correct answer: cm
A thin lens has focal length 10 cm.
(a) Calculate the image distance when an object is 40 cm from the lens midline.
(b) The object is then moved to 12 cm from the lens midline. Calculate the new image distance.
(c) Using the thin-lens equation, explain why the image distance changes in this direction when the object moves closer to the focal length.
(a) 1 mark for correct substitution into the thin-lens equation
(a) 1 mark for correct answer: cm
(b) 1 mark for correct substitution into the thin-lens equation
(b) 1 mark for correct answer: cm
(c) 1 mark for explaining that as approaches , approaches , so becomes smaller and becomes larger
