
You can blur a background in editing by masking the subject, inverting the mask and applying blur to everything else, or by using a lens blur tool that builds a depth map and blurs each part of the scene by its distance. The second method looks far more real. Fake blur gives itself away when it is the same strength everywhere, cuts into hair, or blurs the ground the subject is standing on.
How real background blur behaves
Before touching a slider, it helps to know what a lens actually does, because every convincing edit copies it. Only one distance is truly sharp. Points in front of or behind it spread into small discs of light, and the further a point is from the focus distance, the bigger its disc. The depth of field is just the zone where those discs are still too small to notice, a limit set by the circle of confusion.
The key fact for editing is that blur is not a switch. It grows gradually with distance from the subject. A simple way to estimate it: take the width of the lens opening (focal length divided by the f-stop), then multiply by how far behind the subject a point is, divided by that point’s total distance from the camera. That gives the blur disc’s size measured at the subject.
Worked example, an 85 mm lens at f/1.8 with the subject 2 m away. The opening is 85 / 1.8 = about 47 mm wide.
| Background point | Calculation | Blur disc at subject (f/1.8) | Same point at f/8 |
|---|---|---|---|
| Ground at subject’s feet (2 m) | 47 x 0 / 2 | 0 mm | 0 mm |
| 1 m behind (3 m) | 47 x 1 / 3 | about 16 mm | about 4 mm |
| 2 m behind (4 m) | 47 x 2 / 4 | about 24 mm | about 5 mm |
| 8 m behind (10 m) | 47 x 8 / 10 | about 38 mm | about 8.5 mm |
| Far distance | 47 x 1 | about 47 mm | about 11 mm |
At f/8 the opening is 85 / 8 = about 10.6 mm, so every figure shrinks by the same factor of about 4.4. Three things in that table drive every decision in this guide:
- Blur is zero at the subject’s own distance. Their shoulders, the bench they sit on and the pavement under their feet are as sharp as their face.
- Blur rises fast just behind the subject, then levels off. The jump from 1 m to 2 m behind is bigger than the jump from 8 m behind to the horizon.
- Things in front of the subject blur too. A railing between the camera and the subject should be soft, not crisp.
The look of those discs, smooth or busy, round or cat’s eye, is bokeh, and it is a separate question from how much blur there is. Editing tools can fake the amount fairly well. They fake the character less well.
Two ways editors add blur
Masked flat blur
The older method: select the subject, invert the selection so the background is active, and apply a blur filter or push sharpness and clarity to their minimum. Every pixel outside the mask gets the same treatment. It is quick and works in almost any editor that has masking, but it breaks the first two rules above. The pavement at the subject’s feet gets as soft as the far wall, and the blur stops dead at the mask edge, which reads as a cutout pasted onto a smeared photo.
Clarity and sharpness sliders set to minimum do not create real blur at all. They soften local contrast, which looks like haze, not defocus. Highlights stay small and hard instead of spreading into discs.
Depth map lens blur
Newer tools estimate how far away each part of the frame is and store it as a depth map, a greyscale image where near is one tone and far is another. Phones that shoot a portrait mode often save a depth map with the file. When there is no saved map, the editor guesses one from the image itself using a trained model. The blur is then applied in proportion to distance from a chosen focus point, which copies the table above: none at the subject plane, rising behind, and blur in front too.
Good depth map tools also let you set:
- Blur amount, which acts like choosing a wider or narrower aperture.
- Focal range, the band of distances kept sharp. Widening it is like stopping down a little.
- Bokeh shape and highlight boost, which turn bright points into discs instead of grey smudges.
- Refine brushes to paint areas nearer or further when the map guessed wrong.
This is the same idea behind portrait mode on phones, done afterwards with more control. It is part of the wider family of AI photo editing tools, and it shares their main weakness: it is only as good as its guess about what is near and what is far.
How to blur a background step by step
- Start with the right photo. Blur works best where there is already real distance between subject and background. A person 3 m in front of a hedge is easy. A person leaning on a wall is almost impossible, because the wall is at their distance and should stay sharp.
- Work on a copy or with a non-destructive tool. Non-destructive editing lets you turn the blur down later, which you will want to do.
- Pick the focus point on the eyes. In a depth map tool, click the nearer eye. Everything at that distance stays sharp, which is what a lens would do.
- Look at the depth map itself. Most tools have a view that shows it. Check that the subject is one even tone from head to feet, that hair is included, and that the background gets steadily further away rather than jumping in blocks.
- Set the amount low first. Start at a quarter to a third of the slider and raise it until the background stops competing, then stop. Ask what aperture the result looks like. If it looks like something wider than f/1.4 on a background 10 m away, it will probably read as fake.
- Fix the map with refine brushes. Paint the ground under the subject as near. Paint gaps between arms and body, and between hair strands, as far.
- Add grain or noise back to the blurred area. Blur wipes out sensor noise, so a smooth background next to a grainy face is a giveaway. Match it by eye at 100 percent.
- Check edges at 100 percent and then view the whole frame small. Edges reveal technical errors. The small view reveals whether the depth looks believable.
If your editor only offers masking, you can approximate a depth map by hand. Make a selective adjustment with a linear gradient that starts at the subject’s feet and ramps up towards the horizon, then subtract the subject from it. Stack a second, stronger gradient for the far background. In a layer-based editor, the same idea is a blurred copy under a gradient layer mask. On a phone, the mobile masking tools can do a simpler version of this.
Where fake blur gives itself away
Viewers rarely say why a photo looks off, but they notice. These are the places to inspect, in the order they usually fail.
Hair and fine edges
Loose hair, fur, eyelashes against the sky, lace and bicycle spokes are all thinner than the mask can follow. The tool either blurs the strands into the background, leaving a helmet-shaped head, or keeps a band of sharp background around them, which shows as a sharp halo. Zoom to 100 percent along the hairline. If you see a smooth, unbroken outline where real hair would be wispy, lower the blur, refine the edge, or accept the photo as it is.
The ground plane
Floors, roads, tables and grass run from in front of the subject to behind them. In a real photo their sharpness changes smoothly along that run. Flat blur makes the floor under the subject’s feet as soft as the far end of the room, so the subject seems to float. A depth map often gets this right, but check, because a model can treat the whole floor as background.
Foreground objects
Anything closer than the subject should also be blurred, scaled by how much closer it is. A sharp foreground leaf with a soft background behind a sharp face is a combination no lens produces at that aperture.
Objects at the subject’s distance
A friend standing beside the subject, a chair they rest a hand on, or a building column right beside them must stay as sharp as the subject. Tools that think in terms of “person” and “not person” blur these and give the game away.
Highlights and light sources
Real defocus turns small bright points, like streetlights or sun through leaves, into bright discs that can be larger than the point itself and keep their brightness. A plain blur averages them into dim grey patches. If your tool has a highlight or bokeh boost, use it modestly on night scenes and backlit foliage.
Lens behaviour that does not match
Strong blur pasted on a wide-angle frame with steep perspective looks odd, because wide lenses at normal distances rarely blur much. Strong blur on a far, flat background usually goes with a longer lens and its compressed perspective. If the perspective says wide angle and the blur says long lens, the eye notices.
When to reshoot instead of editing
Editing can add some blur. It cannot invent the separation that should have been there. Reshoot, or plan for next time, when:
- The subject is touching or within half a metre of the background. Real blur there is close to zero, so any blur you add looks wrong.
- The background is full of busy, fine detail at many depths, such as tree branches or a crowd. Depth maps struggle most with these.
- The subject has a lot of loose hair, a veil or fine fabric against a contrasting background.
- You want the photo used in a context where it must be an honest record. The ethics of AI editing matter more for news and documentary work than for a portrait.
In camera, the levers are simple: open up to a wide aperture, move closer to the subject, use a longer focal length, and above all put more distance between the subject and the background. The last one costs nothing. Moving a subject from 1 m to 4 m in front of a wall makes a bigger difference than most lens changes. The depth of field calculator shows how each change moves the sharp zone, and shallow depth of field covers the shooting side in more depth.
Want the blur in the camera instead? How to get shallow depth of field when you shoot.
Other ways to make a subject stand out
Blur is one tool for separation, not the only one. Often a lighter touch reads better:
- Darken the background a little. A small exposure drop on the background, or a soft vignette, draws the eye without any blur.
- Reduce background contrast and saturation. Busy colour competes more than busy detail does.
- Brighten the subject slightly. The eye goes to the brightest area first. This is a classic local adjustment.
- Combine a little of each. A modest blur plus a slight darkening usually looks more natural than heavy blur alone.
Building a whole portrait edit around this? How to edit portraits step by step.
Common mistakes when blurring backgrounds
- Too much blur for the scene. Background 20 m away with blur that suggests a very wide aperture and a long lens, on a photo plainly taken with a wide angle. Fix: lower the amount until it matches what the scene could produce.
- Blurring the ground at the subject’s feet. Fix: refine the depth map or use a gradient that starts at zero where the feet touch the ground.
- Soft halo or sharp ring around the subject. Fix: refine or slightly contract the mask, and inspect the hairline at 100 percent.
- A clean background next to a noisy subject. Fix: add matching grain to the blurred area.
- Blurring things at the subject’s distance. Hands on a railing, a companion beside them. Fix: paint them into the sharp zone.
- Using clarity or sharpness at minimum as “blur”. Fix: use a true blur or lens blur tool, which spreads highlights into discs.
- Judging only at full screen. Fix: check at 100 percent for edges and at thumbnail size for overall believability.
Try this: blur by lens, blur by edit
This takes about 10 minutes with a camera that lets you set the aperture, or a phone with a portrait mode that can be switched off.
- Stand a person or an object about 2 m from the camera, with an open background at least 5 m behind and some ground visible between them.
- Take one photo at your widest aperture, or with portrait mode on. This is the reference.
- Without moving, take a second photo at f/8, or with portrait mode off.
- Edit the f/8 frame twice. Once with a masked flat blur on the inverted subject. Once with a depth map lens blur, matching the background softness of the reference as closely as you can.
- Put all four images side by side.
How to judge it: look first at the ground running back from the subject, then at the hairline at 100 percent, then at any bright points in the background. The real optical shot is your answer key. Whichever edit matches it on those three points is the more believable one, and the gap tells you how far editing can go with that kind of scene. Repeat with the subject against a wall and notice how much harder the edit gets.
Wondering why the reference shot looked the way it did? What controls depth of field.
FAQ
Can I add bokeh after taking the photo?
You can add blur and imitate bokeh, and depth map tools do a believable job on simple scenes with clear separation. They cannot recover the exact character of a particular lens, and they struggle with fine detail like hair. A real wide aperture still gives the most natural result.
Why does my blurred background look fake?
Usually because the blur is the same strength everywhere, the ground under the subject is blurred, or the mask edge cuts through hair. Check those three places first. Lowering the overall amount fixes more fake looks than any other single change.
Is a depth map better than a mask?
For background blur, yes, because it blurs by distance and leaves the subject’s own plane sharp, as a lens does. A mask is still useful for refining the depth map and for subtle darkening or desaturating instead of blur.
Does shooting raw help with background blur in editing?
Raw files help with noise matching and tone, but the blur itself depends on the depth estimate, not the file format. If your phone saves a depth map with portrait mode photos, keeping that file matters more than whether it is raw.
Is it dishonest to blur a background?
For portraits, products and personal work it is a normal editing choice, much like a vignette. For news, documentary or evidence, adding blur that hides context can mislead, so most publications forbid it. Follow the rules of wherever the photo will appear.
Curious how the shape of the blur changes between lenses? What makes good or bad bokeh.
Want the background to feel further away without blurring it at all? How lens compression changes backgrounds.