Facebook Pixel A Beginner's Guide to Layer Masks in Photoshop

A Beginner’s Guide to Layer Masks in Photoshop

dps-layer-masks-in-photoshop

Adobe Photoshop has so many buttons, tools, and options it can seem overwhelming and intimidating to beginner photo editors. Rather than diving into the deep end and trying to learn every possible tool all at once, I recommend a more measured approach. Pick one thing and learn that, and then move on to the next tool or technique. And learning Layer Masks in Photoshop is one of the most important and useful tools for any editor.

layer masks in Photoshop high school senior
High school senior, class of 2017. There is no number 17 on his shirt. I added it in Photoshop with layer masking. Nikon D200, 50mm, f/1.8, 1/90 second, ISO 200.

In 1994, Photoshop Version 3 introduced a concept that blew the doors off the image editing industry: layers. This allowed editors to stack multiple image elements on top of each other to form a complete picture. This is all well and good, but what if you put one layer on top of another layer and still want to see something on the layer below?

You could use the Eraser tool to remove part of the top layer, which is what I used to do when I first started using Photoshop years ago.

A much better solution is to use a Layer Mask, which lets you show and hide any part of a layer. Instead of using the Eraser tool, you use the Paintbrush (or other tools) to make any part of a layer visible, invisible, or transparent.

As an example, here’s a picture of a truck on a farm. It’s alright, but the sky behind the truck isn’t very dramatic.

layer masks in Photoshop truck on the prairie
Nikon D750, 95mm, f/2.8, 1/3000 second, ISO 100

What if I replaced the boring blue sky with this dramatic sunset? Surely that would be a much more interesting photo, and maybe help the farmer sell his truck too.

layer masks in Photoshop dramatic sunset
Fuji X100f, 23mm, f/16, 30 seconds, ISO 200

If the pictures of the truck and sunset are stacked in Photoshop, the truck is visible but not the sky. This is where Layer Masks in Photoshop can save the day! You can use a mask on the truck layer and then edit it to remove the sky. This would leave the truck visible but the sunset showing through.

layer masks in Photoshop
Layers are fundamental to the image editing process in Photoshop. Layers are on top are visible, whereas layers underneath cannot be seen unless some parts of the layers on top are visible.

To add a Layer Mask, click the top layer (in this case, the truck) and choose Layer>Layer Mask>Reveal All.

Alternatively, click the Layer Mask icon at the bottom of the Layers panel.

layer masks in Photoshop
The rectangle with a circle icon will add a layer mask to the selected layer.

At this point, nothing in the picture has changed because the entire layer is still visible, and nothing has actually been masked out. This is why the menu command is “Reveal All.”

The layer mask shows the entire layer to which it is applied. At this point, you can use any number of methods to remove portions of the layer you are working on.

layer masks in Photoshop
The white rectangle is your layer mask. Click on it to select the mask, and then you can start hiding portions of the layer which it is attached to (in this case, the Truck layer).

My preferred method to show and hide Layer Masks in Photoshop is to use the Brush tool. Press the ‘B’ key on your keyboard or click the Brush tool icon on the left-side toolbar. Then start brushing the portions of the layer that you want to make invisible, just as though you were using an eraser.

layer masks in Photoshop layer mask erasing
Brushing the layer mask will reveal whatever is beneath the layer. Here you can see how, after a few brushstrokes, the sunset layer is starting to show through.

Notice how any part of the mask that you erase is also reflected in the thumbnail. Black portions are where the mask has been eliminated, which is a subtle but useful indicator of the work you are doing on the mask.

layer masks in Photoshop
As you apply the brush to portions of the mask, the mask thumbnail is updated accordingly.

To completely remove the sky behind the truck, I used the Quick Selection tool to select the sky. Then I switched back to the Brush tool and brushed over the entire selected area.

layer masks in Photoshop layer mask demonstration with errors to fix
It worked! The original sky is gone, replaced with a dramatic sunset. But there are some errors that I still need to fix.

At this point, a Layer Mask probably seems much more complicated than just using the Eraser tool. If you want to erase part of an image, why over-complicate the matter with masks and brushes and selections? Layer Masks provide an enormous advantage in that you can un-erase whatever you want just as easily.

With the Brush tool selected, press the ‘X’ key to invert your brush, and you can now put everything you erased back. Use the ‘[‘ and ‘]’ keys to change the size of the brush, and the ‘Z’ key to zoom in on portions of the image to get the finer details.

layer masks in Photoshop modifying the layer mask
Invert the brush tool by pressing the X key to un-erase any part of the layer.

All the normal controls for brushes can be used when working with layer masks – opacity, smoothing, etc. This makes Layer Masks in Photoshop incredibly powerful and exponentially more useful than just using the eraser tool.

layer masks in Photoshop
It still needs some touch-ups, but it’s a lot better than before thanks to the flexibility of layer masks.

Layer Masks can do so much more than replacing the sky. They can be used to combine any number of images, layers, and effects.

I created the picture at the top of this article with Layer Masks in Photoshop in just a few minutes. It started with the picture below of a high school senior wearing a blue shirt. Since this young man graduated in 2017, I wanted to put a 17 on his shirt. Photoshop made it easy.

layer masks in Photoshop high school senior blank shirt
A high school senior, Class of 2017. A nice big 17 would look good on his shirt.

I started by using the Fyra font for the number 17. I set the color to white and used the Soft Light blend mode to make the number look like it was part of the shirt, not just sitting on top of it. The young man’s crossed arms presented a challenge, but one that was easily solved in seconds thanks to layer masks.

layer masks in Photoshop high school senior number 17 without mask
What to do about his arms? Layer Masks to the rescue!

With the base layer selected, I chose the Lasso tool and selected the portion of the picture containing the arms. Then with that selection active, I right-clicked on the image and chose “New Layer via Copy.” This created a new layer in my Layers panel, which I moved to the top of the list by clicking and dragging.

layer masks in Photoshop

With the new layer selected in my Layers panel, I went to the Layer menu and selected Layer Mask>Reveal All. This created a new masking layer, much like the truck and sunset example, that I could use to show and hide whatever portions of the arms I wanted to.

layer masks in Photoshop
Click the white box next to Layer 1 to edit the layer mask for the top layer.

With the new Layer Mask in place, the rest of the operation was fairly simple.

I zoomed in on the image to get a closer view by pressing ‘Z’ and then clicked on the arms. Then I pressed the ‘B’ key to select my Brush tool and used the [ and ] keys to get the right size. As I brushed out the part of the top layer I did not want, I pressed the ‘X’ key to switch back and forth between erasing and un-erasing. This makes it very simple to perform fine adjustments to your layer mask.

layer masks in Photoshop
Brush options such as Opacity and Smoothing can be used to perform edits to your layer mask with surgical precision.
layer masks in Photoshop fine adjustment to layer mask
With one hand on your mouse and another hand on the X key, you can quickly show and hide whatever part of your layer that you want.

Using layer masking instead of just erasing portions of an image means you can continue to manipulate your image as separate layers even after you have made your edits. Watch how the number 17 can be moved and resized without any additional editing or erasing. This is possible because the arms are a separate layer in front of the number, and the blue part of the arms layer has been erased or masked out.

layer masks in Photoshop transform layer

Reading through all these steps to learn Layer Masks in Photoshop might seem kind of overwhelming. If you follow along step by step, it’s a lot easier than it seems. Also, there are hundreds of ways to edit layer masks to create compositions you probably thought were previously unattainable.

If you have never tried using layer masks in Photoshop, I recommend giving it a try, and see where your creativity takes you. You might find that it opens up a door to entirely new types of artistic expression and editing possibilities.

Share your results with us in the comments below!

Read more from our Post Production category

Simon Ringsmuth
Simon Ringsmuth

is an educational technology specialist at Oklahoma State University and enjoys sharing his enthusiasm for photography on his website and podcast at Weekly Fifty. He and his brother host a monthly podcast called Camera Dads where they discuss photography and fatherhood, and Simon also posts regularly to Instagram where you can follow him as @sringsmuth.

I need help with...