Roboculator
Online CalculatorsCategoriesDate & EventsNews
Get Started
Online CalculatorsCategoriesDate & EventsNewsGet Started
Roboculator

Smart calculators for every challenge. Free, fast, and private.

Categories

  • Finance
  • Health
  • Math
  • Construction
  • Conversion
  • Everyday Life

Popular Tools

  • Date & Events
  • Loan Calculator
  • BMI Calculator
  • Percentage Calc
  • Latest News
  • Search All

Resources

  • Glossary
  • Topic Tags
  • News & Insights

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Editorial Policy
  • Disclaimer
© 2026 Roboculator. All rights reserved.
Roboculator

roboculator.com

  1. Home
  2. /Physics
  3. /Geometric Optics Calculators
  4. /Focal Length Calculator

Focal Length Calculator

Last updated: March 17, 2026

Calculator

Results

Focal Length (f)

20

cm

Optical Power (P)

500

D

Magnification (m)

-2

x

Radius of Curvature (R)

40

cm

System Sign

1

Results

Focal Length (f)

20

cm

Optical Power (P)

500

D

Magnification (m)

-2

x

Radius of Curvature (R)

40

cm

System Sign

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.

Visual Analysis

How It Works

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:

  • f > 0: Converging element (convex lens or concave mirror)
  • f < 0: Diverging element (concave lens or convex mirror)

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.

Understanding Your Results

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₃.

Worked Examples

Converging Lens — Real Image

Inputs

do val30
di60

Results

focal length20
radius of curvature40
optical power5
lens typeConverging (Convex Lens / Concave Mirror)

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.

Diverging Lens — Virtual Image

Inputs

do val40
di-20

Results

focal length-40
radius of curvature-80
optical power-2.5
lens typeDiverging (Concave Lens / Convex Mirror)

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.

Frequently Asked Questions

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.

Sources & Methodology

Hecht, E. (2017). Optics, 5th Edition. Pearson. | Jenkins, F. A. & White, H. E. (1976). Fundamentals of Optics, 4th Edition. McGraw-Hill. | HyperPhysics — Focal Length: http://hyperphysics.phy-astr.gsu.edu/hbase/geoopt/foclen.html
R

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!

Related Calculators

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