Depth of Field Calculator
Calculate the depth of field, near focus limit, and far focus limit for any lens and camera combination.
This free online depth of field calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.
Minimum: 0
Lens focal length in millimeters
Lens aperture f-stop value
Minimum: 0
Distance from camera to subject in meters
Circle of confusion diameter (0.03mm for full frame)
Results
Depth of Field
0.6 m
Near Focus Limit
2.73 m
Far Focus Limit
3.33 m
How to Use This Calculator
Enter your input values
Fill in all required input fields for the Depth of Field Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.
Review your inputs
Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.
Read the results
The Depth of Field Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.
Explore parameter sensitivity
Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.
Formula Reference
Depth of Field Calculator Formula
See calculator inputs for the governing equation
Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.
When to Use This Calculator
- •Use the Depth of Field Calculator when you need accurate results quickly without the risk of manual computation errors or unit conversion mistakes.
- •Use it to verify calculations made by hand or in spreadsheets — an independent check can catch errors before they lead to costly decisions.
- •Use it to explore how changing input parameters affects the output — a quick way to develop intuition and identify the most influential variables.
- •Use it when collaborating with others to ensure everyone is working from the same numbers and applying the same assumptions.
About This Calculator
The Depth of Field Calculator is a free, browser-based calculation tool for engineers, students, and technical professionals. Calculate the depth of field, near focus limit, and far focus limit for any lens and camera combination. It implements standard formulas and supports both metric (SI) and imperial unit systems with automatic unit conversion. All calculations are performed instantly in your browser with no data sent to a server. Use this calculator as a quick reference and sanity-check tool during design, analysis, and learning. Always verify results against primary engineering references and applicable standards for any safety-critical application.
About Depth of Field Calculator
The Depth of Field Calculator determines the zone of acceptable sharpness in your photographs. Depth of field (DOF) is the distance range in front of and behind the focus point that appears acceptably sharp. Understanding DOF is crucial for portrait photographers seeking blurry backgrounds, landscape photographers wanting everything sharp, and macro photographers working with extremely thin focus zones.
The Math Behind It
Formula Reference
Hyperfocal Distance
H = f^2 / (N * c) + f
Variables: f = focal length, N = f-number (aperture), c = circle of confusion
Depth of Field
DOF = D_far - D_near
Variables: D_far = far focus limit, D_near = near focus limit, computed from hyperfocal distance and subject distance
Worked Examples
Example 1: Portrait with 50mm at f/2.8
A 50mm lens at f/2.8, subject at 3 meters, full-frame sensor (CoC = 0.03mm).
The depth of field is approximately 0.60 meters, from 2.73m to 3.33m. The subject must be positioned carefully within this zone.
Common Mistakes & Tips
- !Using the wrong circle of confusion value for your sensor size.
- !Assuming depth of field is equally distributed in front of and behind the focus point.
- !Forgetting that crop sensors increase effective focal length but also change the circle of confusion.
Related Concepts
Used in These Calculators
Calculators that build on or apply the concepts from this page:
Frequently Asked Questions
How do I get a blurry background?
Use a wide aperture (low f-number like f/1.8 or f/2.8), a longer focal length, and move closer to your subject while keeping the background far away. These all reduce depth of field.
What is the circle of confusion?
The circle of confusion is the largest blur spot that still appears as a sharp point to the viewer. It depends on sensor size, print size, and viewing distance. Standard values are 0.03mm for full-frame and 0.02mm for APS-C sensors.