20
cm
500
D
-2
x
40
cm
1
20
cm
500
D
-2
x
40
cm
1
The Focal Length Calculator determines the focal length, radius of curvature, and optical power of a lens or mirror from measured object and image distances. Focal length is the most fundamental parameter characterizing any optical element — it determines the converging or diverging strength and is essential for designing cameras, telescopes, eyeglasses, and all imaging systems.
Using the relation $$f = \frac{d_o \cdot d_i}{d_o + d_i}$$ derived from the thin lens/mirror equation, this calculator also provides the equivalent radius of curvature R = 2f and the optical power in diopters.
The focal length is derived from the thin lens equation by solving for f:
$$\frac{1}{f} = \frac{1}{d_o} + \frac{1}{d_i} \implies f = \frac{d_o \cdot d_i}{d_o + d_i}$$
This formula accepts signed values for di: positive for real images and negative for virtual images. The resulting focal length sign indicates the optical element type:
The radius of curvature for a mirror is related to the focal length by:
$$R = 2f$$
This arises because the focal point of a spherical mirror lies halfway between the mirror surface and the center of curvature. For lenses, the relationship between focal length and radii of curvature involves the refractive index (see the Lens Maker Equation Calculator).
The optical power in diopters is:
$$P = \frac{1}{f_{\text{meters}}}$$
Diopters are the standard unit used in optometry for prescribing corrective lenses. A +2.0 D lens has f = 50 cm and is converging (for farsightedness), while a −3.0 D lens has f = −33.3 cm and is diverging (for nearsightedness).
In experimental optics, determining focal length from conjugate distances (do and di pairs) is a standard technique. Multiple measurements can be averaged for accuracy, and plotting 1/di versus 1/do yields a straight line whose intercepts give 1/f.
The focal length is the distance from the optical center to the focal point. Positive values indicate converging optics, negative values indicate diverging optics. The radius of curvature R = 2f applies directly to spherical mirrors. For lenses, it provides an equivalent mirror radius.
The optical power in diopters (D) is the reciprocal of focal length in meters. Higher absolute values mean stronger converging or diverging action. Optometrists use diopters because powers of multiple thin lenses in contact simply add: Ptotal = P₁ + P₂ + P₃.
Inputs
Results
With dₒ = 30 cm and dᵢ = 60 cm: f = (30 × 60)/(30 + 60) = 1800/90 = 20 cm. The optical power is 1/0.20 = 5.0 D. This is a converging element.
Inputs
Results
With dₒ = 40 cm and dᵢ = −20 cm (virtual image): f = (40 × −20)/(40 + −20) = −800/20 = −40 cm. The negative focal length confirms a diverging element with power −2.5 D.
Place an object at a known distance from the lens, find the sharp image position on a screen, and measure do and di. Then compute $$f = \frac{d_o \cdot d_i}{d_o + d_i}$$. For better accuracy, repeat at multiple distances and average the results, or use the graphical method of plotting 1/di vs 1/do.
Diopters (D) are the unit of optical power, defined as the reciprocal of the focal length in meters: P = 1/f(m). A +3 D lens has f = 33.3 cm and converges light. A −2 D lens has f = −50 cm and diverges light. Diopters are used by optometrists because lens powers add directly for thin lenses in contact.
For a spherical mirror, parallel rays converge (or appear to diverge from) the focal point, which lies midway between the mirror surface and the center of curvature. This geometric relationship gives R = 2f. It holds under the paraxial approximation for both concave and convex spherical mirrors.
Yes. A negative focal length indicates a diverging optical element — a concave (diverging) lens or a convex (diverging) mirror. The virtual focal point is on the same side as the incoming light.
A negative di means the image is virtual — it forms on the same side as the incoming light (behind a lens or behind a mirror). Enter the negative value directly into the calculator to get the correct focal length.
Longer focal lengths produce shallower depth of field (more background blur) at the same aperture and subject distance. This is because a longer focal length magnifies the image more, making out-of-focus areas appear more blurred. Portrait photographers use 85–135 mm lenses for this reason.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!
Lens Calculator
Geometric Optics Calculators
Mirror Equation Calculator
Geometric Optics Calculators
Magnification Calculator
Geometric Optics Calculators
Lens Maker Equation Calculator
Geometric Optics Calculators
Snell's Law Calculator
Geometric Optics Calculators
Index of Refraction Calculator
Geometric Optics Calculators