November 23, 2026 Lynn Nguyen

Published:

Blender Depth of Field in Cycles (2026): Focus Distance, F-Stop, Bokeh and Compositor Defocus

EXECUTIVE SUMMARYKey Takeaways: Blender depth of field
Blender 5.2 LTS · Nov 2026

Blender depth of field in Cycles is a real camera effect: the lens settings decide what is sharp, and everything else spreads into bokeh.

  • Focus: Use a Focus Object, ideally an Empty on the subject, so the focus follows it in animation.
  • Blur amount: F-Stop works like a real lens; lower numbers blur more. Blender's default is 2.8.
  • Bokeh: Blades of 3 or more give a polygon shape; Rotation turns it, Ratio stretches it.
  • Compositing: The Depth pass is not anti-aliased, so the Manual points to the Mist pass for a cleaner result.
  • On iRender: You can test focus on the render GPU in Blender, then render the full shot on the same server.

Blender depth of field makes the subject sharp and blurs what lies in front of and behind it. In Cycles it is not a filter. The renderer simulates a lens with a real aperture, so blur, bokeh shape and noise behave like a camera. This guide covers the Blender 5.2 LTS camera settings, how to focus an animation, and when compositor Defocus is the better choice.

Checked on 26 November 2026 against the Blender 5.2 LTS Manual (Cameras, Passes, Defocus Node) and the Blender Python API. Disclosure: iRender publishes this guide and rents GPU servers for Blender; the settings and defaults come from those sources, not from our own tests.

Quick answer. Select the camera, tick Properties › Camera › Depth of Field, set a Focus Object, and lower the F-Stop from the default 2.8 for more blur. Set Blades to 6 for hexagon bokeh.

1. How does depth of field work in Cycles?

Cycles traces camera rays from points across a virtual aperture, not from a single pinhole. Rays from a point at the Focus Distance meet again on the sensor, so that point is sharp. Rays from a nearer point meet behind the sensor, and rays from a farther point meet in front of it, so both spread into a disc. That disc is the bokeh.

Three settings control Blender depth of field. Focus Distance or Focus Object sets where the sharp plane sits. F-Stop sets the aperture size: lower numbers mean a wider aperture and more blur. Blades, Rotation and Ratio set the aperture shape, which becomes the shape of the bokeh.

iRender
How Cycles depth of field blurs near and far objects
thin lens
aperture (F-Stop)sensornearin focusfarFocus DistanceOn the sensornear: large circlefocus: a pointfar: smaller circleBokeh shape follows the aperture: Blades and RatioBlades 0: roundBlades 3Blades 6Ratio below 1: widerBlades 6, Rotation 30°✓ Only points at the Focus Distance land as a point; everything else spreads into a disc shaped by the apertureBlender Manual: Cameras, Depth of Field (Focus Distance, F-Stop, Blades, Rotation, Ratio)
near pointfocused pointfar pointlens and aperture
Schematic, not to scale

How to read the figure. The green point sits at the Focus Distance, so its rays meet the sensor as one point. By contrast, the amber point is nearer, so its rays cross behind the sensor and leave a large circle. The violet point is farther, so it leaves a smaller circle. Finally, the row below shows how Blades, Rotation and Ratio change the shape of those circles.

2. How to set up depth of field on a Blender camera (step by step)

For Blender depth of field, tick Depth of Field, choose a focus, then set the F-Stop and aperture shape. All settings live in Properties › Camera › Depth of Field. Follow the numbers in the figure.

iRender
Set up depth of field on a Blender camera
follow along
Properties › Camera › Depth of Field✓Depth of Field1Focus ObjectFocus_Empty2Focus Distance10 m (unused)ApertureF-Stop2.83Blades64Rotation0°Ratio1.0005Viewport Display › Limits: shows the focus distance6Top view of the shotcameraplane of focusheroFocus_Emptynear propfar wallfocus distance follows the empty✓ Tick Depth of Field, focus on an Empty parented to the subject, then set F-Stop and BladesLabels from the Blender Manual, Cameras; defaults from the Blender Python API, CameraDOFSettings
in focusnear, blurredfar, blurredcamera view
Panel redrawn for clarity; values illustrative

How to read the figure. Badge 1 turns depth of field on. Next, badge 2 focuses on an Empty called Focus_Empty, which greys out the Focus Distance field. Badge 3 sets the blur with the F-Stop, badge 4 sets the bokeh shape with Blades, and badge 5 is Ratio. Finally, badge 6 is the Limits option, which draws the focus distance in the viewport. The top view shows the plane of focus passing through the Empty on the hero.

Step 1: Turn on Depth of Field

Select the camera that renders the shot and tick Depth of Field. Each camera has its own setting.

Step 2: Choose the focus

Pick a Focus Object for anything that moves. The Manual notes that linking an object turns off the distance value, so the focus follows the object. For a still shot, a Focus Distance works too. Turn on Limits in the camera’s Viewport Display panel to see it.

Step 3: Set the F-Stop

Start at the default of 2.8 and render one frame. Lower it for a shallower look, raise it to keep more of the scene sharp.

Step 4: Shape the bokeh

Set Blades to 3 or more for a polygon. Use Rotation to turn the shape, and Ratio for an anamorphic look: below 1 stretches it horizontally, above 1 vertically.

To set this up on many shots, a short script can create the Empty and link it for you. Change the object name to match your subject.

iRender
Focus the active camera on an object with an Empty
python
1import bpy
2scene = bpy.context.scene
3cam = scene.camera.data
4cam.dof.use_dof = True
5cam.dof.aperture_fstop = 2.8
6cam.dof.aperture_blades = 6
7target = bpy.data.objects["Hero"] # your subject's name
8empty = bpy.data.objects.new("Focus_Empty", None)
9scene.collection.objects.link(empty)
10empty.parent = target # sits at the subject's origin
11cam.dof.focus_object = empty
Move the Empty to the eyes or face for a closer focus point.Blender Python API: CameraDOFSettings

Whichever way you set the focus, check the scale of the scene before you judge the blur.

Model at real-world size. F-Stop behaves like a real lens, so the amount of blur depends on how big things are. A room built ten times too large looks much sharper at the same F-Stop.

3. Why does depth of field make Cycles renders noisy?

Blender depth of field adds work for the sampler. Blurred areas average light from a wider part of the scene into each pixel, so they need more samples before they look clean. Small bright highlights out of focus are the slowest to settle. In animation, leftover noise in those areas can flicker.

Test on one frame at final resolution and look closely at the blurred background. If it is grainy, lower the Noise Threshold so adaptive sampling keeps working there, and denoise with the Albedo and Normal passes. Our guides on grainy Blender renders and denoising animation in Cycles cover both settings.

4. Should you render depth of field in camera or add it in the compositor?

You can create Blender depth of field in two places. Render it in camera when quality matters, and add it in the compositor when you need to change focus after the render. The Defocus node blurs a finished image using a depth map. That is fast and flexible, but it only knows one depth per pixel, so edges can show halos.

The Blender Manual explains the cause: the Depth pass is not anti-aliased, and it gets noisy when the render itself uses depth of field or motion blur. The Manual recommends the Mist pass for a cleaner image.

The two passes plug in differently. With a real Depth pass, the Defocus node uses its F-Stop: 128 means perfect focus, and halving the value doubles the blur. Mist values run from 0 to 1, so connect Mist to the Z input, enable No Z-buffer and set the blur with Z Scale; the F-Stop field then no longer applies.

In-camera depth of fieldCompositor Defocus node
Edge qualityCorrect, the blur is tracedCan halo at edges; depth has one value per pixel
Render timeBlurred areas need more samplesNo extra samples; blur added afterwards
Change focus laterNeeds a new renderYes, from the saved depth or mist pass
Passes neededNoneDepth or Mist pass in a multilayer EXR
Best forFinal hero shots and close-upsPreviews, tests and small focus tweaks

Sources: Blender Manual: Passes (Depth, Mist); Defocus Node (accessed 26 November 2026).

If you save passes for compositing, our Cycles render passes and multilayer EXR guide shows how to keep Mist and depth in one file. Each card below maps a symptom to its cause and fix for the depth of field problems we see most often.

iRender
Depth of field problems in Cyclestroubleshoot
SYMPTOM 1

Nothing looks blurred

CauseDepth of Field is not ticked, the F-Stop is high, or the scene is built far larger than real size.
FixTick Depth of Field, lower the F-Stop, and model at real-world scale.
SYMPTOM 2

Everything looks blurred

CauseThe focus sits at the default 10 m, or the Focus Object is the wrong object.
FixSet a Focus Object, or turn on Limits and move the Focus Distance onto the subject.
SYMPTOM 3

Focus drifts during the animation

CauseA fixed Focus Distance stays put while the camera or the subject moves.
FixFocus on an Empty parented to the subject, so the distance updates every frame.
SYMPTOM 4

Bokeh stays round after changing Blades

CauseBlades is below 3, which keeps a round aperture.
FixSet Blades to 3 or more, and use Rotation to turn the shape.
SYMPTOM 5

Blurred areas are noisy or flicker

CauseBlurred regions average light from a wider area, so they need more samples to look clean.
FixLower the Noise Threshold, and denoise with Albedo and Normal passes.
SYMPTOM 6

A halo or outline appears around objects with the Defocus node

CauseThe Depth pass is not anti-aliased, so edges have no blended depth.
FixRender depth of field in camera, or drive the Defocus node with the Mist pass and No Z-buffer.
Find the card that matches what you see.Blender Manual: Cameras; Passes; Defocus Node

Before a long render with Blender depth of field, run through this list on one still frame.

ChecklistBefore you render depth of field
0 / 7 done
Tip: the Depth pass is not anti-aliased, so use Mist when you add blur in the compositor.

Depth of field shots: SaaS or IaaS render farm?

A SaaS farm suits Blender depth of field once the focus is locked, because the scene renders the same on any machine. Getting there often takes several test frames. You move the Empty, change the F-Stop and look again. An IaaS server lets you do those tests in Blender on the render GPU itself, then render the shot. Choose by how settled the focus is when you upload. Our SaaS vs IaaS render farm guide explains both models. The trade-off is that on IaaS the test frames run on billed server time, and you set up Blender yourself.

Blender Depth of Field FAQ

1. How do I turn on depth of field in Blender Cycles?

Select the camera, open Properties › Camera and tick Depth of Field. Set a Focus Object or a Focus Distance, then lower the F-Stop until the background blurs as much as you want.

2. Why is my Blender depth of field not working?

Check three things: Depth of Field is ticked on the active camera, the F-Stop is low enough, and the scene is at real-world scale. A scene built many times too large shows little blur at the same F-Stop.

3. What F-Stop should I use in Blender?

The F-Stop works like a real lens: lower numbers give more blur. Blender’s default is 2.8. Start there for a portrait-style shot, and raise it when more of the scene must stay sharp.

4. How do I make hexagon bokeh in Blender?

Set Blades to 6 in the camera’s Aperture settings. Use Rotation to turn the shape and Ratio for an anamorphic look. Small bright highlights out of focus show the shape best.

5. Is depth of field faster in the compositor than in Cycles?

The Defocus node adds blur after the render, so the render itself does not slow down. The result is less accurate at edges, because the Depth pass is not anti-aliased. In-camera depth of field is the more accurate choice.

6. Why are my depth of field renders noisy?

Blurred areas average light from a wider part of the scene, so they need more samples before they look clean. Lower the Noise Threshold, and denoise with Albedo and Normal passes for animation.

7. How do I animate focus in Blender?

Focus on an Empty instead of a fixed distance, and parent or animate the Empty. The focus distance then follows the Empty in every frame.

Render your Blender projects on iRender

iRender rents Windows and Ubuntu servers with 1, 2, 4 or 8 RTX 5090 or RTX 4090 cards. You install the Blender version your scene needs, test focus on the render GPU and render the full shot on the same server. iRender keeps your server image between sessions.

This quick start shows how to start a server and render Blender on it:

Accelerate your production pipeline with high-performance IaaS render farm services and dedicated bare-metal workstations powered by up to 8x NVIDIA GeForce RTX 5090 (32GB GDDR7), high-frequency AMD Ryzen™ Threadripper™ PRO processors, 256GB ECC RAM, and dedicated 2TB NVMe SSD storage tailored for your pipeline:
, , , , , , ,

Lynn Nguyen

Lynn Nguyen writes for the iRender blog. Since 2021 she has published more than 35 English guides, mostly on Blender and Cycles and on Unreal Engine and real-time rendering, plus Cinema 4D and Maya; many are also published in Korean and Spanish.
Contact

iRENDER GPU

Render Farm Pricing
Quick Start
Multi-GPU Benchmarks
iRender GPU App
Blog
Documentation
The Render Farm
The Company
Terms & Conditions

INTEGRATIONS

Autodesk Maya
Blender
Cinema 4D
Houdini
Karma XPU
Lumion
KeyShot
Unreal Engine
Twinmotion
Redshift
Octane
And many more…

iRENDER TEAM

Elite support 7 days a week
SATURDAY – SUNDAY: 6:00 AM – 11:59 PM
(UTC+7)
Hotline: (+84) 912-785-500
Email: [email protected]
Address 1: 68 Circular Road #02-01, 049422, Singapore.
Address 2: No.22 Thanh Cong Street, Hanoi, Vietnam.

Contact
이 페이지는 한국어로도 제공됩니다. 한국어로 보기 →