72+ Local Tools Available
100% Browser Execution (No Uploads)
Zero Latency Instant Output
100% Private & Secure
Images & Graphics Client Local

Camera Depth of Field (DoF) Calculator

Calculate precise depth of field, hyperfocal distance, near/far focus limits, and front-to-back blur distribution based on your camera sensor size, lens focal length, aperture f-stop, and subject distance with an interactive optical visualizer.

Recommended Photography Presets

Camera & Lens Parameters

Focal Length50 mm
Subject Distance3.0 m
0.2 m10.0 m25.0 m50.0 m

Optical Depth of Field Results

Total Depth of Field (DoF)
60.1 cm

A total range of 60.1 cm in front of and behind the subject stays in sharp focus.

Hyperfocal Distance
29.81 m

Focusing at this distance keeps everything sharp from 14.91 m all the way to infinity.

Near Focus Limit
2.73 m
Sharp starting 27.1 cm in front of the subject
Far Focus Limit
3.33 m
Sharp up to 33.0 cm behind the subject
Depth Distribution RatioIn Front of Subject: 45% / Behind Subject: 55%
Background Blur (Bokeh) Intensity Simulation
Moderate DoF

A balanced mix of dimensional depth and background detail

Sharp Pan-Focus (Deep DoF)Ultra Out-of-Focus (Shallow Bokeh)
Optical DoF Interactive Visualization
Sharp In-Focus Region60.1 cm
Camera (0m)
Subject (Focus Point) (3.00 m)
Near Limit (2.73 m)
Far Limit (3.33 m)
0m (Camera)1.2m2.4m3.6m4.8m
Client-Side 100%

Instant & 100% Private

All optical geometry formulas and focus derivations compute purely inside your browser. No photographic parameters are ever sent to remote servers.

Depth of Field Quick Tips

1To achieve creamy background blur (bokeh), widen your aperture (low f-number), use longer focal lengths, and move closer to your subject.
2To keep landscapes sharp from foreground to horizon, stop down to f/8-f/11 and focus on the calculated hyperfocal distance.
3Longer focal lengths (e.g. 85mm, 135mm) create substantially shallower depth of field than wide-angle lenses at identical f-stops.
4In close-up macro photography, depth of field shrinks to mere millimeters, making tripods and deliberate aperture choices essential.
Practical Photography Master Guide

Mastering Depth of Field: Practical Tips for Stunning Photos

Depth of Field (DoF) is the zone of acceptable sharpness extending in front of and behind your focus point.

By mastering how aperture, focal length, and camera-to-subject distance interact, you can effortlessly capture magazine-worthy portraits with dreamy background blur and landscapes with razor-sharp detail from foreground to horizon.

1Master Portrait Bokeh

Leverage wide apertures and telephoto focal lengths to melt backgrounds into smooth painterly blur.

2Crisp Edge-to-Edge Landscapes

Use hyperfocal distance techniques to ensure every flower, tree, and mountain ridge is tack-sharp.

3Instant Street Zone Focusing

Pre-set optimal depth of field to capture decisive split-second candid moments without autofocus lag.

Recommended Lens, Aperture, and Shooting Setup Table

Photography ScenarioRecommended Lens & Focal LengthRecommended ApertureKey Shooting Technique
Outdoor Portrait (Bokeh)85mm or 135mm Prime Lensf/1.4 ~ f/2.0 (Wide Open)Keep subject 2~3m away and background 10m+ away; lock focus on nearest eye
Grand Nature & Cityscapes16mm ~ 24mm Wide Anglef/8.0 ~ f/11 (Sweet Spot)Focus at 1/3 lower frame to keep foreground rocks and distant peaks tack-sharp
Travel & Street Photography35mm or 50mm Standard Lensf/4.0 ~ f/5.6 (Zone Focus)Pre-set manual focus to 3m for instant, lag-free candid street snapshots
Food & Cafe Stills35mm ~ 50mm Prime Lensf/2.8 ~ f/4.0Lock focus onto 1 key hero detail (e.g. strawberry, latte art) with window side-light
Close-Up Macro Nature90mm ~ 105mm Dedicated Macrof/5.6 ~ f/8.0Depth of field is paper-thin; use a tripod and shutter release for critical sharpness

1. Portraiture: How to Create Silky Smooth Background Blur (Bokeh)

To isolate your subject cleanly from distracting backgrounds, follow the three-distance rule:
1. Open Aperture Wide (f/1.4 to f/2.8): Use the lowest f-number on your lens to make the in-focus band razor-thin.
2. Maximize Distance Between Subject and Background: Keep the camera relatively close to your model (2~3m), while ensuring trees, buildings, or lights behind them are at least 10m away. Greater separation exponentially magnifies blur.
3. Lock Focus on the Nearest Eye: With shallow depth of field, focusing on a nose or cheek leaves the eyes soft. Always engage Eye-AF on the eye closest to the camera.

2. Landscapes: Keeping Foreground to Horizon Tack-Sharp (Pan-Focus)

The most common landscape mistake is focusing directly on the horizon, leaving foreground rocks or flowers blurry.
1. Set Aperture to f/8.0 to f/11: This optical sweet spot delivers maximum edge-to-edge resolution with deep depth of field.
2. Focus at the Lower 1/3 of the Frame: Focusing roughly one-third into the scene (the hyperfocal point) ensures sharpness from half that distance all the way to infinity.
3. Avoid Stopping Down Past f/16: Extreme apertures like f/22 introduce optical diffraction, which paradoxically softens fine details across the whole frame.

3. Street & Travel: Split-Second Zone Focusing Without Waiting for AF

When capturing fast-moving street life or lively children, waiting for autofocus often means missing the decisive moment.
Street photographers rely on Zone Focusing:
• Set a 35mm lens to f/5.6 and lock manual focus to 3 meters.
• As shown in this calculator, the sharp zone spans from 1.8m to 9m, allowing you to lift the camera and fire instantly whenever a subject enters the zone.

4. Food & Cafe Photos: Managing Thin Depth for Mouth-Watering Stills

Shooting food wide open at f/1.4 can blur the rear half of the dish, confusing the viewer and losing appetizing texture.
Stop Down Slightly to f/2.8 to f/4.0: Keeps the entire dish defined and three-dimensional while softly blurring the cafe interior.
Pinpoint 1 Hero Detail: Lock focus precisely on the freshest strawberry, steaming soup drizzle, or centerpiece latte art.
Utilize Window Sidelight: Position your table next to natural window light at a 45-degree angle to create glossy, appetizing highlights.

5. Three Tricks for DSLR-Like Optical Bokeh on Smartphones

You can achieve authentic optical background separation on mobile phones using physical positioning:
1. Switch to 2x or 3x Telephoto Lenses: Optical telephoto zoom eliminates wide-angle distortion and naturally compresses background distances.
2. Get Extremely Close to the Subject: Moving your phone within 10~20cm of a foreground subject naturally shrinks optical depth, producing authentic glass blur.
3. Frame Distant Backlight Sources: Distant streetlamps, holiday lights, or sunlit foliage behind your subject transform into sparkling bokeh circles.

Frequently Asked Questions (FAQ)

Q.Does stopping down all the way to f/22 or f/32 give the sharpest image?

No. Stopping down past f/16 introduces optical diffraction, where light waves bend around the aperture blades and soften the entire image. The sweet spot for maximum sharpness with deep depth of field is almost always between f/8 and f/11.

Q.Is depth of field evenly split in front of and behind the subject?

No. As a rule of thumb, roughly 1/3 of the in-focus depth lies in front of the subject, and 2/3 extends behind it. As subject distance approaches the hyperfocal point, the rear depth extends all the way to infinity.

Q.What is the Circle of Confusion (CoC)?

The Circle of Confusion is the maximum diameter of a blurred point on the camera sensor that still appears as a sharp single point to the human eye when viewed in a standard print or display. Standard tolerances are 0.030mm for Full Frame and 0.020mm for APS-C.

Q.How does this differ from smartphone Portrait Mode?

Smartphone portrait modes use AI edge detection to digitally blur the background using software filters. This calculator simulates the true physical optical ray geometry of real camera lenses and sensors.