Ph · Physics

What Sign Convention Should You Use for Mirror and Lens Formulas?

Published By the 9to5Science editorial team

At a glance

  1. 1. Choose a convention

    Use one sign convention consistently; the formulas and signs must match it.

  2. 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. 3. Assign signed distances

    Measure each object, image, and focus from the origin, using positive or negative signs according to its position.

  4. 4. Substitute and check

    Use the mirror or lens equation, then check whether the image position and magnification agree with the ray diagram.

Advertisement

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.

QuantitySign in this convention
Real object to the left of the mirror or lensu<0u<0
Real image formed to the left by a mirrorv<0v<0
Real image formed to the right by a lensv>0v>0
Virtual image on the right side of a mirrorv>0v>0
Virtual image on the left side of a lensv<0v<0
Concave mirror focal lengthf<0f<0
Convex mirror focal lengthf>0f>0
Convex (converging) lens focal lengthf>0f>0
Concave (diverging) lens focal lengthf<0f<0

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

1f=1v+1u.\frac{1}{f}=\frac{1}{v}+\frac{1}{u}.

Here uu is the signed object distance, vv is the signed image distance, and ff is the signed focal length. The mirror’s transverse magnification is

m=−vu.m=-\frac{v}{u}.

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 10 cm10\,\text{cm}, and an object is 30 cm30\,\text{cm} in front of it. In the Cartesian convention, both the object and the concave mirror’s focus are to the left, so u=−30 cmu=-30\,\text{cm} and f=−10 cmf=-10\,\text{cm}. Substitute:

1v=1f−1u=−110−(−130)=−115.\begin{aligned} \frac{1}{v}&=\frac{1}{f}-\frac{1}{u}\\ &=-\frac{1}{10}-\left(-\frac{1}{30}\right)\\ &=-\frac{1}{15}. \end{aligned}

Thus v=−15 cmv=-15\,\text{cm}. The image is in front of the mirror, so it is real. Its magnification is m=−(−15)/(−30)=−0.5m=-(-15)/(-30)=-0.5: it is inverted and half the object’s height.

Thin-lens formula

For a thin lens, the equation is

1f=1v−1u.\frac{1}{f}=\frac{1}{v}-\frac{1}{u}.

The lens magnification is

m=vu.m=\frac{v}{u}.

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 f=+10 cmf=+10\,\text{cm}. A real object is 30 cm30\,\text{cm} to its left, so u=−30 cmu=-30\,\text{cm}. Then

1v=1f+1u=110−130=115.\begin{aligned} \frac{1}{v}&=\frac{1}{f}+\frac{1}{u}\\ &=\frac{1}{10}-\frac{1}{30}\\ &=\frac{1}{15}. \end{aligned}

Therefore v=+15 cmv=+15\,\text{cm}: the image is on the right of the lens and is real. Its magnification is m=15/(−30)=−0.5m=15/(-30)=-0.5, 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 uu, vv, or ff—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 1/f=1/v+1/u1/f=1/v+1/u for mirrors and 1/f=1/v−1/u1/f=1/v-1/u 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

  1. Eugene Hecht, Optics
  2. OpenStax, University Physics Volume 3: Geometric Optics

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.