Focal to Lens Angle Converter

The Focal to Lens Angle Converter calculates field of view in optics and converts Focal to Lens Angle for imaging geometries.

Focal to Lens Angle
Example Presets

Report an issue

Spotted a wrong result, broken field, or typo? Tell us below and we’ll fix it fast.


About the Focal to Lens Angle Converter

This Converter calculates the angle of view produced by a lens for a given sensor or film size. It focuses on rectilinear lenses, which keep straight lines straight. For each axis, it reports the angle in degrees or radians and can also invert the calculation to find focal length from a target angle.

Photographers, engineers, and students use this for rig planning, surveillance layouts, and vision system design. The variables are standard: focal length f in millimeters, and sensor dimensions in millimeters. The math follows the thin-lens, pinhole-geometry model, which is accurate for most practical setups.

Use it to compare lenses on different formats using width, height, or diagonal. You can also estimate solid angle coverage when you need a single measure of directional extent for a scene or detector.

The Mechanics Behind Focal to Lens Angle

The angle of view is the angular extent of the scene captured by the imaging system. Imagine a triangle from the lens center to the edges of the sensor. The focal length sets the triangle’s height; the sensor dimension sets its base. Trigonometry links these dimensions to the lens angle.

  • Focal length f acts like the distance from the pinhole to the sensor plane in the thin-lens model.
  • Sensor width W controls the horizontal angle; sensor height H controls the vertical angle.
  • The diagonal dimension D = sqrt(W² + H²) controls the diagonal angle, often used in marketing specs.
  • Shorter f yields a wider angle; longer f narrows the view.
  • Rectilinear lenses follow these formulas closely; fisheye lenses do not and require different mappings.
  • Crop factors change W and H, which changes the angle even if f stays the same.

Because the geometry is symmetric, the half-angle is determined by tan(θ/2) = (sensor half-dimension)/f. Doubling that half-angle gives the full angle of view. This is the heart of the converter.

Focal to Lens Angle Formulas & Derivations

The derivation starts with a right triangle from the optical center to the sensor edge. For the horizontal field of view, you use the sensor width. For the vertical field, you use the sensor height. Trigonometry supplies a direct relationship between focal length, sensor dimension, and the field-of-view angle.

  • Horizontal angle: θh = 2 · arctan(W / (2f)). Vertical angle: θv = 2 · arctan(H / (2f)). Diagonal angle: θd = 2 · arctan(D / (2f)), where D = √(W² + H²).
  • Inverse for focal length: f = W / (2 · tan(θh/2)) and f = H / (2 · tan(θv/2)) or f = D / (2 · tan(θd/2)).
  • Radians and degrees: radians = degrees · π/180; degrees = radians · 180/π. Use radians inside trig functions unless your calculator accepts degrees.
  • Solid angle approximation for rectilinear coverage: Ω ≈ 4 · arcsin(sin(θh/2) · sin(θv/2)), result in steradians.
  • Derivation sketch: tan(θ/2) = opposite/adjacent = (sensor half-dimension)/f; solve for θ; double to get full angle.
  • Variables: f (focal length), W (sensor width), H (sensor height), D (diagonal), θ (angle of view). All lengths in the same unit.

These equations assume a thin, rectilinear lens and the entrance pupil at the focal plane distance f from the sensor. Real lenses are very close for common focus distances, especially at moderate and long focus settings.

Inputs, Assumptions & Parameters

The Converter needs a few core inputs. It then computes the angle(s) you request. You can switch between axes and units based on your planning goal.

  • Focal length f (mm): the lens focal length or effective focal length at your focus setting.
  • Sensor width W (mm) and sensor height H (mm): physical dimensions of the active imaging area.
  • Angle type: horizontal, vertical, or diagonal. Choose one or compute all three.
  • Angle unit: degrees or radians for the output result.
  • Optional: target angle to compute the required focal length (inverse mode).

Use realistic ranges: f > 0, W > 0, H > 0. Very wide angles above about 130–140 degrees may indicate a fisheye case that this model does not support. If you enter inconsistent values (like W or H equal to zero), the derivation fails and the result has no meaning.

Using the Focal to Lens Angle Converter: A Walkthrough

Here’s a concise overview before we dive into the key points:

  1. Enter the focal length f in millimeters.
  2. Enter the sensor width W and height H in millimeters.
  3. Select the angle type: horizontal, vertical, or diagonal.
  4. Choose the output unit: degrees or radians.
  5. Click Convert to compute the angle of view.
  6. Optionally switch to inverse mode, enter a target angle, and compute the focal length required.

These points provide quick orientation—use them alongside the full explanations in this page.

Example Scenarios

You have a 35 mm lens on a full-frame camera. The sensor is 36 mm wide and 24 mm high. Compute horizontal angle using θh = 2 · arctan(W/(2f)) = 2 · arctan(36/(2·35)) ≈ 2 · arctan(0.5143) ≈ 2 · 27.2° ≈ 54.4°. Vertical angle is 2 · arctan(24/(2·35)) ≈ 2 · arctan(0.3429) ≈ 37.9°. Diagonal uses D = √(36² + 24²) = 43.27 mm, giving θd ≈ 63.4°. What this means: a 35 mm lens on full-frame covers about 54° horizontally, useful for street and environmental portraits.

You plan a hallway camera using a 6 mm lens and a 1/2.3-inch sensor (approx. 6.17 mm × 4.55 mm). Horizontal angle is 2 · arctan(6.17/(2·6)) ≈ 2 · arctan(0.514) ≈ 54.4°. Vertical angle is 2 · arctan(4.55/(12)) ≈ 2 · arctan(0.379) ≈ 41.5°. If you need 70° horizontal coverage, invert: f = W/(2 · tan(70°/2)) ≈ 6.17/(2 · tan(35°)) ≈ 4.41 mm. What this means: 6 mm is moderate; use about 4.4 mm to reach 70° on this sensor.

Assumptions, Caveats & Edge Cases

The computation uses a thin-lens, rectilinear model and assumes the sensor plane is flat and perpendicular to the optical axis. Real-world deviations exist, and some lenses use different projection functions.

  • Fisheye lenses do not obey the rectilinear formula; they map angle to image radius differently.
  • Focal breathing and focus distance can alter effective focal length slightly; expect small shifts at close focus.
  • Stitched panoramas and anamorphic systems need specialized formulas not covered here.
  • Manufacturers’ stated focal lengths are nominal; small tolerances are normal.
  • Sensor “1/2.3-inch” class sizes are naming conventions; use actual W and H for accuracy.

If your computed angle exceeds about 140 degrees for a rectilinear lens, recheck inputs. Also verify that the variables use consistent units and that you selected the correct axis.

Units Reference

Units matter because the trigonometric derivation expects consistent length units and a correct angle unit. Keep focal length and sensor dimensions in the same unit, and pick degrees or radians consciously for the output.

Common quantities and units for focal-to-angle calculations
Quantity Symbol Typical units Notes
Focal length f millimeters (mm) Use effective focal length at your focus distance if known.
Sensor width W millimeters (mm) Active image width; check your camera’s specs.
Sensor height H millimeters (mm) Active image height; changes with aspect ratio modes.
Angle of view θ degrees (°) or radians (rad) Converter can display in either unit; radians suit trig.
Solid angle Ω steradians (sr) Optional summary of coverage from horizontal and vertical angles.

Use the table as a quick check before computing. If you mix centimeters and millimeters, the result will be wrong. If you switch angle units, convert using π as shown earlier.

Troubleshooting

Getting a result that seems off? Most issues come from incorrect sensor dimensions, mixed units, or choosing diagonal when you meant horizontal. Wide-angle lenses also amplify small input errors.

  • Verify W and H against your device’s exact spec, not the inch-class name.
  • Confirm all lengths are in millimeters.
  • Check that your calculator or software uses radians inside trig functions, or convert angles first.
  • Ensure you selected the correct axis (horizontal vs vertical vs diagonal).
  • Remember that fisheye or anamorphic lenses require different equations.

If values still look wrong, reduce the problem: test with a known full-frame example (36×24 mm) and a common focal length like 50 mm. If that works, the original inputs likely had a mismatch.

FAQ about Focal to Lens Angle Converter

Does zooming change the angle even if the sensor stays the same?

Yes. Changing focal length directly changes the angle of view. Shorter focal length widens the angle; longer focal length narrows it.

Can I compute angle for a fisheye lens with this tool?

No. Fisheye lenses use different projection functions. You need the lens’s mapping (e.g., equidistant or equisolid-angle) to compute angles correctly.

Should I use diagonal, horizontal, or vertical angle?

Use horizontal for framing width, vertical for tall scenes, and diagonal for general comparison across formats. Each serves different planning needs.

How accurate are the results at close focus distances?

Close focus can shift the effective focal length due to lens breathing. Expect small differences; for critical work, measure the field directly.

Key Terms in Focal to Lens Angle

Focal Length

The distance from the lens’s optical center to the sensor when focused at infinity; it controls magnification and angle of view.

Angle of View

The angular extent of the scene captured by the camera along an axis, often stated in degrees.

Sensor Size

The physical width and height of the active imaging area; larger sensors yield wider angles for the same focal length.

Rectilinear Lens

A lens that preserves straight lines, following the pinhole projection model used in the formulas above.

Fisheye Lens

A lens that uses a non-rectilinear projection to capture very wide angles, bending straight lines except through the center.

Crop Factor

The ratio comparing a sensor to a reference format, often full-frame; it scales angles of view for a given focal length.

Thin-Lens Approximation

A model that treats the lens as if all refraction occurs at a single plane, simplifying geometry and derivation.

Solid Angle

A measure of the two-dimensional angular extent in steradians; summarizes coverage in three-dimensional space.

References

Here’s a concise overview before we dive into the key points:

These points provide quick orientation—use them alongside the full explanations in this page.

Leave a Comment