Spherical Mirror Equation Calculator

Introduction

Spherical mirrors are one of the first places where geometry turns directly into a useful prediction. A curved mirror does not just bounce light back randomly. It reshapes the path of the reflected rays in a way that depends on the mirror’s focal length and on the object’s distance from the mirror. That is why a shaving mirror can enlarge a face, a telescope mirror can collect distant starlight, and a convex car mirror can show a wide field of view while making objects look smaller. This calculator takes the standard mirror equation from geometric optics and turns it into quick numerical answers you can use in homework, lab checks, and design estimates.

The main outputs are image distance and magnification. Image distance tells you where the image forms relative to the mirror. Magnification tells you how large the image is compared with the object, and its sign tells you whether the image is upright or inverted. In practice, those two answers are the heart of most introductory mirror problems. If you know whether the mirror is concave or convex and you enter the correct sign for the focal length, the calculator immediately reveals the physical picture hiding behind the algebra. One important edge case is when the object sits exactly at the focal point. In that special situation the reflected rays emerge parallel, so the image is effectively at infinity and the usual finite-distance result breaks down.

The Mirror Equation

The governing relationship is the mirror equation 1/f = 1/do + 1/di. Here f is the focal length, do the object distance measured from the mirror, and di the image distance. If you prefer to see the same relation in a more explicit MathML layout, it can also be written as:

1f = 1do + 1di

Solving that relationship for the image distance gives di = f do / (do - f). Once the image distance is known, the transverse magnification follows from m = -di/do. The calculator uses exactly those equations. The minus sign in the magnification formula matters because it carries orientation information: a negative magnification corresponds to an inverted image, while a positive magnification corresponds to an upright one. Magnitude matters too. If the absolute value of magnification is greater than 1, the image is larger than the object. If it is less than 1, the image is reduced.

These equations come from paraxial ray tracing and similar triangles. In the standard derivation, you draw one ray from the top of the object parallel to the principal axis and another ray aimed through the focal point. The reflected rays intersect at the image location, and the resulting triangle ratios produce the reciprocal equation above. The math is compact, but the physical idea is simple: the mirror shape sets a preferred focusing scale, and moving the object changes where the reflected rays converge or appear to converge.

How to Use This Calculator

Start by entering the object distance in centimeters. In the common classroom convention used here, the object is assumed to be in front of the mirror, so the object distance should be positive. Next enter the focal length. Use a positive focal length for a concave mirror, because a concave mirror can bring parallel rays to a real focus in front of the reflective surface. Use a negative focal length for a convex mirror, because a convex mirror has a virtual focal point behind the mirror and causes parallel incoming rays to spread out.

After you click Compute Image, the calculator reports three things: the image distance, the magnification, and a plain-language description of the image type. A positive image distance means the image forms in front of the mirror and is real. A negative image distance means the image appears behind the mirror and is virtual. Then look at the magnification sign and size. Negative magnification means inverted; positive magnification means upright. Large magnitudes mean bigger images, and small magnitudes mean reduced images.

  1. Enter a positive object distance do in centimeters.
  2. Enter the focal length f, positive for concave and negative for convex.
  3. Read the image distance, magnification, and image type together rather than treating any single number in isolation.

If the object distance is very close to the focal length of a concave mirror, the denominator in the image-distance formula becomes very small. That makes the computed image distance extremely large in magnitude, which matches the physical idea that the reflected rays are becoming nearly parallel. So if you see a huge number or a result that seems to blow up, the first thing to check is whether do is almost equal to f.

Understanding the Sign Convention

Sign convention is the part of geometric optics that most often causes otherwise correct algebra to look wrong. The formulas only produce meaningful results if the sign choices match the physical setup. The table below summarizes the most common situations students meet first. It assumes the object is in front of the mirror and light travels from left to right toward the mirror.

Common spherical-mirror sign patterns and image outcomes
Mirror Type Focal Length f Object Distance do Image Distance di Image Nature
Concave, object beyond focus f > 0 do > f di > 0 Real, inverted
Concave, object within focus f > 0 do < f di < 0 Virtual, upright
Convex f < 0 do > 0 di < 0 Virtual, upright

There is a compact way to remember the pattern. Concave mirrors are capable of making real images, but only when the object is outside the focal length. If the object moves inside that focal length, the reflected rays no longer meet in front of the mirror. Instead they spread apart, and your eye traces them backward to a virtual image behind the mirror. Convex mirrors never produce a real image for a real object in front of the mirror; they always create a virtual, upright, reduced image behind the mirror.

Worked Example

Suppose an object is 30 cm in front of a concave mirror with focal length 10 cm. Substituting those values into the equation gives an image distance of 15 cm. That means the image forms 15 cm in front of the mirror, so it is a real image. The magnification is -0.5, which tells you two things immediately. First, the image is inverted because the sign is negative. Second, its size is half the size of the object because the magnitude is 0.5. This is a classic case of a concave mirror producing a reduced real image when the object is well beyond the focal point.

Now compare that with an object only 5 cm in front of the same mirror. Since the object is now inside the focal length, the image distance becomes negative. A negative image distance means the image is virtual and lies behind the mirror. The magnification becomes positive and larger than 1, so the image is upright and enlarged. That is exactly the operating principle of a close-up cosmetic mirror. The same mirror changes behavior entirely depending on the object position, which is why this calculation is so useful: it connects a small shift in distance to a big change in what you actually see.

What the Result Means Physically

It is easy to treat the output as just arithmetic, but each line corresponds to a concrete optical idea. A real image means the reflected rays actually cross in space. If you placed a screen at that location, the image could be projected onto it. A virtual image means the rays do not really cross on the image side; they only appear to come from a point behind the mirror when extended backward. That is why virtual images cannot be projected onto a screen placed in front of the mirror.

Magnification completes the story. If the result is negative, the image has been flipped upside down relative to the object. If the result is positive, the image remains upright. The absolute value tells you the size change. A magnitude of 2 means the image is twice as tall as the object. A magnitude of 0.25 means it is one quarter as tall. Reading image distance and magnification together lets you answer the full conceptual question that teachers often ask: where is the image, is it real or virtual, and is it upright or inverted and larger or smaller?

Assumptions and Limits

The mirror equation is powerful because it is simple, but it is also simple because it rests on assumptions. It treats the mirror as an ideal spherical surface and assumes paraxial rays, meaning rays that make relatively small angles with the principal axis. Under those conditions, the reflected rays behave in the neat, nearly linear way captured by the standard formulas. Real mirrors can suffer from spherical aberration, surface roughness, alignment errors, and finite aperture effects. High-performance optical systems sometimes replace a spherical mirror with a parabolic one or combine several elements to control aberrations more carefully.

The calculator also models a single mirror in isolation. Once a system includes multiple mirrors, lenses, beam splitters, or off-axis geometry, you usually need more advanced tools such as sequential ray tracing or matrix optics. Even so, the simple mirror equation remains the right starting point. It builds intuition quickly, and in many lab and textbook settings it gives an excellent approximation of the real behavior.

History and Real-World Uses

People have used mirrors for thousands of years, but the mathematical treatment of mirrors became especially important during the development of geometric optics. Scholars studying reflection recognized that curved reflective surfaces do more than form faithful copies of nearby objects. They reshape light bundles in measurable ways, allowing concentration, projection, enlargement, and field-of-view control. That insight eventually became essential in instrument making. Reflecting telescopes, inspection mirrors, vehicle safety mirrors, optical benches, and concentrated solar devices all depend on the same underlying geometry summarized by the mirror equation.

Concave mirrors are used when concentrating or enlarging light is useful. They appear in telescope designs, searchlights, dental mirrors, headlight reflectors, and solar furnaces. Convex mirrors are used when coverage matters more than size. They appear in store security mirrors, road-corner mirrors, and passenger-side vehicle mirrors because they compress a wider scene into a smaller image. In both cases, image distance and magnification are not abstract classroom outputs; they describe exactly what the user will perceive and where the reflected light seems to come from.

Try the Optional Mini-Game

If you want a faster way to build intuition, the mini-game below turns the same variables into a short optics challenge. You drag the object along the principal axis and try to make the reflected image land inside a glowing target. Because the target is based on the mirror equation, you feel the difference between real and virtual images instead of only reading about it. Early rounds favor straightforward concave setups, while later rounds mix in convex mirrors and inside-the-focus concave cases, which makes the image jump and stretch in ways that mirror the calculator’s outputs. It is optional, but it is a good way to feel how sensitive the image position becomes as the object approaches the focal point.

Enter a positive object distance in centimeters. Use a positive focal length for a concave mirror and a negative focal length for a convex mirror. If the object distance equals the focal length of a concave mirror, the image is effectively at infinity.

Enter object distance and focal length.

Mini-Game: Focus Sprint

Need a quick intuition check? In this optional mini-game, you move an object toward or away from a spherical mirror until the image produced by the mirror equation lands inside the glowing target ring. Hold the alignment for a brief moment to lock focus and score. Concave rounds can produce real or virtual images depending on where you place the object. Convex rounds always send the image behind the mirror. The run lasts about 75 seconds, includes escalating difficulty, and ends with a score summary, your saved best score, and one short optics takeaway.

Score0
Time75
Streak0
Focus0%
Challenge1
MirrorReady
Best0

Optional mini-game

Focus Sprint

Drag the orange object along the principal axis until the green image lands inside the glowing target. Hold it there to lock focus. Concave mirrors use positive focal length, convex mirrors use negative focal length, and the image can form in front of or behind the mirror depending on the setup.

Controls: drag or tap on the bench to move the object. Keyboard fallback: left and right arrow keys. Stay away from the exact focal point, because when do approaches f the image races toward infinity.

This mini-game is separate from the calculator result above. It teaches the same ideas, but it does not change the calculator’s math.

Embed this calculator

Copy and paste the HTML below to add the Spherical Mirror Equation Calculator - Image Distance and Magnification to your website.