What Is a Layer Mask in Photoshop?
Layer masks are one of the most powerful — and most misunderstood — features in Adobe Photoshop. At their core, a layer mask is a grayscale image attached to a layer that controls what parts of that layer are visible. White areas reveal the layer, black areas hide it, and gray areas create varying degrees of transparency.
Unlike simply erasing pixels, layer masks are non-destructive. Your original image data is always preserved, which means you can refine, redo, or completely remove the mask at any time without losing quality.
Why Use Layer Masks Instead of the Eraser?
- Non-destructive editing: You never permanently delete pixels.
- Flexibility: Easily adjust your selection at any stage of the project.
- Professional workflow: Industry-standard technique used in photo retouching, compositing, and print design.
- Gradient and feathering control: Create smooth, natural-looking transitions between layers.
How to Add a Layer Mask
- Select the layer you want to mask in the Layers panel.
- Click the Add Layer Mask button at the bottom of the Layers panel (the rectangle with a circle inside).
- A white thumbnail will appear next to your layer thumbnail — this is your mask.
- Make sure the mask thumbnail is selected (you'll see a border around it), then paint with a black brush to hide parts of the layer.
Painting on a Layer Mask
Once your mask is active, the rules are simple:
- Paint with black to hide (erase) areas of the layer.
- Paint with white to reveal areas you previously hid.
- Paint with gray to create semi-transparent areas — great for soft edges and blending.
You can change brush softness, opacity, and size to get precise control. A soft-edged brush at low opacity is ideal for blending sky replacements or portrait retouching.
Using Selections with Layer Masks
One of the fastest workflows is to make a selection first, then add a mask:
- Use any selection tool (Quick Selection, Magic Wand, Pen Tool) to select the subject.
- With the selection active, click Add Layer Mask.
- Photoshop automatically converts your selection into a mask — selected areas become white (visible), unselected areas become black (hidden).
Refining Your Mask with Select and Mask
For complex subjects like hair or fur, use Select > Select and Mask. This workspace gives you tools like:
- Refine Edge Brush: Intelligently detects fine details like hair against a background.
- Feather: Softens the edge of the mask for a more natural look.
- Shift Edge: Expands or contracts the mask boundary to remove edge fringing.
Quick Tips for Better Masks
- Press Alt + Click on the mask thumbnail to view just the mask in the canvas — great for spotting imperfections.
- Use Ctrl + I (Cmd + I on Mac) to invert a mask instantly.
- Apply a Gaussian Blur to your mask (via Filter menu) to feather edges without losing detail on the layer itself.
- Use the Properties panel with a mask selected to adjust Density and Feather non-destructively.
Next Steps
Layer masks are the foundation of photo compositing, background removal, and advanced retouching. Once you're comfortable with the basics, explore clipping masks (which use one layer to mask another) and luminosity masks (masks derived from the light and dark tones in an image). These techniques will take your Photoshop workflow to a professional level.