Layer Masks in Photoshop: Hiding and Revealing for Seamless Edits

Capítulo 4

Estimated reading time: 7 minutes

+ Exercise

What a Layer Mask Is (and Why It’s Non-Destructive)

A layer mask controls the visibility of a layer (or adjustment) using a grayscale image attached to that layer. Instead of erasing pixels, you “hide” or “reveal” them through the mask—so you can change your mind later without losing data.

  • White on the mask = the layer is fully visible in that area.
  • Black on the mask = the layer is fully hidden in that area.
  • Gray on the mask = the layer is partially visible (the darker the gray, the more hidden).

Think of the mask as a reusable stencil. You can repaint it, soften it, or replace it entirely—while the original pixels (or the adjustment settings) remain intact.

Mask Basics You’ll Use Constantly

  • Paint on the mask, not the image: click the mask thumbnail to target it before brushing.
  • X key: swaps foreground/background colors. When masking, this usually swaps white ↔ black so you can quickly reveal/hide.
  • Brush color matters: you’re painting grayscale values, not “color.”

Workflow 1: Painting on a Mask with the Brush Tool

Painting is the most flexible masking method: you manually decide what shows and what doesn’t. This is ideal for local adjustments (like brightening a face) or selectively applying effects.

Brush Settings Essentials (Hardness, Opacity, Flow)

These three settings control how your mask builds up:

  • Hardness: controls edge softness.
    • Low hardness (soft edge) blends better for skin, light falloff, and subtle transitions.
    • High hardness (hard edge) is useful for crisp boundaries (product edges, graphic shapes).
  • Opacity: caps the maximum strength of a single stroke. At 30% opacity, even repeated painting won’t exceed 30% per stroke unless you paint again.
  • Flow: controls how quickly paint accumulates as you hold the brush down. Lower flow lets you “airbrush” gradually with one continuous stroke.

Practical starting points for masking: Hardness 0–30% for soft blending, Opacity 30–70% for controlled buildup, and Flow 5–20% for gradual painting.

Continue in our app.
  • Listen to the audio with the screen off.
  • Earn a certificate upon completion.
  • Over 5000 courses for you to explore!
Or continue reading below...
Download App

Download the app

Step-by-Step: Brighten Only the Subject’s Face (Curves + Mask)

This exercise uses a Curves adjustment layer and its built-in mask to brighten just the face while leaving the rest untouched.

  1. Create a Curves adjustment layer and lift the curve slightly to brighten (don’t worry if the whole image brightens for now).
  2. Invert the mask to hide the adjustment: click the mask thumbnail, then invert it so it turns black (the brightening disappears everywhere).
    • If you use a shortcut, you’re aiming for a black mask so the effect is hidden by default.
  3. Select the Brush tool and set the foreground color to white (white reveals the brightening).
  4. Choose brush settings for skin: soft brush (low hardness), moderate opacity, low flow for gradual buildup.
  5. Paint on the mask over the face where you want the brightening to appear: cheeks, forehead, under-eye area if needed. Build up slowly rather than trying to do it in one pass.
  6. Refine with X: if you brighten too far or spill onto hair/background, press X to switch to black and paint that area back to hide the adjustment.
  7. Check realism: if the face looks “cut out” or too flat, lower the Curves layer’s opacity slightly or soften the mask edge (covered in the refining section below).

Tip: When brightening faces, avoid painting strongly over eyebrows, nostrils, and lip edges—those natural contrast lines help keep the face dimensional.

Workflow 2: Using Gradients for Smooth Transitions

Gradients create controlled, natural-looking fades on a mask—perfect for skies, vignettes, fog, window light, and any situation where the effect should taper off smoothly.

How Gradient Masks Work

When you drag a black-to-white gradient on a mask, you’re creating a smooth transition from hidden (black) to visible (white). A black-to-transparent gradient can also be useful depending on your setup, but the core idea is the same: you’re painting a continuous range of grays.

Step-by-Step: Darken a Bright Sky While Keeping the Horizon Natural

This exercise uses an adjustment layer to darken the sky and a gradient mask to blend it toward the horizon.

  1. Create an adjustment layer that darkens the image (commonly Curves). Pull down the curve to darken until the sky looks controlled (it will also darken the foreground for now).
  2. Target the mask thumbnail on that adjustment layer.
  3. Set up the gradient: choose the Gradient tool and select a black-to-white gradient.
  4. Decide direction: you typically want the darkening strongest at the top of the frame and fading out near the horizon. That means the mask should be white at the top (effect visible) and black near the horizon (effect hidden). If it goes the wrong way, undo and drag in the opposite direction (or invert the mask).
  5. Drag the gradient on the mask from near the top of the sky down toward the horizon. The length of the drag controls how gradual the transition is:
    • Short drag = faster transition (more obvious banding risk).
    • Long drag = smoother transition (more natural).
  6. Keep the horizon natural: if the gradient darkens mountains/buildings too much, switch to the Brush tool and paint with black on the mask along the horizon line to hide the darkening there. Use a soft brush and low flow for subtle correction.

Tip: If the sky darkening looks “striped,” use a longer gradient drag and avoid extreme curve moves. Subtle adjustments with smooth masks look more photographic.

Workflow 3: Refining Mask Edges (Cleaner Blends, Better Cutouts)

Even a good mask can look artificial if edges are too hard, too soft, or contaminated by unwanted areas. Refining is about making transitions believable.

Common Edge Problems and Practical Fixes

ProblemWhat it looks likeFix
Edge too hardVisible outline or “sticker” lookPaint with a softer brush, lower hardness, or slightly blur/feather the mask edge
Edge too softHalo or muddy boundaryUse a slightly harder brush near the boundary, or repaint the edge with higher opacity
Spill/overlapAdjustment affects hair, background, or horizonPress X and paint black to remove the effect; zoom in and use smaller brush
Patchy maskUneven blotches in the effectLower flow and build gradually, or smooth the mask with gentle strokes

Practical Refinement Techniques

  • Zoom in and use a smaller brush: edge work is easier when you can see the boundary clearly.
  • Use low flow for blending: gently “massage” the mask edge with white/black to create a natural transition.
  • Mix hardness: soft brush for transitions, slightly harder brush for crisp boundaries (like a jawline against a dark background).
  • Feather/soften selectively: if an edge is too sharp, soften the mask edge slightly rather than blurring the whole image.

Troubleshooting Masks (Fast Checks and Fixes)

View the Mask Directly

When you’re unsure what you painted, viewing the mask itself makes problems obvious (patches, spills, hard edges). You should see a grayscale image: white where the effect shows, black where it’s hidden.

Disable/Enable the Mask to Compare

Temporarily disabling the mask lets you check whether the issue is in the adjustment settings or in the mask. If the effect looks fine without the mask but wrong with it, the mask needs cleanup.

Fix Over-Painted Areas (Too Much Revealed)

  • Press X to switch to black paint and brush over the area to hide the effect.
  • Lower opacity/flow to remove the effect gradually instead of in a harsh step.
  • Use a softer brush if you’re seeing a visible boundary after correcting.

Fix Under-Painted Areas (Not Enough Effect)

  • Switch to white and paint more on the mask where you want the effect to appear.
  • Increase brush opacity slightly if you’re not building fast enough, or keep low flow and make additional passes for smoother results.

Now answer the exercise about the content:

When using a black-to-white gradient on an adjustment layer mask to darken a bright sky, which mask setup and action best keeps the horizon looking natural?

You are right! Congratulations, now go to the next page

You missed! Try again.

White reveals the effect and black hides it. For sky darkening, keep the effect strongest at the top (white) and fade it out toward the horizon (black). A longer gradient drag smooths the transition, and black brush strokes can remove darkening from the horizon line.

Next chapter

Selections in Photoshop: Targeting Edits with Precision

Arrow Right Icon
Free Ebook cover Photoshop Basics: A Beginner’s Guide to Layers, Masks, and Selections
36%

Photoshop Basics: A Beginner’s Guide to Layers, Masks, and Selections

New course

11 pages

Download the app to earn free Certification and listen to the courses in the background, even with the screen off.