TFT

Depth of Field Calculator – Calculate DOF from Aperture, Focal Length & Distance

Control your background blur with precision using our Depth-of-Field Calculator. Enter aperture, focal length, and subject distance to calculate depth of field, hyperfocal distance, and sharp zone limits — essential for portrait, landscape, and macro photography.

DOF Results

Enter camera settings and click Calculate to see DOF

Understanding Depth of Field

  • Wider aperture (lower f/): Shallower DOF, more blur
  • Longer focal length: Shallower DOF, more compression
  • Closer subject: Shallower DOF
  • Larger sensor: Shallower DOF for same framing

Hyperfocal distance: Focus distance that gives maximum DOF from half that distance to infinity. Essential for landscape photography.

How to Use This Depth of Field Calculator

1

Enter Your Camera Settings

Input your aperture (f-number), focal length in millimeters, and the distance to your subject in meters. Select your camera's sensor size from the dropdown.

2

Click Calculate

The calculator will compute your depth of field range, showing the near and far limits of acceptable sharpness, plus the hyperfocal distance.

3

Review Your Results

Check the total depth of field, where sharpness begins and ends, and use the photography tips to adjust your settings for the desired effect.

Understanding Depth of Field

Depth of field (DOF) is the zone of acceptable sharpness in your photograph - the distance between the nearest and farthest points that appear acceptably sharp in an image. Everything within this zone looks sharp to the human eye, while areas outside it gradually become softer and more blurred.

Near Limit and Far Limit

The near limit marks the closest point to your camera that remains acceptably sharp. The far limit marks the farthest point before things go soft. The space between these two boundaries is your depth of field. When the far limit reaches infinity, everything from the near limit to the horizon stays sharp.

Hyperfocal Distance

Hyperfocal distance is a specific focus distance that maximizes your depth of field. When you focus at the hyperfocal distance, everything from half that distance to infinity appears acceptably sharp. Landscape photographers use this constantly - focus at the hyperfocal point and you get maximum sharpness throughout the scene without stopping down to extreme apertures.

Circle of Confusion

The circle of confusion (CoC) is the largest blur spot that still looks like a sharp point to the human eye at standard viewing conditions. It's the technical threshold between "sharp" and "not sharp." Different sensor sizes use different CoC values because the same image looks different when enlarged from various sensor formats. This calculator adjusts the CoC automatically based on your selected sensor size.

Factors Affecting Depth of Field

Aperture (f-stop)

Aperture has the most direct impact on depth of field. A lower f-number like f/1.4 or f/2.8 means a wider opening, which creates shallower depth of field - more background blur. A higher f-number like f/8 or f/11 means a smaller opening, giving you deeper depth of field with more of the scene in focus. This is why portrait shooters love f/1.8 lenses and landscape photographers stop down to f/8 or beyond.

Focal Length

Longer focal lengths compress the scene and produce shallower depth of field at the same aperture and subject distance. A 200mm lens at f/4 gives you much less depth of field than a 35mm lens at f/4. This is why telephoto lenses are popular for wildlife and sports - they isolate subjects from busy backgrounds even at moderate apertures.

Distance to Subject

The closer you are to your subject, the shallower your depth of field becomes. Get right up close with a wide aperture and you'll have razor-thin focus - critical for macro work. Step back and your depth of field increases even with the same lens and aperture settings. This is why macro photography demands careful focus and often smaller apertures.

Sensor Size

Larger sensors produce shallower depth of field when you maintain the same framing. A full-frame camera at f/2.8 gives you less depth of field than an APS-C or Micro Four Thirds camera at f/2.8 shooting the same composition. To match the depth of field of full-frame, smaller sensors need wider apertures. This is one reason medium format cameras are prized for their creamy background separation.

Depth of Field Comparison Table

These examples show how different lens and aperture combinations affect depth of field when focused at 3 meters:

Focal LengthApertureNear LimitFar LimitTotal DOF
24mmf/2.81.5m
50mmf/1.82.7m3.4m0.7m
50mmf/82.1m5.7m3.6m
85mmf/1.42.9m3.1m0.2m

Notice how the 85mm at f/1.4 gives you only 20 centimeters of depth of field - critical focus is essential. Meanwhile, the 24mm at f/2.8 keeps everything from 1.5 meters to infinity sharp, making it forgiving for street and environmental work.

When to Use Shallow vs Deep Depth of Field

Shallow Depth of Field

Use shallow depth of field when you want to isolate your subject from the background or create artistic blur. It directs the viewer's attention exactly where you want it.

  • Portraits: Separate your subject from distracting backgrounds
  • Product photography: Make the product pop against a soft backdrop
  • Wildlife: Isolate animals from busy environments
  • Macro: Control which part of a tiny subject stays sharp
  • Artistic work: Create dreamy, painterly images with selective focus

Deep Depth of Field

Use deep depth of field when you need sharpness throughout the entire scene. This is essential when foreground and background elements both matter to the composition.

  • Landscapes: Keep foreground rocks and distant mountains both sharp
  • Architecture: Ensure the entire building stays in focus
  • Group photos: Get everyone sharp from front row to back
  • Street photography: Capture scenes with multiple planes of interest
  • Real estate: Show entire rooms with edge-to-edge sharpness

Frequently Asked Questions

What is depth of field?

Depth of field is the distance between the nearest and farthest points in a photograph that appear acceptably sharp. It's the zone of sharpness from front to back in your image. A shallow depth of field means only a small slice is sharp (great for portraits), while a deep depth of field means most or all of the scene is sharp (ideal for landscapes).

How does aperture affect depth of field?

Aperture directly controls depth of field. Lower f-numbers (wider apertures like f/1.4, f/2.8) create shallower depth of field with more background blur. Higher f-numbers (smaller apertures like f/8, f/11) create deeper depth of field with more of the scene in focus. It's one of the primary creative tools photographers use to control how their images look.

What lens is best for shallow depth of field?

Fast prime lenses with wide maximum apertures are best for shallow depth of field. An 85mm f/1.4 or 50mm f/1.8 will give you much shallower depth of field than a kit zoom at f/3.5-5.6. Longer focal lengths also help - a 135mm f/2 creates more background separation than a 35mm f/2 at the same subject distance. For maximum blur, combine long focal length with wide aperture.

What is hyperfocal distance?

Hyperfocal distance is the focus distance that gives you the maximum possible depth of field. When you focus at the hyperfocal distance, everything from half that distance to infinity appears acceptably sharp. Landscape photographers use this technique to get foreground interest and distant horizons both sharp without using extremely small apertures that might introduce diffraction.

Why is my background blurry or sharp?

Your background blur depends on four factors: aperture, focal length, subject distance, and sensor size. Wide apertures (low f-numbers), long focal lengths, close subject distances, and larger sensors all contribute to blurrier backgrounds. If you want sharper backgrounds, stop down to a higher f-number, use a wider lens, step back from your subject, or use a camera with a smaller sensor.