Depth of Field Calculator

Calculate depth of field, hyperfocal distance, and near/far focus limits for any camera and lens combination.

Enter your camera settings to calculate the depth of field, determining how much of your scene will be in sharp focus. Essential for portrait, landscape, and macro photography.

Examples

Click on any example to load it into the calculator.

Portrait Photography

Portrait Photography

Classic portrait setup with shallow depth of field for beautiful background blur.

Focal Length: 85 mm

Aperture: f/1.8

Focus Distance: 3 m

Sensor Format: Full Frame

Landscape Photography

Landscape Photography

Landscape setup with deep depth of field to keep everything sharp from foreground to background.

Focal Length: 24 mm

Aperture: f/11

Focus Distance: 10 m

Sensor Format: Full Frame

Macro Photography

Macro Photography

Close-up macro photography with very shallow depth of field for selective focus.

Focal Length: 100 mm

Aperture: f/2.8

Focus Distance: 0.3 m

Sensor Format: APS-C

Street Photography

Street Photography

Street photography setup with moderate depth of field for quick focusing.

Focal Length: 35 mm

Aperture: f/5.6

Focus Distance: 5 m

Sensor Format: Full Frame

Other Titles
Understanding Depth of Field Calculator: A Comprehensive Guide
Master the art of controlling focus and sharpness in photography through precise depth of field calculations.

What is Depth of Field?

  • Definition and Basic Concept
  • Why Depth of Field Matters in Photography
  • The Relationship Between Sharpness and Blur
Depth of field (DOF) is the distance between the nearest and farthest objects in a scene that appear acceptably sharp in an image. It's one of the most important creative controls in photography, allowing photographers to isolate subjects, create mood, and control visual hierarchy. Understanding depth of field enables you to make intentional decisions about what should be sharp and what should be blurred.
The Science Behind Depth of Field
Depth of field is fundamentally about how light rays converge and diverge as they pass through a lens. When you focus on a subject, light from that exact distance converges to a point on the sensor. Objects at other distances create circles of light on the sensor instead of points. If these circles are small enough, they appear sharp to the human eye. If they're too large, they appear blurred.
The Circle of Confusion
The circle of confusion is the largest circle of light that still appears sharp to the human eye. This is typically about 0.025mm for full-frame sensors, but varies based on sensor size, viewing distance, and print size. Smaller sensors have smaller circles of confusion, which means they need more precise focus but can achieve deeper depth of field at equivalent apertures.
Creative Applications
Shallow depth of field (large apertures, long focal lengths) creates beautiful background blur (bokeh) that isolates subjects and creates a dreamy, artistic effect. Deep depth of field (small apertures, wide focal lengths) keeps everything sharp from foreground to background, ideal for landscapes and architectural photography.

Depth of Field in Practice:

  • Portrait photography often uses shallow DOF to blur backgrounds and focus attention on the subject
  • Landscape photography typically uses deep DOF to keep everything from foreground rocks to distant mountains sharp
  • Macro photography has extremely shallow DOF, sometimes only a few millimeters deep
  • Street photography often uses moderate DOF for quick focusing while maintaining context

Step-by-Step Guide to Using the Depth of Field Calculator

  • Gathering Your Camera Information
  • Entering Parameters Correctly
  • Interpreting the Results
Using the depth of field calculator effectively requires accurate input of your camera settings and understanding how to interpret the results for your specific photographic needs.
1. Determine Your Focal Length
The focal length is the distance from the lens to the sensor when focused at infinity. It's typically marked on your lens (e.g., 50mm, 24-70mm). Prime lenses have a fixed focal length, while zoom lenses have a range. Remember that crop factor affects the effective focal length: a 50mm lens on an APS-C camera (1.5x crop) behaves like a 75mm lens on full-frame for field of view, but depth of field calculations use the actual focal length.
2. Set Your Aperture
The aperture (f-number) controls how much light enters the lens and significantly affects depth of field. Common apertures range from f/1.4 (very shallow DOF) to f/22 (very deep DOF). The f-number is the ratio of focal length to aperture diameter, so f/2 means the aperture diameter is half the focal length. Lower f-numbers = larger apertures = shallower depth of field.
3. Measure Focus Distance
Focus distance is the distance from the camera sensor to the subject you're focusing on. For precise calculations, measure this distance accurately. Many modern cameras can display focus distance in the viewfinder or on the LCD. For close-up work, this measurement becomes critical as depth of field becomes very shallow.
4. Select Your Sensor Format
Sensor format affects the circle of confusion and therefore depth of field. Larger sensors (full-frame) typically have shallower depth of field at equivalent apertures compared to smaller sensors (APS-C, Micro Four Thirds). The calculator automatically sets appropriate circle of confusion values for common formats, but you can override this with custom values if needed.
5. Interpret Your Results
The calculator provides several key measurements: Total Depth of Field (the distance between near and far limits), Near Focus Limit (closest point that appears sharp), Far Focus Limit (farthest point that appears sharp), and Hyperfocal Distance (focus distance that maximizes depth of field). Use these to plan your shots and ensure your subject falls within the sharp zone.

Common Sensor Formats and Circle of Confusion:

  • Full Frame (36×24mm): Circle of confusion ≈ 0.029mm
  • APS-C (22.3×14.9mm): Circle of confusion ≈ 0.018mm
  • Micro Four Thirds (17.3×13mm): Circle of confusion ≈ 0.015mm
  • 1-inch (13.2×8.8mm): Circle of confusion ≈ 0.011mm

Real-World Applications and Photography Techniques

  • Portrait Photography Techniques
  • Landscape and Architecture
  • Macro and Close-up Photography
  • Street and Documentary Photography
Understanding depth of field calculations enables photographers to make informed decisions about equipment, settings, and composition for different types of photography.
Portrait Photography
Portrait photographers often use shallow depth of field to create beautiful background blur that isolates the subject. Typical settings include 85-200mm focal lengths with apertures of f/1.4 to f/2.8. The calculator helps determine the optimal focus distance to ensure the subject's eyes are sharp while the background melts away. For group portraits, deeper depth of field (f/5.6 to f/8) ensures everyone stays sharp.
Landscape Photography
Landscape photographers typically want deep depth of field to keep everything from foreground elements to distant mountains sharp. This often requires small apertures (f/8 to f/16) and wide focal lengths (16-35mm). The hyperfocal distance becomes crucial here—focusing at the hyperfocal distance maximizes depth of field. The calculator helps determine the optimal focus point for maximum sharpness throughout the scene.
Macro Photography
Macro photography has extremely shallow depth of field, sometimes only a few millimeters deep. This makes precise focus critical. The calculator helps macro photographers understand exactly how much of their subject will be sharp and plan their compositions accordingly. Focus stacking—combining multiple images focused at different distances—is often necessary for deep macro subjects.
Street and Documentary Photography
Street photographers often use moderate depth of field (f/5.6 to f/8) to allow for quick focusing while maintaining context. The calculator helps determine the optimal settings for capturing subjects at typical street photography distances (3-10 meters) while keeping backgrounds recognizable but not distracting.

Recommended Settings by Genre:

  • Portraits: 85mm f/1.8 at 3m = ~0.5m DOF (shallow, artistic)
  • Landscapes: 24mm f/11 at 10m = ~8m to infinity DOF (deep, everything sharp)
  • Macro: 100mm f/2.8 at 0.3m = ~0.003m DOF (very shallow, precise focus needed)
  • Street: 35mm f/5.6 at 5m = ~3m DOF (moderate, good balance)

Common Misconceptions and Correct Methods

  • Aperture vs. Depth of Field Myths
  • Focal Length Misunderstandings
  • Sensor Size and Crop Factor Confusion
  • Focus Distance Misconceptions
Several common misconceptions about depth of field can lead to poor photographic decisions. Understanding the correct relationships helps photographers make better choices.
Myth: Aperture Alone Controls Depth of Field
While aperture is the most direct control over depth of field, focal length and focus distance also significantly affect it. A 50mm lens at f/2.8 focused at 10 meters has much deeper depth of field than a 200mm lens at f/2.8 focused at 10 meters. The calculator shows how all three factors work together.
Myth: Longer Focal Lengths Always Have Shallower Depth of Field
This is only true when comparing the same subject size in the frame. If you maintain the same subject size by changing your distance, longer focal lengths actually give deeper depth of field. The key is understanding that depth of field depends on magnification, not just focal length.
Myth: Smaller Sensors Always Have Deeper Depth of Field
While smaller sensors typically have deeper depth of field at equivalent apertures, this is due to their smaller circles of confusion, not an inherent optical property. The calculator accounts for this by using appropriate circle of confusion values for each sensor format.
Myth: Focusing at Infinity Maximizes Depth of Field
Focusing at infinity actually wastes potential depth of field. The hyperfocal distance is the focus point that maximizes depth of field, extending sharpness from half the hyperfocal distance to infinity. The calculator helps you find this optimal focus point.

Correct Understanding:

  • Depth of field depends on aperture, focal length, focus distance, and circle of confusion
  • Hyperfocal focusing maximizes depth of field for landscapes
  • Subject magnification affects depth of field more than focal length alone
  • Smaller sensors have deeper DOF due to smaller circles of confusion, not optical properties

Mathematical Derivation and Advanced Concepts

  • Depth of Field Formulas
  • Hyperfocal Distance Calculation
  • Circle of Confusion Standards
  • Advanced Applications
The depth of field calculations are based on geometric optics and the concept of acceptable sharpness. Understanding the mathematics helps photographers make precise decisions about their equipment and settings.
Depth of Field Formulas
The near and far limits of depth of field are calculated using the formulas: Near Limit = (H × s) / (H + s - f) and Far Limit = (H × s) / (H - s + f), where H is the hyperfocal distance, s is the focus distance, and f is the focal length. The total depth of field is the difference between far and near limits.
Hyperfocal Distance Formula
Hyperfocal distance = (f²) / (N × c), where f is focal length, N is f-number, and c is circle of confusion. This is the focus distance that maximizes depth of field, extending sharpness from half the hyperfocal distance to infinity.
Circle of Confusion Standards
The circle of confusion is typically 1/1500 of the sensor diagonal for acceptable sharpness in 8×10 inch prints viewed at 25cm. For full-frame sensors (43.27mm diagonal), this gives approximately 0.029mm. Smaller sensors use proportionally smaller values.
Advanced Applications
Advanced photographers use depth of field calculations for focus stacking, where multiple images focused at different distances are combined for extended depth of field. The calculator helps determine the optimal focus increments for this technique. It's also useful for planning tilt-shift photography and understanding the Scheimpflug principle.

Mathematical Examples:

  • 50mm f/2.8 at 5m: Hyperfocal = 50²/(2.8×0.029) ≈ 30.8m, DOF ≈ 4.3m to 6.1m
  • 24mm f/11 at 10m: Hyperfocal = 24²/(11×0.029) ≈ 1.8m, DOF ≈ 5.6m to infinity
  • 100mm f/2.8 at 0.3m: Hyperfocal = 100²/(2.8×0.029) ≈ 123m, DOF ≈ 0.299m to 0.301m