Enter any 2 values (object distance, focal length, or image distance) into the Image Distance Calculator. The calculator will evaluate and display the missing value.
Image Distance Formula
Image distance is the distance from a lens or mirror to the location where the image forms. In introductory optics, the relationship between object distance, focal length, and image distance is modeled with the thin-lens or mirror equation below.
1/Di = 1/F - 1/O
If you want to solve directly for image distance, the equation can be rearranged to:
Di = (F*O)/(O - F)
All distances must use the same unit before calculating. You can use inches, feet, centimeters, or meters, but they must be consistent throughout the problem.
Variable Definitions
| Variable | Meaning | Practical Use |
|---|---|---|
| Di | Image distance | Shows where the image forms relative to the optical element. |
| F | Focal length | Describes how strongly the lens or mirror bends light. |
| O | Object distance | Measures how far the object is from the lens or mirror. |
Rearranged Forms
Because the calculator can solve for any missing value when the other two are known, these alternate forms are often useful:
F = (Di*O)/(Di + O)
O = (Di*F)/(Di - F)
How to Calculate Image Distance
- Measure the object distance and focal length.
- Convert both values into the same unit if needed.
- Take the reciprocal of the focal length.
- Take the reciprocal of the object distance.
- Subtract the object-distance reciprocal from the focal-length reciprocal.
- Take the reciprocal of that result to get the image distance.
This tells you where a screen, sensor, or image plane would need to be placed to bring the image into focus in an idealized setup.
Example
If the object distance is 12 cm and the focal length is 4 cm, substitute those values into the formula:
1/Di = 1/4 - 1/12 = 1/6
Di = 6
The image forms 6 cm from the lens.
How to Interpret the Result
- Positive image distance: In the common lens sign convention, this usually indicates a real image that can be projected onto a screen.
- Negative image distance: This usually indicates a virtual image, meaning the image appears to come from a point on the same side as the object.
- Large image distance: The object is close to the focal position, so the image plane moves farther away.
- Image distance close to focal length: This often happens when the object is very far from the lens or mirror.
Important Special Cases
- Object distance equal to focal length: No finite image distance exists; the image forms at infinity.
- Object farther than the focal length: A converging lens typically forms a real image.
- Object closer than the focal length: A converging lens typically forms a virtual, upright image.
- Very distant object: The image location approaches the focal point.
Common Mistakes
- Mixing units, such as entering object distance in centimeters and focal length in inches.
- Forgetting that the equation uses reciprocals, not direct subtraction of distances.
- Measuring from the wrong reference point instead of the lens or mirror.
- Expecting a normal finite answer when the object is positioned exactly at the focal length.
- Ignoring sign conventions in more advanced optics problems.
Useful Related Relationship
Once image distance is known, image size can also be estimated with the magnification relationship:
M = -Di/O
This is helpful when you want to know not only where the image forms, but also whether it appears enlarged, reduced, upright, or inverted.
When This Calculator Is Most Useful
This calculator is especially helpful for physics homework, basic optics design, classroom demonstrations, camera focusing estimates, and quick lens or mirror placement checks. It is based on the ideal thin-lens style model, so it works best for simplified optical systems and standard textbook problems.
