What a layer mask does and why you'd use one
A layer mask in Photoshop lets you hide or show parts of a layer without permanently deleting anything. Instead of erasing pixels, you paint black on the mask to hide areas and white to reveal them. This means you can change your mind later — erase the mask, adjust it, or start over without losing the original image.
The main reason to use a mask instead of the eraser tool: masks are non-destructive. If you erase pixels with the eraser, they're gone. If you mask them, they're still there, just hidden. You can also make masks semi-transparent by painting with gray, which creates soft fades and blends that are harder to undo with the eraser.
Common uses include blending two photos together, fading an image into transparency, removing a background without cutting into the subject, or revealing different layers in specific shapes.
Key Takeaways
- Add a layer mask by right-clicking the layer in the Layers panel and selecting "Add Layer Mask", then choose whether to start with white (everything visible) or black (everything hidden).
- Paint on the mask with black to hide parts of the layer and white to reveal them; gray creates semi-transparent areas.
- The mask itself (not the layer) must be selected in the Layers panel before you paint, or your brush strokes will edit the image instead.
- You can adjust mask opacity, feather the edges, or invert the mask entirely without affecting the original layer underneath.
Adding a layer mask to your layer
Start by opening your image in Photoshop and making sure the layer you want to mask is selected in the Layers panel on the right side of the screen. If you don't see the Layers panel, go to Window > Layers.
Right-click directly on the layer thumbnail (the small preview image) and select "Add Layer Mask" from the menu. A dialog box will appear asking you to choose an initial state. Select "White (Full Opacity)" if you want the entire layer visible at first and plan to paint black to hide parts. Select "Black (Full Transparency)" if you want the layer completely hidden and plan to paint white to reveal parts. For most work, start with white.
After you click OK, you'll see a white rectangle appear next to your layer thumbnail in the Layers panel. That white rectangle is your mask. The layer thumbnail stays on the left; the mask thumbnail is on the right. Both need to be there for the mask to work.
Painting on the mask to hide and reveal
Select the Brush tool from the toolbar on the left (or press B). Make sure your foreground color is set correctly: black hides, white reveals. You can see your current colors in the toolbar — two overlapping squares showing foreground and background color. If you need to swap them, press X.
Before you paint, check the Layers panel and make sure the mask thumbnail (the white rectangle) has a white border around it, not the layer thumbnail. If the layer thumbnail has the border, click the mask thumbnail to select it. You must have the mask selected, or your brush strokes will paint on the image itself.
Paint over the areas you want to hide. Use black as your foreground color. The hidden areas will show whatever is below — usually the background or a lower layer. If you make a mistake, switch to white and paint over it to reveal that part again. You can undo individual strokes with Ctrl+Z (Windows) or Command+Z (Mac).
For soft, gradual fades instead of hard edges, lower your brush opacity before painting. You can find the opacity slider at the top of the screen when the Brush tool is active. Paint with gray instead of pure black or white to create semi-transparent areas.
Adjusting and refining your mask
If your mask edges are too sharp, you can soften them. Make sure the mask is selected in the Layers panel, then go to Select > Modify > Feather. Enter a pixel value — higher numbers create softer transitions. This blurs the boundary between hidden and visible areas.
To invert your mask (swap what's hidden and what's visible), right-click the mask thumbnail and select "Apply Layer Mask" to make the changes permanent, or go to Image > Adjustments > Invert while the mask is selected to flip it without applying. Inverting is useful if you started with the wrong initial state.
You can also adjust the mask's overall opacity without changing the layer itself. Look at the Layers panel — there's an "Opacity" slider at the top. This controls the layer's opacity. Below it, you'll see "Mask" with its own opacity slider. Lowering the mask opacity makes the entire mask effect more transparent, gradually revealing the hidden parts.
Removing or replacing a mask
If you want to delete the mask and start over, right-click the mask thumbnail in the Layers panel and select "Delete Layer Mask". Choose "Discard" to throw away the mask and keep the layer as it was before masking. Choose "Apply" to permanently hide the masked areas and merge the mask into the layer.
To replace a mask with a new one, delete the old mask first, then add a new one using the same right-click method. You can also copy a mask from one layer to another by right-clicking the mask thumbnail and selecting "Copy Layer Mask", then right-clicking a different layer and selecting "Paste Layer Mask".
Common mistakes and how to avoid them
The most frequent error is painting on the layer instead of the mask. Always check that the mask thumbnail has the white border in the Layers panel before you start painting. If you paint and nothing happens the way you expect, you're probably editing the wrong thing.
Another common issue is forgetting that black hides and white reveals. If you're painting black and the area is getting more visible instead of less, your foreground color is actually white. Check the color squares in the toolbar and press X to swap them.
If your mask looks too harsh or pixelated, you may have painted with a hard-edged brush. Switch to a soft brush (the default round brush with soft edges) or lower your brush opacity to create smoother transitions. You can also feather the mask after the fact using Select > Modify > Feather.
Using masks with layer blending modes
Masks work alongside Photoshop's blending modes, which control how a layer interacts with the layers below it. You can apply a blending mode (like Multiply, Screen, or Overlay) to a layer and then use a mask to control where that blending effect appears.
For example, you might set a layer to Multiply mode to darken an image, then mask it so the darkening only affects certain areas. The mask hides or reveals the blending effect, not the layer itself. This gives you precise control over where effects are visible.
Frequently Asked Questions
Can I paint with colors other than black and white on a mask?
No — masks only read black, white, and shades of gray. Gray values create semi-transparency: darker gray hides more, lighter gray hides less. Any color you paint will be converted to grayscale automatically. If you want partial transparency, use gray instead.
What's the difference between a layer mask and a clipping mask?
A layer mask hides parts of a single layer by painting on the mask. A clipping mask uses the shape or transparency of one layer to control what's visible in the layer above it. Layer masks give you more control and are easier to adjust later.
Can I use a selection to create a mask?
Yes. Make a selection using any selection tool, then add a layer mask. Photoshop will convert your selection into a mask automatically — the selected area becomes white (visible) and everything outside becomes black (hidden). You can then paint on the mask to refine it.
What happens if I delete a layer that has a mask?
The entire layer and its mask are deleted together. If you only want to remove the mask and keep the layer, right-click the mask and select "Delete Layer Mask" with "Discard" chosen. If you want to keep the mask effect permanently, choose "Apply" instead.
Can I copy a mask to use on a different image?
You can copy a mask between layers in the same document or between documents if you copy and paste the layer itself. Right-click the mask thumbnail and select "Copy Layer Mask", then paste it on another layer. The mask will adapt to the new layer's size.