Depth of field calculator

Enter the focal length, f-number, focus distance and sensor size to see how much of the scene looks sharp: where it starts, where it ends and the hyperfocal distance for those settings.

Units
mm
f/
ft
Sharp from9.1 ft
Sharp to11.1 ft
Total depth of field
2 ft
Hyperfocal distance
97.8 ft
Circle of confusion used
0.03 mm

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Pick metric or US units and the sensor size of your camera.
  2. Enter the focal length in millimetres, the f-number and the distance to your subject.
  3. Read where sharpness begins and ends, and the hyperfocal distance for those settings.

How it works

All distances are worked in millimetres with the standard formulas, where f is the focal length, N the f-number, c the circle of confusion and s the focus distance:

  • Hyperfocal distance: H = f² ÷ (N × c) + f
  • Near limit: s × (H − f) ÷ (H + s − 2f)
  • Far limit: s × (H − f) ÷ (H − s), or infinity once s reaches H

The circle of confusion c is the largest blur spot that still looks like a point. The calculator uses 0.030 mm for full frame, 0.020 mm for APS-C and 0.015 mm for Micro Four Thirds. These are conventional values; viewing size and eyesight change what looks sharp.

Worked example

A 50 mm lens at f/2.8 on a full-frame camera, focused at 3 m. H = 50² ÷ (2.8 × 0.03) + 50 = 29.8 m. The near limit is about 2.73 m and the far limit about 3.33 m, so roughly 0.6 m of the scene looks sharp.

Tips

  • For a landscape, focus at the hyperfocal distance: everything from half that distance to infinity is acceptably sharp.
  • Depth of field is shallower at wide apertures, long focal lengths and close focus.
  • The limits are an estimate. If a print will be viewed very closely, stop down a little further than the numbers suggest.

Frequently asked questions

What is the hyperfocal distance?

It is the focus distance that makes everything from half that distance to infinity look acceptably sharp. Focus there for landscapes when you want maximum depth of field.

Which circle of confusion does the calculator use?

Conventional values: 0.030 mm for full frame, 0.020 mm for APS-C and 0.015 mm for Micro Four Thirds. They are common rules of thumb, not physical limits, so treat the results as a guide.

Why does the far limit say infinity?

When you focus at or beyond the hyperfocal distance, the far limit of sharpness reaches infinity, so only the near limit is a number.

How do I get more depth of field?

Use a smaller aperture (larger f-number), a shorter focal length or a longer focus distance. A smaller sensor also gives more depth of field at the same framing.

More in Images

All tools in this category: Images ·Updated November 3, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.