What Sign Convention Should You Use for Mirror and Lens Formulas?
At a glance
- 1. Choose a convention
Use one sign convention consistently; the formulas and signs must match it.
- 2. Set the axis
For the Cartesian convention, put the origin at the pole or lens center and make incident light travel in the positive direction.
- 3. Assign signed distances
Measure each object, image, and focus from the origin, using positive or negative signs according to its position.
- 4. Substitute and check
Use the mirror or lens equation, then check whether the image position and magnification agree with the ray diagram.
Mirror and lens equations can look different across textbooks because authors may assign different signs to object distances, image distances, and focal lengths. The equations are not contradictory when each is used with its own convention.
This article uses the Cartesian sign convention, common in introductory optics. For light traveling from left to right, distances to the right of the pole or lens center are positive, and distances to the left are negative.
The Cartesian sign convention
For a spherical mirror, measure distances along the principal axis from the pole. For a thin lens, measure them from the optical center. In both cases, let the direction of the incident light be positive. The formulas below assume incident light travels left to right.
| Quantity | Sign in this convention |
|---|---|
| Real object to the left of the mirror or lens | |
| Real image formed to the left by a mirror | |
| Real image formed to the right by a lens | |
| Virtual image on the right side of a mirror | |
| Virtual image on the left side of a lens | |
| Concave mirror focal length | |
| Convex mirror focal length | |
| Convex (converging) lens focal length | |
| Concave (diverging) lens focal length |
The important point is that “real” does not always mean the same sign for an image: a real mirror image is in front of the mirror, while a real lens image is on the far side of the lens. Assign signs from the positions, not from the words “real” and “virtual” alone.
Mirror formula
For a spherical mirror, use
Here is the signed object distance, is the signed image distance, and is the signed focal length. The mirror’s transverse magnification is
The minus sign matters: a negative magnification indicates an inverted image; a positive one indicates an upright image.
Worked mirror example
A concave mirror has focal length magnitude , and an object is in front of it. In the Cartesian convention, both the object and the concave mirror’s focus are to the left, so and . Substitute:
Thus . The image is in front of the mirror, so it is real. Its magnification is : it is inverted and half the object’s height.
Thin-lens formula
For a thin lens, the equation is
The lens magnification is
Unlike the mirror equation, the lens equation has a minus sign between the image-distance and object-distance terms. Do not replace it with the mirror formula just because both systems form images.
Worked lens example
A convex lens has . A real object is to its left, so . Then
Therefore : the image is on the right of the lens and is real. Its magnification is , so it is inverted and half the object’s height.
Why other books show different signs
Some texts use a real-is-positive convention or define distances as positive magnitudes and handle direction through separate rules. Under those conventions, the signs assigned to , , or —and sometimes the written equation—may differ. A formula copied from one convention cannot safely be paired with the sign rules of another.
To translate a problem, first identify what each symbol means in that source. Then either follow its complete set of rules or convert all quantities to one convention, such as the Cartesian convention used here. Reversing the direction of incident light also reverses which side counts as positive, so reassess the signs if the light travels right to left.
Common mistakes
- Using positive distances for every object and image. In the Cartesian convention, distances are directed quantities and can be negative.
- Giving every real image the same sign. A real mirror image and a real lens image lie on opposite sides relative to the incident-light direction.
- Using the mirror equation for a lens. The standard Cartesian forms are for mirrors and for thin lenses.
- Treating a convex lens and a convex mirror alike. A convex lens has positive focal length, but a convex mirror has negative focal length in this convention.
- Ignoring magnification signs. The sign tells you whether the image is upright or inverted; its absolute value gives the height ratio.
A reliable routine is to draw the axis, mark the origin and incident-light direction, assign signed distances, and only then substitute into the matching equation.
References
- Eugene Hecht, Optics
- OpenStax, University Physics Volume 3: Geometric Optics
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.