Skip to main content

Lens & Mirror Combination Calculator: Final Image + Magnification

Build multi-element optical systems from thin lenses and spherical mirrors in series. Trace image formation through each element, compute final image position and magnification, and estimate an equivalent focal length using paraxial optics.

Loading calculator...
Last Updated: February 13, 2026

If you're building a telephoto lens, analyzing a compound microscope, or just trying to figure out where the final image lands in a two-lens homework problem, you need to trace rays through each element systematically. The most common slip-up: treating the image from the first lens as if it's measured from the second lens's position, when you actually need to calculate object distance relative to element two. A lens and mirror combination calculator handles this bookkeeping—you enter focal lengths and separations, and it shows where intermediate images form, how magnification accumulates, and whether your final image is real (projectable onto a screen) or virtual (only visible through the system). This tool walks through the sequential imaging process: compute image 1 from element 1, then use that image as the object for element 2, applying 1/f = 1/s_o + 1/s_i at each step.

Ray Tracing Through Multi-Element Systems

Multi-element optical systems—telescopes, microscopes, camera lenses—require tracing rays sequentially through each component. The core principle: the image produced by element N becomes the object for element N+1. You cannot skip ahead or compute the final image directly without knowing where intermediate images land.

For each element, apply the thin lens (or mirror) equation: 1/f = 1/s_o + 1/s_i. Solve for the unknown (usually image distance s_i). Then calculate magnification m = -s_i/s_o. The object distance for the next element equals the separation minus the previous imagedistance: s_{o,next} = d - s_i. If this comes out negative, you havea virtual object—the light was converging toward a point behind the element.

The final image position is reported relative to the last element, but you can also express it relative to the first element by summing separations. Total magnification is the product: M_total = m_1 × m_2 × m_3 × ... Each negative factor inverts the image once, so two negatives yield an upright image, three yield inverted, etc.

Labeled Diagram: Object, Images, Principal Rays

Diagram Caption: A two-lens system showing an object at the left, the first lens forming an intermediate (real, inverted) image between the lenses, and the second lens producing the final image. Three principal rays from the object tip: (1) parallel to axis, refracts through F', (2) through optical center, continues straight, (3) through F, exits parallel. Where rays intersect defines the image.

Object (O): Real object at distance s_{o,1} fromlens 1. Arrow pointing upward shows orientation.

Intermediate Image (I_1): Formed by lens 1 atdistance s_{i,1}. If s_{i,1} > 0, it's real and inverted. Ifs_{i,1} < 0, it's virtual and on the same side as the object.

Final Image (I_2): Formed by lens 2, with objectdistance s_{o,2} = d - s_{i,1} where d is lens separation. Sign ofs_{i,2} tells you real vs virtual.

Principal Rays: (1) Parallel ray refracts through focal point, (2) Central ray passes undeviated, (3) Focal ray emerges parallel. Intersection locates image.

Drawing these rays for each lens helps visualize how the image "cascades" through the system. If the intermediate image falls between the lenses, it serves as a real object for lens 2. If it would formbeyond lens 2 (s_{i,1} > d), the converging light becomes a virtualobject for lens 2—a common scenario in telephoto designs.

Intermediate Image Locations Step-by-Step

Step 1: Solve for Image 1

Apply 1/f_1 = 1/s_{o,1} + 1/s_{i,1}. Rearrange: s_{i,1} = 1 /(1/f_1 - 1/s_{o,1}). Compute m_1 = -s_{i,1} / s_{o,1}. Example:f_1 = 10 cm, s_{o,1} = 20 cm → s_{i,1} = 20 cm (real, inverted, m_1= -1).

Step 2: Calculate Object Distance for Element 2

s_{o,2} = d - s_{i,1}, where d is separation between elements. Ifs_{o,2} > 0, it's a real object. If s_{o,2} < 0, it's avirtual object (converging rays). Example: d = 15 cm, s_{i,1} = 20cm → s_{o,2} = -5 cm (virtual object).

Step 3: Solve for Image 2

Apply 1/f_2 = 1/s_{o,2} + 1/s_{i,2}. Compute m_2 = -s_{i,2} /s_{o,2}. Example: f_2 = 5 cm, s_{o,2} = -5 cm → s_{i,2} = 1 / (1/5- 1/(-5)) = 1 / (0.2 + 0.2) = 2.5 cm (real image, m_2 = 0.5).

Step 4: Compute Total Magnification

M_total = m_1 × m_2 = (-1) × (0.5) = -0.5. The final image is inverted (negative) and half the size of the original object.

Magnification Cascade: How M_total Builds Up

Each optical element contributes its own magnification factor, and these multiply together. A compound microscope exploits this: the objective lens creates a magnified intermediate image (|m_1| > 1), and the eyepiece magnifies that image further. The total magnification becomes the product—50× from the objective times 10× from the eyepiece yields 500× overall.

M_total = m_1 × m_2 × m_3 × ...

Sign convention: negative m means inverted. Two negatives → upright. Three negatives → inverted again.

Watch for sign errors. If m_1 = -3 and m_2 = -2, then M_total = +6 (upright, 6× magnified). If m_1 = -3 and m_2 = +2, then M_total = -6 (inverted, 6× magnified). The calculator tracks signs automatically, but understanding why helps you catch unreasonable results.

Worked Visual: Telephoto Lens (Two Converging Elements)

Configuration: Telephoto lens with f_1 = +100 mm, f_2 = -25 mm, d = 80 mm, object at infinity

Step 1: Object at infinity → parallel rays enter lens 1. Image forms at f_1 = 100 mm behind lens 1.

Step 2: s_{o,2} = d - s_{i,1} = 80 - 100 = -20 mm.Negative means virtual object (rays converging toward a point 20 mm behind lens 2).

Step 3: 1/f_2 = 1/s_{o,2} + 1/s_{i,2} → 1/(-25) =1/(-20) + 1/s_{i,2} → s_{i,2} = 100 mm (real image).

Result: Effective focal length appears to be 100 mm, but the physical length is only 80 mm—this is the telephoto compression effect. The negative element shortens the system while maintaining long effective focal length.

This example shows why camera telephoto lenses use a negative rear element. Without it, a 100 mm focal length lens would need to be 100 mm long. The diverging element "redirects" converging light to form the image closer to the lens group, making the system more compact.

Sign Conventions: Real vs Virtual, Upright vs Inverted

QuantityPositiveNegative
Focal length (f)Converging lens/concave mirrorDiverging lens/convex mirror
Object distance (s_o)Real object (light diverging)Virtual object (light converging)
Image distance (s_i)Real image (opposite side)Virtual image (same side as object)
Magnification (m)Upright imageInverted image

The most frequent mistake: forgetting that mirrors flip the sign convention for image distance (positive means same side as object for mirrors, opposite side for lenses). If mixing lenses and mirrors in one system, be meticulous about which convention applies to each element.

Paraxial Approximation Limits

All calculations here assume paraxial rays—light traveling close to the optical axis at small angles where sin(θ) ≈ θ. This keeps the math linear and allows simple formulas like 1/f = 1/s_o + 1/s_i. Real lenses deviate from this idealization, producing aberrations:

  • Spherical aberration: Rays far from the axis focus at different points than central rays.
  • Coma: Off-axis points produce comet-shaped images.
  • Chromatic aberration: Different wavelengths focus at different distances (refractive index depends on color).
  • Astigmatism, field curvature, distortion: Additional aberrations affecting image shape and flatness.

For educational purposes and first-order design, paraxial calculations are excellent. For actual lens design, ray tracing software like Zemax or Code V models thousands of rays across the aperture to quantify and correct aberrations.

Optics References (Hecht, Smith Modern Optical Engineering)

  • Hecht, E. (2017). Optics (5th ed.). Pearson. — The standard undergraduate text covering thin lens equations, matrix optics, and aberrations. Chapter 5 on geometrical optics details multi-element systems.
  • Smith, W. J. (2007). Modern Optical Engineering (4th ed.). McGraw-Hill. — Practical optical design reference with worked examples for camera lenses, microscopes, and telescopes. Includes ABCD matrix methods.
  • Pedrotti, Pedrotti, & Pedrotti (2017). Introduction to Optics (3rd ed.). Cambridge. — Clear treatment of paraxial optics with emphasis on sign conventions and system analysis.
  • ISO 10110 — Optical drawings and specifications standard. Defines tolerances for surface quality, centration, and other manufacturing parameters.

These references provide the foundational equations and conventions used in this calculator. For professional lens design, consult the latest SPIE handbook or manufacturer specifications.

Educational Tool Limitations

  • Thin lens/mirror model: Elements have no thickness. Real lenses have principal planes that shift effective positions.
  • Paraxial rays only: No aberration modeling. Wide-aperture or off-axis rays produce errors not captured here.
  • Monochromatic light: No chromatic aberration. Real glass has wavelength-dependent refractive index.
  • Perfect alignment: No tilt, decenter, or spacing errors. Real systems require tolerance analysis.

This calculator is for homework, concept exploration, and first-order design estimates. For building real optical instruments, use ray tracing software and consult optical engineers.

Debugging Multi-Element Optics Calculations

Real questions from students stuck on sequential ray tracing, sign convention errors, and interpreting virtual vs real images.

I traced rays through a two-lens system but my final image is on the wrong side—where did I mess up?

Check whether you used the correct object distance for the second lens. The image from lens 1 becomes the object for lens 2, but the object distance s₂ is measured from lens 2, not from lens 1. If the intermediate image lands to the right of lens 2, it's a virtual object (use negative s₂). Most errors come from forgetting to subtract the lens separation d: s₂ = d − s₁′.

My telephoto setup gives a positive total magnification, but the image looks inverted when I look through it—why?

A positive magnification M_total means the image is upright relative to the object only if both individual magnifications have the same sign. For two converging lenses, M₁ = −s₁′/s₁ is usually negative (inverted), and M₂ = −s₂′/s₂ can be positive or negative depending on object placement. If M_total > 0 but the image appears inverted, double-check that your sign for one of the intermediate magnifications isn't flipped.

I got an 'undefined' equivalent focal length—did I break something or is that normal?

It's normal for afocal systems. When the system matrix element C equals zero, f_eq = −1/C becomes undefined. This happens intentionally in telescopes and beam expanders where parallel input rays exit parallel. It's not an error; it means your system doesn't converge parallel light to a single focal point.

Can I model a compound microscope with this? The magnification seems way off from my textbook.

Yes, but you need the right configuration. The objective lens creates a real intermediate image at distance s′_obj (typically 16–18 cm from the objective). The eyepiece then magnifies this. Textbook formulas often use M = (L/f_obj)(25 cm/f_eye) where L is the tube length. This calculator gives the exact ray-trace result, which may differ slightly if your object distance doesn't match the standard working distance.

The calculator says 'real image' but I can't see anything on my screen during the lab—what's happening?

Three common issues: (1) The image may be too dim—check that your light source is bright enough and apertures aren't blocking rays. (2) The image distance might be longer than your setup allows—verify s′ and ensure your screen is at that exact position. (3) Aberrations can blur the image beyond recognition if you're using large apertures or cheap lenses. Try a smaller aperture to improve sharpness.

My object is exactly at the focal point of the first lens and the calculator shows infinity—is that a bug?

No, that's physically correct. When s₁ = f₁, the thin lens equation gives 1/s₁′ = 1/f₁ − 1/f₁ = 0, meaning s₁′ → ∞. Rays leave the first lens parallel. If there's a second element, those parallel rays will converge at its focal point. This is actually how telescopes and collimators work by design.

I'm getting confused about when to use positive vs negative focal lengths for my concave mirror—help?

For mirrors, use the convention: concave mirror = positive f (it converges parallel light), convex mirror = negative f (it diverges light). The focal length is f = R/2, where R is the radius of curvature. R is positive if the center of curvature is in front of the mirror (concave), negative if behind (convex). This matches the Cartesian sign convention used in most physics courses.

The paraxial approximation is mentioned everywhere—when does it actually break down in practice?

The paraxial (small-angle) approximation assumes sin θ ≈ θ, which is accurate to <1% error for angles under about 5°. It breaks down when: (1) your aperture is large relative to focal length (fast lenses, f/2 or faster), (2) objects or images are far off-axis, or (3) you're using spherical mirrors/lenses at wide angles. Real optical design software uses exact ray tracing and accounts for spherical aberration, coma, and other errors the paraxial model ignores.

How do I know if my intermediate image is real or virtual? The sign conventions are killing me.

After applying the thin lens equation for element 1: if s₁′ > 0, the intermediate image is real (forms on the opposite side of the lens from the object). If s₁′ < 0, it's virtual (on the same side as the object). For mirrors, positive s′ means the image is in front of the mirror (real), negative means behind (virtual). The key is consistency—pick one sign convention and stick with it for the entire problem.

My professor's formula for telescope magnification is M = −f_objective/f_eyepiece, but the calculator gives a different number—why?

That formula applies only to afocal telescopes at infinite conjugates (infinitely distant object, relaxed eye viewing). If your object is at a finite distance or the eye isn't relaxed, the actual magnification differs. Also, the negative sign indicates an inverted image for astronomical telescopes. The calculator computes the exact magnification for your specific object distance, which may not match the idealized textbook formula.

Lens/Mirror Combo Solver - Image + Magnification