Worked examples
10 cm convex lens, object at 30 cm
image 15 cm on the far side, magnification -0.5 (half size, inverted)
10 cm concave lens, object at 20 cm
image about 6.67 cm on the same side, magnification about 0.33 (small, upright, virtual)
Object at 30 cm and image at 15 cm
focal length 10 cm, magnification -0.5
How to use it
- Choose whether to find the image position or the focal length.
- Enter all distances in the same unit (such as cm).
- Choose the lens type (convex or concave).
What this calculates
A thin lens gathers light (convex) or spreads it (concave). Given the object distance and focal length, the image position is fixed. For a convex lens with the object beyond the focal point, a real inverted image forms; inside the focal point you see an upright virtual image. At exactly the focal point the rays leave parallel and no image forms. A concave lens always makes a smaller upright virtual image. The formula assumes a thin lens and rays near the axis.
The formulas
- 1 ÷ f = 1 ÷ dₒ + 1 ÷ dᵢ (f: focal length, dₒ: object distance, dᵢ: image distance; convex f > 0, concave f < 0)
- m = −dᵢ ÷ dₒ (m: magnification; negative means inverted)
- dᵢ > 0 is a real image, dᵢ < 0 a virtual one
Reference table
| Object distance (cm) | Image distance (cm) | Magnification |
|---|---|---|
| 15 | 30 | -2 |
| 20 | 20 | -1 |
| 30 | 15 | -0.5 |
| 40 | 13.33 | -0.333 |
| 100 | 11.11 | -0.111 |
Good to know
- Continue with the Light Refraction Calculator for bending angles and the Wave Calculator for wavelength and frequency.
- The Light-Year Calculator helps with distance conversions.
Sources
Frequently asked questions
How do real and virtual images differ?
A real image is where light actually converges, so a screen can show it. A virtual image only appears so; it cannot be projected. Text seen through a magnifier up close is virtual.
Why is the magnification negative?
Negative means the image is inverted. A magnitude above 1 means an enlarged image.
What if the object is at the focal point?
The rays leave parallel and no image forms. This calculator tells you so.
Must distances be in cm?
No. Any unit works as long as all three agree; the result uses the same unit.
Do I enter a negative focal length for a concave lens?
Enter it as a positive number and choose concave; the calculator treats it as negative.
Are my numbers stored?
No. Everything is calculated in your browser and nothing is sent to a server or saved.
Last updated 2026-12-02 · For reference only; not investment, tax or legal advice.