Lens Magnification Calculator
Estimate thin-lens image magnification, object distance, image distance, and the effect of an extension tube from practical photography inputs.
Inputs
Use positive distances. The baseline focus distance must be at least four focal lengths for this real-image model.
Further magnification properties
Live results
All distances are solved in millimeters internally, then formatted for readability.
Optical distance breakdown
| Quantity | Value | Canonical mm | Interpretation |
|---|---|---|---|
| Baseline focus distance | 150.000 m | 150,000.000 | Object to image plane before added extension |
| Baseline object-to-lens distance | 149.498 m | 149,498.322 | Long conjugate distance |
| Baseline lens-to-image distance | 501.678 mm | 501.678 | Short conjugate distance |
| Extension tube | 0.000 mm | 0.000 | Additional image-plane spacing |
| Adjusted object-to-lens distance | 149.498 m | 149,498.322 | Object distance required after extension |
| Adjusted lens-to-sensor distance | 501.678 mm | 501.678 | Image distance including extension |
| Effective focus distance | 150.000 m | 150,000.000 | Adjusted object-to-sensor total |
How to use this lens magnification calculator
What this calculator does
This calculator estimates the linear magnification produced by a positive, converging thin lens when you know the total baseline focus distance and focal length. It also resolves the corresponding object-to-lens and lens-to-image distances and can estimate how an extension tube changes the image distance, the object distance needed for sharp focus, and the resulting magnification. The model is geometric optics: it does not predict autofocus behavior, field of view for a particular sensor, depth of field, diffraction, distortion, or the internal focusing behavior of a modern multi-element photographic lens. For the underlying assumptions, see OpenStax's explanation of thin lenses and image formation.
When to use it
- Estimate the image-to-object size ratio for a camera lens at a known subject setup distance.
- Compare focal lengths while keeping the same approximate object-to-image-plane distance.
- Explore why long focal lengths produce larger sensor images of distant subjects.
- Estimate the first-order effect of adding a macro extension tube before planning a close-focus setup.
How to calculate
The calculator opens with a ready-to-use example: a 150 m focus distance, a 500 mm focal distance, and a 0 mm extension tube. Its results and an example XLSX workbook are available immediately. To use your own values:
- Replace Focus distance (d) with the total distance from the object to the baseline image plane and choose its unit.
- Enter the positive Focal distance (f) marked for the lens and choose its unit. Changing a unit selector converts the current numeric value so the physical distance stays unchanged. For a real-image two-conjugate solution in this formulation, the focus distance must be at least four times the focal length.
- If needed, open Further magnification properties and enter an Extension tube length. The live results and distance table update as you type.
- Read Magnification first, then use the object, sensor, and effective-focus distances to understand the geometry. Use Download Excel to export the current validated state.
- Reset clears the demonstration values and results rather than restoring them. After Reset, Download Excel is disabled until you enter a complete valid state again.
Input guide
Focus distance (d) is required, must be a finite positive decimal, and accepts mm, cm, m, inches, or feet through its adjacent unit selector. A realistic example is 150 m. Larger focus distances generally reduce magnification for a fixed focal length. Do not enter a lens-to-subject distance here unless it also includes the image-side distance; this model defines d as the object-to-image-plane total. Grouped thousands or scientific notation are not accepted, which avoids ambiguous pasted values.
Focal distance (f) is required, positive, and accepts mm, cm, m, or inches. A 500 mm telephoto lens is the startup example. Increasing focal length while keeping d fixed increases magnification until the real-image boundary d = 4f is reached. The most common mistake is mixing a 500 mm focal length with a numeric focus distance intended to be meters without selecting the correct units.
Extension tube is required by the model but may be zero. It accepts a nonnegative decimal in mm, cm, or inches. An example macro value is 25 mm. Increasing it moves the image plane farther from the lens; the calculator then resolves a closer object distance that satisfies the same thin-lens equation. Negative extension is rejected. This is an idealized first-order estimate, not a guarantee for internally focusing lenses.
Output guide
Magnification is the dimensionless linear image-size ratio, shown with ×. A value of 1× means life-size at the image plane, below 1× means reduction, and above 1× means enlargement. Baseline magnification is the same ratio before any extension and is useful for isolating the extension effect. Image type reports “real, inverted” because the accepted domain uses a positive converging lens with a real image.
Object-to-lens distance is the adjusted object conjugate distance. Lens-to-sensor distance is the adjusted image conjugate distance, including any extension. Effective focus distance is their sum. Extension gain is the difference between adjusted and baseline magnification, not a zoom ratio. The Optical distance breakdown table repeats the baseline and adjusted distances in readable units and canonical millimeters so the relationships can be checked directly.
Worked example
With d = 150 m = 150,000 mm and f = 500 mm, the thin-lens conjugates can be obtained from r = √(d²/4 – f·d). This gives a baseline image distance h = d/2 – r = 501.678 mm and object distance g = d/2 + r = 149,498.322 mm. The linear magnification is h/g = 0.003355742..., displayed as 0.003356×. With the startup extension of 0 mm, the adjusted values equal the baseline values. The same relationships follow the standard lens and magnification equations summarized in OpenStax's geometric-optics key equations.
Learn more
For an independent treatment that directly relates object distance, image distance, focal length, and linear magnification, see Nikon MicroscopyU's microscope optical train and thin-lens relationships.
How the model works
Thin-lens equation: 1/f = 1/g + 1/h. Magnification magnitude: m = h/g. With d = g + h, the two positive conjugates are h = d/2 – √(d²/4 – f·d) and g = d/2 + √(d²/4 – f·d).
The condition d ≥ 4f is not an arbitrary software limit. For a positive thin lens forming a real image with both conjugate distances positive, the sum g + h reaches its minimum when g = h = 2f, so the minimum total is 4f. At that boundary the magnification magnitude is exactly 1×. As d grows well beyond 4f, the image distance approaches f and the magnification becomes small, which is typical for photographing distant subjects.
Extension tubes change image-side spacing rather than focal length. In this calculator the tube length is added to the baseline image distance, and the thin-lens equation is solved again for the object distance that would bring the image into focus. That treatment is useful for idealized planning, but real lenses may move internal groups or shift their principal planes. The RP Photonics Encyclopedia article on imaging with a lens provides another detailed treatment of the focusing condition, magnification, and the limits of the thin-lens approximation.
Magnification is not zoom
Linear magnification compares physical image size with physical object size. Zoom, by contrast, usually describes the ratio between the longest and shortest focal lengths available from a variable-focal-length lens. A 24 – 70 mm zoom therefore has a focal-length ratio of about 2.92:1, but that number does not tell you the lens's macro reproduction ratio at a particular focus distance.
Practical limits
- The calculation assumes a thin lens and paraxial rays; real photographic optics are thick, multi-element systems.
- Marked focal length can differ from effective focal length at close focus, particularly with internal focusing designs.
- Extension can reduce working distance and may change exposure and aberration performance even though the idealized geometric equations remain simple.
- Use manufacturer close-focus and maximum-magnification specifications for final equipment decisions; use this calculator as a transparent geometry estimate.