Layer Masks: A Beginner's Guide
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

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

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.
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 UdemyThe five shortcuts you need
Step 3: Master the X, D, and \\ shortcuts

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

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

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

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

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.
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 soonWhen to reach for a layer mask
The honest answer is "almost every time you would otherwise reach for the Eraser." Any time you want part of a layer hidden but reversible, the right tool is a layer mask. Cutouts, blended composites, selective adjustments, gradient transitions, dodge and burn, retouching, color grading on specific areas: all of it is masking work.
The few cases where masking is the wrong tool: when you genuinely want to delete pixels permanently to reduce file size (which is rare and almost never worth it), when the layer is a Smart Object whose contents you want to crop at the source, or when you are doing simple cropping that the Crop tool handles better. In every other case, mask.
Common mistakes that frustrate beginners
The most common mistake is painting on the layer instead of on the mask. The signs: nothing is hiding when you paint black, or you are accidentally painting black streaks onto your image. The cause: you clicked the layer thumbnail (the picture) instead of the mask thumbnail (the white rectangle next to it). A faint white outline around the active thumbnail shows which one is selected. Always glance at that outline before painting.
The second mistake is using a brush with hardness at 100% on a mask. Hard edges on masks look like cutouts done with scissors. Drop the brush hardness to 0% for everything except deliberate edge work. The default hardness in Photoshop is 100%, which is wrong for most masking. Set your default brush to 0% hardness and never look back.
The third mistake is masking on the wrong layer. If you put a mask on an adjustment layer instead of the image layer it should affect, the result is technically working but conceptually backwards. Decide before you start which layer should carry the mask: the image layer for cutouts, the adjustment layer for selective grading.
The fourth mistake is forgetting to invert. New masks default to white (show everything). Sometimes you want them to default to black (hide everything) so you can paint white only into the areas you want to reveal. The shortcut for this is Ctrl/Cmd + I on a selected mask, or hold Alt when clicking the Add Layer Mask icon to create an inverted mask.
Adapting masks to your workflow
For tablet users: enable pressure sensitivity in your brush settings. Light pressure paints transparent gray, heavy pressure paints opaque black or white. Masking with a tablet becomes drawing rather than painting, and the speed gain compounds across a whole edit.
For sharp-edged work (logos, geometric shapes, type): use vector masks instead of pixel masks. A vector mask uses Pen Tool paths and scales infinitely without softening. Most masks should be pixel masks, but anything where the edge geometry is precise (a product against white, a vehicle silhouette, a building) benefits from vector.
For repeating workflows: save common masks (a vignette gradient, a center-weighted darkening, a soft edge fade) as preset gradients or as Photoshop Actions. Future edits get the mask applied in one click rather than redrawn from scratch.
For group masking: any layer group can have its own mask that applies to every layer inside it. This is invaluable when you want a single edge to define multiple effects. Mask the group once, edit the contents freely, and the mask still controls visibility.
Frequently asked questions
What is the difference between a layer mask and a vector mask?
A layer mask is a grayscale image where every pixel has a transparency value (0-255). A vector mask is a path that defines a hard edge between fully visible and fully hidden. Layer masks are the right choice for organic shapes and soft transitions. Vector masks are the right choice for hard geometric edges that should stay crisp at any zoom level. A single layer can carry both at the same time.
Can adjustment layers have masks?
Yes, and they get one automatically when you create them. The default white mask means the adjustment affects the entire image below. Paint black on the mask to limit the adjustment to specific areas. This is the foundation of every selective color grade, every dodge-and-burn pass, and every targeted exposure correction.
Why does my mask have a faint chain link icon between the thumbnails?
The chain link means the layer and the mask are linked, so moving one moves the other. If you want to move the mask independently of the layer it is attached to (useful when a mask should slide while the underlying image stays in place), click the chain to unlink them. Click again to re-link.
Is there a video version of layer masking I should learn after this?
The same principle applies in After Effects via track mattes and in Premiere Pro via clip masks. Both use grayscale alpha to define visibility. Once you understand layer masks in Photoshop, the video equivalents take an afternoon to pick up.
Related tutorials
Get the Photoshop shortcuts cheat sheet
Every shortcut you'll actually use, on a single printable page.


