Lens Calculator: Field of View, Depth of Field and Hyperfocal Distance

Pick your sensor, enter focal length, aperture and focus distance, and see the near and far limits, hyperfocal distance, angle of view and frame size.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Choose your sensor

    Or enter its size.

  2. 2
    Enter focal length

    In millimetres.

  3. 3
    Enter aperture

    And focus distance.

  4. 4
    Read depth of field

    Near, far and hyperfocal.

  5. 5
    Compare apertures

    In the table.

About this tool

Choosing a lens and aperture is about what will be sharp and how much of the scene fits in the frame. Depth of field is the range of distances that look acceptably sharp; it depends on focal length, aperture, focus distance and the circle of confusion, which is set by the sensor size. The hyperfocal distance is the closest focus point that keeps infinity acceptably sharp, a favourite technique for landscapes. This calculator works all of these out for full frame, APS-C, Micro Four Thirds, 1-inch, phone or any custom sensor, along with field of view, equivalent focal length and a safe handheld shutter speed.

Who this is for

Landscape and street photographers using zone focusing, filmmakers planning focus pulls, people comparing cameras with different sensor sizes, and anyone choosing a lens.

The formulas

Hyperfocal distance H = f²/(N × c) + f, where f is the focal length, N the f-number and c the circle of confusion. Near limit = s(H − f)/(H + s − 2f); far limit = s(H − f)/(H − s), or infinity when the focus distance s reaches H. The circle of confusion defaults to the sensor diagonal divided by 1,500 (0.029 mm on full frame, 0.019 mm on APS-C), and you can enter your own value.

Field of view and crop factor

Angle of view = 2 × arctan(sensor size / 2f) for each dimension. The crop factor is the full-frame diagonal (43.3 mm) divided by your sensor's diagonal. Multiplying the focal length by the crop factor gives the full-frame equivalent framing; multiplying the f-number gives the equivalent depth of field.

Frame size and magnification

At the focus distance, the frame covers sensor width × distance / focal length. Magnification m = f/(s − f) tells you how large the subject is on the sensor; 1:1 is true macro.

Safe handheld shutter speed

The reciprocal rule suggests 1/(focal length × crop factor). Each stop of image stabilisation lets you use a shutter speed twice as long.

A worked example

On APS-C at 35 mm and f/5.6 focused at 3 m, everything from 2.39 m to 4.03 m is sharp. The hyperfocal distance is 11.7 m: focus there and everything from 5.8 m to infinity is acceptably sharp. The view is 37° wide, like a 54 mm lens on full frame.

Diffraction

Very small apertures soften the whole image. The calculator warns when the equivalent aperture is beyond about f/22 on small sensors.

## Zone focusing for street photography Set a moderate aperture such as f/8, focus at about 3 m with a wide lens, and everything from roughly 2 to 6 m is sharp, so you can shoot without waiting for autofocus. The table makes it easy to pick the aperture for the zone you need. These figures are not a guarantee of sharpness for large prints.

Limits

Acceptable sharpness depends on print size and viewing distance. The thin-lens model is an estimate; real lenses differ slightly.

Worked example

APS-C, 35 mm, f/5.6, focused at 3 m: sharp from 2.39 m to 4.03 m; hyperfocal distance 11.7 m.

Quick facts

Frequently asked questions

What is the hyperfocal distance?

The closest focus distance at which infinity is still acceptably sharp.

What circle of confusion is used?

Sensor diagonal divided by 1,500 unless you enter your own.

What is crop factor?

The full-frame diagonal divided by your sensor's diagonal.

Does a smaller sensor give more depth of field?

At the same framing and f-number, yes.

What is a safe handheld shutter speed?

About 1/(focal length × crop factor), longer with stabilisation.

Is my data stored?

No. It stays in your browser.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages