Circle of confusion sets the blur threshold counted as "in focus". Smaller CoC means a stricter standard and shallower depth of field. It scales with sensor size.
Total Depth of Field
-m
in-focus zone front to back
In front
-
Behind
-
In-Focus Zone
Sharp
Camera
Far
Focus Limits
Near Limit
-
nearest sharp
Far Limit
-
furthest sharp
Hyperfocal
-
focus for max DoF
Total DoF
-
sharp depth
Optics Detail
Circle of confusion-
Hyperfocal distance (H)-
Near focus limit-
Far focus limit-
DoF in front of subject-
DoF behind subject-
Near-Far-DoF-
Setup
Sensor diag-
Focal length-
Aperture-
Subject dist-
CoC-
Magnification-
Formula
H = f² / (N · c) + f
Near = s(H-f) / (H+s-2f)
Far = s(H-f) / (H-s)
f focal, N f-stop, c CoC, s subject distance. Far is infinite once subject reaches the hyperfocal distance.
Pro Tips
DoF is roughly one-third front, two-thirds back at normal distances, not 50/50.
Focus at hyperfocal to get everything from half that distance to infinity sharp.
Aperture and distance dominate. Halving the f-stop or doubling distance changes DoF far more than focal length alone.
?
XO3D Labs
About Depth of Field Calculator
Depth of Field Calculator is a free, browser-based tool from XO3D Labs. Input focal length, aperture, subject distance and sensor size - DOF range, circle of confusion and blur amounts. It is built for 3D artists, CGI generalists and technical artists, runs entirely in your browser with no signup or install, and is one of 70 free tools in the Labs suite.
Frequently asked questions
What does Depth of Field Calculator do?
Input focal length, aperture, subject distance and sensor size - DOF range, circle of confusion and blur amounts.
Who is this tool for?
It is built for 3D artists and lighting TDs working on product CGI, rendering and look development.
Is Depth of Field Calculator free to use?
Yes. Depth of Field Calculator is completely free, with no account, login, trial or paywall. It is one of 70 free tools published by XO3D Labs.
Do I need to install anything or sign up?
No. The tool runs entirely in your web browser on desktop and mobile - there is nothing to download, install or sign up for.
Who created this tool?
XO3D is a UK-based product CGI studio headquartered in Stevenage, working with brands across the UK and internationally. XO3D Labs is its free tool suite for the CGI and product-marketing community.