What Is a Layer Mask?
A layer mask is one of the most powerful and fundamental features in Photoshop. In simple terms, a layer mask controls the visibility of different parts of a layer — without permanently deleting any pixels. Where the mask is white, the layer is visible. Where the mask is black, the layer is hidden. Shades of grey create partial transparency.
This non-destructive approach means you can always go back and refine your mask, unlike simply erasing parts of a layer.
Why Use Layer Masks?
- Non-destructive editing – Your original pixels are always preserved
- Precision compositing – Seamlessly blend two images together
- Selective adjustments – Apply effects only to specific parts of an image
- Flexible corrections – Easily refine or redo selections at any time
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 — it looks like a rectangle with a circle inside.
- A white thumbnail will appear next to your layer thumbnail. This is your mask.
Make sure you click the mask thumbnail (not the layer thumbnail) before painting, to ensure you're editing the mask and not the image itself.
Painting on a Mask
With the mask selected, grab the Brush tool (B). Remember the core rule:
- Paint with black to hide parts of the layer
- Paint with white to reveal parts of the layer
- Use grey for partial transparency / soft edges
You can quickly switch between black and white by pressing X on your keyboard. Use a soft-edged brush for natural-looking transitions and a hard-edged brush for sharp, precise edges.
Refining Masks with Select and Mask
For complex subjects like hair or fur, painting a mask by hand is difficult. Instead, use Select and Mask:
- First, make a rough selection using the Quick Selection tool or Object Selection tool.
- Go to Select > Select and Mask.
- Use the Refine Edge Brush to paint over hair and soft edges — Photoshop will intelligently detect fine details.
- Set the output to Layer Mask and click OK.
Using Gradients on Masks
Instead of painting manually, you can apply a gradient to a mask for smooth, seamless blends — perfect for sky replacements or fading two images together:
- Click the mask thumbnail to select it.
- Select the Gradient tool (G).
- Choose the Black-to-White gradient preset.
- Drag across the mask — the layer will fade from visible to hidden along the direction of your drag.
Clipping Masks vs. Layer Masks
It's worth knowing the difference between these two types of masks:
| Feature | Layer Mask | Clipping Mask |
|---|---|---|
| Controls visibility using | Painted black/white areas | Shape of the layer below |
| Best for | Complex cutouts, blending | Filling a shape with texture/image |
| How to apply | Layer Mask button in panel | Alt/Opt + click between layers |
Masking Tips and Best Practices
- Press Alt/Opt + click on the mask thumbnail to view the mask itself in black and white — useful for spotting gaps.
- Press Shift + click the mask thumbnail to temporarily disable it and see your original layer.
- Use Levels or Curves on a mask to sharpen or soften its edges without repainting.
- Always name your layers and masks clearly when working on complex composites.
Putting It All Together
Layer masks unlock a whole new level of control in Photoshop. Once you're comfortable with the black-and-white logic and understand how to paint, gradient, or select your way to a clean mask, you'll find compositing, retouching, and adjustment work becomes far more flexible and professional. Practice by placing one photo on top of another and masking out the background — you'll quickly get a feel for how powerful this tool really is.