• How to Use AI Depth Masking in Photoshop

  • by Aaron Nace
    May 20, 2026
  • Add to
    favorites

Download Assets

This tutorial includes 1 sample image and 1 sample PSD.

Download

description

Use Depth Masking in Camera Raw to isolate subjects from the background. Master non-destructive Smart Objects, targeted exposure adjustments, and realistic lens blur to enhance focus.

Image Source

Photo by Fellipe Ditadi via Unsplash

Portrait before applying AI depth masking, with uniform background
The same portrait after using AI depth masking to separate subject from background
AfterBefore

Separate Foreground From Background With Depth Masking

The single biggest difference between a snapshot and a finished photograph is usually that someone decided where the eye should go. Edit the whole frame at once and everything gets brighter or warmer together, which changes nothing about hierarchy. Edit the subject separately from what’s behind them and the picture suddenly has direction.

Camera Raw’s Depth Range masking makes that separation almost trivial. It reads the physical distance in the scene rather than colour or brightness, so you can click the subject and get everything at that depth — regardless of what colour they’re wearing or how busy the background is.

What Depth Masking Does Differently

It Reads Distance, Not Colour

Luminance and colour masks fall apart when a subject wears something the same shade as the wall behind them. Depth doesn’t care — it builds a map of how far each part of the scene is from the camera and selects a slice of that.

It Handles Messy Edges Without Trying

Because it’s working in three dimensions rather than tracing an outline, hair, foliage and semi-transparent edges tend to fall out correctly without any edge refinement at all.

Two Masks, Opposite Directions

The real power is having a subject mask and a background mask on the same image. Lift one, drop the other, and you’ve built separation that no global adjustment can produce.

Set Up Non-Destructively

  1. Convert to a Smart Object

    Select your background layer and convert it for Smart Filters. Everything you do in Camera Raw then lives as an editable filter you can reopen and change at any point.

  2. Open the Camera Raw Filter

    Filter > Camera Raw Filter, or Cmd/Ctrl + Shift + A. It works on JPEGs as readily as raw files.

  3. Choose Masking > Depth Range

    Open the Masking panel on the right and pick Depth Range under the Range options. Your cursor becomes an eyedropper and Photoshop builds a depth map of the scene.

Depth Range masking panel in Camera Raw showing the depth map overlay on a portrait

Pick Your Plane

  1. Click the Subject or the Background

    Click your subject to select everything at their distance from the camera, or click behind them to target the environment instead. The depth slider then expands or tightens how much of that plane the mask covers — widen it to include a bit of ground the subject is standing on, or narrow it to isolate them cleanly.

  2. Turn Off the Overlay Before Judging It

    The coloured depth map makes the selection legible but hides your actual tones. Switch it off before making any adjustment — you cannot evaluate exposure through a red overlay, and this is where most people go wrong.

Lift the Subject

Small moves. The goal is separation, not a spotlight.

  1. Exposure and Shadows

    Brighten the subject slightly and open the shadows to recover detail that was sitting flat. A quarter of a stop is often enough to change where the eye lands.

  2. Texture and Clarity

    A little of each makes the subject read as crisper than their surroundings. Clarity affects mid-tone contrast and Texture affects fine detail — on skin, lean on Texture and go easy on Clarity, which can get harsh fast.

  3. Build a Second Mask for the Background

    Create another Depth Range mask, this time clicking behind the subject. Lower its exposure a touch, and use the Point Color tool to pull specific hues down if a colour back there is competing for attention. Our free Point Color walkthrough covers that tool properly.

Direct the Eye

With the two planes separated, these last moves are about focus in both senses of the word.

  1. Radial Gradient on the Face, Vignette on the Edges

    Add a Radial Gradient over your subject’s face and lift it slightly. Then, under Optics, slide the vignette to the left to darken the frame edges. The two work as a pair — brighter centre, darker perimeter, without either being noticeable on its own.

  2. Lens Blur With the Subject Targeted

    Open Lens Blur, click apply, and use the target tool on your subject. The background softens while they stay sharp, which is the optical version of the separation you just built tonally.

  3. Grain, Then OK

    Add a hint of grain from the Effects panel. Synthetic blur is unnaturally smooth, and grain over the top is what stops it reading as a filter. Click OK to return to Photoshop with everything still editable.

Subject brightened and background darkened using two separate depth masks in Camera Raw

Where Depth Masking Struggles

Flat Scenes

If your subject is pressed against a wall there’s no depth difference to find. Depth masking needs actual distance between planes — on a flat scene, use Select Subject instead. Our free guide to isolating subjects and cleaning up edges covers that route.

Something Beside the Subject at the Same Distance

Depth selects a plane, not a person. Anything standing alongside your subject comes with them. Narrow the depth slider, or subtract from the mask with a brush.

Overcooking the Separation

Lifting the subject two stops and dropping the background two stops produces something that looks composited rather than photographed. If a viewer notices the separation, it’s too much.

More Free Masking Tutorials

If precise selections are your bottleneck, these free tutorials cover the other approaches:

Why Separation Beats Brightness

People reach for exposure when an image feels flat, and often the problem isn’t that it’s dark — it’s that everything in the frame has the same visual weight. Brightening all of it keeps that problem exactly where it was.

What actually creates depth in a photograph is difference: the subject a little brighter and sharper, the background a little darker and softer. Depth masking is just the fastest way to draw the line between those two things so you can treat them separately.

Run It on a Portrait

Smart Object, Camera Raw, Masking > Depth Range, click the subject, lift exposure and texture, second mask on the background going the other way, then radial gradient, vignette, Lens Blur and grain. Download the free sample image and PSD to follow the exact edit — then try it on a photo with real depth to it, a street shot or an environmental portrait, where the tool has the most to work with. For the wider portrait workflow, our PRO Natural Light Portrait Editing course carries it further.

200+
PRO COURSES & MASTERCLASSES
1,000+
DOWNLOADABLE PSDs & RAW FILES
4K
ULTRA HD VIDEO QUALITY
93%
FIVE STAR RATINGS
2M+
SUBSCRIBERS & STUDENTS

Enjoying This Free Tutorial? Go Further with PRO.

Unlock Full Sample Files, PSDs, and Hundreds of Masterclasses!

Download full project assets, original PSDs, and RAW images for every lesson

Unlimited access to our complete library of PRO Photoshop & Lightroom courses

Instant 4K Ultra HD streaming on all devices, anytime, anywhere

Full access to our entire library of Photoshop Actions, Presets, and LUTs

Flexible monthly and annual membership plans

Cancel anytime with zero hassle or commitments