Calculators/Physics/Lenses and mirrors

Lenses and mirrors

Lens equation · magnification · image type

Lenses and mirrors — illustration

Any units, as long as they are consistent (e.g. cm). x — distance of the object from the lens.

Image distance y
30
Magnification |p|
2×
Image: real, inverted, enlarged

Equation: 1/f = 1/x + 1/y. Magnification p = y/x. Positive y → real image (on the other side, inverted); negative y → virtual (on the same side, upright).

The position of the image formed by a lens (or spherical mirror) is described by the lens equation:

1f=1x+1y\frac{1}{f}=\frac{1}{x}+\frac{1}{y}

where ff is the focal length, xx — the object distance, yy — the image distance. The magnification is p=yxp=\dfrac{y}{x}.

The sign of the result tells you the type of image: y>0y>0 → a real image (inverted, on the other side), y<0y<0 → a virtual one (upright, on the same side). A converging lens (and a concave mirror) has f>0f>0, a diverging one (and convex) — f<0f<0.

Examples

f = 10 cm, x = 15 cm (converging)
→ y = 30 cm, p = 2× — real image, inverted, enlarged
f = 10 cm, x = 5 cm (object inside the focal point)
→ y = −10 cm — virtual image, upright, enlarged (as in a magnifying glass)

Frequently asked questions

When is the image real and when is it virtual?+

A real image (y > 0) forms when the object is farther than the focal point of a converging lens — it can be projected onto a screen. A virtual image (y < 0) is seen only by looking through the lens (e.g. a magnifying glass).

What does a negative focal length mean?+

A diverging lens or a convex mirror. They always produce a virtual, upright and reduced image.

Found this calculator useful? Share it.

It's free — send it to a friend who's revising.

Teaching? Embed this calculator on your site.

Free widget — paste it on your school site, blog or notes. It links to the full version.

Teaching a class or tutoring? Guide students in NexTutor →