Thin Lens Equation

Calculate image distance and magnification from a signed focal length and positive object distance.

Key facts

What it does
Calculate image distance and magnification from a signed focal length and positive object distance.
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.
You enter
Signed focal length · Object distance
Worked example
Image distance is 0.15 m and magnification is -0.5.

A clearer path to an answer

From your question to a useful result

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.

01

Goal

Calculate image distance and magnification from a signed focal length and positive object distance.

02

Inputs

Signed focal length · Object distance

03

Method

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.

04

Next step

Calculate, review the assumptions below, then compare a related tool when the decision needs more context.

Thin Lens Equation

Calculate image distance and magnification from a signed focal length and positive object distance.

Finite nonzero signed focal length in metres.

Finite positive distance from lens to object in metres; it cannot equal focal length.

Result

Enter your values above and choose Calculate to see the result here.

Calculation map

Follow the path from input to answer

Ready to calculate
01

Inputs (2)

  • Signed focal length Ready
  • Object distance Ready
02

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.

Bounded, transparent calculation

03

Result

  • Calculate to preview the result.
This diagram mirrors the calculator contract. It summarizes the declared inputs, formula, and returned outputs; it does not add a forecast or professional advice.

Recent runs

Your recent runs stay in this browser session only.

Formula, assumptions, and example

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.

  • 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.

Worked example: Image distance is 0.15 m and magnification is -0.5.

Displayed input contract

  • Signed focal length · minimum -1000000 · maximum 1000000
  • Object distance · minimum 1.0E-6 · maximum 1000000

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

Usage of this calculator and related tools

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.

Waiting for trusted aggregate usage data.

Answer-first guide

How to use the Thin Lens Equation for a real question

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.

What this answers

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.

What you enter

Signed focal length · Object distance. Keep the same time period, unit system, and currency wherever the form requires comparable values.

How to check it

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.

Three checks before you rely on the answer

  1. Match the question. Confirm that the result means the quantity you need, not a similar-sounding percentage, balance, rate, or estimate.
  2. Match the inputs. Use the requested units and period, and read each hint before replacing the example values with your own.
  3. Read the boundary. Review the assumptions and limits. Focal length is a finite nonzero signed value in metres and object distance is a finite positive distance in metres.

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.

How to use the Thin Lens Equation

  1. Enter Signed focal length — Finite nonzero signed focal length in metres. (m).
  2. Enter Object distance — Finite positive distance from lens to object in metres; it cannot equal focal length. (m).
  3. Choose Calculate and read the result panel.
  4. Use Download PDF or Download Word to save a result sheet.

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.

Assumptions and limits

  • 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.

Who uses this calculator?

  • Optics students practicing sign conventions
  • Physics learners studying image formation
  • Teachers demonstrating the thin-lens equation

When is it useful?

  • Calculate image distance for a signed focal length.
  • Calculate signed magnification from object and image distances.
  • Explore real, virtual, inverted, and upright ideal lens cases.

Context and background

The model-first approach to science

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

How this guide was researched

Researched by , 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.

Read the WorldCalculate research and methodology policy

WorldCalculate visual showing scientific measurements flowing through units, an equation, substitution, result, and limits for Thin Lens Equation
A scientific estimate is easier to check when measurements, units, equation, assumptions, and limits remain visible together. An original science visual connecting measured inputs, units, equations, substitution, a reproducible result, and model limits. WorldCalculate original artwork; watermark included.

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.

Small WorldCalculate visual showing measurement, units, equation, substitution, result, and limits for Thin Lens Equation
The model can be reproducible while the real-world conclusion still needs context and evidence. Compact science visual showing a checked calculation without turning it into a laboratory or safety conclusion. WorldCalculate original artwork; watermark included.

The question this lens model answers

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.

  • Inputs are signed focal length and object distance.
  • Outputs are image distance and magnification.
  • The lens is ideal and thin.
  • Scope ends before optical design.

The sign convention

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.

  • Focal length is signed.
  • Object distance is positive by contract.
  • Image distance inherits the formula convention.
  • No alternative sign convention is inferred.

Object distance and optical axis

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.

  • do is positive and measured from the ideal lens plane.
  • Lens thickness is omitted.
  • Object height and off-axis position are absent.
  • The optical axis is part of the setup.

Signed focal length

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.

  • f is measured in metres.
  • f has a sign in the chosen convention.
  • f = 0 is rejected.
  • Lens construction is not modeled.

The thin-lens formula

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.

  • 1/f = 1/do + 1/di.
  • di = f do/(do-f).
  • m = -di/do.
  • The model is thin and paraxial.

The singular object distance

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.

  • do = f is singular.
  • The singular case is rejected.
  • Infinity and NaN are not returned.
  • Near-singular sensitivity is not quantified.

A converging-lens example

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.

  • Focal length: 0.1 m.
  • Object distance: 0.3 m.
  • Image distance: 0.15 m.
  • Magnification: -0.5.

A diverging-lens example

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.

  • Signed focal length: -0.1 m.
  • Object distance: 0.3 m.
  • Image distance: -0.075 m.
  • Magnification: 0.25.

Magnification and interpretation

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.

  • Magnification is dimensionless.
  • Its sign follows the convention.
  • Its absolute value describes ideal scale.
  • Brightness and resolution are not returned.

Object at different distances

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.

  • Distance relative to f changes the branch.
  • Near f, image distance is sensitive.
  • Negative f yields a negative di for positive do.
  • No separate image-classification label is returned.

Validation and finite guards

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.

  • f and do must be finite numbers.
  • f cannot be zero.
  • do = f is rejected before division.
  • Both derived outputs are finite-checked.

Real lens effects outside scope

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.

  • Lens thickness is omitted.
  • Aberrations are omitted.
  • Diffraction and aperture are omitted.
  • A finite result is not performance approval.

No camera or optical-design advice

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.

  • No lens is selected.
  • No sensor or camera is designed.
  • No sharpness guarantee is made.
  • There is no optical-design advice.

A reproducible lens report

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.

  • State the sign convention.
  • Record f, do, and units.
  • Show denominator and magnification.
  • Attach the no-design boundary.

Appropriate educational use

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.

  • Good for thin-lens instruction.
  • Good for sign and singularity tests.
  • Not a camera calculator.
  • Not optical-design advice.

Final interpretation checklist

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.

  • Check signs and metre units.
  • Check the singular denominator.
  • Keep image and magnification signs.
  • Do not turn lens arithmetic into design advice.

Conjugate distances and reciprocal form

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.

  • The reciprocal and rearranged equations agree.
  • Object distance is positive here.
  • Image distance may be signed.
  • Finite inputs are evaluated directly.

Sign changes and near-singular sensitivity

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.

  • Sign branches follow do - f.
  • Near-singular outputs are sensitive.
  • Raw inputs matter near f.
  • No arbitrary epsilon is inserted.

From ideal image to real system

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.

  • Real systems have reference-plane details.
  • Measurements need a shared convention.
  • Disagreement can reveal model limits.
  • No camera or design conclusion follows.

Reference planes and measured distances

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.

  • Distances use an ideal lens plane.
  • Principal planes are not located.
  • Mechanical marks are not optical references.
  • Measured comparisons need shared planes.

Image height and angular geometry

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.

  • Magnification is not image height by itself.
  • No sensor or target size is entered.
  • Paraxial validity is not tested.
  • Output remains distance plus ratio.

Using negative image distance carefully

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.

  • Negative distance is retained.
  • Do not take an absolute value before magnification.
  • Magnification sign is convention-dependent.
  • No ray diagram is generated.

Frequently asked questions

What is the Thin Lens Equation?

Calculate image distance and magnification from a signed focal length and positive object distance.

What is the formula for the Thin Lens Equation?

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.

What do I need to use this calculator?

Enter Signed focal length, Object distance, then choose Calculate.

What are the limits of this calculator?

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.

Methodology

This calculator is part of the WorldCalculate library. Its formula, example, assumptions, input bounds, and output formatting follow the official methodology.

Read the WorldCalculate methodology

Use this calculator as part of a bigger plan

These WorldCalculate collections connect this tool with related questions while keeping each calculation separate and transparent.

Keep this guide handy

Share this guide

Send the canonical WorldCalculate page to a classmate, client, teammate, or friend with the destination you already use.