[ AdSense leaderboard ]
Tutorial

Layer Masks: A Beginner's Guide

10 min read · Beginner · Updated 2026-04-24

If you take one thing from this site, take this. Layer masks are the most important Photoshop concept that beginners skip. Every cutout, every retouching effect, every color grade you have seen in a professional photo was built with layer masks. Master them and you graduate from "Photoshop is hard" to "Photoshop does what I want."

This tutorial walks through what a layer mask is, why it beats the Eraser tool, and the five keyboard shortcuts that make masking fast.

What is a layer mask?

A layer mask is a grayscale image attached to a layer that controls which parts of that layer are visible. White means "show this pixel." Black means "hide this pixel." Gray means "show this pixel partially," with darker grays being more transparent.

Critically, the original pixels are not deleted. The mask just hides them. You can paint white back into the mask later to bring those pixels back. This is the core difference between masking and erasing: masking is reversible, erasing is permanent.

Step 1: Add a layer mask to a layer

Screenshot: Layers panel with a new white layer mask attached to a layer

Select any layer in the Layers panel. Click the Add Layer Mask icon at the bottom of the panel (it looks like a rectangle with a circle in the middle). A white thumbnail appears next to the layer thumbnail. White means "show everything." Nothing changes visually yet.

Step 2: Paint with black to hide parts of the layer

Screenshot: Black brush hiding portions of a layer through the mask

Click the mask thumbnail to make it active. Press B for the Brush tool. Make sure the foreground color is black. Paint over part of your image. Wherever you paint, the layer becomes transparent.

Press X to swap to white. Paint over the same area again. The pixels come back. This is non-destructive editing in action.

Partner

Want a structured Photoshop course?

Tutorials like this one cover individual techniques. A complete Udemy course walks you from selections and layers through retouching and compositing in one structured path. Often on sale from $14.99.

Browse Photoshop courses on Udemy

The five shortcuts you need

Step 3: Master the X, D, and \\ shortcuts

Screenshot: Toolbar with foreground/background color swap visible

Three keys you will press constantly while masking:

  • D: reset foreground/background to default black/white. Hit this when colors got out of whack.
  • X: swap foreground and background. Toggle between paint-to-hide (black) and paint-to-show (white) without dragging through color pickers.
  • \ (backslash): visualize the mask as a red overlay on the image. Lets you see exactly what is masked. Press \ again to hide the overlay.

Step 4: Disable a mask with Shift + click

Screenshot: Mask thumbnail with red X disabling it temporarily

Hold Shift and click the mask thumbnail. A red X appears on it and the mask is temporarily disabled. The layer reverts to fully visible. Shift + click again to re-enable. This is invaluable for before/after comparisons while you work.

Step 5: Alt + click to view just the mask

Screenshot: Document showing only the mask grayscale image

Hold Alt (Option on Mac) and click the mask thumbnail. The document switches to show just the mask itself in black, white, and gray. Alt + click again to return to normal view. Useful for cleaning up stray gray spots in the mask that you might miss otherwise.

Mask techniques worth knowing

Step 6: Use a gradient mask for smooth transitions

Screenshot: Gradient tool dragging across a mask, creating a fade

Click the mask. Press G for the Gradient tool. With foreground/background set to default black/white (press D), drag a line across your image. The mask now contains a gradient from black to white, fading the layer from invisible to visible. This is how you blend two photos seamlessly.

Step 7: Refine a mask with Select and Mask

Screenshot: Select and Mask workspace open from a mask

Right-click a mask thumbnail and choose Select and Mask. The Select and Mask workspace opens with the mask loaded as the active selection. Use the Refine Edge brush on hair, fur, and feathered edges. Click OK to write the refined mask back to the layer. This is the highest-quality masking workflow Photoshop offers.

Pro tip: never delete pixels

The Eraser tool exists, but professionals never use it. The reason: erasing is permanent. If you erase the corner of a layer and then realize you needed it back, your only option is undo (and undo has a finite history). Masks have no such limit. Once you commit to masking instead of erasing, you stop having "I wish I had not erased that" moments.

Want to go deeper?

The Photoshop fundamentals course we recommend

For beginners moving past basics: Skillshare and Domestika both have full-length Photoshop fundamentals courses that cover masks, selections, and compositing in depth.

Coming soon

Related tutorials

[ AdSense leaderboard ]
Free Download

Get the Photoshop shortcuts cheat sheet

Every shortcut you'll actually use, on a single printable page.