Home · Everyday · Tech, Text & Media · Focal Length Calculator
Focal Length Calculator
Finds the focal length that delivers a desired horizontal field of view on a sensor of a given width, in millimetres.
What this calculator does
Finds the focal length that delivers a desired horizontal field of view on a sensor of a given width, in millimetres. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
Inverting the field-of-view relation θ = 2·arctan(w ÷ 2f) gives the focal length f = (w/2) ÷ tan(θ/2) for sensor width w and desired horizontal angle θ. The second output takes that focal length and reports the horizontal angle it would give on a 36 mm-wide full-frame sensor.
The formula assumes a rectilinear lens focused at infinity. Very wide targets (above ~120°) are impractical for rectilinear designs because the required focal length collapses and distortion explodes — that territory belongs to fisheye lenses, which follow different projections.
Worked example
With the example inputs this page opens with (desired horizontal field of view (°) 60, sensor width (mm) 36), the result is 31.2 mm — required focal length. Computed from the inputs on this page with the formula below — change any figure and every result updates.
Quick reference
| Desired horizontal field of view (°) | Required focal length | Same lens angle on full frame |
|---|---|---|
| 20 | 102.083073 | 20 |
| 30 | 67.176915 | 30 |
| 40 | 49.454594 | 40 |
| 60 | 31.176915 | 60 |
| 75 | 23.458057 | 75 |
| 90 | 18 | 90 |
| 110 | 12.603736 | 110 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How does the Focal Length Calculator work?
Finds the focal length that delivers a desired horizontal field of view on a sensor of a given width, in millimetres. Desired field of view · Sensor width → Required focal length. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Focal Length Calculator need?
Desired field of view · Sensor width → Required focal length. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the Focal Length Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.