QuestionLight
What Is the Lens Formula? Focal Length and Magnification

The lens formula is 1/f = 1/u + 1/v, where f is the focal length, u is the object distance and v is the image distance. It tells you where a lens forms an image. Magnification equals the image distance divided by the object distance, m = v/u, so the same numbers also tell you how big the image is.
Contents
The full answer
The lens formula, also called the thin lens equation, applies to a lens whose thickness is small compared with its focal length. You write it as one over the focal length equals one over the object distance plus one over the image distance. The three distances must use the same unit, such as centimetres or metres.
1/f = 1/u + 1/v
Read this as one over the focal length equals one over the object distance plus one over the image distance. In the real-is-positive convention, a convex lens has a positive focal length, a real object has a positive object distance, and a real image on the far side has a positive image distance. A concave lens has a negative focal length.
Magnification m is the ratio of image height to object height. For a thin lens, the size ratio equals the image distance divided by the object distance.
m = v / u
Read this as magnification equals the image distance divided by the object distance, with no unit. A value above 1 means the image is larger than the object, and a value below 1 means it is smaller. For a real image, the image is also inverted.
Worked example: an object is 30 cm from a convex lens with a focal length of 10 cm. Then 1/v = 1/10 − 1/30 = 3/30 − 1/30 = 2/30, so v = 15 cm. The magnification is 15 ÷ 30 = 0.5. The image is real, half the size of the object, and inverted, and it sits 15 cm from the lens on the far side.
The science behind the formula
The formula comes from the geometry of refraction at two curved surfaces, simplified for a thin lens. A thin lens treats the light as bending at a single plane through the centre of the glass. Each ray follows the rules of refraction, and the rays that leave the lens converge or diverge according to the focal length. Similar triangles in the ray diagram give the relation between f, u and v.
The focal length depends on the lens itself. The lensmaker’s equation gives it from the refractive index of the glass and the curvature of its two faces. Glass with a higher refractive index bends light more, so it gives a shorter focal length for the same shape. The lens page describes this relationship in more detail.
The object distance and the image distance are linked through the focal length. If you move the object, the image moves too. When the object is at the focal point, the image goes to infinity, which is why the light leaves the lens parallel. This is the principle behind a projector and a telescope.
An everyday example: a camera
A camera lens works with the lens formula every time you take a photo. The lens focuses the image of a distant building onto the sensor at a distance of about one focal length behind the lens. For a nearby person, the lens must move farther from the sensor, because the object distance is smaller and the image distance becomes larger.
You can see this effect when you focus a camera on a close flower and then on a distant mountain. The lens moves to change the image distance so that the image stays sharp on the sensor. The formula explains why the same lens has to move to keep objects at different distances in focus.
Magnification also matters. A zoom lens changes the focal length, which changes the size of the image on the sensor. A telephoto lens has a long focal length, so it produces a larger image of a distant object than a wide-angle lens does.
Sign conventions and lens power
Textbooks use different sign conventions, so the same problem can be written in more than one way. In the Cartesian convention, real object distances are negative and real image distances are positive, and the formula becomes 1/v − 1/u = 1/f. The answer for the worked example is still 15 cm.
Lens power P is the reciprocal of the focal length in metres. A lens with f = 0.20 m has a power of 5.0 D. A concave lens with f = −0.50 m has a power of −2.0 D. Power is useful for eyeglasses and contact lenses, which are prescribed in dioptres. The convex vs concave lens comparison shows how the sign of f separates the two types.
Common misconceptions
Students sometimes add the focal length to the distances or treat the formula as 1/f = u + v. The formula uses the reciprocal of each distance, so 1/u and 1/v are added, not u and v. Check your algebra by putting the numbers into the formula one step at a time.
Another misconception is that the image distance is always the focal length. The image distance equals the focal length only when the object is at infinity. For an object at 30 cm and f = 10 cm, the image distance is 15 cm, not 10 cm.
A third mistake is to ignore the sign of the answer. A negative image distance means a virtual image, which cannot be projected onto a screen. Check whether the answer makes sense with the ray diagram before you write it down.
Frequently asked questions
What is the lens formula?
The lens formula, also called the thin lens equation, is 1/f = 1/u + 1/v. It links the focal length f, the object distance u and the image distance v, all in the same unit.
How do you calculate magnification for a lens?
Magnification is the image height divided by the object height, which for a thin lens equals the image distance divided by the object distance, m = v/u. A magnification of 0.5 means the image is half the size of the object.
Why is the lens formula written with a minus sign in some books?
Some textbooks use the Cartesian sign convention, where distances measured against the direction of light get a negative sign. In that convention the formula is written 1/v − 1/u = 1/f, and the answer is the same.
What units should I use in the lens formula?
Use the same unit for f, u and v, such as centimetres or metres. Use metres only when you want the lens power in dioptres, because power is one divided by f in metres.
What does a negative image distance mean?
A negative image distance means the image is virtual, so the light only appears to come from a point on the object side of the lens. A virtual image cannot be shown on a screen.
What is the lens formula for a concave lens?
The same formula applies to a concave lens, but its focal length is negative. A concave lens always gives a virtual, upright and smaller image.
Sources and further reading
- OpenStax, "College Physics 2e"
- Encyclopaedia Britannica, "Lens"
Cite this page
“What Is the Lens Formula? Focal Length and Magnification.” Atoms & Forces, https://science.bigworldlist.com/questions/what-is-the-lens-formula/.