DOF Simulation · See the shot before you take it

Depth of field calculator.

See what stays sharp and what blurs. Choose a starting shot, then explore your lens, aperture and distance.

Not sure where to start?Load a full-frame example, then make it yours. Replaces your current settings.
Casual portrait standing in focus
Live preview
50 mmf/1.8Focus 3.00 m
Sharp: 2.83 m–3.20 m
Repositions the camera; changes focus distance.

Depth and blur diameter are calculated. Surface blur and diffraction stars are illustrative.
Your result

The focus zone

Calculated
Total depth of field37 cm
Sharp from2.83 m
Sharp to3.20 m
Background blurStrong

Strong subject separation with a distinctly soft background.

At the subject: 2.12 m wide × 1.41 m high. Model & limitations

One setting, four outcomes

What if I stop down?

Same lens, distances and sensor. These hypothetical settings compare geometric depth of field; your lens may not support every aperture.

Aperture, sharp range and sensor-plane background blur
ApertureSharp rangeBlur diameter
2.83 m – 3.20 m0.353 mm
2.74 m – 3.31 m0.227 mm
2.52 m – 3.70 m0.113 mm
2.18 m – 4.79 m0.058 mm
How much depth of field does a portrait need? →
Plan a group or a deeper subject

Will everyone be in focus?

Enter the nearest and farthest details you want sharp, measured from the camera. This checks your current lens, aperture, focus distance and circle of confusion. These distances stay fixed while you adjust the shot.

Part of this depth falls outside your focus zone.

Nearest detail: 0.0336 mm blur · Farthest detail: 0.0294 mm blur. Your limit: 0.0288 mm on the sensor.

At the same focus distance, geometric coverage needs approximately f/2.2 or a higher f-number. Check whether your lens supports it; diffraction and shutter speed are separate trade-offs.

Geometric estimate for stationary details, not a guarantee of sharp eyes or subject motion. Checker inputs are temporary and are not included in saved or shared setups. Work through a two-row group example →

Take it into the field

Small experiments. Better photographs.

01 · Portraits

Keep both eyes sharp

Compare f/1.8 and f/4 at 2 metres, with numbers you can reproduce.

02 · Landscapes

Focus from near to far

A worked 24 mm example, and why hyperfocal is not a sharpness guarantee.

03 · Lens choice

Compare formats fairly

Separate crop factor, framing, exposure and background blur.

04 · Bokeh

Find a softer background

Change background separation while keeping the face's depth of field fixed.

05 · Sharpness

Choose a focus tolerance

See why a larger print or stricter criterion changes the acceptable sharp range.

06 · Check the numbers

Reproduce a calculation

Inspect every input, compare 11 worked setups, and download the results.

07 · Groups

Plan for two rows of faces

Check the nearest and farthest eyes, compare apertures, and prepare a real shooting test.

08 · Your own camera

Test this prediction

Take the current settings into the field and record what your camera actually shows.

What the preview means

Calculated optics, clearly explained.

01

We map your camera

Real sensor dimensions set the field of view and the acceptable circle of confusion.

02

We calculate every plane

Thin-lens geometry determines the sharp zone and blur diameter at each scene distance.

03

We render the blur

Objects have separate depths. Bright points form aperture-shaped bokeh; small apertures bring out diffraction stars. A high f-number increases depth of field, but does not guarantee everything is sharp.

Depth of field, from first principles

Understand the result—not just the number.

These short lessons connect the calculator to practical shooting decisions. Start with a question, then change one setting and compare the result.

What is depth of field, and what does this calculator measure?

Only the plane you focus on is mathematically exact. Points in front of or behind it are projected as small discs. Depth of field (DOF) is the distance between the nearest and farthest planes whose discs remain smaller than the selected circle of confusion, so they appear acceptably sharp at an assumed viewing size.

This simulator calculates those near and far limits, total DOF, hyperfocal distance, field of view, magnification, and the blur-disc diameter at the background. The boundary is a useful convention rather than a sudden transition from sharp to blurry.

Which equation does the simulator use?

For focal length f, f-number N, acceptable circle of confusion c, and focus distance s, the hyperfocal distance is H = f²/(N × c) + f. Set q = N × c × (s − f). The near limit is f² × s / (f² + q); the far limit is f² × s / (f² − q) when s is below H, otherwise infinity.

These limits solve the same blur equation as the renderer, in millimetres. Real lenses can depart from thin-lens geometry at close focus because of focus breathing, pupil magnification, and internal focusing. Read the equations and worked example.

What is bokeh, and is it the same as background blur?

Background blur describes how much an out-of-focus detail spreads. Bokeh describes the character of that blur: whether highlights look smooth, nervous, circular, polygonal, swirled, or clipped near the frame edge.

The calculated background CoC is a physical blur diameter on the sensor. The preview then uses aperture blade count and roundness to illustrate highlight shape. It cannot reproduce a particular lens’s aberrations or cat-eye bokeh, so use the number for comparison and the rendering as an explanation.

Why does moving the background farther away create more blur?

After the lens is focused on the subject, light from another distance converges in front of or behind the sensor and reaches the sensor as a disc instead of a point. Increasing the subject-to-background gap generally enlarges that disc until the result approaches a practical limit.

For a portrait, moving the subject away from the wall often changes separation more predictably than buying a faster lens. Try changing only “Background distance” to see the effect while every camera setting stays fixed.

Why do small apertures create sunstars, and why can f/22 look soft?

At a small aperture, light diffracts around the edges of the diaphragm blades. Bright point sources can produce rays related to the blade geometry: an even blade count commonly produces the same number of rays, while an odd count produces twice as many because opposite rays do not overlap.

Stopping down also enlarges the Airy diffraction pattern. You gain geometric depth of field, but fine detail can lose contrast. The simulator’s 550 nm Airy-disk value and star graphic explain that trade-off; they are not a full diffraction model for a specific lens or sensor.

How do I match full frame on APS-C or Micro Four Thirds?

To match framing from the same camera position, divide the full-frame focal length by the crop factor. A 50 mm full-frame view is roughly 33 mm on 1.5× APS-C, 31 mm on 1.6× APS-C, or 25 mm on 2× Micro Four Thirds.

To also approximate the same depth of field and entrance-pupil diameter, divide the full-frame f-number by the crop factor: full-frame 50 mm f/2.8 is approximately 33 mm f/1.9 on 1.5× APS-C or 25 mm f/1.4 on 2× Micro Four Thirds. Keep subject distance, aspect ratio, framing, and final viewing conditions matched. Exposure remains governed by the actual f-number—not the “equivalent” one.

Does a longer lens always give shallower depth of field?

If camera position and aperture stay fixed, a longer focal length magnifies the subject and usually narrows DOF. If you step backward to keep the subject the same size, the DOF difference becomes much smaller at ordinary portrait distances, although perspective and the apparent size of the background change.

Turn on “Keep subject size” in the advanced panel to distinguish a focal-length change from a framing change. Pin setup A before adjusting setup B for a direct comparison.

What is hyperfocal distance, and when should I use it?

Hyperfocal distance is the nearest focus distance whose far DOF limit reaches infinity under the chosen CoC standard. Focusing there makes objects from roughly half that distance to infinity acceptably sharp by that standard.

It is helpful for landscapes and zone focusing, but it is not a promise of equal sharpness everywhere. If the distant subject matters most, focus farther than the calculated hyperfocal point or verify at the intended output size.

How should I use the preview and the numerical result?

Choose your actual camera and lens, enter the camera-to-subject distance, then enter the camera-to-background distance. Change one setting at a time. Read “Sharp from” and “Sharp to” for the acceptable focus zone, and use Background CoC to compare blur quantitatively.

Depth model applies separate calculations to illustrated distance planes. Photo backdrop is useful for composition, but its original softness is baked into the image and cannot become sharp when you stop down. Always confirm an important shot with magnified live view or a test frame.

Want the complete practical guide?Includes the model’s assumptions, quick experiments, and real-world limitations.
Read the DOF guide