Focal Length Calculator
Calculate focal length from object and image distances (1/f = 1/dₒ + 1/dᵢ), from diopters (f = 1/D), or camera field of view from sensor size. Includes 35mm equivalent focal length and hyperfocal distance.
Focal Length f (cm)
—
Lens Power P (diopters) —
Lens/Mirror Type —
Extended More scenarios, charts & detailed breakdown ▾
Focal Length f (cm)
—
Power P (D) —
Professional Full parameters & maximum detail ▾
Field of View
Horizontal FOV (degrees) —
Vertical FOV (degrees) —
Camera System
35mm Equivalent Focal Length (mm) —
Hyperfocal Distance (m) —
How to Use This Calculator
- Enter object distance and image distance to find focal length via lens equation.
- Or use From Diopters tab — enter lens power in diopters.
- Use Camera FOV tab to find field of view for a given focal length and sensor size.
- Professional mode adds 35mm equivalent and hyperfocal distance.
Formula
From distances: 1/f = 1/dₒ + 1/dᵢ
From diopters: f(m) = 1/D
Camera FOV: 2 × arctan(sensor/(2f))
Hyperfocal: H = f²/(N × c)
Example
Example: dₒ = 30 cm, dᵢ = 15 cm. 1/f = 1/30 + 1/15 = 3/30. f = 10 cm. Power = 100/10 = +10 D.
Frequently Asked Questions
- 1/f = 1/dₒ + 1/dᵢ, so f = (dₒ × dᵢ)/(dₒ + dᵢ). Both distances are positive for a real image situation. This is the thin lens / mirror equation rearranged to solve for f.
- f (meters) = 1/D. So +2 diopters → f = 0.5 m = 50 cm. +10 D → f = 0.1 m = 10 cm. Negative diopters give a negative focal length (diverging lens).
- FOV (horizontal) = 2 × arctan(sensor_width / (2 × f)). A 50 mm lens on a 36 mm wide sensor gives H-FOV ≈ 39.6°. Wider lenses give larger FOV; telephoto lenses give smaller FOV.
- Focal length × crop factor. APS-C crop factor ≈ 1.5–1.6, Micro 4/3 ≈ 2.0. So a 25 mm lens on a Micro 4/3 sensor ≈ 50 mm equivalent on full-frame. Allows comparison between sensor sizes.
- H = f²/(N × c), where f = focal length, N = aperture f-number, c = circle of confusion (≈ 0.029 mm for full frame). Focusing at H puts everything from H/2 to infinity acceptably sharp — maximum depth of field.
Related Calculators
Sources & References (5) ▾
- B&H Photo — Understanding Focal Length — B&H Photo
- Thin Lens Equation — HyperPhysics — Georgia State University
- OpenStax University Physics Vol 3 — Lenses — OpenStax
- Photography Life — Depth of Field Guide — Photography Life
- DPReview — Focal Length and Angle of View — DPReview