What Is the Depth of Field Calculator?

The Depth of Field Calculator is a free online tool designed for photographers who need quick, accurate calculations in the photography space. By entering your focal length, aperture, distance to subject, you get instant results including total depth of field, hyperfocal distance, near focus limit. No formulas to memorize, no spreadsheets to build — just enter your numbers and get the answer in seconds. Whether you're a beginner or experienced professional, this calculator saves you time and eliminates guesswork.

Why This Calculation Matters

Getting total depth of field right can make the difference between success and costly mistakes. In photography, small errors compound quickly. Manual calculations are error-prone and time-consuming, especially under pressure. This calculator applies proven formulas used by photographers worldwide, giving you confidence that your numbers are correct. Use it to capture better images with precision and avoid common pitfalls that trip up beginners.

When Should You Use This Calculator?

This tool is most useful when you know your focal length and need to find the right total depth of field. It's also great for quick estimates before committing to a decision, and to double-check manual calculations or professional quotes, and when comparing different scenarios side by side. Bookmark this page and come back whenever you need a fast, reliable answer — the calculator is always free and requires no signup.

Depth of Field Calculator

Total Depth of Field
Hyperfocal Distance
Near Focus Limit
Far Focus Limit

Depth of Field Quick Reference — 50mm Lens, Full Frame

Subject distance = 10 feet. Shows total DoF range.

Aperture Near Focus Far Focus Total DoF Hyperfocal
f/1.49.76 ft10.25 ft0.49 ft195 ft
f/1.89.69 ft10.32 ft0.63 ft152 ft
f/2.89.52 ft10.52 ft1.00 ft97 ft
f/49.32 ft10.76 ft1.44 ft68 ft
f/5.69.07 ft11.09 ft2.02 ft49 ft
f/88.71 ft11.63 ft2.92 ft34 ft
f/118.28 ft12.41 ft4.13 ft25 ft
f/167.72 ft13.63 ft5.91 ft17 ft
f/227.11 ft15.42 ft8.31 ft13 ft

How to Use This Calculator

  1. Enter Your Focal Length (mm): Start by entering your focal length — this is the primary input for the calculation.
  2. Fill In Additional Details: Complete the remaining fields: aperture, distance to subject, sensor size. Each value refines the calculation for greater accuracy.
  3. Click Calculate: Hit the Calculate button to run the numbers. Results appear instantly below.
  4. Review Your Results: Check your total depth of field, hyperfocal distance, near focus limit. Use these figures to inform your next decision or compare against alternative scenarios.

How It Works

Depth of field (DoF) is the range of distance in a photo that appears acceptably sharp. It depends on focal length, aperture, subject distance, and sensor size.

The basic rule:

  • Wider apertures (lower f-numbers like f/1.4) create shallower DoF — great for portraits
  • Longer focal lengths compress the background and create shallower DoF at the same distance
  • Closer subjects have shallower DoF — macro photography has extremely thin focus planes

The hyperfocal distance is the closest focus distance at which everything from half that distance to infinity is acceptably sharp — essential for landscape photography.

Tips & Considerations

  • Double-check your focal length before calculating — even small input errors can significantly change your results.
  • Run the calculator with different values to compare scenarios and find the optimal approach for your situation.
  • Pay attention to both total depth of field and hyperfocal distance — they work together to give you the full picture.
  • Bookmark this page for quick access next time you need to capture better images.
  • If you're unsure about your sensor size, start with a conservative estimate and adjust from there.

Frequently Asked Questions

What is depth of field in photography?

Depth of field (DoF) is the distance range between the nearest and farthest objects in a photo that appear acceptably sharp. A shallow DoF means only a thin slice is in focus (like a portrait with blurred background), while a deep DoF means most of the scene is sharp (like a landscape).

What is the circle of confusion?

The circle of confusion (CoC) is the largest blur circle that the human eye perceives as a point. It varies by sensor size: 0.03mm for full frame, 0.02mm for APS-C, and 0.015mm for Micro Four Thirds. Smaller sensors have stricter CoC values because they require more enlargement for the same print size.

What is hyperfocal distance?

The hyperfocal distance is the focus distance that maximizes depth of field. When you focus at the hyperfocal distance, everything from half that distance to infinity will be acceptably sharp. Landscape photographers use this technique to get the sharpest possible images from foreground to horizon.

How does aperture affect depth of field?

Wider apertures (smaller f-numbers like f/1.4 or f/2) create shallower depth of field, isolating your subject from the background. Narrower apertures (larger f-numbers like f/11 or f/16) create deeper depth of field, keeping more of the scene in focus. Most lenses are sharpest around f/5.6 to f/8.

Does sensor size affect depth of field?

Yes. Larger sensors produce shallower depth of field at the same field of view. A full frame camera at 50mm f/2.8 has shallower DoF than an APS-C camera at 35mm f/2.8 (equivalent field of view). This is why full frame cameras are preferred for portrait photography.

How do I get maximum sharpness in landscape photos?

Focus at the hyperfocal distance for your lens and aperture. Use f/8 to f/11 for the best balance of DoF and lens sharpness (avoiding diffraction). Use a tripod and mirror lock-up or electronic shutter to eliminate camera shake.