Goal
Calculate image distance and magnification from a signed focal length and positive object distance.
Worldwide context
Saved once here, used across the site.
Currency changes display only. Country selection guides tax input; no tax rate is guessed.
Calculate image distance and magnification from a signed focal length and positive object distance.
Thin-lens relation 1/f = 1/do + 1/di, so di = f do/(do-f); magnification is -di/do. The singular do = f case and nonfinite outputs are rejected.A clearer path to an answer
This page keeps the calculation transparent: define the goal, enter the matching values, inspect the method, and decide what the result means in your situation.
Calculate image distance and magnification from a signed focal length and positive object distance.
Signed focal length · Object distance
Thin-lens relation 1/f = 1/do + 1/di, so di = f do/(do-f); magnification is -di/do. The singular do = f case and nonfinite outputs are rejected.
Calculate, review the assumptions below, then compare a related tool when the decision needs more context.
Calculate image distance and magnification from a signed focal length and positive object distance.
Open the Thin Lens Equation pageMore science tools
Download PDFDownload Word (.doc)
Enter your values above and choose Calculate to see the result here.
Calculation map
Thin-lens relation 1/f = 1/do + 1/di, so di = f do/(do-f); magnification is -di/do. The singular do = f case and nonfinite outputs are rejected.
Bounded, transparent calculation
Your recent runs stay in this browser session only.
Formula: Thin-lens relation 1/f = 1/do + 1/di, so di = f do/(do-f); magnification is -di/do. The singular do = f case and nonfinite outputs are rejected.
This calculator applies the signed thin-lens paraxial relation to a nonzero focal length and positive object distance. It returns image distance and magnification and does not provide camera or optical-design advice.
Worked example: Image distance is 0.15 m and magnification is -0.5.
The displayed limits are checked before the handler runs. Model-specific domain checks may also reject impossible or non-finite inputs.
Methodology: This calculator follows the WorldCalculate input, formula, precision, and boundary policy. Read the official methodology.
Calculator usage statistics
This section counts anonymous successful Calculate submissions, not unique visitors. Counts and top tools appear only when trusted aggregate data is available; country analysis is shown only under the same condition and reporting threshold.
Answer-first guide
Calculate image distance and magnification from a signed focal length and positive object distance. Start with one clearly defined goal, enter values in the units shown, and keep the result attached to the assumptions below.
This tool is useful when your question includes thin lens equation, lens image distance, lens magnification. It returns the outputs declared in the calculator contract rather than a live quote, approval, diagnosis, or professional sign-off.
Signed focal length · Object distance. Keep the same time period, unit system, and currency wherever the form requires comparable values.
Run the worked example first, compare its output with the page's example, then change one input at a time. This makes an unexpected result easier to trace to a unit, boundary, or assumption.
Need a wider view? Browse Science Calculators or compare the related tools below. The WorldCalculate methodology explains how formulas, examples, limits, and revisions are reviewed.
Thin-lens relation 1/f = 1/do + 1/di, so di = f do/(do-f); magnification is -di/do. The singular do = f case and nonfinite outputs are rejected.
This calculator applies the signed thin-lens paraxial relation to a nonzero focal length and positive object distance. It returns image distance and magnification and does not provide camera or optical-design advice.
Image distance is 0.15 m and magnification is -0.5.
Context and background
Science calculators define a system, choose an equation, apply units and constants, and show the substitution. Effects outside that model remain outside the result.
Introductory science problem solving builds from measured quantities and idealized relationships. Those models are valuable for learning and first-pass estimates, while experiments and engineering decisions need additional evidence.
Research and review
Researched by Hassan ALRowaie, Founder and editorial researcher at WorldCalculate.
This guide follows the live calculator's declared inputs, formula, worked example, assumptions, validation boundaries, and source-backed methodology. The review date describes editorial review of the calculator explanation; it is not a promise that external facts or rates remain current.
The thin-lens equation relates focal length, object distance, and image distance under an ideal paraxial approximation. This calculator uses 1/f = 1/do + 1/di, rearranged as di = f do/(do-f), and then computes magnification as -di/do. Focal length is a signed nonzero value in metres, and object distance is a positive metre value. The singular do = f case is rejected, as are nonfinite outputs. The relation is a thin-lens textbook model only. It does not select a camera lens, analyze aberrations, or give optical-design advice. The sections below explain signs, geometry, formula, magnification, examples, singular behavior, validation, and the boundary around real imaging systems.
The page answers a specific ideal-optics question: for a signed focal length and a positive object distance, what image distance and magnification follow from the thin-lens equation? The handler applies the rearranged relation and a second ratio. It does not inspect a lens, identify an object, measure distances, or determine whether a real optical setup is paraxial.
The two outputs have distinct meanings. Image distance carries the sign implied by the chosen convention, while magnification carries both sign and scale. The result is not a camera exposure, resolution, focus tolerance, or component recommendation. Those questions require information absent from the two fields.
A lens equation is meaningful only when its sign convention is consistent. This calculator represents focal length as signed and requires object distance to be positive. A positive focal length conventionally represents a converging lens in the selected setup, while a negative focal length represents a diverging lens. The image-distance sign then communicates which side of the lens the ideal image lies on under that convention.
Different textbooks can choose different coordinate directions, so the input labels and formula should travel together. The handler does not offer a convention selector or reinterpret a sign based on lens names. A user who uses another convention must translate the values before entry and document that choice outside the form.
Object distance do is the positive distance from the ideal lens plane to the object in this contract. The lens plane is an abstraction: a thin lens has no modeled thickness, principal-plane shift, or multiple-surface geometry. The field accepts values from 0.000001 m through 1,000,000 m. The handler uses the distance directly in the denominator do - f.
The page does not accept object height, off-axis position, orientation, or three-dimensional coordinates. It assumes the object and optical axis are described by the one-dimensional paraxial setup. A real object location can require a measured reference plane, but that choice is not discovered by the calculator.
Focal length f sets the ideal lens power and is entered in metres with a sign. The allowed range is -1,000,000 m through 1,000,000 m, but zero is excluded because the rearranged formula and the thin-lens interpretation require a nonzero focal length. A sign change can change the image-distance branch and magnification sign for the same positive object distance.
The handler does not derive focal length from curvature, refractive index, thickness, or a lens catalog. It accepts one supplied ideal parameter. A real optical element may have wavelength-dependent focal length, aberration, aperture limits, and manufacturing tolerance, none of which is represented by this field.
The relation is 1/f = 1/do + 1/di. Solving for image distance gives di = f do/(do - f). The calculator then uses magnification m = -di/do. Since f and do are lengths, the image-distance result is in metres, while the ratio for magnification is dimensionless. The formula is evaluated with the entered signs and positive object distance.
The idealized boundary is near this formula: the lens is thin, paraxial, and represented by one focal length. There are no thickness corrections, spherical or chromatic aberrations, diffraction effects, aperture stops, or field curvature. A finite answer is therefore an ideal geometric-optics result, not a complete optical-system prediction.
When do equals f, the denominator do - f is zero. The rearranged equation has no finite image distance in this ideal limit, so the handler rejects the case explicitly rather than returning Infinity or allowing a nonfinite magnification. This is the requested singular branch and is a mathematical feature of the relation, not a browser formatting problem.
Near the singular value, a very small denominator can create a very large finite image distance. The number may be mathematically valid under the formula but highly sensitive to rounding and measurement uncertainty. The calculator checks finiteness, but it does not provide an uncertainty or tolerance analysis around the singularity.
Use f = 0.1 m and do = 0.3 m. The denominator is 0.2 m, so di = 0.1 x 0.3 / 0.2 = 0.15 m. Magnification is -0.15 / 0.3 = -0.5. The positive image distance and negative magnification are the signs produced by this ideal convention for the chosen object placement.
This example calibrates substitution and sign interpretation. It does not establish a real lens's focus, sharpness, aperture, sensor position, or image quality. It is a thin-lens calculation in metres and a dimensionless magnification ratio.
Use f = -0.1 m and do = 0.3 m. The denominator is 0.4 m, so di = -0.1 x 0.3 / 0.4 = -0.075 m. Magnification is -(-0.075)/0.3 = 0.25. The signs differ from the positive-focal-length example because the focal length is signed in the formula.
The result is an ideal sign-convention outcome, not a claim about a particular diverging lens or an observer's visual experience. The calculator does not draw rays or verify that a real object and lens meet the paraxial assumptions.
Magnification m = -di/do is a signed ratio of ideal image height to object height under the chosen thin-lens convention. Its absolute value below one represents a reduced geometric image, above one an enlarged image, and one an equal-size image. The sign can indicate inversion in the convention. The calculator returns the ratio only and does not calculate physical heights.
A magnification result should not be read as brightness, resolution, field of view, or image quality. Those properties depend on aperture, diffraction, aberrations, sensor or eye response, and alignment. The two-field relation does not contain those factors.
For a positive focal length, object distances greater than f produce a positive image distance in this convention, while object distances between zero and f produce a negative image distance. As object distance approaches f, the image distance grows in magnitude. For a negative focal length and positive object distance, the denominator remains positive and the ideal image distance is negative.
These branches are algebraic consequences of the chosen signs, not a complete ray diagram. The calculator does not classify an image as real or virtual with a separate label, and it does not calculate image height or viewing geometry. A report can interpret the signs only after adopting the same convention as the formula.
The handler requires finite focal length in the signed range, rejects zero, and requires finite positive object distance within its range. Numeric strings, missing values, NaN, infinities, out-of-range inputs, and do equal to f are rejected. These checks apply to direct calls and do not rely solely on browser field attributes.
Image distance and magnification pass through finite-result guards. The engine does not replace a singular denominator with a small epsilon, clip a value, or evaluate expression text. Preserving the singular error makes the mathematical boundary visible and avoids a fabricated near-limit answer.
A real lens can have thickness, spherical aberration, chromatic aberration, distortion, coma, astigmatism, diffraction, finite aperture, wavelength dependence, and manufacturing tolerance. Object and image surfaces may not be ideal planes. The calculator does not represent these effects because its contract contains one signed focal length and one object distance.
A finite image distance is therefore not a focus guarantee. It is the result of the thin-lens paraxial relation. If an optical system requires performance or tolerance analysis, use measured specifications and a separate model rather than adding an unrequested correction to the output.
The calculator does not choose a camera lens, sensor placement, eyepiece, projection distance, aperture, or optical material. It does not recommend a focal length, guarantee a sharp image, calculate field of view, or approve an imaging system. Those decisions require geometry, performance targets, tolerances, and testing absent from this page.
The requested boundary is thin-lens paraxial model only, with no camera or optical-design advice. Use the result as a classroom value or one ideal relation in a separately reviewed design workflow.
A clear report records the sign convention, focal length, object distance, units, denominator, image distance, and magnification. It should state that the lens is treated as thin and paraxial and should identify the singular condition if a requested setup reaches do = f. Keeping the signed values visible prevents a negative image distance from being lost in formatting.
End with the model boundary: this is a thin-lens paraxial calculation and not camera or optical-design advice. That statement lets a later reader use the image relation without mistaking it for a measured lens performance result.
The page is useful for ray-optics exercises, sign-convention practice, image-distance substitution, and magnification comparisons. It demonstrates the singular focal-distance case and the different branches from positive and negative focal lengths. The finite guards make it a clear example of how a mathematical calculator should handle an undefined result.
It should not be used to choose an imaging component or certify optical performance. When a practical system is involved, retain the ideal result as a starting relation and use a reviewed optical analysis for the actual decision.
Check that f is signed and nonzero, do is positive, and both are in metres under one sign convention. Confirm that do - f is not zero, calculate di, and then calculate -di/do. Preserve signs and units in the report. These steps verify the ideal equation but do not verify a physical lens or its image quality.
Then ask whether the desired conclusion remains image distance and ideal magnification. If it does, the output is transparent. If it asks which lens, where to place a camera, how sharp an image will be, or whether an optical design is approved, stop at the boundary.
The reciprocal equation shows how object and image distances share the lens power. If one distance is supplied, the other is constrained by the focal length under the ideal convention. The rearranged product-over-difference form is convenient for a calculator because it avoids solving a second equation. Both forms describe the same thin-lens relation when the denominator is nonzero.
The object distance is restricted to a positive value in this page, while the image distance may be positive or negative. That choice keeps the input contract simple and leaves sign interpretation to the stated convention. A user should not take an absolute value of image distance before calculating magnification because its sign carries ideal geometric information.
The reciprocal form also exposes why extremely distant objects can approach a focal-plane image without becoming exactly singular. The calculator evaluates the entered finite distance and does not replace it with infinity or a limiting approximation.
For a positive focal length and an object distance greater than that focal length, the denominator is positive and image distance is positive in the selected convention. If the positive object distance is smaller than focal length, the denominator is negative and image distance changes sign. For a negative focal length with positive object distance, the denominator is positive while the numerator is negative. These branches arise from the algebra and should be read with the convention.
Near do = f, a small measurement change can produce a large change in image distance because the denominator is small. A display rounded to a few digits may make two input values look equal even when the raw numbers are not, or may hide the sensitivity of the output. The handler rejects exact equality and guards the calculated value but does not set a tolerance or uncertainty interval.
This behavior is a mathematical reason to preserve raw inputs. It is not a reason to replace the denominator with an arbitrary minimum. Such a replacement would turn the singular boundary into an unrequested approximation and could conceal a setup error.
A real imaging setup can have principal planes, lens thickness, multiple elements, aperture stops, alignment errors, wavelength dependence, and aberrations. The two-field calculator does not measure those features. It is best used to establish the first-order conjugate relation before a more detailed optical model is considered.
If the result is compared with a measurement, preserve object and image reference planes, sign convention, wavelength, and uncertainty. A disagreement does not automatically mean the formula is wrong; it may show that the thin-lens assumptions do not describe the setup. The handler cannot diagnose the source of disagreement.
When handing the result to a design process, label it as ideal image distance and magnification only. Do not infer camera placement, sharpness, lens choice, or optical safety from the number.
The object distance is measured from the ideal lens plane in this calculator. A real lens system may have principal planes that do not coincide with a visible housing surface or a mechanical center mark. If a measured distance uses another reference, the value must be translated before applying the equation. The handler does not locate principal planes or correct a measurement reference.
The same issue applies to image distance. A screen, sensor, or observer may be positioned relative to a mount rather than the ideal optical reference. The returned signed value is internally consistent with the formula but does not identify where a real component should be placed. That placement question is outside the two-field arithmetic.
Keeping reference planes explicit is especially important when comparing a calculated value with an experiment. A difference can arise from definitions before it arises from algebra.
Magnification is a ratio, so it can be used with an object height in a separate calculation to obtain an ideal image height. This page does not ask for object height, field angle, sensor size, or target dimensions. A magnification value alone cannot establish the size of a captured scene or the amount of detail in an image.
The paraxial approximation also assumes small angles relative to the optical axis. Off-axis rays, large apertures, and extended fields can expose effects that the one-dimensional relation does not contain. The handler does not calculate ray height or test whether the entered setup is paraxial.
The output remains useful when its role is kept narrow: signed image distance and signed ideal magnification under the stated convention.
A negative image distance is an algebraic result under the selected sign convention. It can correspond to an ideal image on the opposite side of the lens from a positive image distance, but the calculator does not draw the rays or label the image as virtual. Preserve the sign rather than replacing it with an absolute distance, because magnification uses that sign.
A negative magnification likewise carries convention-dependent orientation information. Its absolute value describes ideal scale, while its sign describes the orientation relationship in the chosen equation. The page does not translate that result into a visual experience, display quality, or observer report.
Any verbal classification should therefore cite the convention and the raw outputs. The handler supplies the arithmetic and leaves interpretation at that stated boundary.
Calculate image distance and magnification from a signed focal length and positive object distance.
Thin-lens relation 1/f = 1/do + 1/di, so di = f do/(do-f); magnification is -di/do. The singular do = f case and nonfinite outputs are rejected. This calculator applies the signed thin-lens paraxial relation to a nonzero focal length and positive object distance. It returns image distance and magnification and does not provide camera or optical-design advice.
Enter Signed focal length, Object distance, then choose Calculate.
Focal length is a finite nonzero signed value in metres and object distance is a finite positive distance in metres. The thin-lens sign convention is represented by signed focal length, while the object distance is positive; the lens is ideal and paraxial with no thickness or aberration terms. The singular object-distance-equals-focal-length case and any nonfinite result are rejected. This is a thin-lens paraxial model only, not camera or optical-design advice.
This calculator is part of the WorldCalculate library. Its formula, example, assumptions, input bounds, and output formatting follow the official methodology.
These WorldCalculate collections connect this tool with related questions while keeping each calculation separate and transparent.