What Are Layers and Masks in Photoshop?

what-are-layers-and-masks-in-photoshop photo 1

Photoshop can be confusing. It’s a massive program with countless tools and techniques. However, it’s not the advanced stuff that throws most people, but the very basics. As soon as you start using Photoshop, you’ll probably need to use Layers and Layer Masks. If you don’t wrap your head around them, you’ll never be able to get much further.

So, let’s take a look at what Layers and Layer Masks are, and how to use them to edit your photos. (And if you’re new to Photoshop, be sure to check out our 8-part beginner’s guide to Photoshop too.)

What Are Layers?

Photoshop is built on the idea of layers and the layer stack. Everything you do in Photoshop takes place on a layer. All the layers in a document are arranged one on top of the other. Whatever is on the layer at the top of the stack appears above the content on all the Layers below.

The easiest way to think of it is to imagine you’re a kid again making a collage in school. You start with a white background sheet, cut some pictures out from a magazine and stick them to the page. Maybe you grab a marker and add write something on top. All your materials are physically layered. You can take a picture from the bottom of the pile and move it to the top. Or you can take something from the top and move it to the background. The only difference with Photoshop, obviously, is that the layers are digital.

Getting Started With Layers

Layers are surprisingly simple once you’ve grasped the basic concept. Let’s move away from metaphors and look at an actual Photoshop document.

what-are-layers-and-masks-in-photoshop photo 2

The new document in the image above has only the single white-filled layer Photoshop adds to all new documents. To add a new layer to your documents at any time, click the New Layer button or use the keyboard shortcut Control-Shift-N (Command-Shift-N on a Mac).

what-are-layers-and-masks-in-photoshop photo 3

I’ve added a second layer to the example document; this time it’s a black square.

what-are-layers-and-masks-in-photoshop photo 4

In Photoshop, each layer works independently. What gets saved out as the final image is the sum total of all the layers working together. The little eyeball next to each layer controls whether or not it’s visible. To turn a layer on or off, click on the eyeball. In the image below, I’ve turned off Layer 0, the white background.

what-are-layers-and-masks-in-photoshop photo 5

The checkerboard pattern is Photoshop’s way of showing that an area is completely empty. The white layer is filled with white pixels so, although it might look blank, it really isn’t. Other than the black square, there is nothing else on the second layer. If you were to export this as an image that supports transparency–like a PNG–the checkerboard area would be transparent.

I’ve added a pink circle on a third layer. It’s at the top of the layer stack, so it appears above the black square and the white background.

what-are-layers-and-masks-in-photoshop photo 6

When I move it below the black square’s layer, it gets covered by the content on the layer above. Whatever layer is on top is going to appear on top, even if it covers up things below. To move a layer to a different position in the stack, Click and Drag it around the Layer Panel.

what-are-layers-and-masks-in-photoshop photo 7

Layer Opacity

Layers aren’t always fully visible or completely switched off; they can also have some transparency. In Photoshop, you can set the Layer Opacity to anywhere between 0% and 100%. Its visibility will be reduced to that amount.

In the example below, the pink circle layer is set to an Opacity of 0%, 25%, 50%, 75%, and 100%. Look at how the image changes with the layer’s opacity. Photoshop combines all the information from the visible layers to get the final result. At 50% opacity, it’s taking information from both the pink circle and black square layers.

what-are-layers-and-masks-in-photoshop photo 8

To adjust the opacity of a layer, enter a value of between 0 and 100 for the Opacity or Click and Drag on the number to use a slider to set it.

Layer Masks

Layers on their own can’t do much. It’s rare that you want to just place things on top of each other in Photoshop. Normally, you want to combine different parts of different layers to create the final image. This is where Layer Masks come in.

A layer mask selectively controls the visibility of the different areas of each layer. Each layer mask only affects the layer it’s attached to. Areas of the layer mask that are black conceal the respective area on the original layer, while areas of the layer mask that are white reveal those areas of the original layer. Just remember “black conceals and white reveals”.

what-are-layers-and-masks-in-photoshop photo 9

To create a new layer mask, select the layer you want to mask and then click the Add Layer Mask button. By default it will be filled with white. If you want to start with a black layer mask, hold down Alt or Option when you create it.

In the image below, I’ve added a new layer mask to the pink circle layer. It’s white, so it doesn’t affect the layer.

what-are-layers-and-masks-in-photoshop photo 10

When mask is black, it conceals the pink circle even though the layer is still on.

what-are-layers-and-masks-in-photoshop photo 11

The real power of layer masks is that they let you control different areas independently. In the example below, I’ve added a white square to the layer mask. Only the area of the pink circle that intersects with square is visible in the image. It looks like there are two square layers rather than a square and a circle.

what-are-layers-and-masks-in-photoshop photo 12

Masks can also be used to add transparency. You don’t have to just use black and white, you can also use gray—the layer’s opacity will be reduced by that amount. I’ve added a 50% gray square around the edge of the white square to the layer mask. The image now looks like there’s a pink square, surrounded by a dark pink circle, sitting in a black square.

what-are-layers-and-masks-in-photoshop photo 13

This is a bit of an abstract example, but it can be really useful in photos. For example, you can use layer masks to remove the background of a photo completely, which is very cool.

Working With Layer Masks

You can work on a layer mask with any of the regular Photoshop tools. The only difference is that layer masks are grayscale, so you can’t add colors.

To modify a layer mask, select it. You’re then free to add black, white, or any shade of gray with the tool of your choice. Photographers do a lot of work with the Brush tool, while in this article, I’ve used the Marquee tool to create all my masks.

To leave a layer on while turning the layer mask off, right click on the mask and select Disable Layer Mask. You can also select Delete Layer Mask to get rid of it entirely.

what-are-layers-and-masks-in-photoshop photo 14

Masks are one of the most important tools in Photoshop. You’ll use them in every project. Below, you can see a mask from one of my own images. I’m using it to selectively brighten the model, while keeping the background dark. It was painted with the Brush tool.

what-are-layers-and-masks-in-photoshop photo 15

More stories

How to Add Tabs to Almost Any App in macOS Sierra

Ever wish you could use tabs in your favorite apps? Thanks to macOS Sierra, you can. If you can open multiple windows with an app, there’s a good chance you can combine them into one, just like you do with your browser.

Browser Slow? How to Make Google Chrome Fast Again

Have you noticed your usually speedy Google Chrome browser slowing down, or even crashing on you? Unnecessary plugins, extensions, and even browsing data can slow your browser down to a crawl, or make it crash. Here’s how to fix it.

What is a Windows Domain and How Does It Affect My PC?

Windows domains are typically used on large networks — corporate networks, school networks, and government networks. They aren’t something you’ll encounter at home unless you have a laptop provided by your employer or school.

Desktop Fun: Auroras Wallpaper Collection Series 1

Auroras lighting up the sky with bursts of color are truly stunning visual experiences and make great photos when caught on camera. Now you can bring the beauty of these sky-borne events to your desktop with the first in our series of Auroras Wallpaper collections.