Browse all tools
Photo and videoCategory overviewPrint Size CalculatorDepth of Field CalculatorCrop Factor and Equivalent Focal Length CalculatorND Filter Exposure CalculatorFlicker-Free Shutter Speed CalculatorTimelapse CalculatorVideo File Size and Bitrate CalculatorAspect Ratio Calculator
Image filesCategory overviewImage Resizer and ConverterPNG to JPG ConverterJPG to PNG ConverterWebP to JPG ConverterJPG to WebP ConverterPNG to WebP ConverterHEIC to JPG ConverterEXIF Metadata Remover
Color and screensCategory overviewColor Converter and Contrast CheckerColor Palette Extractor and GeneratorColor Screen GeneratorDead Pixel TestScreen Refresh and Flicker TestBroken Screen Simulator
Everyday toolsCategory overviewUnit ConverterPercentage CalculatorOnline StopwatchExam Timer

More

All guidesAbout

Depth of Field Calculator

Find near and far focus limits and the hyperfocal distance for your lens, aperture, distance and sensor size.

About this tool

Depth of field is the zone in front of and behind your focus point that looks acceptably sharp. It grows with a smaller aperture, a wider lens, or a longer distance. Focus at the hyperfocal distance and everything from half that distance to infinity is sharp.

Hyperfocal distance on a full-frame camera

Focal lengthf/5.6f/8f/11f/16
16 mm1.5 m1.1 m0.8 m0.5 m
24 mm3.5 m2.4 m1.8 m1.2 m
35 mm7.3 m5.1 m3.7 m2.6 m
50 mm14.9 m10.5 m7.6 m5.3 m
85 mm43.1 m30.2 m22 m15.1 m
135 mm108.6 m76.1 m55.4 m38.1 m

Focus at the hyperfocal distance and everything from half that distance to infinity is acceptably sharp. Values assume a circle of confusion of 0.03 mm.

Read more in our depth of field guide.

How to use it

  1. Enter the focal length and aperture that you will use.
  2. Enter the distance to your subject in meters.
  3. Choose your sensor. The tool shows the near and far limits of acceptable sharpness and the hyperfocal distance.

Worked example 1: a portrait

A 50 mm lens at f/8 on a full-frame camera, focused at 3 m, gives a hyperfocal distance of about 10.5 m. Acceptable sharpness runs from about 2.34 m to about 4.18 m, so roughly 1.8 m of depth. Opening up to f/2.8 shrinks that zone to roughly 0.6 m, which is why wide apertures isolate a subject.

Worked example 2: a landscape

A 24 mm lens at f/11 has a hyperfocal distance of about 1.8 m. If you focus there, everything from roughly 0.9 m to infinity is acceptably sharp. Focusing on the horizon instead wastes the near half of the range.

What controls depth of field

  • Aperture: a smaller opening (a larger f-number) gives more depth.
  • Focal length: a wider lens gives more depth at the same distance and aperture.
  • Distance: the farther the subject, the deeper the sharp zone.
  • Sensor size: at the same framing and f-number, a larger sensor gives less depth of field.

Common mistakes

  • Treating the limits as exact. The edge of the zone is a gradual softening, not a wall.
  • Using a very small aperture for more depth. Beyond about f/11 to f/16 on many cameras, diffraction softens the whole image, so there is a trade-off.
  • Forgetting the print size. The calculation assumes a standard enlargement and viewing distance. Large prints seen closely need a stricter standard than the one used here.

Questions

What is hyperfocal distance?

The closest focus distance that keeps infinity acceptably sharp. It is handy for landscapes.

How accurate is this?

It uses a standard circle of confusion for each sensor size. Large prints viewed up close need a stricter standard, so treat the limits as a guide.

What is the circle of confusion?

It is the largest blur spot that still looks like a point at your assumed enlargement and viewing distance. A smaller value means a stricter standard of sharpness.

Why does sensor size change the result?

A smaller sensor needs more enlargement to reach the same print size, so the acceptable blur spot is smaller, and the focal length needed for the same framing is shorter.

Should I always focus at the hyperfocal distance?

It is a good starting point for landscapes with foreground interest. If nothing important is near the camera, focusing a little beyond it can give a sharper horizon.

More free tools