focal length calculator

Thin Lens & Field of View Calculator

Use this calculator to solve for focal length, object distance, image distance, or horizontal field of view.

Formulas used: 1/f = 1/do + 1/di and FOV = 2 × arctan(sensor width / (2f)). Distances use millimeters.

What is focal length?

Focal length is one of the most important parameters in photography, machine vision, and optical design. It describes how strongly a lens converges or diverges light and is typically measured in millimeters. In practical camera terms, focal length influences two things people care about most: magnification and angle of view.

  • Short focal lengths (e.g., 14mm, 24mm) give a wider view.
  • Long focal lengths (e.g., 85mm, 200mm) give a narrower view with more subject magnification.

Core formulas behind the calculator

1) Thin lens equation

The thin lens equation links focal length (f), object distance (do), and image distance (di):

1/f = 1/do + 1/di

From this one equation, you can solve for whichever variable is unknown. This is exactly what the calculator does in its first three modes.

2) Horizontal field of view

If focal length and sensor width are known, horizontal field of view (FOV) is:

FOV = 2 × arctan(sensor width / (2f))

This is useful for planning composition, estimating scene coverage, or selecting lenses for video and surveillance setups.

How to use this focal length calculator

Find focal length from distances

Select Find focal length, enter object distance and image distance, then click Calculate. This is useful in optics labs where both distances are measured experimentally.

Find image distance for a known lens

Select Find image distance. This helps estimate sensor/lens placement and focus behavior. If object distance equals focal length, the model predicts focus at infinity.

Find object distance from focal and image distance

Select Find object distance to reverse the relationship and estimate where an object must be located to focus at a specific image plane distance.

Find horizontal field of view

Select Find horizontal field of view, input focal length and sensor width. For a full-frame camera, width is usually 36mm; for APS-C, it is commonly around 22.3mm to 23.6mm depending on brand.

Practical photography notes

  • Focal length is not perspective by itself. Perspective is mainly controlled by camera-to-subject distance.
  • Sensor size matters. The same focal length appears tighter on smaller sensors due to narrower captured area.
  • Real lenses are not perfectly thin. This calculator provides clean, standard approximations that are excellent for planning and education.

Common mistakes to avoid

Mixing units

Keep all distance values in the same unit. This calculator expects millimeters for consistency.

Confusing focal length with zoom level

Zoom changes focal length, but focal length itself is a physical property of lens setup at that moment. A prime lens has one focal length; a zoom lens has a range.

Ignoring sign conventions in advanced optics

In full optical modeling, distances can be negative for virtual objects/images depending on convention. This calculator uses common practical positive-input workflows while still reporting signed results when the formula produces them.

Quick reference examples

  • Portrait lens: 85mm on full-frame gives a tighter field and flattering working distance.
  • Street/documentary: 35mm offers a natural wide view with context.
  • Landscape/interiors: 16–24mm captures broad scenes.
  • Sports/wildlife: 200mm+ helps fill the frame from far away.

Whether you are a student, photographer, or engineer, a focal length calculator is a fast way to turn lens equations into practical decisions.

🔗 Related Calculators