Don't like ads? Go Ad-Free Today

Camera Depth of Field (DoF) Calculator

DeveloperImageMath
ADVERTISEMENT · REMOVE?

Camera

Picks a preset circle of confusion (CoC) for the sensor
mm
mm
mm
Auto-set by sensor; edit to override (sensor diagonal ÷ 1500)

Lens & Subject

mm
Property Value
Hyperfocal distance -
Near limit (closest in focus) -
Far limit (farthest in focus) -
Total depth of field -
DoF in front of subject -
DoF behind subject -

Depth of Field Visualization

Adjust inputs to see the in-focus zone.

Sensor Reference (Default CoC values)

Standard circle of confusion values used by photographers. The defaults below are derived from sensor diagonal ÷ 1500.
Sensor Dimensions Diagonal CoC
Medium Format 44 × 33 mm 55.0 mm 0.037 mm
Full Frame (35mm) 36 × 24 mm 43.3 mm 0.030 mm
APS-C (Nikon / Sony / Fuji) 23.6 × 15.7 mm 28.3 mm 0.020 mm
APS-C (Canon) 22.3 × 14.9 mm 26.8 mm 0.019 mm
Micro Four Thirds 17.3 × 13 mm 21.6 mm 0.015 mm
1-inch type 13.2 × 8.8 mm 15.9 mm 0.011 mm
Phone / Compact 7.6 × 5.7 mm 9.5 mm 0.006 mm
ADVERTISEMENT · REMOVE?

Guide

Camera Depth of Field (DoF) Calculator

Camera Depth of Field (DoF) Calculator

Plan sharp photographs with confidence. This calculator uses the exact thin-lens depth of field formulas to compute the hyperfocal distance, the near and far focus limits, and the total depth of field for any camera sensor, focal length, aperture, and subject distance. No guesswork, no approximations — just the same math photographers have used for decades.

How to Use

  1. Pick a sensor preset (Full Frame, APS-C, Micro Four Thirds, 1 inch, phone, medium format) or choose Custom and enter your sensor width and height in millimetres.
  2. Confirm the circle of confusion value. It is auto-filled from the sensor preset using the diagonal divided by 1500 rule, but you can override it for stricter print sizes or pixel-peeping standards.
  3. Enter the lens focal length in millimetres and select the aperture (f-stop).
  4. Enter the subject distance and choose metres or feet from the unit dropdown.
  5. Read the hyperfocal distance, near and far limits, total depth of field, and the visualization of the in-focus zone. Click Use Hyperfocal Distance to instantly fill the distance field with the hyperfocal value for that lens and aperture.

Features

  • Seven sensor presets – Full Frame, APS-C Canon, APS-C Nikon/Sony/Fuji, Micro Four Thirds, 1 inch, Phone/Compact, and Medium Format with standard circle of confusion defaults.
  • Custom sensor support – Enter any sensor width and height in millimetres and the CoC is recalculated from the diagonal automatically.
  • Editable CoC – Tighten the circle of confusion for large prints or critical work, or loosen it for small-screen viewing.
  • Wide f-stop range – From f/1.0 to f/32 covering the full range of modern lenses.
  • Metres and feet – Toggle the distance unit and the entire output rescales instantly.
  • Hyperfocal shortcut – One click fills the subject distance with the exact hyperfocal point for maximum depth of field.
  • Visual in-focus band – A live diagram shows the near limit, far limit, and where the subject sits within the depth of field.
  • Front and behind split – See how much depth of field falls in front of the subject versus behind it (the classic one-third rule is only true at moderate distances).
  • Client-side only – All math runs in the browser. Inputs never leave the page.

FAQ

  1. What is depth of field?

    Depth of field is the range of distances from the camera where objects appear acceptably sharp in a photograph. It is defined by the near limit (closest sharp point), the far limit (farthest sharp point), and the difference between them. Depth of field depends on focal length, aperture, subject distance, and the size of the sensor through its circle of confusion.

  2. What is the circle of confusion?

    The circle of confusion (CoC) is the largest blur spot on the sensor that a viewer still perceives as a single sharp point under standard viewing conditions. It depends on the sensor size, the print or display size, and the viewing distance. The common Zeiss formula sets CoC to the sensor diagonal divided by 1500, which assumes an 8x10 print viewed from 25 cm.

  3. What is hyperfocal distance?

    Hyperfocal distance is the closest distance at which a lens can be focused so that everything from half that distance to infinity appears acceptably sharp. Focusing at the hyperfocal distance maximises the depth of field for landscape and street photography and is calculated from the focal length, aperture, and circle of confusion.

  4. Why does sensor size affect depth of field?

    Sensor size affects depth of field indirectly through the circle of confusion and the focal lengths used to achieve the same field of view. A smaller sensor requires a shorter focal length for the same framing, which deepens the depth of field, and also tolerates a smaller blur spot, which tightens it further. The combined effect is that smaller sensors produce greater depth of field at equivalent settings than larger sensors.

Want To enjoy an ad-free experience? Go Ad-Free Today

Install Our Extensions

Add IO tools to your favorite browser for instant access and faster searching

Add to Chrome Extension Add to Edge Extension Add to Firefox Extension Add to Opera Extension

Scoreboard Has Arrived!

Scoreboard is a fun way to keep track of your games, all data is stored in your browser. More features are coming soon!

ADVERTISEMENT · REMOVE?
ADVERTISEMENT · REMOVE?
ADVERTISEMENT · REMOVE?

News Corner w/ Tech Highlights

Get Involved

Help us continue providing valuable free tools

Buy me a coffee
ADVERTISEMENT · REMOVE?