Magnification Equation for Lens? Formula & Use
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
The magnification equation for a lens relates the height of an image to the height of the object and the distances of the object and image from the lens. It is written as M = hi/ho = -di/do, where M is magnification, hi is image height, ho is object height, di is image distance, and do is object distance. Enter any three of these values (or two distances and one height) into the calculator below to find the missing one.
Formula
The magnification equation is:
M = hi / ho = -di / do
Where:
- M = magnification (unitless; negative means inverted image)
- hi = image height (same unit as ho, e.g., cm or mm)
- ho = object height (same unit as hi)
- di = image distance from the lens (positive for real images, negative for virtual images)
- do = object distance from the lens (always positive for a real object)
The negative sign in the distance ratio is a convention from the lensmaker’s sign rules. It tells you the orientation: a negative M means the image is inverted relative to the object; a positive M means upright.
Worked Example
Using the default values from the calculator:
Object distance do = 25 cm, image distance di = 50 cm, object height ho = 2 cm.
- Calculate magnification: M = -di/do = -50/25 = -2.
- Calculate image height: hi = M × ho = -2 × 2 = -4 cm.
The negative sign indicates the image is inverted. The absolute value 2 means the image is twice as tall as the object. The image is real (because di is positive) and located 50 cm on the opposite side of the lens.
Understanding the Sign Convention
The sign convention used here is the standard Cartesian convention for thin lenses:
- Light travels from left to right.
- Object distance do is positive if the object is on the incoming side (left).
- Image distance di is positive if the image is on the outgoing side (right) – that is a real image.
- If di is negative, the image is on the same side as the object – a virtual image.
For a simple magnifying glass (convex lens used with object closer than the focal length), di is negative, so M is positive and the image is upright and virtual. For a projector or camera lens, di is positive, so M is negative (inverted).
How to Use the Magnification Equation
You can use the equation in three common ways:
- Given object and image distances – directly compute M and then the image height if object height is known.
- Given magnification and one distance – rearrange to find the other distance. For example, if M = -2 and do = 25 cm, then di = -M × do = 50 cm.
- Given heights – use M = hi/ho first, then combine with the lens equation 1/f = 1/do + 1/di to find distances if needed.
The magnification equation alone does not include the focal length. To relate distances to focal length, you must also use the thin lens equation: 1/f = 1/do + 1/di.
Common Mistakes and Misconceptions
- Forgetting the negative sign – many learners drop the minus sign and then misinterpret orientation. Always include it when using the distance form.
- Unit mismatch – di and do must be in the same units (e.g., both cm). The ratio is unitless, so any consistent unit works, but mixing cm and m gives wrong results.
- Confusing real and virtual images – a negative di means virtual and upright; a positive di means real and inverted. The sign of M follows automatically.
- Using magnification for angular magnification – the equation above is linear magnification (how much taller the image is). Angular magnification (used in telescopes and magnifiers) is a different concept: it compares the angle subtended by the image to the angle subtended by the object at the eye.
Practical Applications
Understanding magnification is essential in:
- Photography – macro lenses have magnification ratings like 1:1 (life-size) or 1:2 (half life-size).
- Microscopes – the total magnification is the product of the objective and eyepiece magnifications, but the image distance is fixed by the tube length.
- Eyeglasses and contact lenses – the magnification (or minification) affects perceived size; for example, high-power myopic lenses make objects appear smaller.
- Projectors – to fill a screen, you need a specific magnification based on projector-to-screen distance and lens focal length.
Limits of the Formula
The magnification equation assumes a thin lens and paraxial rays (small angles relative to the optical axis). For thick lenses, compound lenses, or wide-aperture systems, the simple formula breaks down. Also, the equation gives the ideal magnification; real lenses have aberrations that distort the image. For most educational and basic optical design purposes, however, the thin-lens approximation is accurate to within a few percent.
Frequently Asked Questions
What is the difference between magnification and angular magnification?
Linear magnification (the equation above) tells you how many times taller the image is compared to the object. Angular magnification tells you how many times larger the angle subtended at the eye becomes. For a magnifying glass, angular magnification is roughly (25 cm)/f + 1, where f is focal length. They are related but not the same.
Why is the magnification negative for a real image?
Because the image is inverted. The negative sign comes from the Cartesian sign convention: a positive di (real image) and positive do give a negative ratio, indicating inversion. The absolute value still gives the size ratio.
Can magnification be less than 1?
Yes. If |M| < 1, the image is smaller than the object (reduced). For example, a camera lens forming a small image on a sensor has magnification much less than 1. The equation works the same; you just get a fraction.
How do I find the image distance if I know the focal length and object distance?
Use the thin lens equation: 1/f = 1/do + 1/di. Rearrange to get di = (f × do) / (do – f). Then use that di in the magnification equation.
Does the magnification equation work for concave lenses?
Yes, but concave lenses always form virtual images, so di is negative and M is positive (upright) and less than 1. The equation handles it automatically if you use the correct sign for di.
What if the object is placed exactly at the focal point?
Then do = f, and the thin lens equation gives 1/di = 0, meaning di is infinite. The image is formed at infinity, and the magnification equation becomes undefined (division by zero). In practice, you get a parallel beam of light, not a real image.
Related
Formula used
in do | Object distance | cm | 25 | 0 in di | Image distance | cm | 50 | 0 in ho | Object height | cm | 2 | 0 out M | Magnification | - | di / do | 2 out hi | Image height | cm | M * ho | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.