Blender Depth of Field: Settings, Focus and Fixes for Cycles and EEVEE (5.3)
Depth of field in Blender is a camera setting, but scene scale, the focus object origin and a few EEVEE options decide whether it looks right. This guide covers focus, f-stop, bokeh shape, EEVEE quality settings, the compositor Defocus node and why the blur sometimes does not show up.
By default a Blender camera renders everything razor sharp. Real lenses focus on one distance and blur what sits in front and behind, and that falloff is a big part of why a render reads as photographed. Blender can simulate it in both Cycles and EEVEE, but the effect lives on the camera, depends on your scene scale, and has a few engine-specific quirks that cause most "depth of field not working" questions.
This guide walks through the settings in Blender 5.3, what each one actually controls, how focus is calculated under the hood, and a checklist for when the blur is missing or wrong. Setting names and defaults come from the official Cameras page and EEVEE Depth of Field page in the Blender manual and the 5.3 Python API reference.
Where to turn on depth of field
Select the camera, open Object Data Properties (the green camera icon) and tick the Depth of Field panel header. It is stored per camera, not per scene. In Python it is camera.data.dof.use_dof, which the API lists with a default of False. A new camera therefore renders everything in focus until you enable it.
The panel has two parts. The top sets where the focus is (Focus Object or Focus Distance). The Aperture subpanel sets how much blur there is and what shape the out-of-focus highlights take.
Focus Distance vs Focus Object
Focus Distance is a plain number: the distance from the camera to the plane that is perfectly sharp. The API default is 10.0, which is why a fresh camera pointed at a subject two meters away often shows everything blurry or, with a high f-stop, nothing obviously sharp. The manual's tip is the fastest way to set it: hover over the field, press E (or click the eyedropper) and click on the surface you want in focus. To see the value in the viewport, enable Show > Limits in the camera's Viewport Display panel.
Focus Object links focus to an object instead, and linking one deactivates the distance field. This is the better choice for anything that moves, because focus follows the object automatically. Two details are worth knowing, and both come straight from the Cycles camera code in the 5.3 source:
- Focus uses the object's origin, not its surface. Blender takes the focus object's world position and measures it along the camera's viewing axis. If a character's origin sits at its feet, the feet are in focus, not the eyes. A common fix is to parent an Empty to the head and use that as the focus object.
- Focus is a plane, not a sphere. The distance is measured along the camera's viewing axis, so anything at the same depth is equally sharp.
If the focus object is an armature, you can also pick a bone (focus_subtarget in the API). Pointing it at a head bone keeps a rigged character's face sharp without any helper Empty.
F-Stop: how strong the blur is
F-Stop works like a real lens: lower numbers mean a wider aperture and stronger blur, higher numbers mean a sharper image. The API default is 2.8. The less obvious part is how Blender turns that number into blur. In the 5.3 Cycles source, the aperture radius for a perspective camera is calculated as:
aperture size = (focal length in mm x 0.001) / (2 x f-stop)
The result is in Blender units, and the formula treats one unit as one meter. For a 50 mm lens at f/2.8 that is 0.05 / 5.6, roughly 0.009 units. Our takeaway from that line of code:
- Scene scale matters. A model built ten times too large has a lens that is effectively ten times too small relative to it, so depth of field looks much weaker than the same f-stop on a real camera. If real-world f-stops "do nothing", check your dimensions before cranking the f-stop down to 0.1.
- Focal length changes blur too. Because focal length is in the formula, a longer lens at the same f-stop has a bigger aperture and blurs more, which matches real photography.
- Orthographic cameras use a different rule. For orthographic cameras the code uses 1 / (2 x f-stop) without the focal length, so do not expect values copied from a perspective shot to look the same.
Bokeh shape: Blades, Rotation and Ratio
The out-of-focus highlights (bokeh) are round by default. Blades sets the number of polygonal aperture blades; the manual notes the minimum to get a shaped bokeh is 3, which gives triangles. The API default is 0, meaning a perfect circle. Rotation spins that polygon, and Ratio stretches it to imitate anamorphic lenses: 1.0 is no distortion, below 1.0 distorts horizontally and above 1.0 vertically. The shape is only really visible on bright points such as lights or specular sparkles.
Cycles vs EEVEE: same camera, different method
Cycles treats depth of field physically. Each sample starts from a random point on the aperture, so blur, bokeh and partially transparent edges all come out correct. The cost is noise in heavily defocused areas. If out-of-focus backgrounds look grainy, our guide to slow renders covers how to balance samples and denoising instead of brute forcing it.
EEVEE uses a combination of a post-process filter and an optional sample-based method, controlled from Render Properties > Depth of Field. According to the manual:
- Max Size is the maximum blur radius in pixels for the post-process effect (default 100 in the API). Lower is faster, and 0 disables the post-process blur but not the sample-based method.
- Sprite Threshold and Neighbor Rejection control which bright pixels get the slower, higher-quality sprite-based bokeh. Raising the threshold speeds things up but weakens highlight bokeh.
- Jitter Camera moves the camera position for each render sample for more accurate blur. The API notes it is only for final renders, and the manual warns it can raise the actual sample count, because samples are rounded up to fill a hexagonal ring pattern.
- Over-blur (default 5 in the API) adds post-process blur on top of jittered samples to hide the sample pattern, at the cost of softer bokeh edges.
The manual lists two EEVEE limitations that explain many odd results. Blended (alpha blend) materials are not handled correctly by the post-process blur; the fix is to set Max Size to 0 and rely on Jitter Camera. And depth of field is not supported yet for panoramic cameras in EEVEE. In the 3D Viewport, EEVEE only shows depth of field in Camera View.
Depth of field in the compositor (Defocus node)
You can also fake depth of field after rendering with the Defocus node, which blurs an image based on a Z depth input. Enable the Depth pass in View Layer properties, feed Image and Depth into Defocus, and it reads focus from the scene camera. Its F-Stop treats 128 as infinity (everything sharp), and halving the value doubles the blur. It also has Bokeh Type options from Disk to Octagon and a Max Blur limit.
Changing focus this way needs no re-render. The manual is honest about the downsides: edge artifacts where near and far objects overlap, aliasing at low f-stop values, and no way to see "through" a heavily blurred foreground object for a classic focus pull. The render passes page adds that the Depth pass gets noisy if the render itself already uses depth of field or motion blur. For final frames where quality matters, in-camera depth of field in Cycles is still the safer choice.
Depth of field not working? A checklist
- Panel not enabled. Depth of field is off on every new camera. Check the active scene camera, not just the one you edited.
- Focus Distance left at 10 m. Use the eyedropper or a Focus Object.
- Focus object origin in the wrong place. Focus goes to the origin. Move the origin or use an Empty or Focus Bone.
- Scene is not at real scale. Check dimensions in the N panel. A giant scene needs absurdly low f-stops.
- F-stop too high. High values look almost fully sharp.
- Viewing outside Camera View in EEVEE. The viewport effect only appears through the camera.
- EEVEE Max Size set to 0 without Jitter Camera. That turns off the post-process blur and leaves nothing to blur the image.
- Alpha blended materials look wrong in EEVEE. Use Max Size 0 plus Jitter Camera, as the manual suggests.
- Panoramic camera in EEVEE. Not supported yet; render in Cycles or fake it in the compositor.
Animating focus (rack focus)
For a focus pull between two subjects, either keyframe Focus Distance (hover and press I) or animate an Empty used as the Focus Object between the two positions. The Empty approach is easier to tweak because you can see and move the focal point in the viewport. Render to an image sequence so a crash does not cost the whole shot.
Rendering shallow depth of field at scale
Shallow focus in Cycles is one of the settings that quietly pushes per-frame render time up, because blurry regions need more samples to look clean, and an animated focus pull means you cannot just render one frame and reuse it. If a shot is heavy, FXRender is a cloud GPU render farm for Blender with GPU rendering at $1.50 per hour. You can submit jobs from the command line or through MCP automation, and the per-frame render logs show Blender's full output, Python tracebacks and errors, so a frame that fails mid-pull is easy to diagnose. For local batch jobs, see our command line rendering guide.
FAQ
How do I turn on depth of field in Blender?
Select the camera, open Object Data Properties and tick the Depth of Field panel header. Then set a Focus Object or Focus Distance and lower the F-Stop under Aperture. It is off by default on every new camera.
Why is my Blender depth of field not working?
The usual causes are the panel not being enabled on the active camera, Focus Distance left at the default 10 m, a focus object whose origin is not where you expect, a scene that is not at real-world scale, or, in EEVEE, viewing outside Camera View or setting Max Size to 0 without Jitter Camera.
Does scene scale affect depth of field in Blender?
Yes. Blender calculates aperture size from focal length and f-stop as if one Blender unit were one meter. A scene modeled much larger than real size will show far less blur at the same f-stop.
Can Blender focus on multiple objects at once?
Not with one camera, because focus is a single plane at one distance. You can place the focal plane between subjects and raise the f-stop, or render separate passes and combine them with the Defocus node in the compositor.
What does the Blades setting do?
Blades sets the number of polygonal aperture blades, which shapes out-of-focus highlights. The minimum for a shaped bokeh is 3 (triangles). The default of 0 gives round bokeh. Rotation spins the shape and Ratio stretches it for an anamorphic look.
Is depth of field better in Cycles or EEVEE?
Cycles simulates the lens physically, so blur and transparent edges are accurate but defocused areas need more samples. EEVEE is faster and uses post-process blur with an optional Jitter Camera mode, but has limitations with alpha blended materials and panoramic cameras.
Can I add depth of field after rendering?
Yes. Enable the Depth pass and use the Defocus node in the compositor. It is fast to adjust but can show edge artifacts and cannot reproduce a true focus pull through a heavily blurred foreground.
Sources
- Blender 5.3 Manual: Cameras (Depth of Field)
- Blender 5.3 Manual: EEVEE Depth of Field
- Blender 5.3 Manual: EEVEE Limitations
- Blender 5.3 Manual: Defocus Node
- Blender 5.3 Manual: Render Passes
- Blender 5.3 Python API: CameraDOFSettings
- Blender 5.3 Python API: SceneEEVEE
- Blender 5.3 source: intern/cycles/blender/camera.cpp