Where does a lens or mirror form the image?
Image distance, size and kind from the thin lens and mirror equation, drawn as a ray diagram.
What you enter stays on your device while you use this tool. Opening a shared link sends the settings in its address to HowToolbox to prepare the page.
Image distance
15 cm
A real, upside-down image 0.5 times the size (1 cm tall) forms 15 cm behind the lens.
- Image
- Real, upside down
- Magnification
- −0.5×
- Image height
- 1 cm
- Signed f / image distance
- +10 / +15 cm
Image distance, size and kind from the thin lens and mirror equation, drawn as a ray diagram.
How to use
- Choose a converging or diverging lens, or a concave or convex mirror.
- Enter the focal length and the object distance, or drag the tip of the object and the focal point in the ray diagram.
- Read where the image forms, how big it is and whether it is real or virtual; the object height and unit are under More options.
Converging lens with a focal length of 10 cm
A negative magnification means the image is upside down.
How it works
A lens bends light and a curved mirror reflects it so that rays from one point of an object meet again, or seem to come from one point: the image. A converging lens or concave mirror can gather the rays into a real image that you can catch on a screen; a diverging lens or convex mirror spreads them, so you only see a smaller, upright virtual image when you look through or into it.
The thin lens equation, which also holds for spherical mirrors, is 1/f = 1/dₒ + 1/dᵢ, with f the focal length, dₒ the object distance and dᵢ the image distance. The magnification is m = −dᵢ/dₒ; a negative m means the image is upside down. With f = 10 cm and the object at 30 cm: 1/dᵢ = 1/10 − 1/30 = 1/15, so the image is 15 cm behind the lens, half the size and inverted.
This uses the common "real is positive" convention from OpenStax University Physics, volume 3, chapter 2: a converging lens and a concave mirror have positive f, a real image has positive dᵢ. The ray diagram draws the three principal rays: one parallel to the axis that leaves through the focal point, one straight through the centre, and one through the near focal point that leaves parallel. Thick lenses and wide-angle rays deviate from this ideal.
Sources
- OpenStax University Physics, vol. 3, §2.4 Thin LensesUsed for: formula
Frequently asked questions
Why is there no image when the object is at the focal point?
The lens or mirror then sends every ray out parallel, so they never meet. A magnifying glass held one focal length from a page makes the image infinitely far away, which your eye sees comfortably.
How does a magnifying glass work?
Hold a converging lens closer to the object than its focal length. It forms a virtual, upright image farther away and larger; with f = 10 cm and the object at 5 cm the image is twice the size.
Why do car side mirrors say objects are closer than they appear?
They are convex mirrors, which always form a smaller virtual image. Things look smaller and so farther away, but the mirror shows a wider view.
Can I calculate two lenses placed one after the other?
Not in a single calculation. The tool models one element, and the image from the first lens becomes the object for the second, with distances and signs worked out for that arrangement.
Should I enter a negative focal length for a diverging lens?
No. Enter the positive size of the focal length and choose the element type. The calculator applies the appropriate sign for a diverging lens or convex mirror.
Next you might need
More in Physics
- Artificial gravity calculator, private, runs on your device
- Coulomb's law calculator, private, runs on your device
- Decibel calculator, private, runs on your device
- Doppler effect calculator, private, runs on your device
- Double pendulum, private, runs on your device
- Double-slit experiment, private, runs on your device





