Lens & Mirror Equation Calculator
Enter any two of f, u, v and get the third โ with magnification, image type and a diagram.
Formula
m = โv/u = hi/ho
Physics behind the lens/mirror equation
The thin-lens equation relates object distance u, image distance v and focal length f for an ideal (paraxial, thin) lens or mirror. A real image forms on the opposite side of the lens and can be projected on a screen; a virtual image forms on the same side as the object and cannot be projected. The sign of v tells you which is which: positive v = real image, negative v = virtual image. Magnification m relates image and object heights.
Worked example
Converging lens, f = 10 cm, u = 30 cm
1/v = 1/10 โ 1/30 = 2/30 v = 15 cm (real, inverted) m = โv/u = โ0.5 (diminished, inverted) h_i = mยทh_o = โ1 cm
Related tools
FAQs
What sign convention does this calculator use?
Real-is-positive: u and v are positive against the direction of the incident light. f is positive for a converging lens / concave mirror.
What does negative magnification mean?
The image is inverted. |m| > 1 means enlarged.