Lens & Mirror Image Formation Tool
Enter the focal length and object distance to find the image position, magnification, and whether the image is real or virtual. Drag the object on the ray diagram to explore how lenses and mirrors form images. All calculations run in your browser.
Ray Diagram
Reference Guide
The Thin Lens Equation
The thin lens equation relates three quantities: focal length, object distance, and image distance. It applies to any thin lens where the thickness is small compared to the focal length.
- is the focal length of the lens
- is the object distance (from lens to object)
- is the image distance (from lens to image)
A positive means a real image forms on the opposite side of the lens from the object. A negative means a virtual image forms on the same side as the object.
The Mirror Equation
Mirrors follow the same formula as lenses. The difference is in how the sign conventions work for curved mirrors.
- Concave mirror has because it converges light
- Convex mirror has because it diverges light
The focal length of a mirror equals half its radius of curvature: . Concave mirrors can form both real and virtual images depending on the object position, while convex mirrors always produce virtual images.
Magnification
Magnification tells you how the image size compares to the object. It can be expressed as a ratio of distances or heights.
- means the image is upright (same orientation as the object)
- means the image is inverted (flipped upside down)
- means the image is enlarged (bigger than the object)
- means the image is reduced (smaller than the object)
- means the image is the same size as the object
Image Characteristics
You can determine everything about the image from the signs of and .
| Condition | Image type | Meaning |
|---|---|---|
| Real | Light converges to form the image | |
| Virtual | Light appears to diverge from the image | |
| Upright | Image has the same orientation as the object | |
| Inverted | Image is flipped relative to the object |
When , the denominator in the lens equation goes to zero, so no image forms. The outgoing rays are parallel, and the image is said to be at infinity.