How to Use the Refine Edge Tool in Photoshop
Ever tried to change the background color or remove something in Photoshop, only to have the edges come out grayed out or sloppy?
Maybe it was a person’s hair or the branches of a tree, but whatever it was, Photoshop’s selection tools just didn’t cut it.
That’s where the Refine Edge tool in Photoshop comes in. It was made just with these complex edges in mind – edges that no other selection tool gets quite right.
Let’s take a look at what it is and how to use it.
Table of Contents
What is the Photoshop Refine Edge tool?
No matter how simple the background, the automatic selection tools in Photoshop rarely get everything perfect. This is especially true of fine details such as hair, blemishes, fur, branches, feathers, or anything with a similar edge complexity.
The Refine Edge tool is a brush that can fix that, choosing hard-to-select areas while effectively masking the background. All you have to do is paint with it, allowing you to make complex selections and do things like whiten teeth in a matter of seconds.
Refine edge in Photoshop also works fantastically when you manually blend exposures – especially those with hard edges. It can make the difference between a subtle, professional-looking image and an obviously “Photoshopped” one.
In Photoshop CC, the Refine Edge tool can be found in the “Select and Mask” area. In PS 6 it can be found in the top toolbar of any selection tool.
How to Refine Edges in Photoshop CC 2020
If this is your first time working with the Refine Edge tool, start on something with a solid background. This will make the selection process a lot easier and you’ll be able to see more clearly how the Refine Edge brush works.
Step 1: Duplicate Layer (optional)
In Photoshop CC, the easiest way to make a duplicate layer is to press Command-j. You can also right-click the background layer and then select Duplicate Layer from the menu.
In addition, there’s also a “Duplicate Layer” option in the top menu under “Layer”.
While not strictly necessary, creating a duplicate layer ensures that you always have the original to go back to if you make a mistake.
Step 2: Select Your Subject
Photoshop has a number of excellent selection tools, including the Magic Wand tool, the Quick Selection tool, the Lasso tool, and now, with Photoshop 2020, the Object Selection tool.
There’s even a fantastic new Subject Selection tool up in the toolbar next to “Select and Mask.”
Any of these will get you started. Just make sure you’re working on your duplicate layer.
If you’ve chosen a subject with a solid background, the selection part should be easy. Once you’ve made your selection, check the subject’s edges and fix any areas your tool might not have gotten right.
You can easily add to your selection (by holding the Shift key down) or subtract from it (by holding the Option key down) while using your selection tool of choice.
(Just don’t worry about the hair or other complex edges. Those will come later with the Refine Edge tool.)
In the photo above, you can see some areas between the subject’s arm and body that were missed. Since my background is all white, I’m using the Magic Wand tool to subtract those areas from the selection. I’ve also gone around the rest of the body adding or subtracting where necessary to clean up the edges.
Single-color backgrounds are pretty easy to work on and Photoshop CC has a number of advanced methods for singling out colors. But if you’re not in a hurry, the basic selection tools do just fine – at least in this case.
Now your selection should be surrounded by “marching ants” (unless you have that feature turned off).
Step 3: Select and Mask
At the top right of any selection tool will be the Select and Mask option in the toolbar. Click on this.
From there, choose a View Mode. You’ll find it on the right. I prefer the red Overlay (V) option.
Once you’re in Select and Mask mode, you’ll see the Refine Edge Brush tool on the left side along with a few other options. It will be second from the top.
Step 4: Using Refine Edge in Photoshop CC
Once you’ve chosen the Refine Edge tool, take a look at the Properties Tab on the right. It will have a few different sliders you can work with.
- The Radius slider is the main adjustment you need to know about to get started. It determines how far from the subject’s edges Photoshop should refine the mask. For now, all you need to know is to keep the radius as low as possible.
- For exposure blending high contrast images, start by setting the Radius slider somewhere between 1-3. For hair and other more complex edges, you may have to widen out some more. If you’re not sure where it should be, click the “Show Radius” box next to the View Mode.
- Smart Radius is helpful when you have a variety of edges, some fairly straight and others particularly messy. Turn on Smart Radius and the Refine Edge tool will automatically use a smaller radius where there’s a simple edge and a larger radius where things get messy.
The global adjustments don’t tend to be used as much in photography, but they do have some helpful features.
- The Smooth slider is great for smoothing edges in Photoshop.
- Feather will soften the edge – it’s great for collages.
- Contrast will do the opposite and harden the edge.
- Shift Edge will move the edge either inwards or outwards.
In the Output Settings area, you’ll find two important options:
- Choose Decontaminate Colors when you want to get rid of a color cast that a colored background has cast on your subject. This is especially useful when using studio images where the background has spilled some onto the subject. In my image, you can see a bit on the subject’s arms.
- The Output To option allows you to choose what will happen to your image when you finish with the Refine Edge Brush. I prefer “new layer with a layer mask,” but many just leave it on “layer mask.” (Note, if you have the Decontaminate Colors box checked, there won’t be a “layer mask” output option.)
Using the Brush
Now, start painting. Click somewhere inside the subject near the edge and move outwards just into the background. Starting on the subject side is important: the refine edge brush works by sampling the texture and color of the pixels you click on and then deciding what pixels are most similar to it.
With people, try not to go inside the hairline. The goal is to give the brush as much to go on as possible, and that means not giving it too much of a diversity of pixels to filter through.
As with all Photoshop brushes, you can always adjust the size and type of brush in the brush drop-down menu.
When you’re finished, your image should have all of the background masked out and the edges of the subject completely unmasked. In this case, all of the subject’s hair is now part of the selection – even stray strands.
Once you’re finished, hit OK.
Step 5: Cleaning Up
As with any automatic selection tool – even the new cool ones in Photoshop CC – the refine edge tool isn’t perfect. For best results, you’ll need to check your edges. Here are a couple of ways to do this.
Checking the Layer Mask
Hold down alt or option while clicking on the layer mask that was made for you through “Select and Mask.”
To fix any problems, select the Brush tool and change the paint color to black or white, depending on what kind of fix you need. (Black adds to the mask, white adds to the selection.)
When doing this it’s important to change your Brush mode to Overlay – and remember to turn it back when you’re done.
Checking Against Another Background
Another way to check your edges is to create a new solid color fill layer. Place that layer directly underneath the layer you’re working with.
You can fix it the same way you would in the option above, by using a brush in “overlay” mode on the layer mask.
Here’s what it looks like once I cleaned it up:
That’s it. Once the edges are clean, you’re done.
If you’re just wanting a different solid color background, change your fill layer to whatever color you like. Or, you can cut out your subject and place them onto an entirely different background:
Having the option to use Refine Edge in Photoshop CC is a big deal for those of us who like to do composites or exposure blending. I can’t imagine being able to select around hair or feathers or multiple exposures where the masks don’t line up without it.
Just like everything in Photoshop, the Refine Edge tool will take some practice to really master. In the end, though, you’ll have a far better ability to cut out even the most complex of subjects.
What do you think? Got any tips for using Photoshop’s Refine Edge tool that I didn’t cover? Let me know in the comments.