Many people use complicated methods to erase backgrounds when they can do it much easier with the Background Eraser tool. It creates great results with its automatic edge detection and selection feathering. In this tutorial, you will learn how to use the background eraser tool to erase the sky and replace it with another from a set of realistic sky gradients.

Preview of Final Results

clip_image003
clip_image002[1]

Step 1: Chose an image to work with

Open a photo that you want to extract a background from in Photoshop. In this tutorial I’m going to use a scene of two trees and a blue sky as background, but you can use the same techniques applied here to a variety of images and situations.
clip_image003

Step 2: How the tool works

Even though the name says “Background” eraser, this tool can actually be used to erase a lot more than that, and it works more as a “Color” eraser rather than a “Background” eraser. So to start off let’s select the tool. You can use the shortcut Shift+E to cycle through the erasers panel, or you can click on its button on the left panel.
clip_image004
After selecting it, the options on your top panel will change, and your mouse will become a circle with a crosshair in the middle. The crosshair area is where we’re going to select the color that we want to erase, and everything else inside that circle that has that color will be erased. Right click anywhere in your image to open up the brush options for that tool.
clip_image005
Remember to always keep the hardness high because soft edges may leave background artifacts behind. Change the size of the brush as needed, and keep the spacing fairly low (1~50%) so it creates a smooth continually erasing line when you are using the tool.
clip_image006
In the top panel, chose the Sampling Once option, so we will only sample the color once and erase a big part of the image with it. Keep the Limits at Contiguous and the Tolerance at 50% for now.

Step 3: Start erasing

Click in a random part of the sky, hold the left mouse button, and drag the mouse around to erase.
clip_image007
As you can see in the image above, we are not erasing the background between the leafs and branches, but that leads us to the “Limits” option of the Background Eraser Tool. Go to the top panel and change the Limit from Contiguous to Discontiguous. Now do the same thing we did before and let’s see what will be the result.
clip_image008
clip_image009
As you can see, the Discontiguous option allow us to erase the background even in isolated areas, like in between the branches and leafs of our tree.

Step 4: A few more options

In my case, when I painted with the Tolerance at 50% (default), the ending result was pretty good, but don’t worry if something like this happens to you:
clip_image010
If something like that does happen to you, it means that the color from the background is too similar to your subject, so you have to lower your Tolerance levels. If the color from the background is quite different from your subject (like in my case) you can set the Tolerance to higher levels to obtain better results. With the right Tolerance level you should get results like this:
clip_image011

Step 5: More options!

If you tried changing the Tolerance levels but are still getting problems with the Background Eraser Tool erasing your subject, turn on the Protect Foreground Color option.
clip_image012
This allows you to sample a foreground color (hold Alt/Opt to sample a color from your image) that Photoshop will not erase when using the Background Eraser Tool. Here’s an example of how this option works:
Subscribe
Notify of
guest
39 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

it is really helpful for me. thanks for the nice tutorial.

Natasha

Sorry, the background stayed erased – white and wouldn’t change.
Could you please explain if possible how to make this gradient workThank you!

Alexis

How have I lived my whole life without this tool!? Thank you so much for this tutorial!

Ramón

Ty so much.

Greg Sobey

An effective result although unconvincing. Why not select a more subtle gradient?

Maidul Islam

Incredible work man!Thanks for sharing.

A. Pawlak

Muito bom! Parabéns pela excelente explicação…

saravanan

thanq

haitham

thank you mait for this wonderful tips

akhil

it dont work

jomon

thumbs up keep posting

subhash chand

Only the erasing is possible and coloring of background is not possible for those whose is new to photoshope. Kindly tell step by step how to fill the background with new color.

tt

:-\

G

Most useful tutorial I’ve done in ages. Thanks a Million!

G :)

Anonymous

živo sranje

Noah Glazebrook

Tis a very helpful and detailed tutorial

dipar

Thanks

jesse

Thank you for a great write up! I’ve searched for months and though there are plenty youtube tutorials but they all come short. In most of those, the tutor assumes that his audience knows where certain options or features are and they are not mentioned or explained.

Every attempt I made following those tutorials left me frustrated because I could not fully follow them, and because they either skip important steps or don’t explain them well.

Your explanation of the Sampling and Tolerance did the job
for me! Though I need to practice more, but I’m getting better results than I ever got.

The biggest problem for me is a photo of an older man with
center baldness and the color of the background so close to the color of the hair, so I keep getting the hair removed.

I spent hours on the background eraser, again, when it came
to the part of the hair, though I decreased the size of the eraser to 5 pixels or less, and zoomed in on the photo, I
still can not get a clean background.

Comments are welcomed!

Thank you again!

Jesse T.

Malecrey

thanks man this make my work more easy!! Nice tutorial

Anonymous

it does not work for the PS element 6

Rishipratim Guha Mustafi

Thank you, that was really very helpful…

Jestiel

This is wat I have been looking for thanks a lot

Kristine

This is awesome!!!

risabkummar

Grate Knowledge in Photoshop

asela

Great Can u Make Video for this?

Free Photoshop Actions

Sign up to our weekly newsletter and get 10 free Photoshop Actions.

Special FX Photoshop Actions