Depth of Field Calculator

Calculate focus range, blur limits, and hyperfocal distance. Tune camera settings for sharper photo planning with reliable mathematical focus results.

Enter Camera and Lens Details

mm
f/
mm
in
in

Formula Used

Hyperfocal distance: H = f² / (N × c) + f

Near limit: Dn = (H × s) / (H + (s - f))

Far limit: Df = (H × s) / (H - (s - f))

Total depth: DOF = Df - Dn

Where: f is focal length, N is aperture, c is circle of confusion, and s is subject distance.

Example Data Table

Lens Aperture Distance Sensor Expected Use
35 mm f/8 5 m Full Frame Street scene
50 mm f/2.8 3 m Full Frame Portrait
85 mm f/1.8 4 m APS-C Background blur
24 mm f/11 10 m Full Frame Landscape

How to Use This Calculator

Enter your lens focal length in millimeters. Add the aperture value, such as 1.8, 2.8, 5.6, or 11. Enter the subject distance and choose meters or feet. Select a sensor preset, or use a custom circle of confusion. Press the calculate button. The result appears above the form and below the page header.

Use the hyperfocal distance for landscape planning. Use near and far limits for portrait, macro, and product work. Download the CSV file for spreadsheet use. Download the PDF file for client notes, field records, or camera testing reports.

Depth of Field Calculation Guide

What Depth of Field Means

Depth of field is the zone that appears acceptably sharp. It stretches from the near focus limit to the far focus limit. A short zone gives strong blur. A wide zone keeps more detail clear. This calculator estimates that zone with standard optical formulas.

Why Lens Settings Matter

Focal length changes the visual compression of a photo. Aperture changes the size of the blur circle. Subject distance controls how quickly sharpness falls away. These three values work together. A longer lens, wider aperture, or closer subject usually creates a thinner focus zone.

Sensor and Sharpness Control

The circle of confusion defines acceptable blur. A smaller value creates a stricter sharpness standard. Sensor presets help you start quickly. The custom option gives more control for large prints, close inspection, or technical photography. The sharpness factor lets you tighten or relax the estimate.

Using Hyperfocal Distance

Hyperfocal distance is useful for landscapes. When you focus at that distance, the far limit reaches infinity. The near limit then starts around half that distance. This helps photographers keep foregrounds and backgrounds sharp. It is helpful for travel, architecture, real estate, and nature scenes.

Practical Shooting Tips

Use wide apertures for portraits. Use smaller apertures for groups and landscapes. Avoid very tiny apertures when diffraction becomes visible. Check near and far limits before shooting important scenes. For macro work, depth of field becomes very small. Use the effective aperture value for close focus planning.

Reading the Results

The near limit shows where acceptable sharpness begins. The far limit shows where it ends. Total depth is the complete sharp zone. Front depth is the part before the subject. Rear depth is the part behind it. The chart shows how changing aperture affects the result.

FAQs

What is depth of field?

Depth of field is the area in front of and behind your focus point that appears acceptably sharp in a photograph.

What is hyperfocal distance?

Hyperfocal distance is the closest focus distance that keeps the far background acceptably sharp, often reaching infinity.

Does aperture affect depth of field?

Yes. A wider aperture gives shallower depth. A smaller aperture gives deeper focus and more visible scene detail.

Why does focal length matter?

Longer focal lengths usually create shallower depth at the same framing, while wider lenses show deeper focus zones.

What is circle of confusion?

Circle of confusion is the largest blur spot that still looks sharp under a chosen viewing condition.

Can this help with portraits?

Yes. It helps plan subject sharpness and background blur before you shoot portraits or close detail scenes.

Why is far limit sometimes infinity?

The far limit becomes infinity when the subject distance reaches or exceeds the calculated hyperfocal distance.

Is this calculator suitable for macro work?

Yes, but macro focus is very sensitive. Use precise distances and check effective aperture for better planning.

Related Calculators

Paver Sand Bedding Calculator (depth-based)Paver Edge Restraint Length & Cost CalculatorPaver Sealer Quantity & Cost CalculatorExcavation Hauling Loads Calculator (truck loads)Soil Disposal Fee CalculatorSite Leveling Cost CalculatorCompaction Passes Time & Cost CalculatorPlate Compactor Rental Cost CalculatorGravel Volume Calculator (yards/tons)Gravel Weight Calculator (by material type)

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.