Mask Feather and Expansion in After Effects

In Adobe After Effects, masks define which portions of a layer are visible, transparent, or affected by specific effects. Two of the most critical mask properties are Mask Feather and Mask Expansion, which give you precise control over mask borders. This guide explains the specific functions of both settings, how they impact your layers, and practical scenarios for using them to achieve seamless, professional composites.

What Is Mask Feather?

Mask Feather controls the softness of a mask's edges. By default, any mask drawn in After Effects has a feather value of zero pixels, resulting in an unnaturally sharp, hard edge.

Increasing the Mask Feather value blurs the boundary of the mask across a specified distance in pixels. This transition creates a smooth gradient between the opaque interior of the mask and the transparent exterior.

Common uses for Mask Feather include:

  • Seamless Blending: Softening cutouts to blend foreground elements naturally into a background plate.
  • Vignettes: Creating soft, dark or light borders around footage to draw the viewer's focus toward the center.
  • Light and Glow Simulation: Feathering solid layers to create organic-looking light leaks, shadows, or atmospheric haze.
  • Hiding Imperfections: Masking unwanted objects or seam lines between overlapping video clips without drawing attention to the cut.

What Is Mask Expansion?

Mask Expansion alters the overall size of the masked area without requiring you to move individual path vertices. It shifts the mask boundary uniformly outward or inward from the original vector path.

Mask Expansion is measured in pixels and functions in two directions:

  • Positive Values: Expand the mask outward, revealing more of the underlying layer beyond the drawn path.
  • Negative Values: Contract or "choke" the mask inward, hiding the outer edges of the layer within the original path boundary.

Common uses for Mask Expansion include:

  • Choking Edges (Matte Choke): Applying negative expansion to quickly trim off green screen spill, edge fringes, or light halos from keyed footage.
  • Global Sizing: Resizing a complex roto mask uniformly to compensate for slight camera drifts or scale changes.
  • Duplicating Elements: Offsetting duplicates of a mask to create stroke outlines, multi-layered shapes, or targeted glow radiuses.

Using Feather and Expansion Together

Mask Feather and Mask Expansion are most powerful when paired. When you apply heavy feathering to a mask, the blur expands both outward and inward from the original path line. This can cause unwanted background elements near the border to bleed into your frame.

To resolve this, you can set a negative Mask Expansion value alongside a positive Mask Feather value. The negative expansion pulls the mask boundary inward, allowing the soft feather gradient to land exactly on the original border of your subject without spilling over unwanted pixels.